RTX 2060 stuck mesh problem #808

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

@⁠02dgokberk on GitHub · 2026-11-24 11:21 UTC · original

Mesh shaders hang the GPU until TDR on NVIDIA (RTX 2060) – DRED shows null u9/u10 descriptors

Commit: ffe310e (main), diag build. GPU: NVIDIA GeForce RTX 2060 (wave32), Windows 11, 16 GB RAM.
TdrDelay raised to 60 s, VICTORY_SHADER_LOOP_LIMIT=256, VICTORY_D3D12_DRED=1.

The world loads and runs at ~0.5–2 fps (HUD/minimap visible), then a single submission
never finishes and the device is removed. The hang always lasts exactly the TDR delay
(2 s → ~20 s submissions earlier, 60 s → 63 s), so it is infinite, not slow. Lowering
the loop limit from the default to 4096 and 256 does not change it.

DRED stops in a mesh draw every time, a different mesh shader each run:

mesh pixel DRED stop user data
857b2e13c9cc107f 63051e97862e7dad cmd 433/604, op 42 u8, u9, u10 null
db4835a364449a45 c10e7d95d8266d2a cmd 133/205, indirect kind 10 u8, u9, u10 null
021f72334f3cabe7 – cmd 11/24, op 42 u12 = heap 0
e04ae5b1486d5e77 18d9739d319d1110 cmd 3758/3932, indirect kind 10 u8 null
38ad582f523fd7cf d42a2d8a9d2c954a cmd 198/1118, op 42 u8, u9, u10 null

Skipping one with VICTORY_SKIP_PIPELINES only moves the hang to the next one.

Guess: a lane that hits the loop limit returns early (abort_block → Ret) while the
rest of the mesh group waits at a barrier, which deadlocks on hardware that does not
count exited lanes. Mesh programs keep the console's wave64 layout, which wave32
hardware cannot declare. Full DRED dumps in the attached crashes.log.

Also needed on this setup: the title's hang watchdog (fn at title+0x2215a60) kills it
when world frames stall the main loop for ~30 s; I nop'd its three branches to the kill.

