Wine + vkd3d-proton on NVIDIA: the driver crashes in vkCreateComputePipelines while the world loads (0xc000001d / 0xc0000005, earlier stack overflows) #144

Open
opened 2026-11-26 03:52:06 +00:00 by github-bot · 26 comments
Owner

@⁠ItsYusei99 on GitHub · 2026-11-24 00:57 UTC · original

Under Wine with vkd3d-proton on an RTX 4070, the menus run, but loading into the world kills the whole process inside the NVIDIA Vulkan driver while it compiles one of the title's compute pipelines. VIctory logs nothing (no crashes.log entry); the only trace is Wine's message for the Unix call.

Environment

  • CachyOS, kernel 7.3.4; Wine 11.22 (system wine package)
  • NVIDIA GeForce RTX 4070, driver 620.70.06 (nvidia-open-dkms)
  • AMD Ryzen 7 9800X3D, 30 GB RAM
  • DXVK dxgi.dll v3.1.1-134 (from GE-Proton11-11)
  • VIctory Windows build via cargo xwin (rustc 1.98.1), run with wine victory.exe run …\game_scarlett_master.exe --execute --console series-x
  • Input with a DualSense through Wine's SDL backend; menus navigated by hand

What happens

The menus reach the world load (story000*.rpf opened, mesh pipelines made). Then, while pipelines are being created:

1. main 35b054e, vkd3d-proton 3.1.0 (GE-Proton11-11): illegal instruction in the driver right after one compute shader is translated:

INFO victory_gpu::pipeline: shader translated stage="compute" hash=8bb272e763f76148 user_data=1 samplers=0
0214:err:vulkan:vkCreateComputePipelines Exception 0xc000001d in Unix call.

2. Same build: in another run, stack overflows on four threads at one Unix-side address. One of them was vkd3d-proton's pipeline-library disk thread. The overflowing threads had 1 MiB stacks, which is the executable's default reserve:

01c8:err:virtual:virtual_setup_exception stack overflow 1792 bytes addr 0x6f44ef27e623 stack 0x10da4c0900 (0x10da4c0000-0x10da4c1000-0x10da5c0000)
01d0:err:virtual:virtual_setup_exception stack overflow 2304 bytes addr 0x6f44ef27e623 stack 0x10da8e0700 (0x10da8e0000-0x10da8e1000-0x10da9e0000)
01d8:err:virtual:virtual_setup_exception stack overflow 2880 bytes addr 0x6f44ef27e623 stack 0x10dcd604c0 (0x10dcd60000-0x10dcd61000-0x10dce60000)
0170:err:virtual:virtual_setup_exception stack overflow 2944 bytes addr 0x6f44ef27e623 stack 0x10d6870480 (0x10d6870000-0x10d6871000-0x10d6970000)

3. main 9aef3d9 plus a 16 MiB default stack (see the linked PR), vkd3d-proton 3.2.0 (Proton Experimental 11.0-20261112): the stack overflows are gone. The driver now faults with an access violation instead:

020c:err:vulkan:vkCreateComputePipelines Exception 0xc0000005 in Unix call.

At that moment the only compute shaders that were translated but had no host pipeline yet (made or refused) were 690e2883f9dd25d8 and a3d1a26ad0c8c2cd.

Other observations from the same runs

  • With the vkd3d-proton builds from Proton Hotfix and Proton Experimental, 8bb272e763f76148 compiles without the illegal-instruction crash. With 3.1.0 it does not. So the crash depends on the vkd3d-proton version, and probably also on the SPIR-V it emits for that shader.
  • Many world compute pipelines are refused (Required WaveSize range [64, 64], but supported range is [32, 32]), as expected on NVIDIA. Some pixel/compute shaders do not translate: 64-bit image atomics, sub-dword LDS writes, addresses not from root parameters, barycentrics, and descriptors read as data. None of those kill the process.
  • In the run that stayed alive the longest, the last frame lines show the loading screen at 18–27 fps.

Not tested yet

  • VICTORY_SKIP_PIPELINES=690e2883f9dd25d8,a3d1a26ad0c8c2cd,8bb272e763f76148 (diag build), to see whether the load gets past this point or the fault moves to another shader.
  • Another NVIDIA driver branch.

I can provide the full logs, run the diag build with any variables you want, or try patches. The translated DXIL of the shaders above is in the shader cache if that helps.

**@⁠ItsYusei99** on GitHub · 2026-11-24 00:57 UTC · [original](https://github.com/Marvisak/VIctory/issues/144) Under Wine with vkd3d-proton on an RTX 4070, the menus run, but loading into the world kills the whole process inside the NVIDIA Vulkan driver while it compiles one of the title's compute pipelines. VIctory logs nothing (no `crashes.log` entry); the only trace is Wine's message for the Unix call. ### Environment - CachyOS, kernel 7.3.4; Wine 11.22 (system `wine` package) - NVIDIA GeForce RTX 4070, driver 620.70.06 (`nvidia-open-dkms`) - AMD Ryzen 7 9800X3D, 30 GB RAM - DXVK `dxgi.dll` v3.1.1-134 (from GE-Proton11-11) - VIctory Windows build via `cargo xwin` (rustc 1.98.1), run with `wine victory.exe run …\game_scarlett_master.exe --execute --console series-x` - Input with a DualSense through Wine's SDL backend; menus navigated by hand ### What happens The menus reach the world load (`story000*.rpf` opened, mesh pipelines made). Then, while pipelines are being created: **1. `main` 35b054e, vkd3d-proton 3.1.0 (GE-Proton11-11):** illegal instruction in the driver right after one compute shader is translated: ``` INFO victory_gpu::pipeline: shader translated stage="compute" hash=8bb272e763f76148 user_data=1 samplers=0 0214:err:vulkan:vkCreateComputePipelines Exception 0xc000001d in Unix call. ``` **2. Same build:** in another run, stack overflows on four threads at one Unix-side address. One of them was vkd3d-proton's pipeline-library disk thread. The overflowing threads had 1 MiB stacks, which is the executable's default reserve: ``` 01c8:err:virtual:virtual_setup_exception stack overflow 1792 bytes addr 0x6f44ef27e623 stack 0x10da4c0900 (0x10da4c0000-0x10da4c1000-0x10da5c0000) 01d0:err:virtual:virtual_setup_exception stack overflow 2304 bytes addr 0x6f44ef27e623 stack 0x10da8e0700 (0x10da8e0000-0x10da8e1000-0x10da9e0000) 01d8:err:virtual:virtual_setup_exception stack overflow 2880 bytes addr 0x6f44ef27e623 stack 0x10dcd604c0 (0x10dcd60000-0x10dcd61000-0x10dce60000) 0170:err:virtual:virtual_setup_exception stack overflow 2944 bytes addr 0x6f44ef27e623 stack 0x10d6870480 (0x10d6870000-0x10d6871000-0x10d6970000) ``` **3. `main` 9aef3d9 plus a 16 MiB default stack (see the linked PR), vkd3d-proton 3.2.0 (Proton Experimental 11.0-20261112):** the stack overflows are gone. The driver now faults with an access violation instead: ``` 020c:err:vulkan:vkCreateComputePipelines Exception 0xc0000005 in Unix call. ``` At that moment the only compute shaders that were translated but had no host pipeline yet (made or refused) were `690e2883f9dd25d8` and `a3d1a26ad0c8c2cd`. ### Other observations from the same runs - With the vkd3d-proton builds from Proton Hotfix and Proton Experimental, `8bb272e763f76148` compiles without the illegal-instruction crash. With 3.1.0 it does not. So the crash depends on the vkd3d-proton version, and probably also on the SPIR-V it emits for that shader. - Many world compute pipelines are refused (`Required WaveSize range [64, 64], but supported range is [32, 32]`), as expected on NVIDIA. Some pixel/compute shaders do not translate: 64-bit image atomics, sub-dword LDS writes, addresses not from root parameters, barycentrics, and descriptors read as data. None of those kill the process. - In the run that stayed alive the longest, the last frame lines show the loading screen at 18–27 fps. ### Not tested yet - `VICTORY_SKIP_PIPELINES=690e2883f9dd25d8,a3d1a26ad0c8c2cd,8bb272e763f76148` (diag build), to see whether the load gets past this point or the fault moves to another shader. - Another NVIDIA driver branch. I can provide the full logs, run the diag build with any variables you want, or try patches. The translated DXIL of the shaders above is in the shader cache if that helps.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:52:06 +00:00
Author
Owner

@⁠ItsYusei99 on GitHub · 2026-11-24 00:59 UTC · original

The 16 MiB default stack mentioned above is proposed in #151.

**@⁠ItsYusei99** on GitHub · 2026-11-24 00:59 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7118648347) The 16 MiB default stack mentioned above is proposed in #151.
Author
Owner

@⁠tanishq-dubey on GitHub · 2026-11-24 01:16 UTC · original

Independent reproduction on openSUSE Tumbleweed, RTX 5090 (NVIDIA 620.70.06), Wine 11.22, vkd3d-proton 3.2.0 and DXVK 3.1.1, using the Xbox Series X mode from a local SSD. On VIctory d2a4bae with local diagnostic instrumentation, the title reached the “VICE CITY 20 YEARS AGO” card, then exited with Wine reporting vkCreateComputePipelines Exception 0xc0000005 in Unix call.

A single VIctory pipeline worker still hit the same exception while building compute shader 5d113aa6830760b6; an earlier multi-worker run hit it while that same shader was in the corresponding worker. A separate diagnostic run configured to skip that hash instead faulted in vkCreateGraphicsPipelines, so skipping it is not a fix. The cached DXIL whose timestamp matched the single-worker translation passed Microsoft DXV 1.9.2609; the cache-file-to-shader association is temporal, not independently verified by hash. No game files or logs attached. AI-assisted.

**@⁠tanishq-dubey** on GitHub · 2026-11-24 01:16 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7118937937) Independent reproduction on openSUSE Tumbleweed, RTX 5090 (NVIDIA 620.70.06), Wine 11.22, vkd3d-proton 3.2.0 and DXVK 3.1.1, using the Xbox Series X mode from a local SSD. On VIctory `d2a4bae` with local diagnostic instrumentation, the title reached the “VICE CITY 20 YEARS AGO” card, then exited with Wine reporting `vkCreateComputePipelines Exception 0xc0000005 in Unix call`. A single VIctory pipeline worker still hit the same exception while building compute shader `5d113aa6830760b6`; an earlier multi-worker run hit it while that same shader was in the corresponding worker. A separate diagnostic run configured to skip that hash instead faulted in `vkCreateGraphicsPipelines`, so skipping it is not a fix. The cached DXIL whose timestamp matched the single-worker translation passed Microsoft DXV 1.9.2609; the cache-file-to-shader association is temporal, not independently verified by hash. No game files or logs attached. AI-assisted.
Author
Owner

@⁠desplmfao on GitHub · 2026-11-24 01:29 UTC · original

Same here: RTX 5080 (615.71.09), proton-cachyos 11.0 (20260703).

The older vkd3d-proton bundled with proton-cachyos crashes on 4e296b1885c37b29, 8bb272e763f76148 and 6a62009bc6a4146e. Putting d3d12.dll and d3d12core.dll from vkd3d-proton 3.2.0 next to victory.exe fixes those. After that I hit the same remaining crashes @⁠tanishq-dubey describes (5d113aa6830760b6, then others in vkCreateGraphicsPipelines).

**@⁠desplmfao** on GitHub · 2026-11-24 01:29 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7119148095) Same here: RTX 5080 (615.71.09), proton-cachyos 11.0 (20260703). The older vkd3d-proton bundled with proton-cachyos crashes on `4e296b1885c37b29`, `8bb272e763f76148` and `6a62009bc6a4146e`. Putting `d3d12.dll` and `d3d12core.dll` from vkd3d-proton 3.2.0 next to `victory.exe` fixes those. After that I hit the same remaining crashes @⁠tanishq-dubey describes (`5d113aa6830760b6`, then others in `vkCreateGraphicsPipelines`).
Author
Owner

@⁠gingertonik on GitHub · 2026-11-24 01:37 UTC · original

Both crashes traced on an RTX 4080: the first is a vkd3d-proton converter bug fixed upstream on 2026-11-04, the second is #177

Same symptoms here on another NVIDIA card: RTX 4080 16 GB, driver 620.73.04, Arch-based Linux (kernel 7.3), Core i5-13600K, GE-Proton11-12's Wine, release build cross-compiled on Linux, Series X 1.0.2.1.

1. 0xc000001d at 8bb272e763f76148 (older vkd3d-proton)

3 of 3 load-ins on 97c78d1 and 35b054e with GE-Proton11-12's vkd3d-proton 8293130eb. In the run I traced, the fault is a ud2 at libnvidia-gpucomp.so.620.73.04 + 0x3c94c0, reached from vkCreateComputePipelines, so the driver's compiler is trapping on purpose.

The SPIR-V it was handed is invalid, and the DXIL is not at fault: the same DXIL converts cleanly with a newer converter. With VKD3D_SHADER_DUMP_PATH set, 2 of 38 dumped modules fail spirv-val; the last compute module written before the crash ends in a block with no terminator ("Function end cannot be called in blocks"), and the other is the 23f68a442af34984 that a Mesa tester reported in #49 ("exits the loop ... but not via a structured exit").

I built the dxil-spirv CLI at the commits each vkd3d-proton carries and converted the 337 DXIL entries then in VIctory's shader cache (two builds, so some programs count twice), checking with spirv-val --target-env vulkan1.3 --scalar-block-layout:

