Windows NVIDIA: StoreOverUntracked can free surfaces before queued work completes #5789
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 Amoenus on 2026-10-14T11:02:33Z.
Failure
Unmodified main
3e577edac2159830bd3befff32b3690fd54cfcfe:agc_driver_store_over_untrackedintermittently exits with access violation0xc0000005on Windows NVIDIA. Found while validating the integration used for Sonic Unleashed Recompiled (PPSA99902); this is a public synthetic fixture, not a game-crash reproduction.Reproduce
Windows 11 Enterprise 26200, WinLibs GCC 15.2.0r7, Release, bundled dependencies, SPIRV-Tools ON, BUILD_TESTING ON. NVIDIA RTX 5080 / 610.62 (32.0.16.1062), Vulkan required, AnyPS5 shader cache disabled, default GPL on.
The standalone main control failed once immediately and again after nine passing executions in a separate repeat campaign. AMD Radeon(TM) Graphics 1002:13c0 / 32.0.21036.18 passed 20 repetitions. No CTest skips. A composed integration independently failed on its fourth NVIDIA repetition; symbol lookup of that public build identifies StorageTexture::upload/Refresh on the worker stack.
Merged fixture correction
Three-line fork fix260514de7, base main82f112, waits for accepted submissions before Run's surfaces are destroyed. Run can return Missed while a Store is still queued. The guard is declared after Surface and before the GPU mutex lock, so the lock releases before waiting and guest storage remains alive until work completes.
The correction passed 100 serial repetitions on each GPU, both before and after rebase; maximum0.395661s NVIDIA/0.326654s AMD on the final pin. Runtime libraries/fixture build, conventions, registration and whitespace checks pass. This is targeted fixture validation, not a whole-main/full-suite build or title capability fix. The fixture blob is identical on the stock control and final base. Other memory failures are not excluded.
Related #5760 adds different coverage in this fixture; it does not add this lifetime wait. AI-assisted: Codex.
Confirmation after merge
#5790 merged into main as
f72b62ff2a3ab959fb949e245f31528f4f057228. On unchanged mainf2aa48a8e, a clean Windows Release checkout/build oflibsandagc_driver_store_over_untracked_tests, with registration checks, passed. Vulkan was required, AnyPS5 shader cache disabled, default GPL enabled, serial execution, and each test had a 30-second timeout.Windows 11 Enterprise 26200, WinLibs GCC 15.2.0r7, bundled dependencies, SPIRV-Tools ON, BUILD_TESTING ON. The preceding first NVIDIA run also passed (0.880317 s). No access violations, test failures, timeouts or CTest skips. Source remained clean and pinned through the campaign. Main's additional second-store test was included unchanged.
Run once per GPU selection:
Coverage limit: in every repetition on both vendors, the three cases named
a surface that left the write watch,a surface written before it left the write watch, anda surface whose import left the write watchreportnot run, the surface is not write-watchedand return success. These are internal conditional omissions, despite zero CTest skips; this campaign does not establish their write-watch transition behavior. No fixture changes or guard bypasses were used. This confirms the reported lifetime crash no longer reproduced in these campaigns; it is not full-suite, Linux or game-startup validation, nor proof that other memory failures are absent.A later, distinct first-store assertion on unchanged main1d1c7615c is tracked in #6347, including both-vendor reproduction. That does not change the historical lifetime-crash result above or establish the same cause.
AI-assisted: Codex.
Imported from boykopovar/AnyPS5. Originally posted by fdfawef324 on 2026-10-14T20:41:53Z.
Resolved on
mainby #5790 (merged 2026-10-14 19:06 UTC,f72b62ff2). Onmaine6ef803ce,Runincore/libs/prx/libSceAgcDriver/tests/execution/StoreOverUntracked.cppdeclares theWaitForWorkguard (destructor callsAgcDriverWaitIdle_nid_postfix(), :294-296) right afterSurface surface(leaves);(:293) and before the GPU mutex lock (:299), so the surfaces outlive queued work. The laterRunSecondStore(:232-235) has the same guard.Verified by source check only (
git grep/git logonmaine6ef803ce); I did not re-run the fixture on Windows NVIDIA. If @Amoenus confirms the repeat campaign stays green onmain, this can be closed.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-14T21:09:55Z.
@fdfawef324 Confirmed on unchanged main
f2aa48a8e: rebuilt runtime libraries and the fixture in a clean Windows Release checkout; 100/100 serial runs passed on RTX 5080 and 100/100 on AMD Radeon Graphics, plus the first NVIDIA run. Actual selected device output was checked in every run. No access violations, failures or timeouts.Important scope limit: all three write-watch-transition cases report
not run, the surface is not write-watchedon both GPUs, although CTest records zero skips. The fixture, including the later second-store case, was unchanged. Full details, drivers, commands and coverage limits are now in the issue body.Closing the reported fixture-lifetime crash as resolved by #5790. This does not claim game-startup or whole-suite validation. AI-assisted: Codex.