RTX 5070 (Blackwell): 449 shaders do not translate, TDR at the first world frame #1573

Open
opened 2026-11-26 04:36:49 +00:00 by github-bot · 1 comment
Owner

@⁠HEKT053 on GitHub · 2026-11-24 19:21 UTC · original

Environment

  • VIctory commit: ffe310eb2098e52169f4c44db5ffdabf43a72622 (2026-11-24)
  • Build: cargo build --release -p victory --features diagnostics, run with VICTORY_D3D12_DEBUG=1
  • GPU: NVIDIA GeForce RTX 5070, driver 32.0.16.2124 (NVIDIA 621.24)
  • OS: Windows 11 Pro 10.0.26200
  • Game files: package 1.0.2.1, game_scarlett_master.exe, blake3 b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93
  • Console model: series-x (default)

Summary: the title reaches the first mission intro, renders it, and then the host GPU device is removed. 449 distinct shaders fail to translate, and the submission that kills the device takes 3 seconds, past the Windows TDR limit.

Where it stops

Frames 0-1248 run. Menu screens are fine; the first world frames are not:

30.1 fps, 33.2 ms/frame, 16 draws/frame, dropped 0 without a host pipeline (129 being made)
 1.1 fps, 917.4 ms/frame, 4 draws/frame, dropped 1 without a host pipeline (363 being made) and 0 indirect
 0.8 fps, 1234.2 ms/frame, 1841 draws/frame, dropped 1897 without a host pipeline (420 being made) and 1215 indirect

Seven "a black frame after a frame that was not" warnings appear, which matches what the window shows: a dark scene with occasional frames.

The crash

WARN  victory_gpu::host: slow host submission ms=3024 lists=26 pipelines={...}
ERROR victory_gpu::host: host GPU device removed after a submission of 26 lists; no breadcrumbs
      (0x887A0004); device removed: ... (0x887A0006)

Slow submissions over the run (ms / lists):

7733 / 11
3024 / 26   <- the fatal one
1912 / 24
 907 / 17
 832 / 33

23 slow submissions in total, maximum 7733 ms. The fatal submission is 3.0 s against the default 2 s TDR timeout, so the device removal looks like a timeout of a single oversized submission rather than one bad command: it records 26 lists covering 11 compute, 67 mesh and 1 vertex pipelines, and pipelines are still being created while it runs ("420 being made" in the frame line above).

Translation coverage

1682 shaders translated, 449 distinct shaders do not translate and their draws are dropped. By stage:

Stage Shaders
compute 380
pixel 36
mesh 28
vertex 5

By reason (the message the converter reports):

Reason Shaders
a select on an untracked mask 96
a lane mask holding lanes elsewhere read as data 82
a descriptor read only as data 66
a structured buffer of unknown stride 47
an address in an SGPR that is no root parameter 35
a scalar memory read as data 32
an address not from a root parameter 17
a lane mask read as data 13
a 64-bit image atomic 12
an address from a phi 8
image_gather4_l 7
a descriptor's address or format read as data 6
other (one or two shaders each) 28

Representative cases:

compute 17af15c4015cb4b6: GFX10 code at 0x9c4: a structured buffer of unknown stride is not supported
compute fc5e66f8f873d3bb: GFX10 code at 0x2934: image_gather4_l is not supported
mesh    fc2e14d6971785dd: GFX10 code at 0x1edc: a lane mask read as data is not supported
pixel   04c0b3793d255541: GFX10 code at 0x700: a scalar memory read as data is not supported

an address in an SGPR that is no root parameter (35 shaders) is the most repetitive single site: 28 of them report it at 0x30, 4 at 0x40, which suggests one common prologue pattern rather than 35 unrelated cases.

What is probably worth fixing first

  1. The TDR: a 3 s submission cannot succeed on any driver with the default timeout. Splitting the submission or finishing pipeline creation before recording would turn the hard crash into slow frames.
  2. image_gather4_l and a 64-bit image atomic are named instructions with a narrow implementation, unlike the mask-tracking messages.
  3. The mask-tracking family (untracked mask, lane mask ... read as data, lane mask read as data) accounts for 191 of 449 shaders, so it is the single largest group.

Reproduction

cargo build --release -p victory --features diagnostics
$env:VICTORY_GAME_DIR = "<package folder>"
$env:VICTORY_D3D12_DEBUG = "1"
.\target\release\victory.exe run "<package folder>\game_scarlett_master.exe" --execute

Log and crashes.log land in %LOCALAPPDATA%\victory\data\<title id>\. No game data is included in this report; the hashes above are the translator's shader hashes, and the crash text is quoted from crashes.log.