dxil-spirv Carried by Valid Invalid Converter crashed
8b48f0e0 vkd3d-proton 8293130eb (GE-Proton11-12) 310 24 3
114e664e vkd3d-proton 2576c0b4a (Proton Experimental 11.0-20261112) 335 2 0
34f0ff84 vkd3d-proton master 335 2 0

A bisect over the two dumped DXIL files lands on dxil-spirv 71967a38, "Rewrite the structurizer from scratch" (2026-10-27). The first vkd3d-proton commit that carries it is 256f751018 (2026-11-04). So vkd3d-proton builds from before that date carry the old structurizer and break on some of these shaders; builds from that date on convert them. That matches the report above: 3.1.0 crashes, the Hotfix and Experimental builds do not.

With 2576c0b4a in a copy of the same prefix, the pipeline for 8bb272e763f76148 builds and loading goes on.

2. 0xc0000005 at world entry (current vkd3d-proton)

This one is VIctory's, and #177 fixes it. The 2 modules that stay invalid in the table above are atomics with a %float result type: the heap-handle cache hands an image atomic the float handle of an earlier load of the same image.

It is wider than the shaders named so far. Translating the whole package offline (victory translate --list with VICTORY_EMIT_DUMP) and converting every emitted DXIL with dxil-spirv 114e664e:

Build DXIL emitted Invalid SPIR-V
main d2a4bae 22,151 39
#177 e55eb69 22,151 0

The 39 are 13 compute and 26 pixel programs (22 AtomicUMin, 11 AtomicOr, 3 AtomicUMax, 3 AtomicIAdd). The pixel ones would explain the faults moving to vkCreateGraphicsPipelines once a compute shader is skipped. #177 changes the DXIL of exactly those 39 programs and of no other.

In the game: on 9aef3d9 I get the same vkCreateComputePipelines Exception 0xc0000005, and a3d1a26ad0c8c2cd was among the shaders translated with no pipeline result at that moment, as in the report above. With the same key change as #177 applied, one run had no driver trap, translated 577 shaders and reached the opening cutscene. It stopped there on a GPU fault (kernel Xid 13 ... MMU Fault), which is a different problem.

I have not mapped the 39 programs to the 16-digit hashes people have named, so I cannot say that each of those hashes is one of them. Running #177 is the direct check.

I did not see the stack overflows from case 2 in any run.

No game data attached; the dumps stay on my disk.

AI-assisted (Hermes).

**@⁠gingertonik** on GitHub · 2026-11-24 01:37 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7119283151) **Both crashes traced on an RTX 4080: the first is a vkd3d-proton converter bug fixed upstream on 2026-11-04, the second is #177** Same symptoms here on another NVIDIA card: RTX 4080 16 GB, driver 620.73.04, Arch-based Linux (kernel 7.3), Core i5-13600K, GE-Proton11-12's Wine, release build cross-compiled on Linux, Series X 1.0.2.1. **1. `0xc000001d` at `8bb272e763f76148` (older vkd3d-proton)** 3 of 3 load-ins on `97c78d1` and `35b054e` with GE-Proton11-12's vkd3d-proton `8293130eb`. In the run I traced, the fault is a `ud2` at `libnvidia-gpucomp.so.620.73.04 + 0x3c94c0`, reached from `vkCreateComputePipelines`, so the driver's compiler is trapping on purpose. The SPIR-V it was handed is invalid, and the DXIL is not at fault: the same DXIL converts cleanly with a newer converter. With `VKD3D_SHADER_DUMP_PATH` set, 2 of 38 dumped modules fail `spirv-val`; the last compute module written before the crash ends in a block with no terminator ("Function end cannot be called in blocks"), and the other is the `23f68a442af34984` that a Mesa tester reported in #49 ("exits the loop ... but not via a structured exit"). I built the dxil-spirv CLI at the commits each vkd3d-proton carries and converted the 337 DXIL entries then in VIctory's shader cache (two builds, so some programs count twice), checking with `spirv-val --target-env vulkan1.3 --scalar-block-layout`: | dxil-spirv | Carried by | Valid | Invalid | Converter crashed | |---|---|---|---|---| | `8b48f0e0` | vkd3d-proton `8293130eb` (GE-Proton11-12) | 310 | 24 | 3 | | `114e664e` | vkd3d-proton `2576c0b4a` (Proton Experimental 11.0-20261112) | 335 | 2 | 0 | | `34f0ff84` | vkd3d-proton master | 335 | 2 | 0 | A bisect over the two dumped DXIL files lands on dxil-spirv `71967a38`, "Rewrite the structurizer from scratch" (2026-10-27). The first vkd3d-proton commit that carries it is `256f751018` (2026-11-04). So vkd3d-proton builds from before that date carry the old structurizer and break on some of these shaders; builds from that date on convert them. That matches the report above: 3.1.0 crashes, the Hotfix and Experimental builds do not. With `2576c0b4a` in a copy of the same prefix, the pipeline for `8bb272e763f76148` builds and loading goes on. **2. `0xc0000005` at world entry (current vkd3d-proton)** This one is VIctory's, and #177 fixes it. The 2 modules that stay invalid in the table above are atomics with a `%float` result type: the heap-handle cache hands an image atomic the float handle of an earlier load of the same image. It is wider than the shaders named so far. Translating the whole package offline (`victory translate --list` with `VICTORY_EMIT_DUMP`) and converting every emitted DXIL with dxil-spirv `114e664e`: | Build | DXIL emitted | Invalid SPIR-V | |---|---|---| | main `d2a4bae` | 22,151 | 39 | | #177 `e55eb69` | 22,151 | 0 | The 39 are 13 compute and 26 pixel programs (22 `AtomicUMin`, 11 `AtomicOr`, 3 `AtomicUMax`, 3 `AtomicIAdd`). The pixel ones would explain the faults moving to `vkCreateGraphicsPipelines` once a compute shader is skipped. #177 changes the DXIL of exactly those 39 programs and of no other. In the game: on `9aef3d9` I get the same `vkCreateComputePipelines Exception 0xc0000005`, and `a3d1a26ad0c8c2cd` was among the shaders translated with no pipeline result at that moment, as in the report above. With the same key change as #177 applied, one run had no driver trap, translated 577 shaders and reached the opening cutscene. It stopped there on a GPU fault (kernel `Xid 13 ... MMU Fault`), which is a different problem. I have not mapped the 39 programs to the 16-digit hashes people have named, so I cannot say that each of those hashes is one of them. Running #177 is the direct check. I did not see the stack overflows from case 2 in any run. No game data attached; the dumps stay on my disk. AI-assisted (Hermes).
Author
Owner

@⁠desplmfao on GitHub · 2026-11-24 02:01 UTC · original

made a pr to fix the remaining error

**@⁠desplmfao** on GitHub · 2026-11-24 02:01 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7119676556) made a pr to fix the remaining error
Author
Owner

@⁠ruvenesh on GitHub · 2026-11-24 03:12 UTC · original

Linux/Wine on NVIDIA: the old vkd3d-proton structurizer crash is gone with a current build, and one diagnostic setting caused a separate driver crash.

RTX 3060 12 GB, driver 580.178.

  • GE-Proton9-25 (vkd3d-proton 1.1-4426): the process aborts while the world's first shaders compile, with Assertion failed: !succ->pred_back_edge || succ->pred_back_edge == &entry, file .../dxil-spirv/cfg_structurizer.cpp, line 2657. This is the old structurizer discussed above.
  • GE-Proton11-14 (vkd3d-proton 3.2.0, build 5769) with #177 applied: no compile-time crash and no vkCreateComputePipelines exception in about 10 world-load runs. Compute pipelines that ask for WaveSize(64) are still refused on this card (Required WaveSize range [64, 64], but supported range is [32, 32]).

A diagnostic setting that crashed the driver. With VKD3D_CONFIG=descriptor_heap_robustness,breadcrumbs, 2 of 5 world-load runs died with err:vulkan:vkAllocateMemory Exception 0xc0000005 in Unix call (Wine exit code 3). In the 2 runs without it, it did not occur. Small sample, so I can't say which of the two options is responsible. The breadcrumbs allocation path is my first suspect, and I haven't isolated it. If you are chasing an unexplained vkAllocateMemory crash on NVIDIA, try without them.

AI-assisted (Claude Code). No game data attached.

**@⁠ruvenesh** on GitHub · 2026-11-24 03:12 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7120876463) Linux/Wine on NVIDIA: the old vkd3d-proton structurizer crash is gone with a current build, and one diagnostic setting caused a separate driver crash. **RTX 3060 12 GB, driver 580.178.** - GE-Proton9-25 (vkd3d-proton `1.1-4426`): the process aborts while the world's first shaders compile, with `Assertion failed: !succ->pred_back_edge || succ->pred_back_edge == &entry, file .../dxil-spirv/cfg_structurizer.cpp, line 2657`. This is the old structurizer discussed above. - GE-Proton11-14 (vkd3d-proton 3.2.0, build `5769`) with #177 applied: no compile-time crash and no `vkCreateComputePipelines` exception in about 10 world-load runs. Compute pipelines that ask for WaveSize(64) are still refused on this card (`Required WaveSize range [64, 64], but supported range is [32, 32]`). **A diagnostic setting that crashed the driver.** With `VKD3D_CONFIG=descriptor_heap_robustness,breadcrumbs`, 2 of 5 world-load runs died with `err:vulkan:vkAllocateMemory Exception 0xc0000005 in Unix call` (Wine exit code 3). In the 2 runs without it, it did not occur. Small sample, so I can't say which of the two options is responsible. The `breadcrumbs` allocation path is my first suspect, and I haven't isolated it. If you are chasing an unexplained `vkAllocateMemory` crash on NVIDIA, try without them. AI-assisted (Claude Code). No game data attached.
Author
Owner

@⁠andyeox-systemd on GitHub · 2026-11-24 04:08 UTC · original

Another NVIDIA data point, with the same crash on a different GPU and driver.

Environment

  • Arch Linux, kernel 7.2.14-arch1-1, Hyprland (Wayland)
  • AMD Ryzen 9 7950X, 32 GB RAM
  • NVIDIA RTX 4070 Ti, proprietary driver 615.78.08, Vulkan 1.4.351
  • Wine 11.21, stock vkd3d-proton 3.1 release (log says applicationVersion 3.1.0, build 4522cc1a8b1347f), DXVK 3.1.1, both copied into a fresh prefix with WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n"
  • Windows MSVC release build via cargo-xwin 0.24.1, Rust 1.98.1, commit d2a4bae

Result
Menus run at 30 fps, the world content loads (mesh shaders enabled at frame 2963), then the process dies about two minutes in with the same error as the first case above:

2026-11-24T03:56:31.696691Z  INFO victory_gpu::pipeline: first bind pipeline=0x556ead50 frame=3106 stage="compute" size=8532 hash=4e296b1885c37b29
2026-11-24T03:56:31.704215Z  INFO victory_gpu::pipeline: shader translated stage="compute" hash=4e296b1885c37b29 user_data=1 samplers=1
0260:err:vulkan:vkCreateComputePipelines Exception 0xc000001d in Unix call.
  • The shader translated right before the crash is 4e296b1885c37b29, not 8bb272e763f76148. So with this vkd3d-proton version the illegal instruction is not specific to that one shader.
  • No stack overflow in this run, only the 0xc000001d fault.
  • Two compute pipelines were refused for the wave size, as expected on NVIDIA:
err:vkd3d-proton:d3d12_device_validate_shader_meta: Required WaveSize range [64, 64], but supported range is [32, 32].
WARN victory_gpu::pipeline::host: host pipeline refused error=Invalid parameter. (0x80070057) shaders=[compute 13dfdd3b1136e407]
(same for compute 88994c3496045f51)
  • Other warnings before the crash: host view heap capped at 1000000 (count=1245184), two no host texture (2560x1440), view the host does not allow unordered=true format=53, and buffer view not on an element of its host copy.

Trimmed log attached (Wine noise, game file listings and username removed).

I can run the diag build with VICTORY_SKIP_PIPELINES, or try a newer vkd3d-proton (3.2.0 / Proton Experimental), if either would help.

victory-run-trimmed.log

