NVIDIA RTX 3080: GPU hang (TDR) when the world renders, timing-dependent, survives TdrDelay=60 #1117
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#1117
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?
@Aminou973 on GitHub · 2026-11-24 15:52 UTC · original
Setup
ffe310e(2026-11-24), release anddiagbuildsgame_scarlett_master.exeWhat works (thank you!)
Boot, first-boot setup screens, legal screens, profile selector, intro video with sound, loading screens, the "Vice City, two years ago" title card and the opening credits overlay all work on NVIDIA. The opening's audio plays fine, but the 3D scene behind the credits stays black.
The problem
Each run ends with
device removed(0x887A0006, DXGI_ERROR_DEVICE_HUNG) between frame ~1,200 and ~3,200, during the opening credits.9146291b38ea9ce1was in the hanging submission in all of runs 1–3 (the only shader common to them). Skipping it doubled the run length, but another list then hangs.slow host listlines showcommands=0for the hanging lists, so GPU_TIMING could not name the command.host pipeline refused error=0x80070057 (E_INVALIDARG), e.g. compute9e096a1111c6faaa,34d88edf583f3778,a1bf269d5b19f025. Possibly NVIDIA-specific limits (the README's test machine is AMD).Happy to run any diagnostics build or switch you suggest; I can share full logs (they contain no game data beyond shader hashes).
@pickles976 on GitHub · 2026-11-24 15:55 UTC · original
One triage order note from the sibling project before the deep GPU-side analysis: your setup lines have not yet run the knobs your own community built this weekend. #1086 (4070 SUPER, world running) exists precisely because native Wave32 on NVIDIA corrupts cross-lane compute — its row 2 (
wave64 emulate) plus TdrLevel=3/TdrDelay=10 should be one run each before TDR tuning is treated as evidence (survivingTdrDelay=60while on native Wave32 measures the wrong thing — the hang may be a downstream artifact, as in the xcl #1407 misfile-warning class: this symptom mimics the completion-stall wall from a different root). The black-scene-behind-credits with audio-OK matches your #1062/#1085 dropped-pipeline pattern too, so the sequence: emulate run → nine-stack subset → only then TDR/GPU forensics on whatever survives. If the run then moves (e.g. reaches the world and hangs differently), this issue becomes another data point that native-Wave32-as-default deserves re-debating at the project level (argued from the silent side in #1086, from refusals in #1107, and here from TDR).@KIFIR4KK on GitHub · 2026-11-24 17:18 UTC · original
@pickles976 Tested this with PR #189 (
wave64_mode=Emulate) + PR #352 + PR #175 active on a Desktop RTX 4060 (8 GB, driver616.56, Windows 10 LTSC 19044,diag+VICTORY_D3D12_DRED=1):wave64_mode=Emulateeliminated all0x80070057Wave64 compute pipeline refusals (0refused), and0E_OUTOFMEMORYtexture errors occurred.[compute 9146291b38ea9ce1]still reproduces the exact same ~2 s stall / TDR pattern: 6 out of 6 ~2-second submissions (1,950–2,190 ms, including the fatal2,190 ms8-list submission at frame1381) contained[compute 9146291b38ea9ce1], whereas all other slow submissions without it finished in278–778 ms.done == countacross all 8 lists (["133/133 Some(0)", "2/2 Some(1)", "103/103 Some(2)", "1/1 Some(3)", "2/2 Some(4)", "82/82 Some(5)", "2/2 Some(6)", "1/1 Some(7)"]), matching Run 2 above, ending inDXGI_ERROR_DEVICE_HUNG (0x887A0006).Full submission table, DRED dump, and sanitized log posted in #1305.
@Aminou973 on GitHub · 2026-11-24 18:01 UTC · original
Update: with #189 (
VICTORY_WAVE64_EMULATE=1) the TDR and all 48 refused compute pipelines are gone on this RTX 3080; withVICTORY_WAVE64_EMULATE=emulate+VICTORY_TEXTURE_MIP_DROP=1on thetry/wave64stack from #1086 (Agility SDK 1.620.2 beside the exe) there is still no TDR and 0 refused pipelines. The run now stops at the title's watchdog during the first Prestream, reported with thread stacks on #1118. So the TDR here was the native-Wave32 downstream effect, as suggested.@justlovett0 on GitHub · 2026-11-24 18:12 UTC · original
Same hardware as this issue: RTX 3080 10 GB, Win10 21H2 (19044.7846), driver 621.24 (32.0.16.2124). Two findings on main
ffe310e+ #175 + #994 + #747 + #302/#193/#704/#309/#953/#1067 + #986/#1260/#1267 + #1254 + #1276:VICTORY_SKIP_PIPELINES=9146291b38ea9ce1did NOT extend the run on our stack — still a ~3.5-min world TDR on essentially the same workload (the fatal 28/29-list submission simply hangs on another compute in the batch once9146291b38ea9ce1is gated out).VICTORY_WAVE64_EMULATE=emulateclears the wave64 refusals (119 → 0) and the world ran ~9 minutes with 0 device removals (killed while still running).So on this configuration the hang is the dropped wave64 culling computes leaving garbage indirect data, not
9146291b38ea9ce1specifically. Emulation overhead is real (~91 MB copies/frame, 1700–2500 ms/frame) but stability is restored.AI use: Qwen Code; local measurements, user-confirmed visuals.
@Marvisak on GitHub · 2026-11-25 10:04 UTC · original
Automated triage for the maintainers.
Complete run report (RTX 3080, driver 621.14, Windows 11 26300,
ffe310e): the opening credits play with a black scene, thenDXGI_ERROR_DEVICE_HUNG, also withTdrDelay=60. 48 compute pipelines are refused with0x80070057.This is the NVIDIA world hang with wave64 compute refused on a 32-lane GPU, tracked in #71. On
main,Lower::newincrates/victory-shader/src/emit/lower.rsdeclaresWaveSize(64)for wave64 programs that depend on the lane layout, so a 32-lane GPU refuses them and their dispatches are dropped. Nothing merged sinceffe310echanges that. Your update fits this: with #189's emulation, the refusals and the TDR are gone on this card, and an RTX 3080 run in the comments ran 9 minutes in the world without a removal. The open PRs for wave64 on 32-lane hosts are #189, #1929, #1922 and #1960.The stop at the title's watchdog during the first Prestream that comes next is discussed in #1118. The ~2 s stalls on
9146291b38ea9ce1are in #1305.Generated by Claude Code