**@⁠HEKT053** on GitHub · 2026-11-24 19:21 UTC · [original](https://github.com/Marvisak/VIctory/issues/1573) Environment - VIctory commit: `ffe310eb2098e52169f4c44db5ffdabf43a72622` (2026-11-24) - Build: `cargo build --release -p victory --features diagnostics`, run with `VICTORY_D3D12_DEBUG=1` - GPU: NVIDIA GeForce RTX 5070, driver 32.0.16.2124 (NVIDIA 621.24) - OS: Windows 11 Pro 10.0.26200 - Game files: package 1.0.2.1, `game_scarlett_master.exe`, blake3 `b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93` - Console model: series-x (default) Summary: the title reaches the first mission intro, renders it, and then the host GPU device is removed. 449 distinct shaders fail to translate, and the submission that kills the device takes 3 seconds, past the Windows TDR limit. ## Where it stops Frames 0-1248 run. Menu screens are fine; the first world frames are not: ``` 30.1 fps, 33.2 ms/frame, 16 draws/frame, dropped 0 without a host pipeline (129 being made) 1.1 fps, 917.4 ms/frame, 4 draws/frame, dropped 1 without a host pipeline (363 being made) and 0 indirect 0.8 fps, 1234.2 ms/frame, 1841 draws/frame, dropped 1897 without a host pipeline (420 being made) and 1215 indirect ``` Seven "a black frame after a frame that was not" warnings appear, which matches what the window shows: a dark scene with occasional frames. ## The crash ``` WARN victory_gpu::host: slow host submission ms=3024 lists=26 pipelines={...} ERROR victory_gpu::host: host GPU device removed after a submission of 26 lists; no breadcrumbs (0x887A0004); device removed: ... (0x887A0006) ``` Slow submissions over the run (ms / lists): ``` 7733 / 11 3024 / 26 <- the fatal one 1912 / 24 907 / 17 832 / 33 ``` 23 slow submissions in total, maximum 7733 ms. The fatal submission is 3.0 s against the default 2 s TDR timeout, so the device removal looks like a timeout of a single oversized submission rather than one bad command: it records 26 lists covering 11 compute, 67 mesh and 1 vertex pipelines, and pipelines are still being created while it runs ("420 being made" in the frame line above). ## Translation coverage 1682 shaders translated, **449 distinct shaders do not translate** and their draws are dropped. By stage: | Stage | Shaders | |---|---| | compute | 380 | | pixel | 36 | | mesh | 28 | | vertex | 5 | By reason (the message the converter reports): | Reason | Shaders | |---|---| | a select on an untracked mask | 96 | | a lane mask holding lanes elsewhere read as data | 82 | | a descriptor read only as data | 66 | | a structured buffer of unknown stride | 47 | | an address in an SGPR that is no root parameter | 35 | | a scalar memory read as data | 32 | | an address not from a root parameter | 17 | | a lane mask read as data | 13 | | a 64-bit image atomic | 12 | | an address from a phi | 8 | | image_gather4_l | 7 | | a descriptor's address or format read as data | 6 | | other (one or two shaders each) | 28 | Representative cases: ``` compute 17af15c4015cb4b6: GFX10 code at 0x9c4: a structured buffer of unknown stride is not supported compute fc5e66f8f873d3bb: GFX10 code at 0x2934: image_gather4_l is not supported mesh fc2e14d6971785dd: GFX10 code at 0x1edc: a lane mask read as data is not supported pixel 04c0b3793d255541: GFX10 code at 0x700: a scalar memory read as data is not supported ``` `an address in an SGPR that is no root parameter` (35 shaders) is the most repetitive single site: 28 of them report it at `0x30`, 4 at `0x40`, which suggests one common prologue pattern rather than 35 unrelated cases. ## What is probably worth fixing first 1. The TDR: a 3 s submission cannot succeed on any driver with the default timeout. Splitting the submission or finishing pipeline creation before recording would turn the hard crash into slow frames. 2. `image_gather4_l` and `a 64-bit image atomic` are named instructions with a narrow implementation, unlike the mask-tracking messages. 3. The mask-tracking family (`untracked mask`, `lane mask ... read as data`, `lane mask read as data`) accounts for 191 of 449 shaders, so it is the single largest group. ## Reproduction ``` cargo build --release -p victory --features diagnostics $env:VICTORY_GAME_DIR = "<package folder>" $env:VICTORY_D3D12_DEBUG = "1" .\target\release\victory.exe run "<package folder>\game_scarlett_master.exe" --execute ``` Log and `crashes.log` land in `%LOCALAPPDATA%\victory\data\<title id>\`. No game data is included in this report; the hashes above are the translator's shader hashes, and the crash text is quoted from `crashes.log`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:36:49 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 12:45 UTC · original

Automated triage for the maintainers.

Run report with the essentials (RTX 5070 and driver, Windows 11 build, commit ffe310e, how far it got, the removal text and the untranslated-shader breakdown). The failure, a slow multi-second submission at world entry followed by device removal with 0x887A0006 (DEVICE_HUNG) on NVIDIA, is the one tracked in #71, the oldest complete report; please follow and add to that thread. The per-reason table of shaders that do not translate is a useful data point for the shader work.

Many changes have landed on main since ffe310e (including GPU write tracking and device-removal reporting). A retry on current main with the same diagnostics build would show whether the hang and the counts are still the same.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 12:45 UTC · [original](https://github.com/Marvisak/VIctory/issues/1573#issuecomment-7162809597) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-24T19:21:45Z at=2026-11-25T12:45:13Z --> Automated triage for the maintainers. Run report with the essentials (RTX 5070 and driver, Windows 11 build, commit `ffe310e`, how far it got, the removal text and the untranslated-shader breakdown). The failure, a slow multi-second submission at world entry followed by device removal with `0x887A0006` (DEVICE_HUNG) on NVIDIA, is the one tracked in #71, the oldest complete report; please follow and add to that thread. The per-reason table of shaders that do not translate is a useful data point for the shader work. Many changes have landed on `main` since `ffe310e` (including GPU write tracking and device-removal reporting). A retry on current `main` with the same diagnostics build would show whether the hang and the counts are still the same. --- _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#1573
No description provided.