**@⁠andyeox-systemd** on GitHub · 2026-11-24 04:08 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7121738755) Another NVIDIA data point, with the same crash on a different GPU and driver. **Environment** - Arch Linux, kernel 7.2.14-arch1-1, Hyprland (Wayland) - AMD Ryzen 9 7950X, 32 GB RAM - NVIDIA RTX 4070 Ti, proprietary driver 615.78.08, Vulkan 1.4.351 - Wine 11.21, stock vkd3d-proton 3.1 release (log says applicationVersion 3.1.0, build 4522cc1a8b1347f), DXVK 3.1.1, both copied into a fresh prefix with `WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n"` - Windows MSVC release build via cargo-xwin 0.24.1, Rust 1.98.1, commit `d2a4bae` **Result** Menus run at 30 fps, the world content loads (mesh shaders enabled at frame 2963), then the process dies about two minutes in with the same error as the first case above: ``` 2026-11-24T03:56:31.696691Z INFO victory_gpu::pipeline: first bind pipeline=0x556ead50 frame=3106 stage="compute" size=8532 hash=4e296b1885c37b29 2026-11-24T03:56:31.704215Z INFO victory_gpu::pipeline: shader translated stage="compute" hash=4e296b1885c37b29 user_data=1 samplers=1 0260:err:vulkan:vkCreateComputePipelines Exception 0xc000001d in Unix call. ``` - The shader translated right before the crash is `4e296b1885c37b29`, not `8bb272e763f76148`. So with this vkd3d-proton version the illegal instruction is not specific to that one shader. - No stack overflow in this run, only the 0xc000001d fault. - Two compute pipelines were refused for the wave size, as expected on NVIDIA: ``` err:vkd3d-proton:d3d12_device_validate_shader_meta: Required WaveSize range [64, 64], but supported range is [32, 32]. WARN victory_gpu::pipeline::host: host pipeline refused error=Invalid parameter. (0x80070057) shaders=[compute 13dfdd3b1136e407] (same for compute 88994c3496045f51) ``` - Other warnings before the crash: `host view heap capped at 1000000 (count=1245184)`, two `no host texture` (2560x1440), `view the host does not allow unordered=true format=53`, and `buffer view not on an element of its host copy`. Trimmed log attached (Wine noise, game file listings and username removed). I can run the diag build with `VICTORY_SKIP_PIPELINES`, or try a newer vkd3d-proton (3.2.0 / Proton Experimental), if either would help. [victory-run-trimmed.log](https://github.com/user-attachments/files/35310522/victory-run-trimmed.log)
Author
Owner

@⁠andyeox-systemd on GitHub · 2026-11-24 04:16 UTC · original

More runs with the diag build, same setup as above, to see how the crash moves with VICTORY_SKIP_PIPELINES:

  1. No skip: 0xc000001d right after compute 4e296b1885c37b29 is translated.
  2. Skip 4e296b1885c37b29: the load continues, then 0xc000001d right after compute 8bb272e763f76148 is translated (frame 1303).
  3. Skip 4e296b1885c37b29,8bb272e763f76148,690e2883f9dd25d8,a3d1a26ad0c8c2cd: the crash changes to an access violation:
026c:err:vulkan:vkCreateComputePipelines Exception 0xc0000005 in Unix call.

Just before it, at frame 1257, the title binds 536 compute pipelines within about 0.6 s. In the part of the log I kept, 29 were translated, 8 were refused for the wave size, and 8 did not translate (7 "structured buffer of unknown stride", 1 "lane-mask join of an untracked mask").

So on NVIDIA 615.78.08 with stock vkd3d-proton 3.1 the fault moves rather than disappearing, which looks like the burst of pipeline creation rather than one shader. Next I'll try vkd3d-proton 3.2.0 in a separate prefix and report back. Let me know if you'd prefer something else.

victory-skip2-trimmed.log

**@⁠andyeox-systemd** on GitHub · 2026-11-24 04:16 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7121871310) More runs with the diag build, same setup as above, to see how the crash moves with `VICTORY_SKIP_PIPELINES`: 1. No skip: `0xc000001d` right after compute `4e296b1885c37b29` is translated. 2. Skip `4e296b1885c37b29`: the load continues, then `0xc000001d` right after compute `8bb272e763f76148` is translated (frame 1303). 3. Skip `4e296b1885c37b29,8bb272e763f76148,690e2883f9dd25d8,a3d1a26ad0c8c2cd`: the crash changes to an access violation: ``` 026c:err:vulkan:vkCreateComputePipelines Exception 0xc0000005 in Unix call. ``` Just before it, at frame 1257, the title binds 536 compute pipelines within about 0.6 s. In the part of the log I kept, 29 were translated, 8 were refused for the wave size, and 8 did not translate (7 "structured buffer of unknown stride", 1 "lane-mask join of an untracked mask"). So on NVIDIA 615.78.08 with stock vkd3d-proton 3.1 the fault moves rather than disappearing, which looks like the burst of pipeline creation rather than one shader. Next I'll try vkd3d-proton 3.2.0 in a separate prefix and report back. Let me know if you'd prefer something else. [victory-skip2-trimmed.log](https://github.com/user-attachments/files/35310736/victory-skip2-trimmed.log)
Author
Owner

@⁠gingertonik on GitHub · 2026-11-24 04:42 UTC · original

NVIDIA under Proton: a workaround to try for the world stopping 30-120 s in

@⁠deadkid14 your stall at frame 1352 (no frames, GPU at 0 %) looks like what I get on an RTX 4080 with the same driver (620.73.04): the device is lost, and with the title watchdog on, the fault at +0x23cf683 follows about 30 s later. The kernel log shows it here; journalctl -k | grep -i xid after a run should show Xid 13 ... MMU Fault on yours if it is the same thing.

Set this and try again:

VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains

Here that took d2a4bae + #177 from losing the device in every run (about 10, each 20-75 s into the world) to 6 min 11 s with no Xid, ended by my timeout. One run so far.

Cause as far as I can show it: a multi-word raw buffer load at a byte offset just under 2^32 faults 4 GiB above the buffer when vkd3d-proton uses NVIDIA raw access chains. Reproducer tests and a translator fix are in #542, with the evidence.

This is separate from the compile crash this issue is about, which #177 fixes here too. I have not tested Windows.

AI-assisted (Hermes). RTX 4080 16 GB, driver 620.73.04, Proton Experimental's vkd3d-proton (2576c0b4a).

**@⁠gingertonik** on GitHub · 2026-11-24 04:42 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7122259219) **NVIDIA under Proton: a workaround to try for the world stopping 30-120 s in** @⁠deadkid14 your stall at frame 1352 (no frames, GPU at 0 %) looks like what I get on an RTX 4080 with the same driver (620.73.04): the device is lost, and with the title watchdog on, the fault at `+0x23cf683` follows about 30 s later. The kernel log shows it here; `journalctl -k | grep -i xid` after a run should show `Xid 13 ... MMU Fault` on yours if it is the same thing. Set this and try again: ``` VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains ``` Here that took `d2a4bae` + #177 from losing the device in every run (about 10, each 20-75 s into the world) to 6 min 11 s with no Xid, ended by my timeout. One run so far. Cause as far as I can show it: a multi-word raw buffer load at a byte offset just under 2^32 faults 4 GiB above the buffer when vkd3d-proton uses NVIDIA raw access chains. Reproducer tests and a translator fix are in #542, with the evidence. This is separate from the compile crash this issue is about, which #177 fixes here too. I have not tested Windows. AI-assisted (Hermes). RTX 4080 16 GB, driver 620.73.04, Proton Experimental's vkd3d-proton (2576c0b4a).
Author
Owner

@⁠andyeox-systemd on GitHub · 2026-11-24 04:40 UTC · original · edited 2026-11-24 04:42 UTC

Follow-up: vkd3d-proton 3.0.1 also crashes on NVIDIA

Setup: RTX 4070 Ti, Arch Linux, Wine 11.21, DXVK 3.1.1, same game dump and victory.toml as my earlier runs. I ran vkd3d-proton 3.0.1 in a copy of my prefix.

Result

  • The log confirms the version: vkd3d-proton - applicationVersion: 3.0.1.
  • The process crashes with vkCreateComputePipelines Exception 0xc0000005 in Unix call (access violation). On 3.1 the same call fails with 0xc000001d (illegal instruction).
  • The last thing logged is the first bind of compute shader 4e296b1885c37b29 (frame 1211) and its translation. My 3.1 run died after the same shader.
  • Only 9 compute pipelines had been bound before the crash. So this crash is not tied to a large burst of pipeline creation, unlike the one I saw at frame 1257 on 3.1.
  • 4 wave-size or translation problems are logged before the crash. NVIDIA's warp size is 32, and some shaders require wave64.

Summary

Changing the vkd3d-proton version changes the type of fault but not the call or the shader it dies on. I can't yet tell whether the cause is the driver, vkd3d-proton or the shader.

The trimmed log is attached (user name and paths removed, no game files). I'm happy to test PR #151 (16 MiB stack) or any other change that would help.

victory-v301-trimmed.log

**@⁠andyeox-systemd** on GitHub · 2026-11-24 04:40 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7122241944) · edited 2026-11-24 04:42 UTC ## Follow-up: vkd3d-proton 3.0.1 also crashes on NVIDIA **Setup:** RTX 4070 Ti, Arch Linux, Wine 11.21, DXVK 3.1.1, same game dump and `victory.toml` as my earlier runs. I ran vkd3d-proton 3.0.1 in a copy of my prefix. **Result** - The log confirms the version: `vkd3d-proton - applicationVersion: 3.0.1`. - The process crashes with `vkCreateComputePipelines Exception 0xc0000005 in Unix call` (access violation). On 3.1 the same call fails with `0xc000001d` (illegal instruction). - The last thing logged is the first bind of compute shader `4e296b1885c37b29` (frame 1211) and its translation. My 3.1 run died after the same shader. - Only 9 compute pipelines had been bound before the crash. So this crash is not tied to a large burst of pipeline creation, unlike the one I saw at frame 1257 on 3.1. - 4 wave-size or translation problems are logged before the crash. NVIDIA's warp size is 32, and some shaders require wave64. **Summary** Changing the vkd3d-proton version changes the type of fault but not the call or the shader it dies on. I can't yet tell whether the cause is the driver, vkd3d-proton or the shader. The trimmed log is attached (user name and paths removed, no game files). I'm happy to test PR #151 (16 MiB stack) or any other change that would help. [victory-v301-trimmed.log](https://github.com/user-attachments/files/35311462/victory-v301-trimmed.log)
Author
Owner

@⁠andyeox-systemd on GitHub · 2026-11-24 04:47 UTC · original

Result: PR #177 does not fix the compile crash on my setup (RTX 4070 Ti)

Setup: RTX 4070 Ti, Arch Linux, Wine 11.21, DXVK 3.1.1, vkd3d-proton 3.0.1 (release build), PR #177 checked out and built with cargo xwin build --release.

Result

  • It still crashes with vkCreateComputePipelines Exception 0xc0000005 in Unix call.
  • The last thing logged is the first bind of compute shader 4e296b1885c37b29 (frame 1114) and its translation, the same shader as in my earlier runs.
  • Required WaveSize range [64, 64], but supported range is [32, 32] errors are still logged before the crash.
  • journalctl -k | grep -i xid shows no NVIDIA Xid entries, so no device loss.

The report that #177 fixes this was on Proton Experimental's vkd3d-proton with a 4080 and driver 620.73.04. I suspect the vkd3d-proton build or the driver matters, so I'll try Proton Experimental's vkd3d-proton next and report back.

Trimmed log attached (user name, paths and game files removed).

victory-pr177-trimmed.log

**@⁠andyeox-systemd** on GitHub · 2026-11-24 04:47 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7122348321) ## Result: PR #177 does not fix the compile crash on my setup (RTX 4070 Ti) **Setup:** RTX 4070 Ti, Arch Linux, Wine 11.21, DXVK 3.1.1, vkd3d-proton 3.0.1 (release build), PR #177 checked out and built with `cargo xwin build --release`. **Result** - It still crashes with `vkCreateComputePipelines Exception 0xc0000005 in Unix call`. - The last thing logged is the first bind of compute shader `4e296b1885c37b29` (frame 1114) and its translation, the same shader as in my earlier runs. - `Required WaveSize range [64, 64], but supported range is [32, 32]` errors are still logged before the crash. - `journalctl -k | grep -i xid` shows no NVIDIA Xid entries, so no device loss. The report that #177 fixes this was on Proton Experimental's vkd3d-proton with a 4080 and driver 620.73.04. I suspect the vkd3d-proton build or the driver matters, so I'll try Proton Experimental's vkd3d-proton next and report back. Trimmed log attached (user name, paths and game files removed). [victory-pr177-trimmed.log](https://github.com/user-attachments/files/35311618/victory-pr177-trimmed.log)
Author
Owner

@⁠andyeox-systemd on GitHub · 2026-11-24 04:52 UTC · original

Result: Proton Experimental's vkd3d-proton also crashes (RTX 4070 Ti, driver 615.78.08)

Setup: RTX 4070 Ti, Arch Linux (nvidia-open-dkms 615.78.08), Wine 11.21, DXVK 3.1.1, PR #177 built with cargo xwin build --release. I copied the vkd3d-proton DLLs (d3d12.dll, d3d12core.dll) from Proton - Experimental into a copy of my prefix. The log reports vkd3d-proton - applicationVersion: 3.1.0.

Result

  • It still crashes with vkCreateComputePipelines Exception 0xc000001d in Unix call (illegal instruction).
  • The last thing logged is the first bind of compute shader 4e296b1885c37b29 (frame 1330) and its translation, the same shader as in my earlier runs.
  • Required WaveSize range [64, 64], but supported range is [32, 32] errors are logged before the crash.

Summary of my runs (same dump, same driver)

vkd3d-proton Fault in vkCreateComputePipelines
3.1 0xc000001d
3.0.1 0xc0000005
Proton Experimental (3.1.0) 0xc000001d

All three die on the same shader and in the same call, so the vkd3d-proton version doesn't seem to be the difference. The report that #177 fixes the crash used driver 620.73.04, and mine is 615.78.08. I suspect the driver, but I haven't tested a newer one.

@⁠gingertonik, did you see this crash on an older driver before you moved to 620.73.04? If a newer driver is the fix, I can try it and report back.

Trimmed log attached (user name, paths and game files removed).

victory-exp-trimmed.log

