Black world and host GPU reset (DXGI_ERROR_DEVICE_HUNG) on NVIDIA at the first cutscene; 343 shaders don't translate #496
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#496
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?
@Oglaviper on GitHub · 2026-11-24 04:06 UTC · original
Black world and host GPU reset (DXGI_ERROR_DEVICE_HUNG) on NVIDIA at the first cutscene; 343 shaders don't translate
Environment
git rev-parse --short HEAD>cargo build --release -p victory, and the diag profile with--features diagnosticsWhat happens
The game boots to the menus and the loading screen (music plays, though it sounds wrong). At the first cutscene/world the picture is black, frames take 2-3 s (0.4-0.5 fps), and then the host GPU is reset and the run ends:
Without diagnostics, the same run logs
slow host submission ms=6192 lists=30just before the removal.Where it hangs (diag build,
VICTORY_D3D12_DRED=1 VICTORY_GPU_TIMING=1)Run 1: list 23 stopped at command 129 of 183, op 42 (DISPATCH_MESH).
mesh 115 [mesh 4adfa13bea1c556a], a mesh-only pipeline. No page fault address was reported.Run 2, with
VICTORY_SKIP_PIPELINES=4adfa13bea1c556a: the hang moved. List stopped at command 1217 of 1404, op 5 (EXECUTE_INDIRECT):indirect kind 10 max 1 [mesh ae9ee9074f2e971f, pixel 1cb9d385ac8987c4]. Both hung mesh shaders read the same 182,452,224-byte SRV.Mesh work is very slow and data-dependent
From the
slow list commandlines, same shader and group count, very different time:51ff151f75cd5759, 3 groups: 924 ms in one run, 35-52 ms in another04b9be3756e8f41c, 1 group: 132 msa26422c01dcf5612, 1 group: 108-141 ms5a801f1f568c7abd, 15 groups: 306-379 msOne indirect compute dispatch,
8bbcbda6008eaa37, accounts for about 11 s over 17 slow commands in the first run.Likely cause (my reading, not verified)
343 shaders fail to translate, and the draws and dispatches that use them are dropped. In the last frames of the run, about 1,500 draws/dispatches per frame are dropped without a host pipeline, plus 900-1,900 indirect ones.
Counts by stage: 285 compute, 35 pixel, 19 mesh, 4 vertex.
Most common reasons:
Examples: compute
fc5e66f8f873d3bb(a hardware SGPR input),0452fc2d2e2fc4c3(image_gather4_l),17af15c4015cb4b6(a structured buffer of unknown stride).My guess is that the dropped compute passes leave the buffers the mesh shaders read holding garbage, so some mesh dispatches run long enough to exceed the Windows GPU timeout. The note at the top of
indirect.rsdescribes the same failure mode. The constant buffers in the stopped-list report also hold NaN/denormal values.Questions
@lucaseddd on GitHub · 2026-11-24 05:04 UTC · original
Related reproduction on an RTX 3060 (6 GB, 32-lane waves) with Windows 10 22H2 and an Xbox Series 1.0.2.1 package stored on a SATA HDD. I was able to complete first-time settings, and the account picker responded at about 30 fps. After pressing Start, the original build eventually lost the device with DXGI_ERROR_DEVICE_HUNG (0x887A0006).
Setup that worked here
d2a4bae1f49533ef5cb512fd1b1ba1513f2e1989with--profile diag --features diagnostics. On this Win10 system the inbox D3D12 rejected root signature flags0xc01. An app-local Microsoft Agility SDK 1.620.2 fixed that rejection: exportD3D12SDKVersion=620andD3D12SDKPathpointing to the relativeD3D12directory beside the exe, with the x64D3D12Core.dllthere. WARP got past root signature serialization but still rejected all three initial PSOs. The RTX accepted them.Candidate comparison
I built #469 at
c47c963c420292e1655435248b59d5d6d81f9fe1plus #89 at081afbd5382bb6aabaec5b28864c11cf00a15725, with the same Agility setup and a copy of the preconfiguration. With #469 alone, the RTX rejected the 2560×1440 graphics resources in formats 86 and 115. With #89 added, both were remapped to RGBA8 and those creation failures disappeared. The combined build reached visible loading art at ~26–30 fps.The combined build still eventually lost the device after Start. With
VICTORY_D3D12_DRED=1, the first unfinished list in the reported submission stopped at op 42 (mesh dispatch). Null descriptors appeared around that work, and there was also a separate warning that UAV writes to a depth target of format 19 were dropped. These are leads; the capture does not establish which descriptor or resource caused the hang. I did not confirm the mission title card or gameplay. This looks like useful coverage for the NVIDIA transition even though the two graphics fixes alone do not resolve it.@mohammadallami75-ops on GitHub · 2026-11-24 06:24 UTC · original
I reproduced and fixed a D3D12 buffer-view coherency bug relevant to the placed SRV path in this report.
Descriptor creation selected the host buffer using the resource's base and declared width. Draw preparation selected a host buffer using only the view's byte range. When a smaller registered buffer covered that range, uploads or UAV write tracking could use the smaller buffer while the descriptor still pointed to the larger one. The patch uses the declared extent for both lookups and limits synchronization to the bytes covered by the view.
Two synthetic regressions reproduced a stale SRV read and lost UAV copy-back. Both returned zero with the old lookup and passed with the patch on an RTX 2080 SUPER (driver 621.01) and Microsoft WARP. The Windows workspace suite had 266 passed and 4 ignored. The WARP GPU diagnostics suite had 47 passed and 1 ignored. Testing used synthetic assets, so the in-game black screen and DXGI_ERROR_DEVICE_HUNG remain unverified.
This complements #402. That PR addresses misses in the lookup itself. This reproduction uses a valid narrower match, so both callers still need to query the same extent.
Git patch against
d2a4bae1f4Save the diff below as a .patch file and apply it with git apply. It includes both regression tests. AI assistance was used for implementation and testing.
@colehammond65 on GitHub · 2026-11-24 06:58 UTC · original
RTX 4080 reproduces the black-world/hang pattern. Each run had 194–281 shader-translation failure lines before device removal. The top gaps were lane masks read as data, selects on untracked masks, addresses in non-root SGPRs, and structured buffers of unknown stride. PR #334 did not prevent the hang. Full report: #334
AI-assisted test report.
@omdev74 on GitHub · 2026-11-24 11:39 UTC · original
RTX 3080 Ti, driver 621.24, VIctory commit
ffe310e, diagnostics build. Startup UI rendered at 30 FPS. In the first mission, the scene was black while subtitles and credits remained visible. Two frame-time samples were 800 ms and 1,367 ms. The whole PC became unresponsive during my last run.Across two runs, VIctory logged
0x887A0006after submissions of 31 and 27 command lists. Neither crash entry identified the failing command.@lucaseddd on GitHub · 2026-11-24 12:24 UTC · original
For the black scene with visible subtitles, #841 has a related intermediate-target comparison. Checking the scene target and the presented image from the same post-fade frame could narrow down where the image disappears. That comparison addresses the rendering symptom; the device-removal cause is still open.
@Marvisak on GitHub · 2026-11-25 01:48 UTC · original · edited 2026-11-25 09:53 UTC
Automated triage for the maintainers.
Thanks for the detailed run (RTX 2070 SUPER, driver 32.0.16.2124, Windows build 26300, DRED breadcrumbs). The failure, a black world at the first cutscene and then
DEVICE_HUNGin a mesh dispatch (op 42) that moves to other mesh or compute work when one program is skipped, is the NVIDIA world hang discussed in #71, the oldest complete report of it. Please follow it there. #468 covers the related compute-pipeline refusals on 32-lane NVIDIA hosts.Your questions:
mainhas none. The closest tools areVICTORY_SHADER_LOOP_LIMIT(caps translated loops) andVICTORY_SKIP_PIPELINES(drops draws and dispatches by shader hash), both in the README's diagnostics table.The buffer-view patch from a comment here isn't needed in that form any more, as its author found: on current
mainboth descriptor creation (buffer_srvandbuffer_uavincrates/victory-gpu/src/descriptor/host.rs) and draw preparation (readableincrates/victory-gpu/src/draw.rs, throughview_copy) choose the host copy withshadow::for_view.Still missing from the report: the "VIctory commit" line has the template placeholder. Please add the commit you ran (
git rev-parse --short HEAD).Generated by Claude Code
@mohammadallami75-ops on GitHub · 2026-11-25 08:47 UTC · original
Thanks for asking for an upstream PR. I checked the fork patch against current
main(940d32f). For the overlapping-buffer case I reported, descriptor creation and draw preparation now select the host copy throughshadow::for_viewusing the view’s byte range and element size. The old patch conflicts with those changes, so I’m holding off on opening it upstream.That conclusion is from reading current
main. The synthetic regression passed on RTX 2080 SUPER and WARP against the olderffe310ebaseline. I haven’t rerun it on currentmainor verified a fix for the in-game black screen orDEVICE_HUNG.@Oglaviper, if you still have the checkout from the original RTX 2070 SUPER run, could you add its commit to the report?
ffe310ewas my synthetic test baseline.AI-assisted source review.