NVIDIA RTX 5070 Ti: GPU hang (0x887A0006) on world mesh draws #1216
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#1216
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?
@volvovida1990 on GitHub · 2026-11-24 16:28 UTC · original
Summary
On an NVIDIA RTX 5070 Ti the title gets through the intro (video, cutscene audio, subtitles, title cards), then the host device is removed with
DXGI_ERROR_DEVICE_HUNG(0x887A0006) once world mesh draws start. With DRED on, the hang is always on a mesh pipeline draw whose user-data heap indices point at descriptor slots VIctory reports asnull. Which mesh shader it is varies between runs, so this doesn't look like one bad shader. My guess (not verified) is that NVIDIA is less tolerant than the RX 6700 XT of what these draws read through those slots.Environment
mainatffe310e,diagprofile with--features diagnostics930.048.020, title ID7952987ASteps
VICTORY_SHADER_LOOP_LIMIT=4096andVICTORY_D3D12_DRED=1victory run <game_scarlett_master.exe> --executeWithout the loop limit it hung earlier (after 11 lists, no breadcrumbs). With it, the intro cutscene finishes before the hang.
DRED results (from
crashes.log, trimmed)Three runs. Each stops inside a run of mesh draws between barriers:
mesh 1 [mesh 45c922763602b723, pixel a5d8f39892a63276]mesh 1 [mesh 857b2e13c9cc107f, pixel 63051e97862e7dad], plusc962201cddbdd7dd,89036e16fa081505,37f363f0a5dcd806in the same spanmesh 6 [mesh f0c7efd2aceb2aaa, pixel 7d85c9cab3c80721]* Runs 2 and 3 used
VICTORY_SKIP_PIPELINES=45c922763602b723. The hang moved to other mesh shaders.In every hanging draw, the user-data heap indices resolve to slots shown as
null:A single crash record references 130–160
nullheap slots. The heap is null-filled at creation (fill_null), so these slots hold a generic null view. If the mesh shaders expect another view type (typed texture vs. buffer, or a UAV) there, that mismatch could be what NVIDIA hangs on and AMD tolerates. Or the title writes these slots in a way VIctory doesn't track yet. I can rerun withVICTORY_D3D12_DEBUG=1/VICTORY_D3D12_GBV=1if that helps.GPU test results on the RTX 5070 Ti
In case NVIDIA hasn't been covered yet: I ran
victory-shader's unit tests on this card (debug build, Agility SDK 1.620.2 loaded into the test binary through theD3D12SDKVersion/D3D12SDKPathexports).emit::valu_tests: 13 GPU tests passed on both the hardware adapter and WARP. None was skipped.emit::waterfall_tests: 5 passed, including both GPU waterfall tests (lanes_sample_their_own_texture_in_a_waterfall_narrowed_by_v_cmpx,lanes_sample_the_entry_their_offset_names_in_the_console_waterfall).emit::diff_tests: 4 passed. None printed "no SM 6.6 device; skipped".So translated VALU semantics, per-lane waterfalls and the diff tests behave on NVIDIA as they do on AMD. That makes the hang above more likely to be in descriptors or the mesh pipeline than in the instruction translation. Without the Agility runtime, the same tests fail on Windows 10 with "neither hardware nor WARP SM 6.6 device available".
Related: Windows 10 needs the Agility SDK for SM 6.6
The README lists Windows 10 as supported, but the in-box Windows 10 runtime (19041) has no shader model 6.6. Without it:
root signature: Unsupported bit-flag set (root signature flags c01)→host root signature refused (0x80070057). Frames reportdrawn=0.victory-image+0xb5a5f8(read 0x68), in two job threads at once. It reads an entry from a registry at[0x148981EF0]+0xC78that was never filled.victory-shaderfail ("neither hardware nor WARP SM 6.6 device available") even though the GPU supports SM 6.6.Exporting
D3D12SDKVersion/D3D12SDKPathfromvictory.exe, withD3D12Core.dllin aD3D12\folder next to it, fixes all of this. The startup crash goes away and the intro renders. It would help if VIctory failed early with a clear message when the host lacks SM 6.6, instead of failing later in the title.Other things noticed
0x218and0x1c8are called during init (callers+0x24800dband+0x247757e). Both take(desc, riid, ppv), and the riid isID3D12PipelineState(765a30f3-f624-4c6f-a828-ace948622445). So they're console pipeline-creation variants, and the title receives null pipelines from them.rpcrt4.dllis refused by the host policy during init (a host DLL outside the host policy: refused).crash::tests::unwinds_like_the_system_walkfails about 12 of 15 times on Windows 10.RtlCaptureStackBackTracereturns 0 frames once the test'sCONTEXTis wrapped inAligned16. With the previous unalignedCONTEXTit passed 15 of 15 on the same machine.@MichaelSmithAI on GitHub · 2026-11-24 16:37 UTC · original
The mesh hashes and breadcrumb positions give us specific draws to compare. One caveat when reading the 130–160 null annotations is that
op_textlooks up each user-data word in the heap. For a table it inspects the guest table base. A shader can use an offset within that table, and preparation can bind a freshly copied host table. Literal values also get heap annotations. A null annotation alone therefore leaves the descriptor accessed by the shader unknown.For the loop-limit comparison, keeping the skipped-pipeline setting identical would help distinguish the two effects. Runs 2 and 3 excluded
45c922763602b723. If lowering only the loop cap changes how far a matching run gets, that establishes sensitivity to the cap. Identifying a null read would still need the shader register and the materialized descriptor for the draw at that breadcrumb.User-data formatter and table preparation on the reported revision
@SkillIssueXO on GitHub · 2026-11-24 16:41 UTC · original
I replayed the hashes in this report against the 1.0.2.1 shader archive on a desktop RTX 5070 Ti (621.24, Windows 11 26300.9974, SDK DXIL validator 1.9.2602.17). On
ffe310ewith #1114 (89f3d3c) for hash selection, all nine unique hashes validated (six mesh, three pixel). Each of the three reported mesh/pixel pairs also created a PSO in the CLI harness. Adding #1208 (084d8d2) gave the same result. The harness uses its own render-state setup and does not submit the draws.I also checked the shader metadata behind the table-base caveat above:
u8bind()can remap45c922763602b723u9,u10857b2e13c9cc107fu9,u10f0c7efd2aceb2aaau9That points to checking the entries at the used offsets and the bound host table for the CBVs. These were offline checks against the real title archive. The device hang and descriptor contents at execution remain unverified on this run. AI-assisted (Codex, with Claude checking overlap).
@volvovida1990 on GitHub · 2026-11-24 16:51 UTC · original · edited 2026-11-24 16:53 UTC
@MichaelSmithAI Results for the loop-cap comparison. Both runs used the same diag build with
VICTORY_D3D12_DRED=1and no skipped pipelines; only the loop cap differs:mesh 1 [mesh 45c922763602b723, pixel a5d8f39892a63276]indirect kind 10 max 1 at 0x385617cc [mesh ae9ee9074f2e971f, pixel 54e55d28e6ee4f5c]Run 4 ended earlier in play time than run 1 (run 1 got through the intro cutscene). That's one run per setting, and the hang point varied between earlier runs too, so I'd treat it as weak evidence of sensitivity to the cap.
I also tried
VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_GBV=1(cap 4096). There was no device removal: the title took its own fatal path during the loading screen, a deliberatemov dword ptr [0], 4D8BD421hat+0x23cf683, right after a call to+0x2215950, on a thread started from+0x2215c35/+0x2215eca.crashes.loghas no debug-layer or GBV message before it. I suspect the GBV slowdown trips a title-side check, but that's unverified, so I don't have the register or descriptor from GBV yet.@SkillIssueXO Thanks for replaying these. From the DRED records, here's what VIctory's
reads()listed for each stopped draw. This is the state at preparation, not what the GPU read at execution:45c922763602b723): every entry resolves. Mesh SRVss0+24/+368/+576/+672/+712,s1+16/+24/+40are placed buffers;Cbv s1+56=Constant(0x394dfae0, 480),Cbv s2+0=Constant(0x3c7e4420, 512).857b2e13c9cc107f): all resolve.Cbv s1+40=Constant(0x642fbe0, 480),Cbv s2+0=Constant(0x90fadd0, 272).f0c7efd2aceb2aaa): two empty entries in tables1:Srv s1+16: buffer NoneandCbv s1+48: Constant(0, 0). Its neighbourss1+32=Constant(0x1188fbb0, 656)ands1+40=Constant(0x1188f9d0, 480)resolve.ae9ee9074f2e971f, indirect, default loop cap): all resolve.Srv s1+0..+40are placed buffers;Cbv s1+56=Constant(0x31df9290, 656),Cbv s1+64=Constant(0x31df90b0, 480).So 3 of 4 hangs happened with every recorded entry resolved. Run 3's null CBV and unresolved SRV may be a separate problem.
@pickles976 on GitHub · 2026-11-24 16:56 UTC · original
Following up our own "screening + discriminate" doctrine from #1086: we standardized the two questions every deep-stall report should answer — ① what wave mode did the runtime receive/choose, ② does the run survive the 11-NOP watchdog patch (
VICTORY_PATCH=<module>:0x23cf683:9090909090909090909090) and what does post-patch look like. A patched-and-still-progressing result would be the ecosystem's most valuable datum right now: it would prove some watchdog kills are transient-stall overreactions, buy minutes of traceable runtime, and let the #549-class fixes be measured against live play instead of 100 s windows. If this host is still in the fight, those two runs are the highest-information two runs available at that hardware tier.@volvovida1990 on GitHub · 2026-11-24 16:59 UTC · original
@pickles976 Answers for this host (RTX 5070 Ti, Windows 10 + Agility SDK 1.620.2,
ffe310ediag build):ffe310edoesn't log the wave size it picks. From the translator (emit/lower.rs), only compute shaders with console-lane operations (ds_swizzle/permute/mbcnt/readlane/DPP, or lane masks read as data) get aWaveSizepinned to the console's 32/64. Mesh and pixel shaders get none, so on this GPU they run in NVIDIA's 32-lane waves. That includes all four hung mesh shaders (45c922763602b723,857b2e13c9cc107f,f0c7efd2aceb2aaa,ae9ee9074f2e971f). I haven't checked whether their console code is wave64.VICTORY_PATCHisn't onmainatffe310e. Which PR or branch adds it? The address matches what I hit under GBV:+0x23cf683is the title's deliberatemov dword ptr [0], 4D8BD421h(11 bytes). Once the switch is available, I can do the patched run with DRED, plus a GBV run.@dragoso on GitHub · 2026-11-24 19:13 UTC · original
Another Blackwell data point. I ran three diagnostics runs on this machine, each with a different change. The hang moves between them, but #586 doesn't prevent it.
Setup
diagwithVICTORY_D3D12_DRED=1, on mainffe310eplus #116.VICTORY_KEYSEnter presses.Baseline (
ffe310e+ #116)37f363f0a5dcd806(9 draws),51ff151f75cd5759,3fd417e7d6f55114,857b2e13c9cc107fandc962201cddbdd7dd. Four of these are in #586's list of hanging transform hashes, and857b2e13c9cc107fis also in this issue.A: the same build with
VICTORY_SKIP_PIPELINESset to the four hashes above4adfa13bea1c556a,fa746ce8f67dac96,3a93976a475b8bdb).B: #586 at its head (
9b5e239), unchanged, with its own shader cache674baed2c9ef9873/ pixel86077023d6c1ec62.Not measured
VICTORY_SHADER_LOOP_LIMIT=256changed the boot timing enough that the scripted keys never reached the story, so I have no world-stage result for the loop cap.VICTORY_D3D12_GBV).If it helps, I can rerun B with GBV, with
VICTORY_SKIP_PIPELINES=674baed2c9ef9873, or with any other flag. No retail data, shaders or screenshots are attached.AI-assisted (Claude Code).
@Marvisak on GitHub · 2026-11-25 10:09 UTC · original
Automated triage for the maintainers.
Thanks, this is a complete report: RTX 5070 Ti, driver 32.0.16.2124, Windows 10 19045 with the Agility SDK,
ffe310ediag build, DRED for each run. Skipping single programs moves the hang between mesh draws without removing it, and the RTX 5060 Ti comment shows the same. This is the NVIDIA world mesh-draw hang tracked in #71, the oldest complete report. The wave64 mesh side is in #778.On the side findings:
unwinds_like_the_system_walkis fixed onmainby #1159. It now checks the known caller frames first (crates/victory-loader/src/crash.rs).mainnow has an HLE module forrpcrt4.dll(crates/victory-hle/src/modules/rpcrt4.rs).0x1c8and0x218are still unfilled incrates/victory-gpu/src/device.rs.Much has merged since
ffe310e. A run of currentmainwith DRED would show where this card stands now.Generated by Claude Code