**@⁠andyeox-systemd** on GitHub · 2026-11-24 04:52 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7122415615) ## Result: Proton Experimental's vkd3d-proton also crashes (RTX 4070 Ti, driver 615.78.08) **Setup:** RTX 4070 Ti, Arch Linux (`nvidia-open-dkms` 615.78.08), Wine 11.21, DXVK 3.1.1, PR #177 built with `cargo xwin build --release`. I copied the vkd3d-proton DLLs (`d3d12.dll`, `d3d12core.dll`) from Proton - Experimental into a copy of my prefix. The log reports `vkd3d-proton - applicationVersion: 3.1.0`. **Result** - It still crashes with `vkCreateComputePipelines Exception 0xc000001d in Unix call` (illegal instruction). - The last thing logged is the first bind of compute shader `4e296b1885c37b29` (frame 1330) and its translation, the same shader as in my earlier runs. - `Required WaveSize range [64, 64], but supported range is [32, 32]` errors are logged before the crash. **Summary of my runs (same dump, same driver)** | vkd3d-proton | Fault in `vkCreateComputePipelines` | |---|---| | 3.1 | `0xc000001d` | | 3.0.1 | `0xc0000005` | | Proton Experimental (3.1.0) | `0xc000001d` | All three die on the same shader and in the same call, so the vkd3d-proton version doesn't seem to be the difference. The report that #177 fixes the crash used driver 620.73.04, and mine is 615.78.08. I suspect the driver, but I haven't tested a newer one. @⁠gingertonik, did you see this crash on an older driver before you moved to 620.73.04? If a newer driver is the fix, I can try it and report back. Trimmed log attached (user name, paths and game files removed). [victory-exp-trimmed.log](https://github.com/user-attachments/files/35311731/victory-exp-trimmed.log)
Author
Owner

@⁠andyeox-systemd on GitHub · 2026-11-24 05:06 UTC · original

Result: still crashes with PR #177, including under Proton Experimental's own Wine (RTX 4070 Ti, driver 615.78.08)

Setup: RTX 4070 Ti, Arch Linux, nvidia-open-dkms 615.78.08. The game binary is built from pr-177 (ce945d6, which contains main at d2a4bae) with cargo xwin build --release.

Runs (same dump, same driver)

Wine vkd3d-proton Fault in vkCreateComputePipelines
Wine 11.21 3.0.1 0xc0000005
Wine 11.21 3.1 0xc000001d
Wine 11.21 Proton Experimental's DLLs (3.1.0) 0xc000001d (frame 1330)
Proton Experimental's Wine Proton Experimental's vkd3d-proton 0xc000001d (frame 939)

What stays the same

  • Every run ends in vkCreateComputePipelines Exception ... in Unix call, right after compute shader 4e296b1885c37b29 is translated.
  • Required WaveSize range [64, 64], but supported range is [32, 32] errors appear before the crash.
  • The kernel log shows no Xid or segfault entries, so there's no GPU fault.

So neither the Wine build nor the vkd3d-proton build seems to be the difference. The report that #177 fixes the crash was on an RTX 4080 with driver 620.73.04. Mine is a 4070 Ti with 615.78.08 and the open kernel module (nvidia-open-dkms), so the driver version, GPU or driver flavor could matter.

@⁠gingertonik, which driver package are you on (proprietary or open kernel module)? If a newer driver is the fix, I can test it and report back.

Trimmed log attached from the last run (user name, paths and game files removed).

victory-proton3-trimmed.log

**@⁠andyeox-systemd** on GitHub · 2026-11-24 05:06 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7122629498) ## Result: still crashes with PR #177, including under Proton Experimental's own Wine (RTX 4070 Ti, driver 615.78.08) **Setup:** RTX 4070 Ti, Arch Linux, `nvidia-open-dkms` 615.78.08. The game binary is built from `pr-177` (`ce945d6`, which contains `main` at `d2a4bae`) with `cargo xwin build --release`. **Runs (same dump, same driver)** | Wine | vkd3d-proton | Fault in `vkCreateComputePipelines` | |---|---|---| | Wine 11.21 | 3.0.1 | `0xc0000005` | | Wine 11.21 | 3.1 | `0xc000001d` | | Wine 11.21 | Proton Experimental's DLLs (3.1.0) | `0xc000001d` (frame 1330) | | Proton Experimental's Wine | Proton Experimental's vkd3d-proton | `0xc000001d` (frame 939) | **What stays the same** - Every run ends in `vkCreateComputePipelines Exception ... in Unix call`, right after compute shader `4e296b1885c37b29` is translated. - `Required WaveSize range [64, 64], but supported range is [32, 32]` errors appear before the crash. - The kernel log shows no Xid or segfault entries, so there's no GPU fault. So neither the Wine build nor the vkd3d-proton build seems to be the difference. The report that #177 fixes the crash was on an RTX 4080 with driver 620.73.04. Mine is a 4070 Ti with 615.78.08 and the open kernel module (`nvidia-open-dkms`), so the driver version, GPU or driver flavor could matter. @⁠gingertonik, which driver package are you on (proprietary or open kernel module)? If a newer driver is the fix, I can test it and report back. Trimmed log attached from the last run (user name, paths and game files removed). [victory-proton3-trimmed.log](https://github.com/user-attachments/files/35312272/victory-proton3-trimmed.log)
Author
Owner

@⁠Mumogg on GitHub · 2026-11-24 10:42 UTC · original

Another NVIDIA data point, on driver 615.78.08, which fits @⁠andyeox-systemd's suspicion that the driver is what differs.

Setup: RTX 5070 Ti, driver 615.78.08, Nobara 44 (kernel 7.3), Ryzen 5 9600X, 64 GB. Wine 11.21 staging. Diagnostics build cross-compiled on Linux (rustc 1.98.1, lld-link + xwin SDK), Series X 1.0.2.1, network off, menus by hand. d3d12.dll, d3d12core.dll and DXVK's dxgi.dll next to victory.exe.

VIctory vkd3d-proton Result
ffe310e 2.14 menus run; exit 3 right after 4e296b1885c37b29 is translated, 3 of 3 runs. The vkd3d log ends in dxil-spirv's Failed to find a common merge point
ffe310e GE-Proton11-7's same shader, same end
ffe310e, VICTORY_SKIP_PIPELINES=4e296b1885c37b29 GE-Proton11-7's gets further, then the same end at 8bb272e763f76148
ffe310e + #454 GE-Proton11-14's both of those compile; the world load starts (mesh pipelines first bound), then exit 3 during the burst of compute pipelines
ffe310e + #454 + #177 GE-Proton11-14's same point: vkCreateComputePipelines Exception 0xc0000005 in Unix call at frame 1425, about 64 s in

The last two had VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains and VICTORY_NO_WATCHDOG=1. No Xid in the kernel log, memory peak under 9 GB, nothing in crashes.log. One run each for the last two rows.

So on this thread the runs that get past the compile crash with #177 are on 620.73.04 (RTX 4080, RTX 5070 Ti) and 580.178 (RTX 3060), and the two that do not are both on 615.78.08 (RTX 4070 Ti above, and this RTX 5070 Ti). I have not tried a newer driver yet, so this is a correlation, not a test.

Note for whoever picks up #177: it no longer merges onto main cleanly (lower.rs: the Lowered test fields and the end of the test module; both sides can be kept), and after that one of its tests calls a helper that now takes four arguments.

AI-assisted (Claude Code). No game data attached.

**@⁠Mumogg** on GitHub · 2026-11-24 10:42 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7129136347) Another NVIDIA data point, on driver **615.78.08**, which fits @⁠andyeox-systemd's suspicion that the driver is what differs. **Setup:** RTX 5070 Ti, driver 615.78.08, Nobara 44 (kernel 7.3), Ryzen 5 9600X, 64 GB. Wine 11.21 staging. Diagnostics build cross-compiled on Linux (rustc 1.98.1, `lld-link` + xwin SDK), Series X 1.0.2.1, network off, menus by hand. `d3d12.dll`, `d3d12core.dll` and DXVK's `dxgi.dll` next to `victory.exe`. | VIctory | vkd3d-proton | Result | |---|---|---| | `ffe310e` | 2.14 | menus run; exit 3 right after `4e296b1885c37b29` is translated, 3 of 3 runs. The vkd3d log ends in dxil-spirv's `Failed to find a common merge point` | | `ffe310e` | GE-Proton11-7's | same shader, same end | | `ffe310e`, `VICTORY_SKIP_PIPELINES=4e296b1885c37b29` | GE-Proton11-7's | gets further, then the same end at `8bb272e763f76148` | | `ffe310e` + #454 | GE-Proton11-14's | both of those compile; the world load starts (mesh pipelines first bound), then exit 3 during the burst of compute pipelines | | `ffe310e` + #454 + #177 | GE-Proton11-14's | same point: `vkCreateComputePipelines Exception 0xc0000005 in Unix call` at frame 1425, about 64 s in | The last two had `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains` and `VICTORY_NO_WATCHDOG=1`. No Xid in the kernel log, memory peak under 9 GB, nothing in `crashes.log`. One run each for the last two rows. So on this thread the runs that get past the compile crash with #177 are on 620.73.04 (RTX 4080, RTX 5070 Ti) and 580.178 (RTX 3060), and the two that do not are both on 615.78.08 (RTX 4070 Ti above, and this RTX 5070 Ti). I have not tried a newer driver yet, so this is a correlation, not a test. Note for whoever picks up #177: it no longer merges onto `main` cleanly (`lower.rs`: the `Lowered` test fields and the end of the test module; both sides can be kept), and after that one of its tests calls a helper that now takes four arguments. AI-assisted (Claude Code). No game data attached.
Author
Owner

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

Follow-up to my 615.78.08 rows above: #259 removes the compile crash on this driver, so a newer driver is not needed for it.

Same machine and tree (ffe310e + #454 + #177), with #259 merged on top: the nine compute shaders that each killed the process in vkCreateComputePipelines here (found offline with victory translate shaders.rpf --pipelines --jobs 1) all build, and a title run goes from 57 host pipelines and the exception at frame 1425 to 372 host pipelines and no exception. It then stops with Xid 109 … CTX SWITCH TIMEOUT (frame ~1542, 158 s in), the stop already described here and in #71 for 620.73.04. Details and the shader list are in my comment on #259.

@⁠andyeox-systemd this may be what your RTX 4070 Ti on 615.78.08 needs as well; my earlier "the driver is what differs" was a correlation and this explains it better: the crash needs a level-count query on a 3D image inside a loop, which #177 does not touch.

One run per tree. AI-assisted (Claude Code). No game data attached.

**@⁠Mumogg** on GitHub · 2026-11-24 11:51 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7130637888) Follow-up to my 615.78.08 rows above: **#259 removes the compile crash on this driver**, so a newer driver is not needed for it. Same machine and tree (`ffe310e` + #454 + #177), with #259 merged on top: the nine compute shaders that each killed the process in `vkCreateComputePipelines` here (found offline with `victory translate shaders.rpf --pipelines --jobs 1`) all build, and a title run goes from 57 host pipelines and the exception at frame 1425 to 372 host pipelines and no exception. It then stops with `Xid 109 … CTX SWITCH TIMEOUT` (frame ~1542, 158 s in), the stop already described here and in #71 for 620.73.04. Details and the shader list are in my comment on #259. @⁠andyeox-systemd this may be what your RTX 4070 Ti on 615.78.08 needs as well; my earlier "the driver is what differs" was a correlation and this explains it better: the crash needs a level-count query on a 3D image inside a loop, which #177 does not touch. One run per tree. AI-assisted (Claude Code). No game data attached.
Author
Owner

@⁠ThomasHFWright on GitHub · 2026-11-24 13:31 UTC · original

Controlled offline pipeline-creation comparison on RTX 5090 / NVIDIA 620.73.04, Wine 11.22, VIctory ffe310eb2098e52169f4c44db5ffdabf43a72622 (Rust 1.98.1, Windows MSVC diagnostics build).

The same VIctory executable and DXVK dxgi.dll were used in both arms (SHA-256 checked). Only the app-local d3d12.dll/d3d12core.dll pair changed. Each shader was translated and compiled separately with translate <local input> --pipelines --jobs 1 --list, in an offline Xvfb sandbox with separate writable output directories and fresh caches for the recorded repeat. This compiles pipelines without dispatching them or entering the world.

Shader vkd3d-proton 3.1.0, 0bb64c56c8f0dcc vkd3d-proton 3.2.0, 30b0eb9bc12dc9f
4e296b1885c37b29 exit 3; Unix-side code=c000001d exit 0; compute pipeline created
6a62009bc6a4146e exit 3; Unix-side code=c000001d exit 0; compute pipeline created
8bb272e763f76148 exit 3; Unix-side code=c000001d exit 0; compute pipeline created

All six outcomes match an earlier local run. The first hash was also the last translated compute shader before our original world-loading failure. This isolates a vkd3d-proton-version-dependent compilation failure for these three inputs on this machine; no VIctory patch or driver update was needed to get their pipelines created. It does not establish that all loading failures are fixed.

Separately, I checked #852's ae7e0bef6a9bc834358d48f39902c284f3d9218e patch on the same main revision. With its test instrumentation retained but the original cache-key logic restored, an_image_atomic_after_a_size_query_gets_an_integer_handle fails with [0x409] instead of [0x409, 0x105]. Restoring the fix passes the native shader suite: 97 passed, 0 failed, 1 ignored. The Windows diagnostics build also passes. As noted on #852, this is the cache-key fix already tracked in #177; the size-query regression is useful additional coverage for that PR.

Limits: the #852 check above is a synthetic regression/build check, not a GPU execution result. I have not rerun gameplay with the newer DLLs or validated their emitted SPIR-V. No game files, derived shader data, or raw logs are attached.