**@⁠02dgokberk** on GitHub · 2026-11-24 11:21 UTC · [original](https://github.com/Marvisak/VIctory/issues/808) **Mesh shaders hang the GPU until TDR on NVIDIA (RTX 2060) – DRED shows null u9/u10 descriptors** Commit: ffe310e (main), diag build. GPU: NVIDIA GeForce RTX 2060 (wave32), Windows 11, 16 GB RAM. TdrDelay raised to 60 s, `VICTORY_SHADER_LOOP_LIMIT=256`, `VICTORY_D3D12_DRED=1`. The world loads and runs at ~0.5–2 fps (HUD/minimap visible), then a single submission never finishes and the device is removed. The hang always lasts exactly the TDR delay (2 s → ~20 s submissions earlier, 60 s → 63 s), so it is infinite, not slow. Lowering the loop limit from the default to 4096 and 256 does not change it. DRED stops in a mesh draw every time, a different mesh shader each run: | mesh | pixel | DRED stop | user data | |---|---|---|---| | 857b2e13c9cc107f | 63051e97862e7dad | cmd 433/604, op 42 | u8, u9, u10 null | | db4835a364449a45 | c10e7d95d8266d2a | cmd 133/205, indirect kind 10 | u8, u9, u10 null | | 021f72334f3cabe7 | – | cmd 11/24, op 42 | u12 = heap 0 | | e04ae5b1486d5e77 | 18d9739d319d1110 | cmd 3758/3932, indirect kind 10 | u8 null | | 38ad582f523fd7cf | d42a2d8a9d2c954a | cmd 198/1118, op 42 | u8, u9, u10 null | Skipping one with `VICTORY_SKIP_PIPELINES` only moves the hang to the next one. Guess: a lane that hits the loop limit returns early (`abort_block` → `Ret`) while the rest of the mesh group waits at a barrier, which deadlocks on hardware that does not count exited lanes. Mesh programs keep the console's wave64 layout, which wave32 hardware cannot declare. Full DRED dumps in the attached crashes.log. Also needed on this setup: the title's hang watchdog (fn at title+0x2215a60) kills it when world frames stall the main loop for ~30 s; I nop'd its three branches to the kill.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:14:00 +00:00
Author
Owner

@⁠02dgokberk on GitHub · 2026-11-24 11:21 UTC · original

crashes.log

**@⁠02dgokberk** on GitHub · 2026-11-24 11:21 UTC · [original](https://github.com/Marvisak/VIctory/issues/808#issuecomment-7129994268) [crashes.log](https://github.com/user-attachments/files/35328242/crashes.log)
Author
Owner

@⁠NuraadGit on GitHub · 2026-11-24 11:24 UTC · original

This matches what I took apart on an RTX 2080 in #71. Two other Turing cards (RTX 2070 SUPER, RTX 2080) and an RTX 4080 now stay up in the world on the same three open PRs on top of main:

  • #493 (its commit c48b240, root SRVs as bounded one-view tables): this fixed the mesh hang at 857b2e13c9cc107f, the first row of your table.
  • #206 (an off-element structured view becomes a raw view): this fixed the load-path mesh hang at 04b9be37….
  • #189 (wave64 compute on 32-lane hosts): this fixed the compute-dispatch hang that shows up once the mesh ones are gone.

With all three merged, the 2080 ran 3 of 3 seven-minute runs and one 21-minute run with no device removal. That held at the default loop limit too. VICTORY_SHADER_LOOP_LIMIT=32 makes frames about 40% faster. The ablation, with what each PR fixes, is in #71. In my runs, skipping a pipeline also just moved the hang, as you saw. The cause was the descriptors (your null u8–u10), not one program.

Two more things that helped on the same card:

  • #747: with the capped NVIDIA view heap, MIN_DYNAMIC = 1 << 18 stops the "no dynamic slots" drops. On the 2080 it took the world from ~430 to ~2,400 draws per frame and put the first real geometry into the colour G-buffer.
  • #790: if the title stops at an assertion right after window creation (more likely with a big pipeline cache or the debug layer), that's the 32-bit memory window running out.

AI-assisted (Claude Code). The hardware, title copy and runs are the user's.

**@⁠NuraadGit** on GitHub · 2026-11-24 11:24 UTC · [original](https://github.com/Marvisak/VIctory/issues/808#issuecomment-7130063261) This matches what I took apart on an RTX 2080 in #71. Two other Turing cards (RTX 2070 SUPER, RTX 2080) and an RTX 4080 now stay up in the world on the same three open PRs on top of main: - **#493** (its commit `c48b240`, root SRVs as bounded one-view tables): this fixed the mesh hang at **`857b2e13c9cc107f`**, the first row of your table. - **#206** (an off-element structured view becomes a raw view): this fixed the load-path mesh hang at `04b9be37…`. - **#189** (wave64 compute on 32-lane hosts): this fixed the compute-dispatch hang that shows up once the mesh ones are gone. With all three merged, the 2080 ran 3 of 3 seven-minute runs and one 21-minute run with no device removal. That held at the default loop limit too. `VICTORY_SHADER_LOOP_LIMIT=32` makes frames about 40% faster. The ablation, with what each PR fixes, is in https://git.gtahub.st/github/Marvisak--VIctory/issues/71. In my runs, skipping a pipeline also just moved the hang, as you saw. The cause was the descriptors (your null `u8`–`u10`), not one program. Two more things that helped on the same card: - **#747:** with the capped NVIDIA view heap, `MIN_DYNAMIC = 1 << 18` stops the "no dynamic slots" drops. On the 2080 it took the world from ~430 to ~2,400 draws per frame and put the first real geometry into the colour G-buffer. - **#790:** if the title stops at an assertion right after window creation (more likely with a big pipeline cache or the debug layer), that's the 32-bit memory window running out. *AI-assisted (Claude Code). The hardware, title copy and runs are the user's.*
Author
Owner

@⁠02dgokberk on GitHub · 2026-11-24 13:36 UTC · original

Series S mode (--console series-s) ran ~19 minutes on 16 GB RAM to gameplay without the pool assertion. The window was black because the title presents 2 planes there (plane 0: 1920×1080 f28, plane 1: 3840×2160 f28; plane descriptions 72 bytes apart) and present shows plane 0. Showing the largest plane brings back the intro and the menus. In the world it is still black: 521 untranslated compute shaders, ~1,160 draws and ~1,430 indirect draws dropped per frame.

**@⁠02dgokberk** on GitHub · 2026-11-24 13:36 UTC · [original](https://github.com/Marvisak/VIctory/issues/808#issuecomment-7133064431) Series S mode (--console series-s) ran ~19 minutes on 16 GB RAM to gameplay without the pool assertion. The window was black because the title presents 2 planes there (plane 0: 1920×1080 f28, plane 1: 3840×2160 f28; plane descriptions 72 bytes apart) and present shows plane 0. Showing the largest plane brings back the intro and the menus. In the world it is still black: 521 untranslated compute shaders, ~1,160 draws and ~1,430 indirect draws dropped per frame.
Author
Owner

@⁠NuraadGit on GitHub · 2026-11-24 16:27 UTC · original

@⁠02dgokberk Your counts (521 untranslated, ~1,160 draws and ~1,430 indirect dropped) look like what the RTX 2080 drops before the translation PRs. This is what moved them here (Series X, #189 in Wave32 mode, medians over the second half of each world run):

stack draws run dropped, no pipeline dropped indirect refused
d2a4bae + #493 + #189 + #206 1,889 1,647 1,699 536
JMAN730's fork + those, #667, 2^18 slots (#747), the divergent v_readfirstlane fallback (now in #189) ~2,400 ~870 ~940 ~387
+ #704 2,436 704 876 343
+ #878 2,830 706 483 325

With the last row, ground, walls and buildings reach the 2560x1440 G-buffer targets. The picture is still black here: the final composite and the 4K upscale run, but the scene colour they read is all zero (see #841). So on that stack the next thing to chase is the lighting passes, not the hang.

AI-assisted (Claude Code). The hardware, title copy and runs are the user's.

**@⁠NuraadGit** on GitHub · 2026-11-24 16:27 UTC · [original](https://github.com/Marvisak/VIctory/issues/808#issuecomment-7137697953) @⁠02dgokberk Your counts (521 untranslated, ~1,160 draws and ~1,430 indirect dropped) look like what the RTX 2080 drops before the translation PRs. This is what moved them here (Series X, #189 in Wave32 mode, medians over the second half of each world run): | stack | draws run | dropped, no pipeline | dropped indirect | refused | |---|---:|---:|---:|---:| | `d2a4bae` + #493 + #189 + #206 | 1,889 | 1,647 | 1,699 | 536 | | JMAN730's fork + those, #667, 2^18 slots (#747), the divergent `v_readfirstlane` fallback (now in #189) | ~2,400 | ~870 | ~940 | ~387 | | + #704 | 2,436 | 704 | 876 | 343 | | + #878 | 2,830 | 706 | 483 | 325 | With the last row, ground, walls and buildings reach the 2560x1440 G-buffer targets. The picture is still black here: the final composite and the 4K upscale run, but the scene colour they read is all zero (see #841). So on that stack the next thing to chase is the lighting passes, not the hang. *AI-assisted (Claude Code). The hardware, title copy and runs are the user's.*
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 03:54 UTC · original

Automated triage for the maintainers.

Run report: RTX 2060, Windows 11, ffe310e diagnostics build. The device is removed in the world with the DRED stop on a different mesh draw each run, and skipping a pipeline only moves it. This is the NVIDIA world hang tracked in #71, where the open wave64 and descriptor PRs and their test results are collected. The Series S black-world counts in the comments match the untranslated and dropped work discussed there.

If you post again, please include the NVIDIA driver version and Windows build, and add new runs to #71.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 03:54 UTC · [original](https://github.com/Marvisak/VIctory/issues/808#issuecomment-7152346395) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-24T16:27:48Z at=2026-11-25T03:54:12Z --> Automated triage for the maintainers. Run report: RTX 2060, Windows 11, `ffe310e` diagnostics build. The device is removed in the world with the DRED stop on a different mesh draw each run, and skipping a pipeline only moves it. This is the NVIDIA world hang tracked in #71, where the open wave64 and descriptor PRs and their test results are collected. The Series S black-world counts in the comments match the untranslated and dropped work discussed there. If you post again, please include the NVIDIA driver version and Windows build, and add new runs to #71. --- _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#808
No description provided.