NVIDIA RTX 3080: GPU hang (TDR) when the world renders, timing-dependent, survives TdrDelay=60 #1117

Open
opened 2026-11-26 04:20:25 +00:00 by github-bot · 5 comments
Owner

@⁠Aminou973 on GitHub · 2026-11-24 15:52 UTC · original

Setup

  • VIctory ffe310e (2026-11-24), release and diag builds
  • Windows 11 Pro (26300), NVIDIA GeForce RTX 3080, driver 621.14, 32 GB RAM
  • Retail Xbox Series dump, game_scarlett_master.exe

What 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.

Run Settings Last frame Notes
1 release 2392 last submission 4,856 ms
2 diag, D3D12_DEBUG + DRED 1646 debug layer reports no errors; DRED breadcrumbs all complete (done == count)
3 release, SHADER_LOOP_LIMIT=4096 1190 no change
4 diag, SKIP_PIPELINES=9146291b38ea9ce1, GPU_TIMING 3236 ran twice as long; then one list took 6,066 ms
5 diag, skip 9146291b38ea9ce1 + 32 others 1616 a list took 2,918 ms
6 diag, GPU_TIMING, TdrDelay=60 1804 one list ran 67,238 ms, then device removed
  • Compute 9146291b38ea9ce1 was 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.
  • With TdrDelay=60, normal lists take ≤ ~1 s, but one never finishes, so it looks like a real hang (a wait or loop that never ends), not a heavy workload. Which list hangs varies between runs, so it looks timing-dependent.
  • slow host list lines show commands=0 for the hanging lists, so GPU_TIMING could not name the command.
  • Separately, 48 compute pipelines are refused by the NVIDIA driver: host pipeline refused error=0x80070057 (E_INVALIDARG), e.g. compute 9e096a1111c6faaa, 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).

**@⁠Aminou973** on GitHub · 2026-11-24 15:52 UTC · [original](https://github.com/Marvisak/VIctory/issues/1117) **Setup** - VIctory `ffe310e` (2026-11-24), release and `diag` builds - Windows 11 Pro (26300), NVIDIA GeForce RTX 3080, driver 621.14, 32 GB RAM - Retail Xbox Series dump, `game_scarlett_master.exe` **What 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. | Run | Settings | Last frame | Notes | |---|---|---|---| | 1 | release | 2392 | last submission 4,856 ms | | 2 | diag, D3D12_DEBUG + DRED | 1646 | debug layer reports no errors; DRED breadcrumbs all complete (done == count) | | 3 | release, SHADER_LOOP_LIMIT=4096 | 1190 | no change | | 4 | diag, SKIP_PIPELINES=9146291b38ea9ce1, GPU_TIMING | 3236 | ran twice as long; then one list took 6,066 ms | | 5 | diag, skip 9146291b38ea9ce1 + 32 others | 1616 | a list took 2,918 ms | | 6 | diag, GPU_TIMING, **TdrDelay=60** | 1804 | **one list ran 67,238 ms**, then device removed | - Compute `9146291b38ea9ce1` was 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. - With TdrDelay=60, normal lists take ≤ ~1 s, but one never finishes, so it looks like a real hang (a wait or loop that never ends), not a heavy workload. Which list hangs varies between runs, so it looks timing-dependent. - `slow host list` lines show `commands=0` for the hanging lists, so GPU_TIMING could not name the command. - Separately, 48 compute pipelines are refused by the NVIDIA driver: `host pipeline refused error=0x80070057 (E_INVALIDARG)`, e.g. compute `9e096a1111c6faaa`, `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).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:20:26 +00:00
Author
Owner

@⁠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 (surviving TdrDelay=60 while 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).

**@⁠pickles976** on GitHub · 2026-11-24 15:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/1117#issuecomment-7136851192) 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 (surviving `TdrDelay=60` while 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).
Author
Owner

@⁠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, driver 616.56, Windows 10 LTSC 19044, diag + VICTORY_D3D12_DRED=1):

  • wave64_mode=Emulate eliminated all 0x80070057 Wave64 compute pipeline refusals (0 refused), and 0 E_OUTOFMEMORY texture errors occurred.
  • However, [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 fatal 2,190 ms 8-list submission at frame 1381) contained [compute 9146291b38ea9ce1], whereas all other slow submissions without it finished in 278–778 ms.
  • DRED breadcrumbs on the fatal submission also reported done == count across 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 in DXGI_ERROR_DEVICE_HUNG (0x887A0006).