AI-assisted testing with Codex.

**@⁠ThomasHFWright** on GitHub · 2026-11-24 13:31 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7132964818) Controlled offline pipeline-creation comparison on RTX 5090 / NVIDIA 620.73.04, Wine 11.22, VIctory `ffe310eb2098e52169f4c44db5ffdabf43a72622` (Rust 1.98.1, Windows MSVC diagnostics build). The **same VIctory executable and DXVK dxgi.dll** were used in both arms (SHA-256 checked). Only the app-local d3d12.dll/d3d12core.dll pair changed. Each shader was translated and compiled separately with `translate <local input> --pipelines --jobs 1 --list`, in an offline Xvfb sandbox with separate writable output directories and fresh caches for the recorded repeat. This compiles pipelines without dispatching them or entering the world. | Shader | vkd3d-proton 3.1.0, `0bb64c56c8f0dcc` | vkd3d-proton 3.2.0, `30b0eb9bc12dc9f` | | --- | --- | --- | | `4e296b1885c37b29` | exit 3; Unix-side `code=c000001d` | exit 0; compute pipeline created | | `6a62009bc6a4146e` | exit 3; Unix-side `code=c000001d` | exit 0; compute pipeline created | | `8bb272e763f76148` | exit 3; Unix-side `code=c000001d` | exit 0; compute pipeline created | All six outcomes match an earlier local run. The first hash was also the last translated compute shader before our original world-loading failure. This isolates a vkd3d-proton-version-dependent compilation failure for these three inputs on this machine; no VIctory patch or driver update was needed to get their pipelines created. It does not establish that all loading failures are fixed. Separately, I checked #852's `ae7e0bef6a9bc834358d48f39902c284f3d9218e` patch on the same main revision. With its test instrumentation retained but the original cache-key logic restored, `an_image_atomic_after_a_size_query_gets_an_integer_handle` fails with `[0x409]` instead of `[0x409, 0x105]`. Restoring the fix passes the native shader suite: **97 passed, 0 failed, 1 ignored**. The Windows diagnostics build also passes. As noted on #852, this is the cache-key fix already tracked in #177; the size-query regression is useful additional coverage for that PR. Limits: the #852 check above is a synthetic regression/build check, not a GPU execution result. I have not rerun gameplay with the newer DLLs or validated their emitted SPIR-V. No game files, derived shader data, or raw logs are attached. AI-assisted testing with Codex.
Author
Owner

@⁠0xKaji on GitHub · 2026-11-24 14:14 UTC · original

Another Linux + NVIDIA Ampere data point on an RTX 3060 8GB (non-ReBAR), comparing vkd3d-proton 3.1.0 vs 3.2.0 (GE-Proton11-14) and testing Mesa lavapipe as a software fallback.

Environment

  • OS / Kernel: CachyOS Linux, 7.3.5-2-cachyos
  • GPU / Driver: NVIDIA GeForce RTX 3060 (8192 MiB), driver 620.73.04, Vulkan 1.4.363
  • Wine / DXVK / NVAPI: system wine-11.22, DXVK v3.1.1-97-ga78a467cadb22be-pcos (dxgi, d3d11, d3d10core) + nvapi64.dll (DXVK_ENABLE_NVAPI=1)
  • vkd3d-proton: 3.1.0 (0bb64c56c8f0dcc, cachyos-11.0-20261015-slr) and 3.2.0 (cae8353ed7959c4+, GE-Proton11-14)
  • VIctory: main @ ffe310e, plus local test of ffe310e + PR #177 (x86_64-pc-windows-msvc via cargo-xwin 0.24.1, rustc 1.98.1)

