Turing (GTX 16xx) crash: bindless compute shader 052a2316a03b9ba1 refused with E_INVALIDARG #173

Closed
opened 2026-11-27 19:19:07 +00:00 by github-bot · 5 comments
Owner

@⁠LowShadder on GitHub · 2026-11-27 19:17 UTC · original

Turing (GTX 16xx) crash: bindless compute shader 052a2316a03b9ba1 refused with E_INVALIDARG

Environment

  • GPU: NVIDIA GeForce GTX 1660 SUPER (6 GB, Turing, 32-lane, no DLSS/RT)
  • Driver: 621.40 (32.0.16.2140, 2026-11-21)
  • CPU: Intel i7-7700K (AVX2)
  • RAM: 24 GB
  • OS: Windows 11 (x64)
  • Game: own dump of the Xbox Series build v1.0.2.1 (game_scarlett_master.exe)
  • Forks tested (all crash identically): ApexVI, cool_fox-nvidia, trustno1-coder/VIctory-NVIDIA (release v2026.11.26, commit 48ad785)
  • The crashing module is identical across forks: victory-image-b99f876b74d4a77f.dll

Symptom

The title boots and presents frames, then crashes after ~45 s (during texture streaming) with:

VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xb5a5f8 (read 0x68: nothing mapped there)
  rax 0x0 ...

The faulting instruction is mov r14, [rax+0x68] where rax = [rcx] is null.

Root-cause lead

Just before the crash the log shows the pipeline for a compute shader being refused:

stage="compute" hash=052a2316a03b9ba1 user_data=1
refused error=Parametro non corretto. (0x80070057) shaders=[compute 052a2316a03b9ba1]

0x80070057 = E_INVALIDARG from CreateComputePipelineState (see crates/victory-gpu/src/pipeline/host.rs, "host pipeline refused").

Dumping the shader (VICTORY_SHADER_SAVE) shows the translator succeeds and produces a 33 KB DXIL, but dxc /dumpbin reports:

; Note: shader requires additional functionality:
;       Resource descriptor heap indexing

and the body uses bindless dx.op.createHandleFromHeap / dx.op.annotateHandle (SM6.6 descriptor heap indexing) for CBuffer / RWTexture3D.

So the translated shader is bindless and D3D12 on this Turing card rejects the pipeline with E_INVALIDARG; the title's image module then dereferences the resulting null image.

Repro

  1. Build any of the forks (e.g. ApexVI: cargo build --locked --profile diag -p victory --features diagnostics).
  2. Run with --console series-s, cache/data outside the repo.
  3. Wait ~45 s in the opening scene → crash at victory-image+0xb5a5f8.

Tried and did NOT help

  • VICTORY_WAVE_WIDE_ONLY including 052a2316a03b9ba1
  • VICTORY_SKIP_PIPELINES=052a2316a03b9ba1
  • VICTORY_SHADER_OPT=0
  • minimal config (no texture switches)
  • -Safe

Question

Is there a switch or planned fix for bindless (descriptor heap indexing) shaders on wave32/Turing hosts? The wave32 PRs (#45, #43, #71, #73) look related — does any cover createHandleFromHeap lowering or the E_INVALIDARG at pipeline creation?

Artifacts available on request

  • 052a2316a03b9ba1.compute.cdxil (original, 8332 B)
  • 052a2316a03b9ba1.compute.dxil (translated, 33912 B)
  • full dxc /dumpbin disassembly (4256 lines)
**@⁠LowShadder** on GitHub · 2026-11-27 19:17 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/173) # Turing (GTX 16xx) crash: bindless compute shader 052a2316a03b9ba1 refused with E_INVALIDARG ## Environment - GPU: NVIDIA GeForce GTX 1660 SUPER (6 GB, Turing, 32-lane, no DLSS/RT) - Driver: 621.40 (32.0.16.2140, 2026-11-21) - CPU: Intel i7-7700K (AVX2) - RAM: 24 GB - OS: Windows 11 (x64) - Game: own dump of the Xbox Series build v1.0.2.1 (`game_scarlett_master.exe`) - Forks tested (all crash identically): ApexVI, cool_fox-nvidia, trustno1-coder/VIctory-NVIDIA (release v2026.11.26, commit 48ad785) - The crashing module is identical across forks: `victory-image-b99f876b74d4a77f.dll` ## Symptom The title boots and presents frames, then crashes after ~45 s (during texture streaming) with: ``` VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xb5a5f8 (read 0x68: nothing mapped there) rax 0x0 ... ``` The faulting instruction is `mov r14, [rax+0x68]` where `rax = [rcx]` is null. ## Root-cause lead Just before the crash the log shows the pipeline for a compute shader being refused: ``` stage="compute" hash=052a2316a03b9ba1 user_data=1 refused error=Parametro non corretto. (0x80070057) shaders=[compute 052a2316a03b9ba1] ``` `0x80070057` = E_INVALIDARG from `CreateComputePipelineState` (see `crates/victory-gpu/src/pipeline/host.rs`, "host pipeline refused"). Dumping the shader (`VICTORY_SHADER_SAVE`) shows the translator **succeeds** and produces a 33 KB DXIL, but `dxc /dumpbin` reports: ``` ; Note: shader requires additional functionality: ; Resource descriptor heap indexing ``` and the body uses bindless `dx.op.createHandleFromHeap` / `dx.op.annotateHandle` (SM6.6 descriptor heap indexing) for CBuffer / RWTexture3D. So the translated shader is bindless and D3D12 on this Turing card rejects the pipeline with E_INVALIDARG; the title's image module then dereferences the resulting null image. ## Repro 1. Build any of the forks (e.g. ApexVI: `cargo build --locked --profile diag -p victory --features diagnostics`). 2. Run with `--console series-s`, cache/data outside the repo. 3. Wait ~45 s in the opening scene → crash at `victory-image+0xb5a5f8`. ## Tried and did NOT help - `VICTORY_WAVE_WIDE_ONLY` including 052a2316a03b9ba1 - `VICTORY_SKIP_PIPELINES=052a2316a03b9ba1` - `VICTORY_SHADER_OPT=0` - minimal config (no texture switches) - `-Safe` ## Question Is there a switch or planned fix for bindless (descriptor heap indexing) shaders on wave32/Turing hosts? The wave32 PRs (#45, #43, #71, #73) look related — does any cover `createHandleFromHeap` lowering or the E_INVALIDARG at pipeline creation? ## Artifacts available on request - `052a2316a03b9ba1.compute.cdxil` (original, 8332 B) - `052a2316a03b9ba1.compute.dxil` (translated, 33912 B) - full `dxc /dumpbin` disassembly (4256 lines)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 19:19:07 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-27 19:33 UTC · original

