RTX 3060 (8 GB): DXGI_ERROR_DEVICE_HUNG in world load (mesh 1da1eb9822214321, pixel ef9b757c9c1e4b26, command 1733/2145) #619
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#619
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?
@uWaazy on GitHub · 2026-11-24 05:44 UTC · original
Environment
d2a4bae Merge pull request #129 from Luislariosss/fix/duplicate-test-module--profile diag --features diagnosticsVICTORY_SHADER_LOOP_LIMIT=1024,VICTORY_D3D12_DRED=1,VICTORY_D3D12_WARP=0,VICTORY_D3D12_GBV=0-2005270523crashes.log (latest)
Log tail (last 45 lines)
@LAKSHYA-cmd-tech on GitHub · 2026-11-24 05:47 UTC · original
This hang on NVIDIA RTX 3060 during indirect mesh dispatch (\indirect kind 10 max 1) on \
d2a4bae\ is caused by the known NVIDIA mesh shader bugs addressed in:Testing with PR #587 + PR #586 + PR #588 applied locally on Windows 11 avoids this hang.
@LAKSHYA-cmd-tech on GitHub · 2026-11-24 07:56 UTC · original
### Root Cause Identified for the
[mesh 413144fb9d62e37e, pixel 633c1f8872ed8c6d]GPU Hang (0x887A0006)Comparing the crash logs in #619 and #625 reveals the exact same indirect mesh dispatch and pipeline failing across both systems:
indirect kind 10 max 1 at ... [mesh 413144fb9d62e37e, pixel 633c1f8872ed8c6d]Notice the exact diagnostic output for the pixel shader:
633c1f8872ed8c6d: u8=0xa13a00 [heap 330192: null]The Bug
u8=0xa13a00is a descriptor table offset10,566,144bytes into the view heap, which indexes host descriptor slot330,192(0xa13a00 / 32 = 330,192).crates/victory-gpu/src/descriptor/host.rs(lines 343-353):330,192,mirror()is called withfor_draw: false.view.is_buffer()is true,lateris set totrue:make(&view, self.cpu(index)).null_for(&view, self.cpu(index)), populating slot330,192with a null view (DXGI_FORMAT_R8G8B8A8_UNORMdummy 2D texture or empty buffer).made[330,192] = 0.table_entryis only invoked for resources statically declared inUsedResource. Dynamically indexed buffer descriptors or descriptors indexed via root constants/user data that were not inusednever getmirror(..., for_draw: true)called on them.[mesh 413144fb9d62e37e, pixel 633c1f8872ed8c6d], pixel shader633c1f8872ed8c6dexecutes a typed/raw buffer operation against heap slot330,192(which is still a null view). On NVIDIA hardware (RTX 3060 / 3060 Ti), this invalid memory access halts the hardware queue and triggersDXGI_ERROR_DEVICE_HUNG (0x887A0006).Eliminating the artificial
laterdeferral for buffer views or ensuring dynamically referenced heap slots are realized before execution resolves this crash.@LAKSHYA-cmd-tech on GitHub · 2026-11-24 08:23 UTC · original
Root Cause & Verification for DXGI_ERROR_DEVICE_HUNG (0x887A0006)
Notice the exact descriptor table state logged at the crash point:
\\ ext
633c1f8872ed8c6d: u8=0xa13a00 [heap 330192: null]
ef9b757c9c1e4b26: u8=0xa13a00 [heap 330192: null]
\\
The pixel shaders \633c1f8872ed8c6d\ and \ef9b757c9c1e4b26\ receive user data register \u8 = 0xa13a00\ and dynamically index the D3D12 view heap at runtime (\
@meh7an on GitHub · 2026-11-24 08:32 UTC · original
Same hang on an RTX 2080 Ti, with the same empty heap slot (
u8=0xa13a00 [heap 330192: null]). I tested #587 and #581, each on its own. Neither stops the hang; each only moves it to a different command.Setup: RTX 2080 Ti (11 GB), NVIDIA driver 610.88, i9-9900K, Windows 11 build 26300, title v1.0.2.1 in Series X mode. I used the diag build (
--profile diag --features diagnostics) withVICTORY_D3D12_DRED=1. For the #581 run,VICTORY_KEYSpressed Enter to get past the start screen.1f858b0,VICTORY_SHADER_LOOP_LIMIT=4096mesh 38 [mesh 7523e84989803fc7, pixel 855f2ebd23bbfbbc], thenmesh 2486510c8afeef34at 272. All haveu8=0xa13a00 [heap 330192: null]1052a90)indirect kind 10 max 1 [mesh ae9ee9074f2e971f, pixel 54e55d28e6ee4f5c],u8=0xa12100 [heap 329992: null]0a936b6)Notes:
heap 330192slot is the same one as on the 3060 here, so this isn't specific to one card. That slot is reached through user data (u8) rather than a table slot. That may be why #581's table-slot null descriptors don't cover it, but I haven't confirmed this.compute 9146291b38ea9ce1,compute ec982aaadc623a49, andmesh 0384efa1b7bcd540 + pixel 1d96551fdd673db7.d2a4bae, not together and not with #586. I'm happy to test a combined branch or take another DRED capture.@Sil3ntGam3r on GitHub · 2026-11-24 08:41 UTC · original
Same hang on an RTX 3070 8 GB (driver 621.14, Windows 11): main
d2a4bae+ #89, diag build,VICTORY_D3D12_DRED=1. The device was removed (0x887A0006) about 2 min after launch, early in the first mission.The list stopped at command 5271 of 6283,
indirect kind 10 [mesh 09c742c58e9acb62, pixel 9ee9a1b0ecdf7b74], withu8=0xa12100 [heap 329992: null]. That's a different pipeline from the one here, but the same pattern: an indirect mesh dispatch whose u8 points at an empty view-heap slot around 330k. In the same submission, 7 more pipelines carry the same null slot, including633c1f8872ed8c6dfrom this issue, plus1cb9d385ac8987c4,c7f8235118617c43andc0c1193022c1634f. The release run also had 100 compute pipelines refused withE_INVALIDARG, as in #468. (AI-assisted test run.)@meh7an on GitHub · 2026-11-24 09:16 UTC · original
Retested on current main (
58fed37) with the open NVIDIA-hang PRs stacked one at a time. RTX 2080 Ti, GTA VI Xbox dump v1.0.2.1, diag build with DRED on. "World" means the log reports more than 150 draws/frame.u8points at an empty heap slotu8andu9both empty heap slotsu8still an empty slotSo on this card #578 is the only one of these that gets past the hang, and it does it by refusing the wave64 mesh and compute programs (log: "no host pipeline: a mesh program written for 64-lane waves, on a host without them"). The cost is that the 3D scene stays black: only the 2D layer (credits) draws, about 1 fps, hundreds of draws per interval dropped without a host pipeline. So it avoids the hang rather than fixing it.
The hangs without #578 are always mesh draws that read a descriptor slot with no view (
[heap N: null]), even with #581's typed null descriptors on top, so the wave64 mesh path on 32-lane hardware still looks like the real problem.Not tested: #568 stacked on #581 (same feature, conflicts in 5 files) and #483 (conflicts with main's heap code in
descriptor/host.rs).Also, main's tests do not currently compile:
lowers(&words)atlower.rs:6963calls a helper that now takes(words, rsrc2).@Vaximous on GitHub · 2026-11-24 11:01 UTC · original
A likely cause of this NVIDIA world hang, with a fix: #307
Short version:
v_readfirstlane→v_cmpx_eq→s_andn2_wrexec) rely on whole-quad mode putting helper lanes in EXEC on the console. On the host,WaveReadLaneFirstskips helper lanes. Once only helper lanes are left, no lane matches, and each one runs to the translator's loop limit.DEVICE_HUNG200-260 s into the world. DRED stopped at the same instanced draws each time.v_readfirstlanetakes its own value. After the fix there were zero slow submissions, and two runs of 363 s and 366 s in the world with no device removal.v_readfirstlaneto a plainWaveReadLaneFirst, so this should apply there too.@Sunkiller-qc on GitHub · 2026-11-24 13:13 UTC · original
In your follow-up #781 (same RTX 3060,
ffe310e), the list that's running when the device is removed has9ef9a9d818b27236as its dispatch (list 10 of 11). That's the compute program Wasler found stuck in a loop on an RTX 5060 Ti. Markingglcloads globally coherent (#725) ended that hang without a loop limit (details on #732).If you can, try main plus dpalacios69's
fix/shader-glc-globally-coherentbranch (linked on #725), with the same flags. If the hang moves back to the mesh dispatch, then it's the wave64 mesh family (#778). If it goes away, that's a useful second NVIDIA data point for #725.@uWaazy on GitHub · 2026-11-24 14:29 UTC · original
### Environment
ffe310e Shaders: the console's waterfall loop over a first-lane table offset--profile diag --features diagnosticsVICTORY_SHADER_LOOP_LIMIT=1024,VICTORY_D3D12_DRED=1,VICTORY_D3D12_WARP=0,VICTORY_D3D12_GBV=0-2005270523crashes.log (latest)
Log tail (last 45 lines)
Full sanitized gist: https://gist.github.com/uWaazy/58ac5993654302eaa4f473e6329b3e85
@Marvisak on GitHub · 2026-11-25 01:45 UTC · original · edited 2026-11-25 01:52 UTC
Automated triage for the maintainers.
This is a complete run report: GPU, OS, commit, diag build with DRED, and the crashes.log tail, with a follow-up on
ffe310e. It matches the NVIDIA world-loadDEVICE_HUNG(0x887A0006) failure tracked in #71, the oldest complete report. Other reports of the same failure, as seen in this thread: #625 (same pipeline pair), #778 (traced to wave64 mesh programs on 32-lane hosts), #314, #392, #781. The comments here show the hang moves between pipelines. It persists with loop limits and with #587/#586/#581. It goes away only when wave64 mesh/compute programs are refused (#578, now carried as the open #1922), and then the world renders black.Since your last run,
mainmerged #1733 (commit0601955, "a helper lane's v_readfirstlane reads its own value"). That is the waterfall-loop hang described in the comment above that links #307. Please retry currentmainwith the same diag build and flags, and post whether the hang still occurs and where DRED stops. The globally coherentglcload change (#725) is not inmainyet.Generated by Claude Code