1. Offline shaders.rpf pipeline census on Ampere (vkd3d-proton 3.2.0 + PR #177)

  • Without #177 (main ffe310e): victory.exe translate --pipelines --list --jobs 4 shaders.rpf crashed in vkCreateGraphicsPipelines (Exception 0xc000001d on 3.1.0; Exception 0xc0000005 on 3.2.0, both default VK_EXT_descriptor_heap and VKD3D_CONFIG=no_descriptor_heap, after 5,422 .spv modules where spirv-val caught the #177/#852 OpAtomicUMax %float fragment shader).
  • With PR #177 applied (--jobs 4, vkd3d-proton 3.2.0, VK_EXT_descriptor_heap enabled): exit=0, 0 exceptions / crashes. Full tally across shaders.rpf:
    • 26,084 / 26,084 translated; 21,566 / 21,886 emitted DXIL programs built host pipelines:
      • VS + PS: 12,231 / 12,231 (100% — 2,132 Vs + 10,099 Ps)
      • Mesh (Ms): 8,214 / 8,214 (100%)
      • Compute (Cs): 1,121 / 1,441 (77.8%)
    • Complete Ampere host refusal breakdown (all 320 / 320 host refusals):
      100% are Wave64 Compute (Cs, #817): err:vkd3d-proton:d3d12_device_validate_shader_meta: Required WaveSize range [64, 64], but supported range is [32, 32] (hr 0x80070057). Zero VS, PS, or Mesh pipelines were refused by vkd3d-proton 3.2.0 + driver 620.73.04.

2. Live boot & Linux software-adapter checks

  • Stages (a)–(c) on RTX 3060 (vkd3d-proton 3.1.0, diag, 75s SIGINT): passed cleanly with 0 crashes, reaching frame=1849 at 29–30 fps, 37/37 shaders, 0 draws dropped, audio + settings/profile saves working, and opening world archives at +68s (#747 heap cap 1245184 and #797 texture format=86/115 logged; #829 and #834 did not hit).
  • VICTORY_D3D12_WARP=1 / Mesa lavapipe are not viable for software rendering here:
    • DXVK EnumWarpAdapter returns the hardware adapter without DXGI_ADAPTER_FLAG_SOFTWARE, which victory-gpu rightly refuses (E_FAIL).
    • Mesa llvmpipe (26.3.1, /usr/share/vulkan/icd.d/lvp_icd.json) exposes VK_EXT_mesh_shader and VK_EXT_descriptor_heap, but vkd3d-proton 3.2.0 logs Not possible to implement heap path on this GPU, cannot enable SM 6.6 (even with VKD3D_SHADER_MODEL=6_6; minSubgroupSize = maxSubgroupSize = 8, requiredSubgroupSizeStages = {FRAGMENT, COMPUTE}), and fails D3D12 init with E_INVALIDARG (0x80070057).
    • Interestingly, a 300s headless run under lavapipe (blank window, no host D3D12 device) still walked cleanly through Stages (a)–(e) with 0 crashes: frame=6093, 79 archive opens through world loading, 5 indirect draws queued/dropped without host GPU, and working music + dialogue audio via mmdevapi.
  • (Live Stage (e) on the real RTX 3060 with VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains has not been run yet.)
**@⁠0xKaji** on GitHub · 2026-11-24 14:14 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7134070023) Another Linux + NVIDIA Ampere data point on an **RTX 3060 8GB** (non-ReBAR), comparing `vkd3d-proton 3.1.0` vs `3.2.0` (`GE-Proton11-14`) and testing Mesa `lavapipe` as a software fallback. ### Environment - **OS / Kernel**: CachyOS Linux, `7.3.5-2-cachyos` - **GPU / Driver**: NVIDIA GeForce RTX 3060 (8192 MiB), driver `620.73.04`, Vulkan `1.4.363` - **Wine / DXVK / NVAPI**: system `wine-11.22`, `DXVK v3.1.1-97-ga78a467cadb22be-pcos` (`dxgi`, `d3d11`, `d3d10core`) + `nvapi64.dll` (`DXVK_ENABLE_NVAPI=1`) - **vkd3d-proton**: `3.1.0` (`0bb64c56c8f0dcc`, `cachyos-11.0-20261015-slr`) and `3.2.0` (`cae8353ed7959c4+`, `GE-Proton11-14`) - **VIctory**: `main` @ `ffe310e`, plus local test of `ffe310e` + **PR #177** (`x86_64-pc-windows-msvc` via `cargo-xwin 0.24.1`, `rustc 1.98.1`) ### 1. Offline `shaders.rpf` pipeline census on Ampere (`vkd3d-proton 3.2.0` + PR #177) - **Without #177 (`main` `ffe310e`)**: `victory.exe translate --pipelines --list --jobs 4 shaders.rpf` crashed in `vkCreateGraphicsPipelines` (`Exception 0xc000001d` on `3.1.0`; `Exception 0xc0000005` on `3.2.0`, both default `VK_EXT_descriptor_heap` and `VKD3D_CONFIG=no_descriptor_heap`, after 5,422 `.spv` modules where `spirv-val` caught the `#177`/`#852` `OpAtomicUMax %float` fragment shader). - **With PR #177 applied (`--jobs 4`, `vkd3d-proton 3.2.0`, `VK_EXT_descriptor_heap` enabled)**: **`exit=0`, 0 exceptions / crashes**. Full tally across `shaders.rpf`: - **26,084 / 26,084** translated; **21,566 / 21,886** emitted DXIL programs built host pipelines: - **VS + PS**: **12,231 / 12,231 (100%** — `2,132 Vs` + `10,099 Ps`) - **Mesh (`Ms`)**: **8,214 / 8,214 (100%)** - **Compute (`Cs`)**: **1,121 / 1,441 (77.8%)** - **Complete Ampere host refusal breakdown (all 320 / 320 host refusals)**: 100% are Wave64 Compute (`Cs`, **#817**): `err:vkd3d-proton:d3d12_device_validate_shader_meta: Required WaveSize range [64, 64], but supported range is [32, 32]` (`hr 0x80070057`). Zero VS, PS, or Mesh pipelines were refused by `vkd3d-proton 3.2.0` + driver `620.73.04`. ### 2. Live boot & Linux software-adapter checks - **Stages (a)–(c) on RTX 3060 (`vkd3d-proton 3.1.0`, `diag`, 75s `SIGINT`)**: passed cleanly with **0 crashes**, reaching `frame=1849` at **29–30 fps**, `37/37` shaders, `0` draws dropped, audio + settings/profile saves working, and opening world archives at `+68s` (`#747` heap cap `1245184` and `#797` texture `format=86`/`115` logged; `#829` and `#834` did not hit). - **`VICTORY_D3D12_WARP=1` / Mesa `lavapipe` are not viable for software rendering here**: - DXVK `EnumWarpAdapter` returns the hardware adapter without `DXGI_ADAPTER_FLAG_SOFTWARE`, which `victory-gpu` rightly refuses (`E_FAIL`). - Mesa `llvmpipe` (`26.3.1`, `/usr/share/vulkan/icd.d/lvp_icd.json`) exposes `VK_EXT_mesh_shader` and `VK_EXT_descriptor_heap`, but `vkd3d-proton 3.2.0` logs `Not possible to implement heap path on this GPU`, cannot enable SM 6.6 (even with `VKD3D_SHADER_MODEL=6_6`; `minSubgroupSize = maxSubgroupSize = 8`, `requiredSubgroupSizeStages = {FRAGMENT, COMPUTE}`), and fails D3D12 init with `E_INVALIDARG (0x80070057)`. - Interestingly, a 300s **headless** run under `lavapipe` (blank window, `no host D3D12 device`) still walked cleanly through **Stages (a)–(e)** with **0 crashes**: `frame=6093`, 79 archive opens through world loading, `5` indirect draws queued/dropped without host GPU, and working music + dialogue audio via `mmdevapi`. - *(Live Stage (e) on the real RTX 3060 with `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains` has not been run yet.)*
Author
Owner

@⁠0xKaji on GitHub · 2026-11-24 14:46 UTC · original

Follow-up from three controlled live Stage (d)–(e) runs (120s timeout) on RTX 3060 8GB (620.73.04, Wine 11.22, vkd3d-proton 3.2.0, VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains, VICTORY_D3D12_DRED=1, Xid watchdog):

  • run3 (ffe310e + #177):

    • Reached Stage (e) cleanly (frame=1505, 0 crashes, 0 Xids).
    • Built 333 host pipelines live (48 mesh = 45 [mesh, pixel] + 3 [mesh], 64 VS+PS, 220 CS, 1 VS); 72 CS refused solely for Ampere Wave64 (#817).
    • Reached 767 draws/frame, with 2,589–5,080 indirect draws/frame dropped because Wine's d3dcompiler_47 failed the argument clamp (E5005, fixed by #190).
  • run4 (ffe310e + #177 + #347 + #190, cold caches):

    • Clean 120s run into Stage (e) (frame=1329, 0 crashes, 0 Xids, 512 host pipelines built including 222 mesh (168 [mesh, pixel] + 54 [mesh]), 58 CS refused for Wave64 #817).
    • With #190 clamping live on GPU (0 clamp failures), Stage (e) draws jumped >10× to 7,823 draws/frame (795.3 MB buffer copies, 1500.8 ms GPU time); remaining 3,509 indirect drops were only downstream unready pipelines / prepare failed + 5 first-time signatures.
    • With #347, host-pipelines.bin (39,224 bytes, made=204, loaded=12 cold) and early-pipelines.txt (105 early) saved cleanly.
  • run5 (ffe310e + #177 + #347 + #190, warm caches):

    • #347 reloaded host-pipelines.bin (39,224 bytes) in ~55 ms (early=105) and hit made=0 loaded=80 started_early=80 (+3.8s) → made=0 loaded=112 started_early=112 (+31s) — 100% early cache hits, -82% fresh shader translations (732 → 130), 115 pipelines built (34 mesh), 2 Wave64 refusals, and 0 draws dropped without a host pipeline across all 11 logged FPS intervals (frames 1..1123).
    • Eliminating compilation stalls pushed streaming into 8 GB VRAM saturation faster (+44s at 7,851 MiB), hitting an NVIDIA userspace crash at +66 s (01c0:err:vulkan:vkAllocateMemory Exception 0xc0000005 in Unix call during placed 3D texture allocations, crashes.log absent, 0 Xids).

(Note on frame counts: max frames reached across run3 → run4 → run5 drop from 1505 → 1329 → 1123 because each Stage (e) frame performs ~10× more draw work once #190 unlocks ExecuteIndirect, and warm caches in run5 let streaming advance faster to the 8 GB VRAM ceiling — this is increased throughput/work per frame, not a regression.)

  • 8 GB VRAM / System Memory Saturation Observation (Without Xids):
    • Across run3, run4, and run5, VRAM climbed to 7,851 / 8,192 MiB (~96%):
      • In run3/run4, kernel NVRM logged NV_ERR_NO_MEMORY / [nvidia-drm] Failed to allocate NVKMS video memory for GEM object, trying to fall back to sysmem and gpu_vaspace.c:4155/1846 assertions cleanly (0 Xids, 0 crashes for 120s).
      • In run5 (warm caches, faster streaming), kernel logged NVRM NV_ERR_NO_MEMORY (mem_desc.c:1196, system_mem.c:555) + x86/PAT: freeing invalid memtype [mem 0x00000000-0x00000fff] coinciding with NVIDIA driver's vkAllocateMemory Exception 0xc0000005 on 15 GiB RAM — still with 0 Xids and no hang.

Summary on Linux + Wine + RTX 3060 8GB: with #177 + #190 + #347, the title reaches Stage (e) with ExecuteIndirect active, a fully-warm pipeline cache (100% early hits), and mesh pipelines building cleanly; the current bottleneck is 8 GB VRAM saturation (vkAllocateMemory userspace crash, 0 Xids), not shader translation or pipeline compilation.

**@⁠0xKaji** on GitHub · 2026-11-24 14:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7134921960) Follow-up from three controlled live Stage (d)–(e) runs (120s timeout) on **RTX 3060 8GB** (`620.73.04`, Wine `11.22`, `vkd3d-proton 3.2.0`, `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains`, `VICTORY_D3D12_DRED=1`, `Xid` watchdog): - **`run3` (`ffe310e` + #177):** - Reached **Stage (e)** cleanly (`frame=1505`, `0` crashes, **`0` Xids**). - Built **333 host pipelines** live (**`48` mesh** = `45 [mesh, pixel]` + `3 [mesh]`, `64` VS+PS, `220` CS, `1` VS); **`72` CS** refused solely for Ampere Wave64 (`#817`). - Reached **`767` draws/frame**, with `2,589–5,080` indirect draws/frame dropped because Wine's `d3dcompiler_47` failed the argument clamp (`E5005`, fixed by `#190`). - **`run4` (`ffe310e` + #177 + #347 + #190, cold caches):** - Clean 120s run into Stage (e) (`frame=1329`, `0` crashes, **`0` Xids**, `512` host pipelines built including **`222` mesh** (`168 [mesh, pixel]` + `54 [mesh]`), **`58` CS** refused for Wave64 `#817`). - With `#190` clamping live on GPU (`0` clamp failures), Stage (e) draws jumped **>10×** to **`7,823` draws/frame** (`795.3 MB` buffer copies, `1500.8 ms` GPU time); remaining `3,509` indirect drops were only downstream unready pipelines / `prepare failed` + 5 first-time signatures. - With `#347`, `host-pipelines.bin` (`39,224` bytes, `made=204`, `loaded=12` cold) and `early-pipelines.txt` (`105` early) saved cleanly. - **`run5` (`ffe310e` + #177 + #347 + #190, warm caches):** - `#347` reloaded `host-pipelines.bin` (`39,224` bytes) in ~55 ms (`early=105`) and hit **`made=0 loaded=80 started_early=80`** (+3.8s) → **`made=0 loaded=112 started_early=112`** (+31s) — 100% early cache hits, `-82%` fresh shader translations (`732` → `130`), `115` pipelines built (`34` mesh), `2` Wave64 refusals, and `0` draws dropped without a host pipeline across all 11 logged FPS intervals (`frames 1..1123`). - Eliminating compilation stalls pushed streaming into 8 GB VRAM saturation faster (+44s at `7,851 MiB`), hitting an NVIDIA userspace crash at `+66 s` (`01c0:err:vulkan:vkAllocateMemory Exception 0xc0000005 in Unix call` during placed 3D texture allocations, `crashes.log` absent, `0` Xids). *(Note on frame counts: max frames reached across `run3` → `run4` → `run5` drop from `1505` → `1329` → `1123` because each Stage (e) frame performs ~10× more draw work once `#190` unlocks `ExecuteIndirect`, and warm caches in `run5` let streaming advance faster to the 8 GB VRAM ceiling — this is increased throughput/work per frame, not a regression.)* - **8 GB VRAM / System Memory Saturation Observation (Without Xids):** - Across `run3`, `run4`, and `run5`, VRAM climbed to **`7,851 / 8,192 MiB`** (~96%): - In `run3`/`run4`, kernel `NVRM` logged `NV_ERR_NO_MEMORY` / `[nvidia-drm] Failed to allocate NVKMS video memory for GEM object, trying to fall back to sysmem` and `gpu_vaspace.c:4155/1846` assertions cleanly (`0` Xids, `0` crashes for 120s). - In `run5` (warm caches, faster streaming), kernel logged `NVRM` `NV_ERR_NO_MEMORY` (`mem_desc.c:1196`, `system_mem.c:555`) + `x86/PAT: freeing invalid memtype [mem 0x00000000-0x00000fff]` coinciding with NVIDIA driver's `vkAllocateMemory Exception 0xc0000005` on 15 GiB RAM — still with **`0` Xids** and no hang. Summary on Linux + Wine + RTX 3060 8GB: with `#177 + #190 + #347`, the title reaches Stage (e) with `ExecuteIndirect` active, a fully-warm pipeline cache (100% early hits), and mesh pipelines building cleanly; the current bottleneck is 8 GB VRAM saturation (`vkAllocateMemory` userspace crash, `0` Xids), not shader translation or pipeline compilation.
Author
Owner

@⁠deadkid14 on GitHub · 2026-11-24 03:32 UTC · original · edited 2026-11-24 17:51 UTC

Another data point: RTX 5070 Ti. With vkd3d-proton 3.2 and #177 the load gets past both crashes described here. After about 35 s in the world, the title then faults in its own code.

Environment: CachyOS (kernel 7.3.5), NVIDIA RTX 5070 Ti, driver 620.73.04, Ryzen 7 9800X3D, 30 GB RAM. Windows build cross-compiled with cargo xwin (rustc 1.98.1, --features diagnostics), run with GE-Proton's wine directly. Series X files. Menus navigated with VICTORY_KEYS (Enter every 4 s).

Setup Result
main d2a4bae, GE-Proton11-11 (old vkd3d-proton) Aborts (exit 3) in dxil-spirv's structurizer (Failed to find a common merge point) at 4e296b1885c37b29, then 8bb272e763f76148, 24f989b98dcb03f0, 3e828912260f63e1, 6b48bef1005f4f2f, 0e45e59e93b736e4, 9aa3629668b8e7ab, a4b6503d37087340, 1f69e52b2cb228b9, fb332f777bae57fb and 9e096a1111c6faaa when each is skipped in turn
main d2a4bae, GE-Proton11-14 Nine of those eleven compile; 0e45e59e93b736e4 and 9aa3629668b8e7ab were not reached. 9e096a1111c6faaa is refused, the rest get host pipelines. The world load (story000*.rpf) then dies with vkCreateComputePipelines Exception 0xc0000005 in Unix call (after d59ced807b1bfc3b, a1bf269d5b19f025, 45b59cf5905ce5ea in successive runs)
#177 (ce945d6) on d2a4bae, GE-Proton11-14, no skipped pipelines No pipeline crash. Reaches the world: mesh pipelines are made, 0.7–0.9 fps. About 35 s later, at frame 1315, the title faults

The fault with #177:

VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0)
  rax 0x0 rbx 0x0 rcx 0x14084c348 rdx 0x1 rsi 0x10cffec8 rdi 0x7deb81af2 rsp 0x10cffe50 rbp 0x0
  #0  victory-image-b99f876b74d4a77f.dll+0x23cf683
  #1  victory-image-b99f876b74d4a77f.dll+0x2215c35
  #2  victory-image-b99f876b74d4a77f.dll+0x2215eca
  #3  kernel32.dll+0x11739

The title then tries to send a crash report (HTTP connection blocked destination=submit.backtrace.io:443). The only warning just before it is a slow host submission (735 ms). I haven't confirmed whether this is #128 (GPU writes copied back are skipped under Wine, so the title would read zeros). I'm happy to test a patch or get more logs.

AI-assisted: Claude Code ran the builds and tests on my machine, read the logs and wrote this comment; posted at my request.

**@⁠deadkid14** on GitHub · 2026-11-24 03:32 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7121199604) · edited 2026-11-24 17:51 UTC Another data point: RTX 5070 Ti. With vkd3d-proton 3.2 and #177 the load gets past both crashes described here. After about 35 s in the world, the title then faults in its own code. **Environment:** CachyOS (kernel 7.3.5), NVIDIA RTX 5070 Ti, driver 620.73.04, Ryzen 7 9800X3D, 30 GB RAM. Windows build cross-compiled with `cargo xwin` (rustc 1.98.1, `--features diagnostics`), run with GE-Proton's `wine` directly. Series X files. Menus navigated with `VICTORY_KEYS` (Enter every 4 s). | Setup | Result | |---|---| | `main` d2a4bae, GE-Proton11-11 (old vkd3d-proton) | Aborts (exit 3) in dxil-spirv's structurizer (`Failed to find a common merge point`) at `4e296b1885c37b29`, then `8bb272e763f76148`, `24f989b98dcb03f0`, `3e828912260f63e1`, `6b48bef1005f4f2f`, `0e45e59e93b736e4`, `9aa3629668b8e7ab`, `a4b6503d37087340`, `1f69e52b2cb228b9`, `fb332f777bae57fb` and `9e096a1111c6faaa` when each is skipped in turn | | `main` d2a4bae, GE-Proton11-14 | Nine of those eleven compile; `0e45e59e93b736e4` and `9aa3629668b8e7ab` were not reached. `9e096a1111c6faaa` is refused, the rest get host pipelines. The world load (`story000*.rpf`) then dies with `vkCreateComputePipelines Exception 0xc0000005 in Unix call` (after `d59ced807b1bfc3b`, `a1bf269d5b19f025`, `45b59cf5905ce5ea` in successive runs) | | #177 (ce945d6) on d2a4bae, GE-Proton11-14, **no skipped pipelines** | No pipeline crash. Reaches the world: mesh pipelines are made, 0.7–0.9 fps. About 35 s later, at frame 1315, the title faults | The fault with #177: ``` VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0) rax 0x0 rbx 0x0 rcx 0x14084c348 rdx 0x1 rsi 0x10cffec8 rdi 0x7deb81af2 rsp 0x10cffe50 rbp 0x0 #0 victory-image-b99f876b74d4a77f.dll+0x23cf683 #1 victory-image-b99f876b74d4a77f.dll+0x2215c35 #2 victory-image-b99f876b74d4a77f.dll+0x2215eca #3 kernel32.dll+0x11739 ``` The title then tries to send a crash report (`HTTP connection blocked destination=submit.backtrace.io:443`). The only warning just before it is a slow host submission (735 ms). I haven't confirmed whether this is #128 (GPU writes copied back are skipped under Wine, so the title would read zeros). I'm happy to test a patch or get more logs. *AI-assisted: Claude Code ran the builds and tests on my machine, read the logs and wrote this comment; posted at my request.*
Author
Owner

@⁠deadkid14 on GitHub · 2026-11-24 03:58 UTC · original · edited 2026-11-24 17:51 UTC

Follow-up to my comment above: the fault at +0x23cf683 / +0x2215c35 is the title's own watchdog, analysed in #454. It is not #128.

Same machine (RTX 5070 Ti, GE-Proton11-14), with #177 and #454 merged locally onto d2a4bae, VICTORY_NO_WATCHDOG=1, no skipped pipelines:

  • Both hooks apply (title watchdog hooks (VICTORY_NO_WATCHDOG) applied=2).
  • The world loads (story000*.rpf, mesh pipelines made) and runs at 0.7 fps up to frame 1352, about 2 minutes in the world. It does not fault.
  • Then it stops: no new log lines and no frames for 10+ minutes. The process stays alive, GPU utilization is 0 %, and one title thread uses about 6 % CPU.
  • Three winedbg bt all samples over 7 minutes: in the first two, one title thread (0198) was in title code (+0x4ddfdcd, then +0x4de35a0). By the third, no thread had title code on top of its stack. The callers under the waits are mostly +0x2215eca (49 threads), +0x221c3c2 (14) and +0x22511f (11).

So on this setup the stall the watchdog catches did not recover, unlike the ~50 s wait in #454's runs. It may be the case #454's Limits section mentions ("if the stall is a real deadlock, the game will sit there"). I have the full backtraces and the run log if they help.

AI-assisted: Claude Code ran the builds and tests on my machine, read the logs and wrote this comment; posted at my request.

**@⁠deadkid14** on GitHub · 2026-11-24 03:58 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7121596246) · edited 2026-11-24 17:51 UTC Follow-up to my comment above: the fault at `+0x23cf683` / `+0x2215c35` is the title's own watchdog, analysed in #454. It is not #128. Same machine (RTX 5070 Ti, GE-Proton11-14), with #177 and #454 merged locally onto d2a4bae, `VICTORY_NO_WATCHDOG=1`, no skipped pipelines: - Both hooks apply (`title watchdog hooks (VICTORY_NO_WATCHDOG) applied=2`). - The world loads (`story000*.rpf`, mesh pipelines made) and runs at 0.7 fps up to frame 1352, about 2 minutes in the world. It does not fault. - Then it stops: no new log lines and no frames for 10+ minutes. The process stays alive, GPU utilization is 0 %, and one title thread uses about 6 % CPU. - Three `winedbg bt all` samples over 7 minutes: in the first two, one title thread (`0198`) was in title code (`+0x4ddfdcd`, then `+0x4de35a0`). By the third, no thread had title code on top of its stack. The callers under the waits are mostly `+0x2215eca` (49 threads), `+0x221c3c2` (14) and `+0x22511f` (11). So on this setup the stall the watchdog catches did not recover, unlike the ~50 s wait in #454's runs. It may be the case #454's Limits section mentions ("if the stall is a real deadlock, the game will sit there"). I have the full backtraces and the run log if they help. *AI-assisted: Claude Code ran the builds and tests on my machine, read the logs and wrote this comment; posted at my request.*
Author
Owner

@⁠deadkid14 on GitHub · 2026-11-24 04:50 UTC · original · edited 2026-11-24 17:51 UTC

@⁠gingertonik thanks, that was it. The earlier stalls on this RTX 5070 Ti (driver 620.73.04) were Xid 13 … Graphics SM Warp Exception … MMU Fault from title-main, as you described.

Same setup (d2a4bae + #177 + #454, VICTORY_NO_WATCHDOG=1, GE-Proton11-14's vkd3d-proton) with VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains:

  • No Xid 13. The world ran for about 5 min (frame ~1530, 0.5–2.9 fps) and showed the opening credits on screen. The two earlier warm-cache runs were lost at 40–45 s.
  • It then stopped with a different error: Xid 109 … CTX SWITCH TIMEOUT at frame ~1527. That looks like #71 (RTX 5070 Ti world hang) rather than the raw-access-chain fault. The only warnings just before it were refused compute pipelines (Invalid parameter) and a black-frame notice.

One run so far. I haven't tried #542 itself.

AI-assisted: Claude Code ran the builds and tests on my machine, read the logs and wrote this comment; posted at my request.

**@⁠deadkid14** on GitHub · 2026-11-24 04:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7122392876) · edited 2026-11-24 17:51 UTC @⁠gingertonik thanks, that was it. The earlier stalls on this RTX 5070 Ti (driver 620.73.04) were `Xid 13 … Graphics SM Warp Exception … MMU Fault` from `title-main`, as you described. Same setup (d2a4bae + #177 + #454, `VICTORY_NO_WATCHDOG=1`, GE-Proton11-14's vkd3d-proton) with `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains`: - No Xid 13. The world ran for about 5 min (frame ~1530, 0.5–2.9 fps) and showed the opening credits on screen. The two earlier warm-cache runs were lost at 40–45 s. - It then stopped with a different error: `Xid 109 … CTX SWITCH TIMEOUT` at frame ~1527. That looks like #71 (RTX 5070 Ti world hang) rather than the raw-access-chain fault. The only warnings just before it were refused compute pipelines (`Invalid parameter`) and a black-frame notice. One run so far. I haven't tried #542 itself. *AI-assisted: Claude Code ran the builds and tests on my machine, read the logs and wrote this comment; posted at my request.*
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 01:45 UTC · original · edited 2026-11-26 00:50 UTC

Automated triage for the maintainers.

This is the oldest complete report of NVIDIA's driver crashing in vkCreateComputePipelines / vkCreateGraphicsPipelines under Wine + vkd3d-proton during the world load, so the cause is tracked here. The thread has data from RTX 2070 SUPER, 3060, 4070, 4070 Ti, 4080, 5070 Ti, 5080 and 5090 on drivers 580.178, 615.x and 620.x. The reports separate these causes:

  1. vkd3d-proton 3.1 and older (0xc000001d on 4e296b1885c37b29, 8bb272e763f76148, 6a62009bc6a4146e, or the structurizer assertion). This is the old dxil-spirv structurizer and is fixed by a newer vkd3d-proton (reported fixed in vkd3d-proton master), not in VIctory.
  2. Image atomics given a float handle (invalid SPIR-V, 0xc0000005). Still the case on main (63bcca4): in crates/victory-shader/src/emit/lower.rs the three handle caches of Lower (handles, entry_handles, join_handles) are keyed by the properties' first word only, without the element type, so an atomic reuses the float handle made for another access. Open PR #2723 carries #177's change onto main and extends it to all three caches; it currently has merge conflicts with main. #177 is superseded by it; #852 reports the same cause.
  3. A level-count query on a 3D image inside a loop (the remaining 0xc0000005 on driver 615.78.08). PR #259 for this was closed without merging, and its change is not on main: Lower::descriptor_data still queries the level count for every non-UAV image descriptor.
  4. New: the Xid 13 MMU fault at world entry on Blackwell (neonbyte1, RTX 5090, driver 620.73.04). Two parts: (a) a program's constant array covering its whole code made NVIDIA size its local-memory pool past 4 GiB, which wrapped; this is fixed on main by e04c078 "a program's constant table starts after its instructions" (#2143). (b) The float atomic handles of cause 2. With main 13f91ca + #2723 + #1129 + the #747 one-liner, three 6-7 minute runs had no fault on vkd3d-proton 3.1-83 and master, and reached gameplay (nearby surfaces still dark).

Still open: #2723, #151 (16 MiB stack) and #1129 (room for NVIDIA's shader compiler). The next blocker reported on NVIDIA is 32-lane waves: main emits 164 compute programs with WaveSize(64), which vkd3d-proton refuses on 32-lane hardware (open PRs #233 and #1960). Later failures in the same runs (watchdog fault at +0x23cf683, Xid 109 or #71, vkAllocateMemory on an 8 GB card, the black 3D scene) are separate problems.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:45 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7149922248) · edited 2026-11-26 00:50 UTC <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T22:35:45Z at=2026-11-26T01:03:00Z --> Automated triage for the maintainers. This is the oldest complete report of NVIDIA's driver crashing in `vkCreateComputePipelines` / `vkCreateGraphicsPipelines` under Wine + vkd3d-proton during the world load, so the cause is tracked here. The thread has data from RTX 2070 SUPER, 3060, 4070, 4070 Ti, 4080, 5070 Ti, 5080 and 5090 on drivers 580.178, 615.x and 620.x. The reports separate these causes: 1. **vkd3d-proton 3.1 and older** (`0xc000001d` on `4e296b1885c37b29`, `8bb272e763f76148`, `6a62009bc6a4146e`, or the structurizer assertion). This is the old dxil-spirv structurizer and is fixed by a newer vkd3d-proton (reported fixed in vkd3d-proton master), not in VIctory. 2. **Image atomics given a float handle** (invalid SPIR-V, `0xc0000005`). Still the case on `main` (`63bcca4`): in `crates/victory-shader/src/emit/lower.rs` the three handle caches of `Lower` (`handles`, `entry_handles`, `join_handles`) are keyed by the properties' first word only, without the element type, so an atomic reuses the float handle made for another access. Open PR #2723 carries #177's change onto main and extends it to all three caches; it currently has merge conflicts with main. #177 is superseded by it; #852 reports the same cause. 3. **A level-count query on a 3D image inside a loop** (the remaining `0xc0000005` on driver 615.78.08). PR #259 for this was closed without merging, and its change is not on `main`: `Lower::descriptor_data` still queries the level count for every non-UAV image descriptor. 4. **New: the Xid 13 MMU fault at world entry on Blackwell** (neonbyte1, RTX 5090, driver 620.73.04). Two parts: (a) a program's constant array covering its whole code made NVIDIA size its local-memory pool past 4 GiB, which wrapped; this is fixed on `main` by e04c078 "a program's constant table starts after its instructions" (#2143). (b) The float atomic handles of cause 2. With `main` `13f91ca` + #2723 + #1129 + the #747 one-liner, three 6-7 minute runs had no fault on vkd3d-proton 3.1-83 and master, and reached gameplay (nearby surfaces still dark). Still open: #2723, #151 (16 MiB stack) and #1129 (room for NVIDIA's shader compiler). The next blocker reported on NVIDIA is 32-lane waves: `main` emits 164 compute programs with `WaveSize(64)`, which vkd3d-proton refuses on 32-lane hardware (open PRs #233 and #1960). Later failures in the same runs (watchdog fault at `+0x23cf683`, Xid 109 or #71, `vkAllocateMemory` on an 8 GB card, the black 3D scene) are separate problems. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠neonbyte1 on GitHub · 2026-11-25 08:15 UTC · original

Data from an RTX 5090 under Wine, on main 940d32f.

Setup: Linux 7.3.5, Wine 11.22, vkd3d-proton cae8353ed (GE-Proton11-14, v3.1-83) and also vkd3d-proton master ec207194 (2026-11-24 CI build), DXVK dxgi, RTX 5090 on NVIDIA 620.73.04, diagnostics build, Series X dump v1.0.2.1.

1. The image-atomic crash: confirmed, with a fix for current main

On plain 940d32f the process dies at frame 2 with vkCreateComputePipelines Exception 0xc0000005 in Unix call, every run. The pipeline is compute 76c35de1c2444e67 (CS_Primary_EstimateProbeShadingChange): image_atomic_add on a 3D UAV whose descriptor is also read for its dimensions.

  • main annotates that handle [4100, 1033] (R32f), and the atomic reuses it, since Lower::handle keys the cache by props.0 only. dxil-spirv emits OpAtomicIAdd %float on an OpTypeImage %float … R32f, and spirv-val --target-env vulkan1.3 rejects it with AtomicIAdd: expected Result Type to be integer scalar type.
  • With the descriptor-as-data path choosing 0x105 (R32ui) when any consumer of that descriptor is an image atomic, the handle is [4100, 261], the SPIR-V is OpAtomicIAdd %uint and validates, and the pipeline is created.
  • That path fires at 2,707 descriptor-data sites over shaders.rpf (677 distinct load/atomic pairs). A translate --pipelines pass with the fixed build produced 14,614 SPIR-V modules (89 % of the containers before my time limit). All of them validate, and there was no driver crash.

So this is cause 2 in the triage above. #177 fixes the same thing but conflicts with current main. My version is a 33-line change to descriptor_data in emit/lower.rs, written against 940d32f. I can open it as a PR if that helps.

2. After that: an MMU fault at world entry on Blackwell under Wine

With that fix, plus #1129 (64 MiB worker stack) and the #747/#1548 heap change, main loads and reaches world entry. Then, 1 to 2 s in, every run ends with:

NVRM: Xid 13, ... Graphics SM Warp Exception on (GPC n, TPC n, SM n): MMU Fault

It happens at frames 1055 to 1231 (warm or cold caches). The title then crashes at +0x23cf683 (write to 0), as the triage above mentions. vkd3d-proton never reports a lost device, so VKD3D_CONFIG=breadcrumbs names nothing.

What does not change it (one run each unless noted; each still Xid 13 at world entry):

Tried Result
Skipping the 10 BVH-builder compute programs Xid 13
Skipping everything first bound in the faulting frame, alone and in groups Xid 13 (5 runs)
Skipping all 41 programs that get host pipelines on main but never did on our older ffe310e-based branch Xid 13
Skipping #1968's three Blackwell programs (00167d58, f607780a, eeed82b8) Xid 13
Every root SRV/UAV in spaces 1 and 2 (page table, dirty bitmap, view addresses, marks) bound as a one-view table instead of a GPU VA (root CBVs stay raw) Xid 13
Dropping every draw/dispatch whose program uses the page table Xid 13, and no title-memory program ran before the fault
VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains Xid 13
+ #1849, #1906, #1763 Xid 13
+ #1722, #1769, #454, #1583 (the #1921 stack except #1523, which conflicts with the heap change) Xid 13
vkd3d-proton master ec207194 instead of 3.1-83 Xid 13

For comparison, our older branch (ffe310e plus about 30 open PRs, no page table) runs 7 minutes in the world on the same machine with no Xid. That needs root UAVs bound as bounded one-view tables. Before that change it hung with Xid 109 on the BVH builders.

So on this setup the fault comes from work already running before world entry, not from a program first used there, and not from the page table or the root views. I'm happy to run a build with more diagnostics if there is something specific to log.

AI-assisted (Claude); measured on my machine, no game data shared.

**@⁠neonbyte1** on GitHub · 2026-11-25 08:15 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7156808975) Data from an RTX 5090 under Wine, on `main` 940d32f. **Setup:** Linux 7.3.5, Wine 11.22, vkd3d-proton `cae8353ed` (GE-Proton11-14, v3.1-83) and also vkd3d-proton master `ec207194` (2026-11-24 CI build), DXVK `dxgi`, RTX 5090 on NVIDIA 620.73.04, diagnostics build, Series X dump v1.0.2.1. ### 1. The image-atomic crash: confirmed, with a fix for current `main` On plain 940d32f the process dies at frame 2 with `vkCreateComputePipelines Exception 0xc0000005 in Unix call`, every run. The pipeline is compute `76c35de1c2444e67` (`CS_Primary_EstimateProbeShadingChange`): `image_atomic_add` on a 3D UAV whose descriptor is also read for its dimensions. - `main` annotates that handle `[4100, 1033]` (R32f), and the atomic reuses it, since `Lower::handle` keys the cache by `props.0` only. dxil-spirv emits `OpAtomicIAdd %float` on an `OpTypeImage %float … R32f`, and `spirv-val --target-env vulkan1.3` rejects it with `AtomicIAdd: expected Result Type to be integer scalar type`. - With the descriptor-as-data path choosing `0x105` (R32ui) when any consumer of that descriptor is an image atomic, the handle is `[4100, 261]`, the SPIR-V is `OpAtomicIAdd %uint` and validates, and the pipeline is created. - That path fires at 2,707 descriptor-data sites over `shaders.rpf` (677 distinct load/atomic pairs). A `translate --pipelines` pass with the fixed build produced 14,614 SPIR-V modules (89 % of the containers before my time limit). All of them validate, and there was no driver crash. So this is cause 2 in the triage above. #177 fixes the same thing but conflicts with current `main`. My version is a 33-line change to `descriptor_data` in `emit/lower.rs`, written against 940d32f. I can open it as a PR if that helps. ### 2. After that: an MMU fault at world entry on Blackwell under Wine With that fix, plus #1129 (64 MiB worker stack) and the #747/#1548 heap change, `main` loads and reaches world entry. Then, 1 to 2 s in, every run ends with: ``` NVRM: Xid 13, ... Graphics SM Warp Exception on (GPC n, TPC n, SM n): MMU Fault ``` It happens at frames 1055 to 1231 (warm or cold caches). The title then crashes at `+0x23cf683` (write to 0), as the triage above mentions. vkd3d-proton never reports a lost device, so `VKD3D_CONFIG=breadcrumbs` names nothing. What does **not** change it (one run each unless noted; each still Xid 13 at world entry): | Tried | Result | |---|---| | Skipping the 10 BVH-builder compute programs | Xid 13 | | Skipping everything first bound in the faulting frame, alone and in groups | Xid 13 (5 runs) | | Skipping all 41 programs that get host pipelines on `main` but never did on our older `ffe310e`-based branch | Xid 13 | | Skipping #1968's three Blackwell programs (`00167d58`, `f607780a`, `eeed82b8`) | Xid 13 | | Every root SRV/UAV in spaces 1 and 2 (page table, dirty bitmap, view addresses, marks) bound as a one-view table instead of a GPU VA (root CBVs stay raw) | Xid 13 | | Dropping every draw/dispatch whose program uses the page table | Xid 13, and no title-memory program ran before the fault | | `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains` | Xid 13 | | + #1849, #1906, #1763 | Xid 13 | | + #1722, #1769, #454, #1583 (the #1921 stack except #1523, which conflicts with the heap change) | Xid 13 | | vkd3d-proton master `ec207194` instead of 3.1-83 | Xid 13 | For comparison, our older branch (`ffe310e` plus about 30 open PRs, no page table) runs 7 minutes in the world on the same machine with no Xid. That needs root UAVs bound as bounded one-view tables. Before that change it hung with Xid 109 on the BVH builders. So on this setup the fault comes from work already running before world entry, not from a program first used there, and not from the page table or the root views. I'm happy to run a build with more diagnostics if there is something specific to log. _AI-assisted (Claude); measured on my machine, no game data shared._
Author
Owner

@⁠axknxla on GitHub · 2026-11-25 16:01 UTC · original

Independent reproduction of the RTX 5090 report above on an RTX 2070 SUPER, NVIDIA 620.73.04, Linux 7.3.5 and GE-Proton 11-14. I used release + diagnostics on upstream 940d32f6 and #1722 at ee84a448 on that base, with the same Series X route and private cache snapshot.

In both detailed full-cache startup traces, the failing compute shader was 76c35de1c2444e67. LoadComputePipeline returned a miss, and the same worker then faulted inside vkCreateComputePipelines during CreateComputePipelineState. Wine recorded 0xc0000005, a read from 0x10 at libnvidia-gpucomp.so.620.73.04+0x55a954, immediately followed on the same thread by NtTerminateProcess with exit code 3. This confirms the same shader failure on Turing. The SPIR-V validation and proposed shader fix are covered in the RTX 5090 report and #852.

Setup Observed failure
#1722, full 1,279-entry early-start list Three of three runs exited before mission load in vkCreateComputePipelines
#1722, first 64 early entries Reached mission load, then faulted in vkCreateGraphicsPipelines
#1722, same library with early-start list omitted Both runs reached mission load, then faulted at the same compiler offset, once in compute and once in graphics
Upstream main, both host pipeline files omitted Reached heavy mission demand, then faulted in vkCreateGraphicsPipelines at the same compiler offset

The early-start list moved the failure to startup in these runs. The main control shows that the compiler fault can also occur without #1722. The shared module offset alone leaves the cause of the later graphics failure open. The termination trace is consistent with the Wine exit path discussed in #2401.

Codex assisted with local instrumentation and analysis. This report contains aggregate observations and the shader hash already cited in this issue.

**@⁠axknxla** on GitHub · 2026-11-25 16:01 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7167529292) Independent reproduction of [the RTX 5090 report above](https://git.gtahub.st/github/Marvisak--VIctory/issues/144) on an **RTX 2070 SUPER**, NVIDIA **620.73.04**, Linux 7.3.5 and GE-Proton 11-14. I used release + diagnostics on upstream `940d32f6` and #1722 at `ee84a448` on that base, with the same Series X route and private cache snapshot. In **both** detailed full-cache startup traces, the failing compute shader was **`76c35de1c2444e67`**. `LoadComputePipeline` returned a miss, and the same worker then faulted inside `vkCreateComputePipelines` during `CreateComputePipelineState`. Wine recorded `0xc0000005`, a read from `0x10` at `libnvidia-gpucomp.so.620.73.04+0x55a954`, immediately followed on the same thread by `NtTerminateProcess` with exit code 3. This confirms the same shader failure on Turing. The SPIR-V validation and proposed shader fix are covered in the RTX 5090 report and #852. | Setup | Observed failure | | --- | --- | | #1722, full 1,279-entry early-start list | Three of three runs exited before mission load in `vkCreateComputePipelines` | | #1722, first 64 early entries | Reached mission load, then faulted in `vkCreateGraphicsPipelines` | | #1722, same library with early-start list omitted | Both runs reached mission load, then faulted at the same compiler offset, once in compute and once in graphics | | Upstream main, both host pipeline files omitted | Reached heavy mission demand, then faulted in `vkCreateGraphicsPipelines` at the same compiler offset | The early-start list moved the failure to startup in these runs. The main control shows that the compiler fault can also occur without #1722. The shared module offset alone leaves the cause of the later graphics failure open. The termination trace is consistent with the Wine exit path discussed in #2401. Codex assisted with local instrumentation and analysis. This report contains aggregate observations and the shader hash already cited in this issue.
Author
Owner

@⁠andyeox-systemd on GitHub · 2026-11-25 18:58 UTC · original

Found the cause, and a fix: #2723

The crash in vkCreateComputePipelines on NVIDIA under Wine has two separate causes. I dumped every shader with VKD3D_SHADER_DUMP_PATH and checked it with spirv-val.

  1. vkd3d-proton 3.1 and earlier: dxil-spirv's old structurizer emits invalid control flow for three shaders ("Function end cannot be called in blocks", "block exits the loop headed by…"). Microsoft's dxv accepts VIctory's DXIL for all three, so it's a converter bug. It's fixed in vkd3d-proton master, which has the new dxil-spirv structurizer. It is not in 3.1.
  2. VIctory: a UAV read as float and also used by an atomic got one float-typed handle, which becomes an invalid AtomicOr / AtomicUMax in SPIR-V. #177 fixed one handle cache. main has since added two more with the same problem, and #2723 fixes all three.

With both fixes (RTX 4070 Ti, driver 620.73.04, Wine 11.22, vkd3d-proton master), there is no crash, all 1,277 dumped shaders are valid SPIR-V, and the title reaches the first cutscene at 0.2 to 0.7 fps, with the 3D scene black as in other reports. With vkd3d-proton master but without #2723, it still crashes, with 2 invalid atomic shaders.

So NVIDIA users on Wine need vkd3d-proton built from master (or the next release) plus #2723.

**@⁠andyeox-systemd** on GitHub · 2026-11-25 18:58 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7171661368) ## Found the cause, and a fix: #2723 The crash in `vkCreateComputePipelines` on NVIDIA under Wine has two separate causes. I dumped every shader with `VKD3D_SHADER_DUMP_PATH` and checked it with `spirv-val`. 1. **vkd3d-proton 3.1 and earlier:** dxil-spirv's old structurizer emits invalid control flow for three shaders ("Function end cannot be called in blocks", "block exits the loop headed by…"). Microsoft's `dxv` accepts VIctory's DXIL for all three, so it's a converter bug. It's fixed in **vkd3d-proton master**, which has the new dxil-spirv structurizer. It is not in 3.1. 2. **VIctory:** a UAV read as float and also used by an atomic got one float-typed handle, which becomes an invalid `AtomicOr` / `AtomicUMax` in SPIR-V. #177 fixed one handle cache. `main` has since added two more with the same problem, and #2723 fixes all three. With both fixes (RTX 4070 Ti, driver 620.73.04, Wine 11.22, vkd3d-proton master), there is no crash, all 1,277 dumped shaders are valid SPIR-V, and the title reaches the first cutscene at 0.2 to 0.7 fps, with the 3D scene black as in other reports. With vkd3d-proton master but without #2723, it still crashes, with 2 invalid atomic shaders. So NVIDIA users on Wine need vkd3d-proton built from master (or the next release) plus #2723.
Author
Owner

@⁠neonbyte1 on GitHub · 2026-11-25 22:35 UTC · original

Update to my earlier comment. The MMU fault at world entry (Xid 13) is fixed on my RTX 5090 under Wine. It was two separate issues:

  1. NVIDIA's local-memory pool (fixed on main by #2143).
    • Compute program 5062bc7a48e842f8 got a constant array covering its whole 21,632-byte program: 5,408 dwords, instead of only the 615-dword table after the code.
    • NVIDIA moves it to local memory: 21,648 bytes per lane.
    • Driver 620.73.04 sizes the local-memory pool from that modulo 4 GiB: 21,648 × 261,120 lanes = 5.6 GB, which wraps to 1.29 GB.
    • Every program that later uses local memory then faults, even though 5062bc7a itself never has to run: creating its pipeline is enough.
    • I confirmed this with a small native Vulkan program on the 5090, outside the game. With the array starting after the instructions, the program needs 16 bytes per lane.
    • That's why skipping draws in a bisect never found it.
  2. The float atomic handles (#2723). On 940d32f, with the constant-table fix but only my single-cache fix from #177, it still faults at world entry (frame 1349).

With both (main 13f91ca + #2723 + #1129 + the #747 one-liner): three 6–7 minute runs with no fault, on vkd3d-proton 3.1-83 (GE-Proton11-14) and on master ec207194. They reach gameplay with lit windows and lines on screen, but nearby surfaces are still dark.

Next blocker on NVIDIA: 32-lane waves. main emits 164 compute programs with WaveSize(64), which vkd3d-proton refuses on 32-lane hardware. With #233, 33 of them build; details on #233.

AI-assisted (Claude); measured on my machine, no game data shared.

**@⁠neonbyte1** on GitHub · 2026-11-25 22:35 UTC · [original](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7176557016) Update to [my earlier comment](https://git.gtahub.st/github/Marvisak--VIctory/issues/144). The MMU fault at world entry (Xid 13) is fixed on my RTX 5090 under Wine. It was two separate issues: 1. **NVIDIA's local-memory pool (fixed on `main` by #2143).** - Compute program `5062bc7a48e842f8` got a constant array covering its whole 21,632-byte program: 5,408 dwords, instead of only the 615-dword table after the code. - NVIDIA moves it to local memory: 21,648 bytes per lane. - Driver 620.73.04 sizes the local-memory pool from that modulo 4 GiB: 21,648 × 261,120 lanes = 5.6 GB, which wraps to 1.29 GB. - Every program that later uses local memory then faults, even though `5062bc7a` itself never has to run: creating its pipeline is enough. - I confirmed this with a small native Vulkan program on the 5090, outside the game. With the array starting after the instructions, the program needs 16 bytes per lane. - That's why skipping draws in a bisect never found it. 2. **The float atomic handles (#2723).** On `940d32f`, with the constant-table fix but only my single-cache fix from #177, it still faults at world entry (frame 1349). **With both** (`main` `13f91ca` + #2723 + #1129 + the #747 one-liner): three 6–7 minute runs with no fault, on vkd3d-proton 3.1-83 (GE-Proton11-14) and on master `ec207194`. They reach gameplay with lit windows and lines on screen, but nearby surfaces are still dark. **Next blocker on NVIDIA:** 32-lane waves. `main` emits 164 compute programs with `WaveSize(64)`, which vkd3d-proton refuses on 32-lane hardware. With #233, 33 of them build; details on #233. _AI-assisted (Claude); measured on my machine, no game data shared._
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#144
No description provided.