RTX 4090: 1 fps in the first cutscene, then host GPU hang (DXGI_ERROR_DEVICE_HUNG) #325
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#325
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?
@johnsonwalker on GitHub · 2026-11-24 02:18 UTC · original
Environment
winver, optional]d2a4bae, built withcargo build --profile diag -p victory --features diagnosticsVICTORY_D3D12_WARPnot set), withVICTORY_D3D12_DRED=1victory.exe run <exe> --executeWhat happens
Boot and the menu run at 30 fps, and so does the loading screen. When the game goes into the opening cutscene, the framerate drops to about 1 fps. It stays there for roughly a minute and then crashes, and the display driver resets. [Add whether the picture was black or showed anything.]
crashes.loggets a host GPU failure entry each time. Across 7 runs, the device-removed reason was0x887A0005(device suspended) in the first two and0x887A0006in the rest. The latest run was the first with DRED enabled, and its debug layer message reportsDXGI_ERROR_DEVICE_HUNG(TDR triggered).crashes-trimmed.log
crashes.loggets a host GPU failure entry each time. Across 7 runs, the device-removed reason was0x887A0005(device suspended) in the first two and0x887A0006in the rest. The latest run was the first with DRED enabled, and its debug layer message reportsDXGI_ERROR_DEVICE_HUNG(TDR triggered).DRED output (latest run)
no markerfor that command, so it doesn't say what it was.eccf008b413ba7b1, 32x32x6) and several mesh draws, including indirect ones. One indirect mesh draw uses mesh shaderb7a81f5b96f4ca93and pixel shaderee78da6862364ddd.I can't tell from the log which in-flight command caused the hang. Two things in it stood out, and either could be unrelated:
null.The trimmed log is attached (
crashes-trimmed.log). The long breadcrumb array and repeated detail lines were removed and nothing else was edited.Notes
shader does not translatewarnings, e.g. "a select on an untracked mask is not supported" and "a structured buffer of unknown stride is not supported". Those look like the known compute-shader gaps rather than part of this hang, but I can post the list if it helps.Happy to run extra diagnostics (
VICTORY_D3D12_DEBUG,VICTORY_CAPTURE, etc.) if useful.@filipeclacerda on GitHub · 2026-11-24 02:26 UTC · original
Reproduced on an RTX 5070 (driver 621.24), Windows 11 Pro build 26300, VIctory
d2a4baerelease build. In the first cutscene, the picture was black while audio and subtitles continued. Frame time was around 1,000 ms (~1 FPS). crashes.log reported DXGI_ERROR_DEVICE_HUNG (0x887A0006) after a submission of 31 command lists. This run had no DRED breadcrumbs.@tcurtsinger on GitHub · 2026-11-24 02:30 UTC · original
On Windows 11 with an RTX 4080 (driver 621.01), Ryzen 9 9950X3D and 64 GiB RAM, the opening cutscene also slowed down and ended in
DXGI_ERROR_DEVICE_HUNG. We tested a local diagnostics build based ond2a4baewith #135, #189, #202, #215 and #251. Windows confirmed the process was using the 4080. VIctory selected Wave32 and the SDK shader validator was enabled.The menu held 30 FPS. The four renderer samples above 1,000 draws per frame were 1.7, 1.6, 3.2 and 2.6 FPS. In the two slowest samples, CPU buffer copies took 77–83 ms and the GPU wait took 320–361 ms. The previous build on the same machine (
d2a4baeplus #215) logged 0.7–1.7 FPS at that draw threshold. The scene timings differed between runs.VIctory peaked at 22.93 GiB of private commit and 13.54 GiB resident. At the lowest system commit headroom (0.63 GiB), Windows still had 23.14 GiB of physical RAM available. During loading the capped descriptor heap had 136 free slots, with a longest contiguous span of nine, when a ten-slot table was requested. About 30 seconds later D3D12 reported the hang. The process exited 110 seconds after launch. We have no command-level evidence tying the allocation failure or the memory pressure to the hang.
AI-assisted measurements and write-up (Codex).
@ChruutvoLuzi on GitHub · 2026-11-24 03:08 UTC · original
Same here on an RTX 4090 (driver 621.01, Windows 11). It's the hang tracked in #71. Two things from about 20 runs on this card that may help:
d2a4baealone the world lasted about 40 s here. With #189, #205, #206, #134, #123 and #89 merged it lasted 55 to 100 s in most runs, still ending in0x887A0006. Don't add #55 without #89: on native Windows it ends in an invalid-call removal fromCreateRenderTargetView(see the comments on #55).48426bae580a080c, the depth-UAV patch from #392, or translating 11 of the 14 culling passes (#136 and #193). The DRED stop just moves to another mesh or compute pass. Details are in my comments on #71.AI-assisted (Claude Code).
@YorangSama on GitHub · 2026-11-24 04:20 UTC · original
Same failure on an RTX 4070 (driver 32.0.16.2114), Windows 11 build 26300, VIctory
d2a4bae, cargo build --profile diag -p victory --features diagnostics, Series X profile, real GPU (VICTORY_D3D12_WARP not set). Posting because I could get numbers your report does not have, and two of them look like they explain the NVIDIA-specific half.What it looks like
Boot and the menus run at 30 fps, 3–10 draws/frame.
The intro card renders at 1 fps 916.7 ms/frame 1302 draws/frame — the picture is there (a captured frame is the loading key art, correct at 1920×1080), but the scene behind it stays black.
Then a single submission of 32 lists (mesh+pixel pairs) takes 12.9 s and the device is removed with 0x887A0006. Windows logs LiveKernelEvent P1=141 (VIDEO_ENGINE_TIMEOUT_DETECTED) and writes a WATCHDOG-.dmp. No black screen here only because the display is not on this adapter.
--console series-s behaves differently: black from the first frame, 2828 draws/frame, and the hang moves to a 6-list compute-led submission at 13.16 s.
Two things that seem NVIDIA-specific
With VICTORY_D3D12_DEBUG=1, 22 compute programs are refused at creation in a single 7-minute run:
代码块
ID3D12Device::CreateComputeShader: Shader wants wave lane count of 64 but maximum wave lane count for
device is 32. ... id=622 severity=1
WARN victory_gpu::pipeline::host: host pipeline refused error=…(0x80070057) shaders=[compute …]
Each takes its dispatch with it (a dispatch without a host pipeline dropped). The README's Shaders row already says some compute programs need 64-lane waves; this is what that looks like on Ada. Might be worth collecting: on an RDNA3 iGPU in the same machine, the same run has 0 of these refusals.
With VICTORY_D3D12_GBV=1 on top of the debug layer:
代码块
Draw, SRV resource dimensions differs: Expected D3D12_SRV_DIMENSION_TEXTURE2D,
In Descriptor D3D12_SRV_DIMENSION_TEXTURE1D (7×, e.g. [mesh d4111a6e6ea49d91, pixel c0a7fe77b1862e10])
Dispatch, UAV resource dimensions differs: Expected D3D12_UAV_DIMENSION_TEXTURE3D,
In Descriptor D3D12_UAV_DIMENSION_TEXTURE2D (1×, heap index 372683, dispatch 4)
Those are consistent with your note that several descriptor slots are logged as null: resources are being bound with the wrong view kind (or not bound at all), and the driver seems to tolerate it until it does not.
VICTORY_SHADER_LOOP_LIMIT is worth trying on your 4090
VICTORY_SHADER_LOOP_LIMIT=1000 changes the submission that ends the run on my iGPU from 20,518 ms to 444–498 ms (same scene, same cache) and the run reaches 787 draws/frame. It did not stop the hang there — that run then hit an unbound-UAV page fault, which I filed separately — but it does mean the 12.9 s / 13.16 s submissions are loops running to the 2^20 default, not an inevitably slow pass. If your cutscene submission also collapses from 13 s to under a second, the watchdog stops being the thing that ends the run, and what is left should be much easier to name.
Other things I checked, in case they save you a run
The title's own crash.log at the moment of death shows the intro mission genuinely running (fbk_stry000_FBK_STRY000_INTRO, Prestream, building/vehicle/ped pools populated, player 130/130), so the CPU side is not what fails.
VICTORY_D3D12_WARP=1 survives 167 s with no watchdog event and no GPU fault (it ends on 0x887A0004, i.e. WARP lacking something), which supports the hang being in the D3D12 path rather than the title.
Skipping pipeline hashes one at a time moves the hang (the first skip changed a 12.9 s submission to 527 ms and let 1098 draws through) but never removes it, so I stopped bisecting after six rounds.
@iurysf on GitHub · 2026-11-24 06:05 UTC · original
Same GPU here (RTX 4070, driver 32.0.16.2101, main
d2a4bae): device removed (0x887A0006) in every run, after a single ~4.9–5.5 s submission of mesh+pixel lists.#493 + #483 together stopped it for us. No removal in 300 s runs (~3.5 min in the world), both with the default loop limit and with
VICTORY_SHADER_LOOP_LIMIT=32. Turning off only #493's bounded root SRVs (VICTORY_ROOT_SRV_DIRECT=1) brings the removal back at 176 s. DRED stops on mesh draws reading root parameter 3, and GBV on main shows a direct heap index of 117,506,306 against a 1,000,000-entry heap (what #483 guards). Numbers are on #493: #493Your wave64 refusals (id 622) and the TEXTURE1D-vs-TEXTURE2D GBV message match what we see after that fix. They're separate from the removal: #578/#579 cover wave64, and #568/#205 cover the view kind. Worth trying #493 + #483 on your 4090/4070 runs to see if the 12.9 s submission still ends the run.
@colehammond65 on GitHub · 2026-11-24 06:58 UTC · original
RTX 4080 performance/hang data. World-entry proxy was 58.1–67.9 s. Median world frame time across four runs was 1233–2049 ms, with median FPS 0.5–2.5. All runs eventually exited with
0x887A0005/0x887A0006; #334 produced no clear survival improvement. Full report: #334AI-assisted test report.
@Marvisak on GitHub · 2026-11-25 01:46 UTC · original
Automated triage for the maintainers.
Thanks for the detailed run report (RTX 4090, driver 621.24, Windows 11,
d2a4bae, opening cutscene at ~1 fps, then0x887A0005/0x887A0006with DRED stopping in mesh and compute work). It has what a run report needs.This is the NVIDIA world hang that is tracked in #71 (RTX 5070 Ti,
DEVICE_HUNGin the world, the DRED stop moving between mesh and compute programs); please follow the cause there. The comments here add matching runs on an RTX 5070, 4080, 4090 and two 4070s. #392 has related NVIDIA runs on null views during world load.Note for anyone testing the stacks named above: #493 and #483 were closed without being merged, and neither change is in
main.mainhas moved a long way sinced2a4bae; a run on currentmainwould show whether the hang is unchanged.Generated by Claude Code