Thanks for the detailed analysis, it's spot on. The GTX 16-series (Turing without RT) lacks hardware the game's shaders need: the bindless compute shader is refused with E_INVALIDARG, and the game then crashes at +0xb5a5f8. GTX 16xx and GTX 10xx cards can't run it, sorry. An RTX 20-series or newer is needed.

**@⁠trustno1-coder** on GitHub · 2026-11-27 19:33 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/173#issuecomment-7226644242) Thanks for the detailed analysis, it's spot on. The GTX 16-series (Turing without RT) lacks hardware the game's shaders need: the bindless compute shader is refused with E_INVALIDARG, and the game then crashes at +0xb5a5f8. GTX 16xx and GTX 10xx cards can't run it, sorry. An RTX 20-series or newer is needed.
Author
Owner

@⁠4z3r111 on GitHub · 2026-11-27 20:05 UTC · original

@⁠trustno1-coder can we just disable RT?

**@⁠4z3r111** on GitHub · 2026-11-27 20:05 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/173#issuecomment-7227164103) @⁠trustno1-coder can we just disable RT?
Author
Owner

@⁠LowShadder on GitHub · 2026-11-27 20:18 UTC · original

Thanks @⁠trustno1-coder for the quick confirmation — that matches the disassembly exactly (bindless createHandleFromHeap / resource descriptor heap indexing, refused with E_INVALIDARG, then the null deref at +0xb5a5f8).

@⁠4z3r111 disabling RT won't help here: the refused shader (052a2316a03b9ba1) is a bindless compute shader, not a ray-tracing shader, and the layer already runs with RT off by default. The GTX 16xx lacks the hardware for the resource descriptor heap indexing that shader requires, so it is refused regardless of the RT setting.

I'll keep an eye out for any future non-bindless fallback or wave32 lowering that could cover createHandleFromHeap on Turing. Thanks again for the fast reply.

**@⁠LowShadder** on GitHub · 2026-11-27 20:18 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/173#issuecomment-7227368936) Thanks @⁠trustno1-coder for the quick confirmation — that matches the disassembly exactly (bindless `createHandleFromHeap` / resource descriptor heap indexing, refused with E_INVALIDARG, then the null deref at +0xb5a5f8). @⁠4z3r111 disabling RT won't help here: the refused shader (`052a2316a03b9ba1`) is a bindless **compute** shader, not a ray-tracing shader, and the layer already runs with RT off by default. The GTX 16xx lacks the hardware for the resource descriptor heap indexing that shader requires, so it is refused regardless of the RT setting. I'll keep an eye out for any future non-bindless fallback or wave32 lowering that could cover `createHandleFromHeap` on Turing. Thanks again for the fast reply.
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-27 20:59 UTC · original

v2026.11.27.6 is out (https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.27.6), with today's crash fixes, but it doesn't change this: GTX 16-series cards still aren't supported (see the release notes). Sorry. An RTX card is needed for now.

**@⁠trustno1-coder** on GitHub · 2026-11-27 20:59 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/173#issuecomment-7228025924) **v2026.11.27.6** is out (https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.27.6), with today's crash fixes, but it doesn't change this: GTX 16-series cards still aren't supported (see the release notes). Sorry. An RTX card is needed for now.
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-27 21:01 UTC · original

Closing this: GTX 10- and 16-series cards aren't supported by this fork. The game draws with mesh shaders and bindless resources these cards can't run here, and the release notes list them as unsupported. Thanks for the detailed logs. If that ever changes, it'll be in the release notes.

**@⁠trustno1-coder** on GitHub · 2026-11-27 21:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/173#issuecomment-7228063255) Closing this: GTX 10- and 16-series cards aren't supported by this fork. The game draws with mesh shaders and bindless resources these cards can't run here, and the release notes list them as unsupported. Thanks for the detailed logs. If that ever changes, it'll be in the release notes.
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/trustno1-coder--VIctory-NVIDIA#173
No description provided.