Full submission table, DRED dump, and sanitized log posted in #1305.

**@⁠KIFIR4KK** on GitHub · 2026-11-24 17:18 UTC · [original](https://github.com/Marvisak/VIctory/issues/1117#issuecomment-7139009599) @⁠pickles976 Tested this with **PR #189 (`wave64_mode=Emulate`)** + PR #352 + PR #175 active on a Desktop RTX 4060 (8 GB, driver `616.56`, Windows 10 LTSC 19044, `diag` + `VICTORY_D3D12_DRED=1`): - `wave64_mode=Emulate` eliminated all `0x80070057` Wave64 compute pipeline refusals (`0` refused), and `0` `E_OUTOFMEMORY` texture errors occurred. - However, **`[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 fatal `2,190 ms` 8-list submission at frame `1381`) contained `[compute 9146291b38ea9ce1]`, whereas all other slow submissions without it finished in `278–778 ms`. - DRED breadcrumbs on the fatal submission also reported `done == count` across 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 in `DXGI_ERROR_DEVICE_HUNG (0x887A0006)`. Full submission table, DRED dump, and sanitized log posted in #1305.
Author
Owner

@⁠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; with VICTORY_WAVE64_EMULATE=emulate + VICTORY_TEXTURE_MIP_DROP=1 on the try/wave64 stack 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.

**@⁠Aminou973** on GitHub · 2026-11-24 18:01 UTC · [original](https://github.com/Marvisak/VIctory/issues/1117#issuecomment-7140041913) Update: with #189 (`VICTORY_WAVE64_EMULATE=1`) the TDR and all 48 refused compute pipelines are gone on this RTX 3080; with `VICTORY_WAVE64_EMULATE=emulate` + `VICTORY_TEXTURE_MIP_DROP=1` on the `try/wave64` stack 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.
Author
Owner

@⁠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:

  1. VICTORY_SKIP_PIPELINES=9146291b38ea9ce1 did 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 once 9146291b38ea9ce1 is gated out).
  2. #189 wave64 emulation DID cure it: VICTORY_WAVE64_EMULATE=emulate clears 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 9146291b38ea9ce1 specifically. 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.

**@⁠justlovett0** on GitHub · 2026-11-24 18:12 UTC · [original](https://github.com/Marvisak/VIctory/issues/1117#issuecomment-7140323491) 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: 1. **`VICTORY_SKIP_PIPELINES=9146291b38ea9ce1` did 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 once `9146291b38ea9ce1` is gated out). 2. **#189 wave64 emulation DID cure it:** `VICTORY_WAVE64_EMULATE=emulate` clears 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 `9146291b38ea9ce1` specifically. 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.
Author
Owner

@⁠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, then DXGI_ERROR_DEVICE_HUNG, also with TdrDelay=60. 48 compute pipelines are refused with 0x80070057.

This is the NVIDIA world hang with wave64 compute refused on a 32-lane GPU, tracked in #71. On main, Lower::new in crates/victory-shader/src/emit/lower.rs declares WaveSize(64) for wave64 programs that depend on the lane layout, so a 32-lane GPU refuses them and their dispatches are dropped. Nothing merged since ffe310e changes 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 9146291b38ea9ce1 are in #1305.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 10:04 UTC · [original](https://github.com/Marvisak/VIctory/issues/1117#issuecomment-7159180952) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-24T18:12:55Z at=2026-11-25T09:50:38Z --> 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, then `DXGI_ERROR_DEVICE_HUNG`, also with `TdrDelay=60`. 48 compute pipelines are refused with `0x80070057`. This is the NVIDIA world hang with wave64 compute refused on a 32-lane GPU, tracked in #71. On `main`, `Lower::new` in `crates/victory-shader/src/emit/lower.rs` declares `WaveSize(64)` for wave64 programs that depend on the lane layout, so a 32-lane GPU refuses them and their dispatches are dropped. Nothing merged since `ffe310e` changes 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 `9146291b38ea9ce1` are in #1305. --- _Generated by [Claude Code](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#1117
No description provided.