Wine + vkd3d-proton on NVIDIA: the driver crashes in vkCreateComputePipelines while the world loads (0xc000001d / 0xc0000005, earlier stack overflows) #144
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#144
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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.logentry); the only trace is Wine's message for the Unix call.Environment
winepackage)nvidia-open-dkms)dxgi.dllv3.1.1-134 (from GE-Proton11-11)cargo xwin(rustc 1.98.1), run withwine victory.exe run …\game_scarlett_master.exe --execute --console series-xWhat happens
The menus reach the world load (
story000*.rpfopened, mesh pipelines made). Then, while pipelines are being created:1.
main35b054e, vkd3d-proton 3.1.0 (GE-Proton11-11): illegal instruction in the driver right after one compute shader is translated: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:
3.
main9aef3d9plus 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:At that moment the only compute shaders that were translated but had no host pipeline yet (made or refused) were
690e2883f9dd25d8anda3d1a26ad0c8c2cd.Other observations from the same runs
8bb272e763f76148compiles 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.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.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.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:59 UTC · original
The 16 MiB default stack mentioned above is proposed in #151.
@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
d2a4baewith local diagnostic instrumentation, the title reached the “VICE CITY 20 YEARS AGO” card, then exited with Wine reportingvkCreateComputePipelines 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 invkCreateGraphicsPipelines, 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.@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,8bb272e763f76148and6a62009bc6a4146e. Puttingd3d12.dllandd3d12core.dllfrom vkd3d-proton 3.2.0 next tovictory.exefixes those. After that I hit the same remaining crashes @tanishq-dubey describes (5d113aa6830760b6, then others invkCreateGraphicsPipelines).@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.
0xc000001dat8bb272e763f76148(older vkd3d-proton)3 of 3 load-ins on
97c78d1and35b054ewith GE-Proton11-12's vkd3d-proton8293130eb. In the run I traced, the fault is aud2atlibnvidia-gpucomp.so.620.73.04 + 0x3c94c0, reached fromvkCreateComputePipelines, 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_PATHset, 2 of 38 dumped modules failspirv-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 the23f68a442af34984that 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:8b48f0e08293130eb(GE-Proton11-12)114e664e2576c0b4a(Proton Experimental 11.0-20261112)34f0ff84A 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 is256f751018(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
2576c0b4ain a copy of the same prefix, the pipeline for8bb272e763f76148builds and loading goes on.2.
0xc0000005at 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
%floatresult 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 --listwithVICTORY_EMIT_DUMP) and converting every emitted DXIL with dxil-spirv114e664e:d2a4baee55eb69The 39 are 13 compute and 26 pixel programs (22
AtomicUMin, 11AtomicOr, 3AtomicUMax, 3AtomicIAdd). The pixel ones would explain the faults moving tovkCreateGraphicsPipelinesonce a compute shader is skipped. #177 changes the DXIL of exactly those 39 programs and of no other.In the game: on
9aef3d9I get the samevkCreateComputePipelines Exception 0xc0000005, anda3d1a26ad0c8c2cdwas 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 (kernelXid 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).
@desplmfao on GitHub · 2026-11-24 02:01 UTC · original
made a pr to fix the remaining error
@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.
1.1-4426): the process aborts while the world's first shaders compile, withAssertion 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.5769) with #177 applied: no compile-time crash and novkCreateComputePipelinesexception 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 witherr: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. Thebreadcrumbsallocation path is my first suspect, and I haven't isolated it. If you are chasing an unexplainedvkAllocateMemorycrash on NVIDIA, try without them.AI-assisted (Claude Code). No game data attached.
@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
WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n"d2a4baeResult
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:
4e296b1885c37b29, not8bb272e763f76148. So with this vkd3d-proton version the illegal instruction is not specific to that one shader.host view heap capped at 1000000 (count=1245184), twono host texture(2560x1440),view the host does not allow unordered=true format=53, andbuffer 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:16 UTC · original
More runs with the diag build, same setup as above, to see how the crash moves with
VICTORY_SKIP_PIPELINES:0xc000001dright after compute4e296b1885c37b29is translated.4e296b1885c37b29: the load continues, then0xc000001dright after compute8bb272e763f76148is translated (frame 1303).4e296b1885c37b29,8bb272e763f76148,690e2883f9dd25d8,a3d1a26ad0c8c2cd: the crash changes to an access violation: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
@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
+0x23cf683follows about 30 s later. The kernel log shows it here;journalctl -k | grep -i xidafter a run should showXid 13 ... MMU Faulton yours if it is the same thing.Set this and try again:
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).
@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.tomlas my earlier runs. I ran vkd3d-proton 3.0.1 in a copy of my prefix.Result
vkd3d-proton - applicationVersion: 3.0.1.vkCreateComputePipelines Exception 0xc0000005 in Unix call(access violation). On 3.1 the same call fails with0xc000001d(illegal instruction).4e296b1885c37b29(frame 1211) and its translation. My 3.1 run died after the same shader.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: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
vkCreateComputePipelines Exception 0xc0000005 in Unix call.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 xidshows 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: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-dkms615.78.08), Wine 11.21, DXVK 3.1.1, PR #177 built withcargo xwin build --release. I copied the vkd3d-proton DLLs (d3d12.dll,d3d12core.dll) from Proton - Experimental into a copy of my prefix. The log reportsvkd3d-proton - applicationVersion: 3.1.0.Result
vkCreateComputePipelines Exception 0xc000001d in Unix call(illegal instruction).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)
vkCreateComputePipelines0xc000001d0xc00000050xc000001dAll 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 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-dkms615.78.08. The game binary is built frompr-177(ce945d6, which containsmainatd2a4bae) withcargo xwin build --release.Runs (same dump, same driver)
vkCreateComputePipelines0xc00000050xc000001d0xc000001d(frame 1330)0xc000001d(frame 939)What stays the same
vkCreateComputePipelines Exception ... in Unix call, right after compute shader4e296b1885c37b29is translated.Required WaveSize range [64, 64], but supported range is [32, 32]errors appear before the crash.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
@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.dlland DXVK'sdxgi.dllnext tovictory.exe.ffe310e4e296b1885c37b29is translated, 3 of 3 runs. The vkd3d log ends in dxil-spirv'sFailed to find a common merge pointffe310effe310e,VICTORY_SKIP_PIPELINES=4e296b1885c37b298bb272e763f76148ffe310e+ #454ffe310e+ #454 + #177vkCreateComputePipelines Exception 0xc0000005 in Unix callat frame 1425, about 64 s inThe last two had
VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chainsandVICTORY_NO_WATCHDOG=1. No Xid in the kernel log, memory peak under 9 GB, nothing incrashes.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
maincleanly (lower.rs: theLoweredtest 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 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 invkCreateComputePipelineshere (found offline withvictory 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 withXid 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.
@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.0bb64c56c8f0dcc30b0eb9bc12dc9f4e296b1885c37b29code=c000001d6a62009bc6a4146ecode=c000001d8bb272e763f76148code=c000001dAll 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
ae7e0bef6a9bc834358d48f39902c284f3d9218epatch 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_handlefails 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.
@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.0vs3.2.0(GE-Proton11-14) and testing Mesalavapipeas a software fallback.Environment
7.3.5-2-cachyos620.73.04, Vulkan1.4.363wine-11.22,DXVK v3.1.1-97-ga78a467cadb22be-pcos(dxgi,d3d11,d3d10core) +nvapi64.dll(DXVK_ENABLE_NVAPI=1)3.1.0(0bb64c56c8f0dcc,cachyos-11.0-20261015-slr) and3.2.0(cae8353ed7959c4+,GE-Proton11-14)main@ffe310e, plus local test offfe310e+ PR #177 (x86_64-pc-windows-msvcviacargo-xwin 0.24.1,rustc 1.98.1)1. Offline
shaders.rpfpipeline census on Ampere (vkd3d-proton 3.2.0+ PR #177)mainffe310e):victory.exe translate --pipelines --list --jobs 4 shaders.rpfcrashed invkCreateGraphicsPipelines(Exception 0xc000001don3.1.0;Exception 0xc0000005on3.2.0, both defaultVK_EXT_descriptor_heapandVKD3D_CONFIG=no_descriptor_heap, after 5,422.spvmodules wherespirv-valcaught the#177/#852OpAtomicUMax %floatfragment shader).--jobs 4,vkd3d-proton 3.2.0,VK_EXT_descriptor_heapenabled):exit=0, 0 exceptions / crashes. Full tally acrossshaders.rpf:2,132 Vs+10,099 Ps)Ms): 8,214 / 8,214 (100%)Cs): 1,121 / 1,441 (77.8%)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 byvkd3d-proton 3.2.0+ driver620.73.04.2. Live boot & Linux software-adapter checks
vkd3d-proton 3.1.0,diag, 75sSIGINT): passed cleanly with 0 crashes, reachingframe=1849at 29–30 fps,37/37shaders,0draws dropped, audio + settings/profile saves working, and opening world archives at+68s(#747heap cap1245184and#797textureformat=86/115logged;#829and#834did not hit).VICTORY_D3D12_WARP=1/ Mesalavapipeare not viable for software rendering here:EnumWarpAdapterreturns the hardware adapter withoutDXGI_ADAPTER_FLAG_SOFTWARE, whichvictory-gpurightly refuses (E_FAIL).llvmpipe(26.3.1,/usr/share/vulkan/icd.d/lvp_icd.json) exposesVK_EXT_mesh_shaderandVK_EXT_descriptor_heap, butvkd3d-proton 3.2.0logsNot possible to implement heap path on this GPU, cannot enable SM 6.6 (even withVKD3D_SHADER_MODEL=6_6;minSubgroupSize = maxSubgroupSize = 8,requiredSubgroupSizeStages = {FRAGMENT, COMPUTE}), and fails D3D12 init withE_INVALIDARG (0x80070057).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,5indirect draws queued/dropped without host GPU, and working music + dialogue audio viammdevapi.VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chainshas not been run yet.)@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, Wine11.22,vkd3d-proton 3.2.0,VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains,VICTORY_D3D12_DRED=1,Xidwatchdog):run3(ffe310e+ #177):frame=1505,0crashes,0Xids).48mesh =45 [mesh, pixel]+3 [mesh],64VS+PS,220CS,1VS);72CS refused solely for Ampere Wave64 (#817).767draws/frame, with2,589–5,080indirect draws/frame dropped because Wine'sd3dcompiler_47failed the argument clamp (E5005, fixed by#190).run4(ffe310e+ #177 + #347 + #190, cold caches):frame=1329,0crashes,0Xids,512host pipelines built including222mesh (168 [mesh, pixel]+54 [mesh]),58CS refused for Wave64#817).#190clamping live on GPU (0clamp failures), Stage (e) draws jumped >10× to7,823draws/frame (795.3 MBbuffer copies,1500.8 msGPU time); remaining3,509indirect drops were only downstream unready pipelines /prepare failed+ 5 first-time signatures.#347,host-pipelines.bin(39,224bytes,made=204,loaded=12cold) andearly-pipelines.txt(105early) saved cleanly.run5(ffe310e+ #177 + #347 + #190, warm caches):#347reloadedhost-pipelines.bin(39,224bytes) in ~55 ms (early=105) and hitmade=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),115pipelines built (34mesh),2Wave64 refusals, and0draws dropped without a host pipeline across all 11 logged FPS intervals (frames 1..1123).7,851 MiB), hitting an NVIDIA userspace crash at+66 s(01c0:err:vulkan:vkAllocateMemory Exception 0xc0000005 in Unix callduring placed 3D texture allocations,crashes.logabsent,0Xids).(Note on frame counts: max frames reached across
run3→run4→run5drop from1505→1329→1123because each Stage (e) frame performs ~10× more draw work once#190unlocksExecuteIndirect, and warm caches inrun5let streaming advance faster to the 8 GB VRAM ceiling — this is increased throughput/work per frame, not a regression.)run3,run4, andrun5, VRAM climbed to7,851 / 8,192 MiB(~96%):run3/run4, kernelNVRMloggedNV_ERR_NO_MEMORY/[nvidia-drm] Failed to allocate NVKMS video memory for GEM object, trying to fall back to sysmemandgpu_vaspace.c:4155/1846assertions cleanly (0Xids,0crashes for 120s).run5(warm caches, faster streaming), kernel loggedNVRMNV_ERR_NO_MEMORY(mem_desc.c:1196,system_mem.c:555) +x86/PAT: freeing invalid memtype [mem 0x00000000-0x00000fff]coinciding with NVIDIA driver'svkAllocateMemory Exception 0xc0000005on 15 GiB RAM — still with0Xids and no hang.Summary on Linux + Wine + RTX 3060 8GB: with
#177 + #190 + #347, the title reaches Stage (e) withExecuteIndirectactive, a fully-warm pipeline cache (100% early hits), and mesh pipelines building cleanly; the current bottleneck is 8 GB VRAM saturation (vkAllocateMemoryuserspace crash,0Xids), not shader translation or pipeline compilation.@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'swinedirectly. Series X files. Menus navigated withVICTORY_KEYS(Enter every 4 s).maind2a4bae, GE-Proton11-11 (old vkd3d-proton)Failed to find a common merge point) at4e296b1885c37b29, then8bb272e763f76148,24f989b98dcb03f0,3e828912260f63e1,6b48bef1005f4f2f,0e45e59e93b736e4,9aa3629668b8e7ab,a4b6503d37087340,1f69e52b2cb228b9,fb332f777bae57fband9e096a1111c6faaawhen each is skipped in turnmaind2a4bae, GE-Proton11-140e45e59e93b736e4and9aa3629668b8e7abwere not reached.9e096a1111c6faaais refused, the rest get host pipelines. The world load (story000*.rpf) then dies withvkCreateComputePipelines Exception 0xc0000005 in Unix call(afterd59ced807b1bfc3b,a1bf269d5b19f025,45b59cf5905ce5eain successive runs)ce945d6) ond2a4bae, GE-Proton11-14, no skipped pipelinesThe fault with #177:
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:58 UTC · original · edited 2026-11-24 17:51 UTC
Follow-up to my comment above: the fault at
+0x23cf683/+0x2215c35is 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:title watchdog hooks (VICTORY_NO_WATCHDOG) applied=2).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.winedbg bt allsamples 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 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 Faultfromtitle-main, as you described.Same setup (
d2a4bae+ #177 + #454,VICTORY_NO_WATCHDOG=1, GE-Proton11-14's vkd3d-proton) withVKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains:Xid 109 … CTX SWITCH TIMEOUTat 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.
@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/vkCreateGraphicsPipelinesunder 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:0xc000001don4e296b1885c37b29,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.0xc0000005). Still the case onmain(63bcca4): incrates/victory-shader/src/emit/lower.rsthe three handle caches ofLower(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.0xc0000005on driver 615.78.08). PR #259 for this was closed without merging, and its change is not onmain:Lower::descriptor_datastill queries the level count for every non-UAV image descriptor.mainbye04c078"a program's constant table starts after its instructions" (#2143). (b) The float atomic handles of cause 2. Withmain13f91ca+ #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:
mainemits 164 compute programs withWaveSize(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,vkAllocateMemoryon an 8 GB card, the black 3D scene) are separate problems.Generated by Claude Code
@neonbyte1 on GitHub · 2026-11-25 08:15 UTC · original
Data from an RTX 5090 under Wine, on
main940d32f.Setup: Linux 7.3.5, Wine 11.22, vkd3d-proton
cae8353ed(GE-Proton11-14, v3.1-83) and also vkd3d-proton masterec207194(2026-11-24 CI build), DXVKdxgi, 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
mainOn plain
940d32fthe process dies at frame 2 withvkCreateComputePipelines Exception 0xc0000005 in Unix call, every run. The pipeline is compute76c35de1c2444e67(CS_Primary_EstimateProbeShadingChange):image_atomic_addon a 3D UAV whose descriptor is also read for its dimensions.mainannotates that handle[4100, 1033](R32f), and the atomic reuses it, sinceLower::handlekeys the cache byprops.0only. dxil-spirv emitsOpAtomicIAdd %floaton anOpTypeImage %float … R32f, andspirv-val --target-env vulkan1.3rejects it withAtomicIAdd: expected Result Type to be integer scalar type.0x105(R32ui) when any consumer of that descriptor is an image atomic, the handle is[4100, 261], the SPIR-V isOpAtomicIAdd %uintand validates, and the pipeline is created.shaders.rpf(677 distinct load/atomic pairs). Atranslate --pipelinespass 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 todescriptor_datainemit/lower.rs, written against940d32f. 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,
mainloads and reaches world entry. Then, 1 to 2 s in, every run ends with: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, soVKD3D_CONFIG=breadcrumbsnames nothing.What does not change it (one run each unless noted; each still Xid 13 at world entry):
mainbut never did on our olderffe310e-based branch00167d58,f607780a,eeed82b8)VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chainsec207194instead of 3.1-83For comparison, our older branch (
ffe310eplus 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.
@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
940d32f6and #1722 atee84a448on 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.LoadComputePipelinereturned a miss, and the same worker then faulted insidevkCreateComputePipelinesduringCreateComputePipelineState. Wine recorded0xc0000005, a read from0x10atlibnvidia-gpucomp.so.620.73.04+0x55a954, immediately followed on the same thread byNtTerminateProcesswith 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.vkCreateComputePipelinesvkCreateGraphicsPipelinesvkCreateGraphicsPipelinesat the same compiler offsetThe 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.
@andyeox-systemd on GitHub · 2026-11-25 18:58 UTC · original
Found the cause, and a fix: #2723
The crash in
vkCreateComputePipelineson NVIDIA under Wine has two separate causes. I dumped every shader withVKD3D_SHADER_DUMP_PATHand checked it withspirv-val.dxvaccepts 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.AtomicOr/AtomicUMaxin SPIR-V. #177 fixed one handle cache.mainhas 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.
@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:
mainby #2143).5062bc7a48e842f8got a constant array covering its whole 21,632-byte program: 5,408 dwords, instead of only the 615-dword table after the code.5062bc7aitself never has to run: creating its pipeline is enough.940d32f, with the constant-table fix but only my single-cache fix from #177, it still faults at world entry (frame 1349).With both (
main13f91ca+ #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 masterec207194. They reach gameplay with lit windows and lines on screen, but nearby surfaces are still dark.Next blocker on NVIDIA: 32-lane waves.
mainemits 164 compute programs withWaveSize(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.