test(avplayer): stop the unsynced test racing the player's auto-start #2770
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2770"
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 Yuva1024 on 2026-10-10T13:56:03Z.
What
Fixes the
enable video failedfailure ofguest_avplayerreported in #2709.TestUnsyncedVideoKeepsUpWithAudiobuilt its player withInitData(nullptr), which has no event callback.Playerenables auto-start in that case (autoStartEnabled = init.auto_start || callback.event_callback == nullptr), so its controller thread enables the streams and starts playback shortly aftersceAvPlayerAddSource, racing the test's ownsceAvPlayerEnableStream. When the controller wins,Source::EnableStreamseesstarted == trueand returns failure.The test now passes an
Eventsobject, like the other tests that drive the player by hand. It is a two-line, test-only change. No other test in the file combines a missing callback with a manualEnableStream.I could not test the Linux abort also mentioned in #2709 (
std::abort()in the allocator or event callback). It may be a different symptom of the same race, or a separate cause.Tested
Windows 11 (26200), WinLibs GCC 15.2.0 r7, Release, Ryzen 5 5600G, on
mainba2a0a31(the change applies unchanged to8b812318).enable video failed) in 220 runs ofguest_avplayer_tests, seen only with 6 runs in parallel. With a 60 ms pause before the test'sEnableStreamit fails 10/10.guest_avplayerpasses in the fullctest(709/709 onba2a0a31).python tools/check_conventions.py --base origin/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T13:56:12Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T22:59:42Z.
Checked the diff and the cause (
Player.cpp:65turns auto-start on when there is no event callback, racing the test's manualEnableStream). Reproduced on Linux with 6 parallel copies plus busy loops (240 runs):mainfailsenable video failed28 times, this PR 0 times. Build and the core/libs ctest pass; merging.Note: #2709 stays open, since the Linux
std::aborton a failingCheck(unwinder mismatch between libc.prx and-static-libgcc, see Yassin6up's analysis there) is a separate problem.