Device loss under texture streaming (Wobbly Life PPSA29413) #3463
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 exefer on 2026-10-11T10:59:27Z.
What
While streaming Addressables texture bundles, the driver destroys buffers still referenced by submitted command buffers, then loses the device:
One run instead produced kernel
NVRM: Xid (PCI:0000:01:00): 31 ... MMU Fault: ENGINE GRAPHICS HUBCLIENT_PD faulted @ 0x0_9d7a9000. Fault is of type FAULT_PTE ACCESS_TYPE_VIRT_READ, same family (GPU reading unmapped pages), on a run without validation layers.Follow-up runs after the VUID only show the fence
-4(plus the cascadingvkResetFences/vkQueueSubmit/vkBeginCommandBufferVUIDs that all note a device loss already occurred).Repro
Wobbly Life (PPSA29413, Unity 2022.3) on Linux (CachyOS), GCC 16.2.1, Intel i5-12400 + NVIDIA RTX 3060 Ti (615.71.09), current
mainplus closed #1706 rebased locally (needed to get past an earlierselectabort; unrelated). Boot the title, let it stream arcade texture bundles for 1-3 minutes. Deterministic-ish location (same bundle area), flaky manifestation: menu/tutorial were reached in some runs,-4abort in others, Xid 31 once. Bring-up thread: #2211.Already in tree, not covering it
00922VUID (checked).AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T16:40:41Z.
The VUID confirms a real buffer-lifetime violation, but it does not identify which owner destroys the reported handle. Current sampled-texture uploads keep their staging, tiled, linear and image objects in the recorder batch, and #1113/#2575 cover adjacent upload/import lifetimes. Could you capture the
vkDestroyBuffercall stack or the resource owner for the handle in the VUID (for example, break on that handle at destruction)? That would distinguish a separate streaming path from one of the lifetimes already covered, and keep a fix from changing the wrong owner.Imported from boykopovar/AnyPS5. Originally posted by exefer on 2026-10-11T19:17:15Z.
Got it. Chased this down to the owner with a capture rig (LD_PRELOAD shim logging every
vkDestroyBufferhandle with caller PCs, resolved offline; zero repo changes, source at the bottom).Repro
Wobbly Life streaming on the issue-era tree (
9a9bd3f+ #1706, validation layers):VUID-vkDestroyBuffer-buffer-00922, same bundle area every time, followed by the fence-4. Flaky at roughly one run in three.Owner
The destroying call stack for the reported handle, top first:
RetiredImport::_M_dispose()(shared_ptrdisposal)importAllocation()ImportMappedRanges()VulkanDevice::ImportGuestMemory()Lifecycle.cpp)All frames resolve inside
libSceAgcDriver.prx,GuestBufferMemory.cppdomain.Mechanism
When streaming registers a changed range, the old import is dropped from the map (
retireImport). Its Vulkan objects survive only if a recorder batch is open (recorder->Keep); otherwise the holder is a local and destroys immediately, on the theory that with no batches in flight all GPU work using it was synchronous. That theory fails here: the retired buffer was still referenced by submitted (not open) command buffers, hence00922and then the-4.So: distinct from #1113 (recorder-kept upload lifetimes, which this path bypasses by construction) and adjacent to #2575 (which orders unmap vs retire, but not retire vs in-flight GPU work). The remaining fix belongs to this file: tie the holder to submission completion instead of open-batch state, or wait before destroying.
Suppression bisect
Bisected 99c1c26..9a9bd3f, every point carrying the #1706 merge (without it the select abort masks everything), 3 validation runs per point unless noted:
99c1c26+ #1706 (evidence tree)a94f426(#3429)c064e68(#3425, with pair)74f51a4(#3440),f6d156a(#3435)c064e68minusa947303+8da461b(revert)a11c8f7(currentmain; plus #3462 applied locally, without whichselectstops the title first)The suppressor is #3425's host-import window pair (
a947303join spans over whole aligned windows,8da461bfix window at 8 MiB). Reverting just that pair on an otherwise clean tree brings the VUID straight back. It suppresses by retiring far less during streaming growth; the immediate-destroy logic itself is untouched and still live. Not fixed, just rarely triggered now. (Separately: #3472 merged after all of this, so it explains none of the above; it may still matter on currentmain.)Also excluded as suppressors along the way: the shim (VUID reproduces with it active), warm shader cache (reproduces fully cold, 83 misses), idle-vs-loaded box (reproduces under load 13-21), and the newer select work.
Happy to test any fix branch against the repro tree (
99c1c26+ #1706, kept as a worktree here).Capture shim source (local-only, zero repo changes)
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T07:38:08Z.
#4017 is on main: an overlapping host import is retired under the GPU lock now. Does PPSA29413 still lose the device under texture streaming on current main?
Imported from boykopovar/AnyPS5. Originally posted by exefer on 2026-10-13T21:32:27Z.
No. Eight streaming runs on current
main0aa4cb1, all through streaming clean: zeroVUID-vkDestroyBuffer, zero fence-4, zero Xid.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T21:56:01Z.
Thanks for rerunning the current-main build. The eight clean streaming runs, with no
VUID-vkDestroyBuffer, fence-4, or Xid, confirm that #4017 resolves the reported device-loss path. I do not see a remaining code action from this report.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T00:08:16Z.
Closing, since your eight runs on current main came through streaming clean after #4017. Comment here if the device loss comes back.