video_out_flip_tests is not in ctest and its lifetime and reopen modes terminate on main #1040
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by NahuelGenchi on 2026-10-07T03:05:51Z.
video_out_flip_testsis built withEXCLUDE_FROM_ALLand never registered in ctest, and on main (ab9437e3) most of its modes fail. I ran every mode on Linux withSDL_VIDEODRIVER=offscreenand lavapipe:The default lifetime mode gets through all of its checks up to the last one, which expects
LibcRunShutdown_nid_postfix()to throw the asynchronous "closed" error back to the caller. What happens instead is thatVideoOutDriver::Shutdownstops the present thread,presentLoopthen callsAgcDriverShutdown_nid_postfix()outside its try block,Driver::Shutdownrethrows the stored worker failure on the present thread, and the process terminates:Catching that call in
presentLoopand storing the error inflipQueue->failure, soVideoOutDriver::Shutdownrethrows it after the join, makes the default mode pass.The reopen mode is different. There the output's
Failsets the queue-wideflipQueue->failurewhile the present loop is still running, and the loop's own catch callsstd::terminate. That terminate came in with0d29a0a3("terminate process on gpu and presentation thread failures"), which is newer than this test, so the test's expectation that a flip on a closed port only fails that port's waiters and is reported again at shutdown no longer matches the policy. It only shows up outside gdb; under gdb the timing changes and it passes.The other six modes need a
param.jsonin the working directory, so they'd need a fixture before they could run in ctest.I didn't want to guess which side is intended. Should a flip that fails because its port was closed still kill the process, or should it stay a per-port failure as the test expects? Once that's settled I'm happy to send a PR that fixes the shutdown path, updates the test and registers the modes that can run headless (decode and controls already pass).
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T18:31:56Z.
Progress on the headless test coverage
I pushed two commits to the fork branch
test/videoout-headless-ctest-1040:75f410a3registersvideo_out_decodewith CTest and includesvideo_out_flip_testsin the default build whenBUILD_TESTING=ON.96a198c4removesvideo_out_flip_testsfromKNOWN_UNRUNnow that CTest runs it.Validation on current
main(f8c2f072):video_out_decodepasses (1/1) with lavapipe and SDL offscreen.tools/check_test_registration.pypasses on a Ninja configuration: 448 test executables, with only the already documentedagc_driver_recorder_testsexemption.git diff --checkandtools/check_conventions.py --base upstream/mainpass.I did not register
controls: on this current tree it fails with SDL offscreen because that driver cannot create the Vulkan surface, and the Linux Build workflow does not install Xvfb. The lifetime and reopen modes also remain unresolved. These commits do not change shutdown or presentation failure semantics, so the question in this issue about whether a closed-port flip should terminate the process still needs a maintainer decision.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T18:33:16Z.
Correction after checking the open PRs
I missed the existing overlap with #1225 before pushing my test-only branch. #1225 already contains the shutdown fix and a more complete version of this test registration, including the
KNOWN_UNRUNcleanup,param.jsonfixture, and skip handling when an SDL Vulkan window is unavailable. Its author also recorded Windows results after the later SDL change.My two commits added no unique change beyond #1225. I deleted the redundant fork branch; the local commits remain in my workspace for reference. Please treat #1225 as the existing contribution for this issue. I did not open another PR.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T06:24:54Z.
Closing: #1225 and #1648 fixed the lifetime and reopen modes, and all four modes now run in ctest (
core/libs/prx/libSceVideoOut/CMakeLists.txt:36).