You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Linux / NVIDIA: XCL's cached driver blob plus a warm NVIDIA shader cache crashes in vkCreateGraphicsPipelines #2003
Summary: on Linux / NVIDIA, a title run that gets both a driver blob from XCL's disk cache (driver_cache, written by xcl pipelines) and a warm NVIDIA shader disk cache crashes in vkCreateGraphicsPipelines a few seconds in. Either one alone is fine. Workaround: XCL_PSO_DISK_CACHE=0.
Setup: CachyOS, Proton Experimental's Wine, vkd3d-proton ec207194 (+ #257's patch), RTX 3080 Ti (NVIDIA 620.73.04), retail 1.0.2.1. xcl: main62265d3 + #688 + #759 + #684 + #1660 + #1860, XCL_DIRECT_DXIL=1. Before the runs, a full xcl pipelines (58,804 made, 0 failed) with a private NVIDIA cache (__GL_SHADER_DISK_CACHE_PATH + __GL_SHADER_DISK_CACHE_SIZE, see this comment on #1269).
title run
XCL driver blobs
NVIDIA disk cache
result
1
on (default)
on (warm)
process ends with status 0x3 at 5.8 s
2
on
off (__GL_SHADER_DISK_CACHE=0)
ran 10+ min, big compiles 16 s median ("driver blob supplied")
3, 4
off (XCL_PSO_DISK_CACHE=0)
on (warm)
ran; 19 cache hits (≤ 12 ms) and 2 misses in the first 70 s
Run 1, from xcl.log and Wine's error channel:
[ 5.808][ 404][ERROR] process ends with status 0x3 (thread 404); on the stack: d3d12core.dll+0x43c36, kernel32.dll+0x1a2de, winevulkan.dll+0x11ce0, d3d12core.dll+0x4f8ca, …, d3d12core.dll+0x54499, …, xcl.exe+0x6ab193, …
err:vulkan:vkCreateGraphicsPipelines Exception 0xc0000005 in Unix call.
Symbolized against the vkd3d-proton build (same code path in an earlier crash of this kind): d3d12_device_CreateGraphicsPipelineState → d3d12_pipeline_state_create → d3d12_pipeline_state_create_pipeline_variant → winevulkan, i.e. an access violation in the NVIDIA driver while creating a graphics pipeline from the supplied cached blob. Two xcl pipelines runs earlier the same evening ended the same way (exit 3 within 15 s, the same vkCreateGraphicsPipelines exception) while blobs from an earlier run and a warm NVIDIA cache were present.
My reading, not verified: XCL hands vkd3d-proton the CachedPSO blob saved by xcl pipelines; with the driver's own cache warm, the driver crashes on it. Whether the blob is stale for this run, or this is a driver/vkd3d-proton bug XCL should work around, I haven't established.
Not tested: native Windows, AMD, other drivers, which pipeline it is (the log names none), whether blobs written by the same build and run settings as the title avoid it.
AI use
Claude Code (Claude Opus 5.5) ran the runs, read the logs and wrote this issue.
Independent confirmation on a different Ada/Blackwell-class box: this is exactly what stops the retail title here, and turning both caches off makes it go away.
With the caches on (defaults, XCL_PSO_DISK_CACHE unset, NVIDIA shader disk cache warm from earlier runs): the title reaches the first-run flow and dies 10-20 s after "Confirm setup and start the game", and sometimes already during the startup shader-load burst:
err:vulkan:vkCreateComputePipelines Exception 0xc0000005 in Unix call.
xcl: process ends with status 0x3; on the stack: winevulkan.dll+0x20071, ... d3d12core.dll+0x5de100, ...
It is the PSO-build thread (D3D12.X: a pipeline still being built after 50 ms ... a few lines before, and the last successful build is logged as compute PSO with the translated console CS (... B DXIL, ... the driver's blob of an earlier build)). Reusing the data root after such a run makes the next one abort before a window exists.
With XCL_PSO_DISK_CACHE=0 + __GL_SHADER_DISK_CACHE=0 (+ XCL_PSO_PRELOAD=0): the same build, same package, same data root runs the whole first-run flow — account picker, UI/text size, brightness, legal notices, privacy/ToS accept, "Confirm setup and start the game", loading — with no Vulkan exception and no abort. The next failure is a different one (#916 territory: split command list (type 2) around mid-list Wait after Write64 (#1) -> process ends with status 0x3).
So: same signature, same workaround, and on this box it is the gate between menus and the world load. Worth documenting the pair (XCL_PSO_DISK_CACHE=0 + __GL_SHADER_DISK_CACHE=0) as the workaround for NVIDIA users, since one leg with only the driver blob cache off (XCL_PSO_DISK_CACHE=0, NVIDIA cache warm, WINEDEBUG=err+all) still aborted at startup with the same vkCreateComputePipelines exception.
AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.
Follow-up after longer runs on the same box: the workaround is necessary here but not sufficient, and it is the same AV class once the title is actually loading the world.
With XCL_PSO_DISK_CACHE=0 + __GL_SHADER_DISK_CACHE=0 + XCL_PSO_PRELOAD=0 + XCL_SPLIT_MIDLIST_WAIT=0 (and a saved profile, so no wizard), the run gets through the first-run flow and into the story load: menus at 28-30 fps, the loading screen at 2-10 fps, 80,774 draws through translated pipelines (512 skipped), 8,110 dispatches. Then, 200-300 s in, process ends with status 0x3 again, with the same shape of stack:
xcl.exe+0x1531da is nearest xcl::hle::d3d12x::real::finish_two_pass+0xf4a (nm -C --defined-only xcl.exe; addr2line gives nothing for this PE),
d3d12core.dll+0x4d7cb is inside d3d12_pipeline_state_create in the vkd3d-proton build,
so the failing side is again a pipeline build going into the driver, not a stale blob being loaded.
With the same settings plus WINEDEBUG=err+all (which slows the PSO workers) two runs ended earlier, at 193 s and 256 s, with the literal message err:vulkan:vkCreateComputePipelines Exception 0xc0000005 in Unix call. - i.e. on a cold cache after dozens of successful builds.
Video memory at the end: 12.7-13.9 GB local, 1.4-4.5 GB non-local of 32 GB, so it is not exhaustion. Build: vkd3d-proton 4522cc1a8b1347f+ (v3.1 + only the #175 relaxed-vtable patch). Driver 620.73.04.
Trying the stock vkd3d-proton in the prefix instead (the Oct 27 build under /fast/proton/files) dies within seconds on the vtable checks the #175 patch removes, so that is not an option here.
AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.
Follow-up: on this box the vkCreateComputePipelines AV stops happening with vkd3d-proton master (3.2.0), and the next wall is on the title's side.
What was built
Upstream master ec20719 (PACKAGE_VERSION 3.2.0), cross-built for x86_64-pc-windows-gnu with --buildtype release --strip -Db_ndebug=true plus the two-hunk relaxed-vtable change the Linux notes describe for v3.1 (d3d12_command_allocator_from_iface no longer compares the vtable, d3d12_command_list_from_iface accepts the extended list). Submodules: Vulkan-Headers ee2ec5f, SPIRV-Headers f88a2d7, dxil-spirv 7c04863. Resulting d3d12core.dll: 9,054,325 B, sha256 2ce1205ec72eae9c1e7dcd9d93ab398183eacb09e0570c18b8279ad99ea27cec.
Two things are needed to build it with mingw-w64 13 that the v3.1 recipe does not mention: windres in the cross file, and dxil-spirv needs a newer SPIRV-Headers than the one the parent pins (its own third_party/spirv-headers must point at a tree with DecorationUTFEncodedKHR). And -Db_ndebug=true is not optional: with asserts left on the build aborts ~2.3 s in, right after the title's first heap is wrapped, through msvcrt — the vtable assertions that the patch relaxes are still reached from other objects.
377 s, 0xc0000005 read at 0xffffffffffffffff in game+0x4f28df1 (rax=0xe5e0c0c0aaaaaaae — a poison pattern, so a title-side read of memory it never wrote)
None of the three logs contains err:vulkan:vkCreateComputePipelines Exception 0xc0000005 or process ends with status 0x3. With 3.1 + the same patch the AV came back in every leg (193, 200, 242, 256, 331 s), so the version change is what moved the stop, not the environment. single_queue changes neither the timing nor the failure shape.
What the 3.2.0 legs do show
Menus: 30.0 fps, steady (60 presents / 2 s).
Story phase: 0-2 presents per 2 s and a black screen — where 3.1 drew the loading artwork at 4.5 fps. 298-355 translated compute PSOs built, 13.8-15.2 GB local VRAM, no device removal, no 0x887a0006.
Skipped work is a knob, not the cause: with XCL_PSO_WAIT_MS=50 the run reports 65,848 draws with translated pipelines (61,978 skipped, 8,761 PC) and 90,508 dispatches (60,572 skipped); with 500 ms the same phase reports 84,610 draws (2,048 skipped) — and the screen is equally black. So the black frame is not missing draws.
Repeated D3D12.X: Write64 Signal ... would close a GPU cycle (waiters=...) – signalled on CPU warnings throughout, which 3.1 did not print.
So for this title + this driver: 3.1 (even with both caches off) is not enough on its own here, and 3.2.0 is where the pipeline-build AV stops reproducing. What is left is a title-side failfast/AV after ~6 minutes of prestream with everything idle, which needs its own issue; I am not claiming it is the same defect.
AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.
Correction to a detail in my previous comment: the 3.2.0 legs are not black for the whole story phase. Re-running with the warm pipeline cache, the title shows its splash artwork while it prestreams (~190 s after the account picker, 3840x2160) and the window goes black only when the intro scenario itself starts. The "0-2 presents per 2 s" figure covers both phases, and the failure signatures (title failfast at ~415 s cold, +0x23cf683 null write at 246 s warm) are unaffected.
A v3.1-based data point (no crash with both caches on), and what the kept blobs are on this stack: 112-byte stubs. The offline pass and the title also use different vkd3d-proton cache files.
Setup: RTX 4070 Ti 12 GB (NVIDIA 620.73.04), CachyOS kernel 7.3.5, Proton Experimental's Wine (wine-11.0), vkd3d-proton v3.1 + scripts/linux/vkd3d-proton-xcl.patch, dxil-spirv 53aac418 + the fix of 7f5a7780. Local stack on main9e3831e (+ #1315/#1316, #867, #871, #877, #1321, #684, #640, #605, #495, #1420, #1368's line), HLSL path (XCL_DIRECT_DXIL unset), blobs from xcl shaders --precompile --pipelines --only cs (not xcl pipelines). A private NVIDIA cache (__GL_SHADER_DISK_CACHE_PATH, 1.5 GB by now).
No crash here. 15 title runs and the offline passes with XCL's driver blobs on and the NVIDIA cache warm: no vkCreate…Pipelines Exception line in any log. So the crash may need vkd3d-proton master, graphics blobs from xcl pipelines, or XCL_DIRECT_DXIL=1; I have none of the three.
The blobs are stubs. 1,941 of the 1,948 files in driver are 112 bytes: vkd3d-proton's header and compatibility chunk, no SPIR-V. The other 7 (1.0–4.7 MB) are from one pass I ran with vkd3d-proton's own cache off (VKD3D_SHADER_CACHE_PATH=0): then the blob is complete, and a second pass was fast from XCL's blobs alone, with NVIDIA's cache off too (9 pipelines: 52.1 s, then 3.4 s). With VK_EXT_shader_module_identifier it keeps shader identifiers in its own vkd3d-proton.cache and expects the driver's cache to hold the code. VKD3D_CONFIG=…,pipeline_library_log shows it: [IDENTIFIER] Successfully created compute pipeline from identifier 2,780 times, [IDENTIFIER] None compute 250 times in one title run.
Two cache files. vkd3d-proton keeps that file in the working directory. For the title that is its overlay folder (<data root>/<package>/overlay/vkd3d-proton.cache); for xcl shaders it was wherever I started it. So for every program the pass had built, the title translated DXIL to SPIR-V again (the compacted CS_ScreenProbes_ActivateProbes of Recompiler: route compute programs through a compact backend (XCL_COMPACT_CS) #1316 alone: 267 s in dxil-spirv). After running the pass with the title's overlay folder as its working directory: 3,242 compute pipelines from an identifier, 0 without (before: 3,034 and 219). With VKD3D_SHADER_CACHE_PATH set, vkd3d-proton names the file after the program (vkd3d-proton.xcl.exe.cache).
A run that is killed loses the identifiers vkd3d-proton had not flushed yet (it flushes when pipeline creation pauses), while XCL's stub and the driver's code are already on disk.
For #2125: on this stack XCL_PSO_DISK_CACHE=0 would cost little, since the stubs carry nothing; what makes a second run fast is the pair vkd3d-proton cache + NVIDIA cache.
Activity
humsterbumster commentedon Nov 25, 2026
Independent confirmation on a different Ada/Blackwell-class box: this is exactly what stops the retail title here, and turning both caches off makes it go away.
Setup: RTX 5090 32 GB, driver 620.70.06, CachyOS/Arch kernel 7.3.5, Proton 11 (Wine 11), vkd3d-proton
ec207194+scripts/linux/vkd3d-proton-xcl.patch,VKD3D_CONFIG=ignore_shared_fence,XCL_DIRECT_DXIL=1,XCL_PSO_WAIT_MS=50.mainaa9ab8a, local release build.With the caches on (defaults,
XCL_PSO_DISK_CACHEunset, NVIDIA shader disk cache warm from earlier runs): the title reaches the first-run flow and dies 10-20 s after "Confirm setup and start the game", and sometimes already during the startup shader-load burst:It is the PSO-build thread (
D3D12.X: a pipeline still being built after 50 ms ...a few lines before, and the last successful build is logged ascompute PSO with the translated console CS (... B DXIL, ... the driver's blob of an earlier build)). Reusing the data root after such a run makes the next one abort before a window exists.With
XCL_PSO_DISK_CACHE=0+__GL_SHADER_DISK_CACHE=0(+XCL_PSO_PRELOAD=0): the same build, same package, same data root runs the whole first-run flow — account picker, UI/text size, brightness, legal notices, privacy/ToS accept, "Confirm setup and start the game", loading — with no Vulkan exception and no abort. The next failure is a different one (#916 territory:split command list (type 2) around mid-list Wait after Write64 (#1)->process ends with status 0x3).So: same signature, same workaround, and on this box it is the gate between menus and the world load. Worth documenting the pair (
XCL_PSO_DISK_CACHE=0+__GL_SHADER_DISK_CACHE=0) as the workaround for NVIDIA users, since one leg with only the driver blob cache off (XCL_PSO_DISK_CACHE=0, NVIDIA cache warm,WINEDEBUG=err+all) still aborted at startup with the samevkCreateComputePipelinesexception.AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.
humsterbumster commentedon Nov 25, 2026
Follow-up after longer runs on the same box: the workaround is necessary here but not sufficient, and it is the same AV class once the title is actually loading the world.
With
XCL_PSO_DISK_CACHE=0+__GL_SHADER_DISK_CACHE=0+XCL_PSO_PRELOAD=0+XCL_SPLIT_MIDLIST_WAIT=0(and a saved profile, so no wizard), the run gets through the first-run flow and into the story load: menus at 28-30 fps, the loading screen at 2-10 fps,80,774draws through translated pipelines (512 skipped),8,110dispatches. Then, 200-300 s in,process ends with status 0x3again, with the same shape of stack:xcl.exe+0x1531dais nearestxcl::hle::d3d12x::real::finish_two_pass+0xf4a(nm -C --defined-only xcl.exe;addr2linegives nothing for this PE),d3d12core.dll+0x4d7cbis insided3d12_pipeline_state_createin the vkd3d-proton build,With the same settings plus
WINEDEBUG=err+all(which slows the PSO workers) two runs ended earlier, at 193 s and 256 s, with the literal messageerr:vulkan:vkCreateComputePipelines Exception 0xc0000005 in Unix call.- i.e. on a cold cache after dozens of successful builds.Video memory at the end: 12.7-13.9 GB local, 1.4-4.5 GB non-local of 32 GB, so it is not exhaustion. Build: vkd3d-proton
4522cc1a8b1347f+(v3.1 + only the #175 relaxed-vtable patch). Driver 620.73.04.Trying the stock vkd3d-proton in the prefix instead (the Oct 27 build under
/fast/proton/files) dies within seconds on the vtable checks the #175 patch removes, so that is not an option here.AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.
humsterbumster commentedon Nov 25, 2026
Follow-up: on this box the
vkCreateComputePipelinesAV stops happening with vkd3d-proton master (3.2.0), and the next wall is on the title's side.What was built
Upstream master
ec20719(PACKAGE_VERSION 3.2.0), cross-built forx86_64-pc-windows-gnuwith--buildtype release --strip -Db_ndebug=trueplus the two-hunk relaxed-vtable change the Linux notes describe for v3.1 (d3d12_command_allocator_from_ifaceno longer compares the vtable,d3d12_command_list_from_ifaceaccepts the extended list). Submodules: Vulkan-Headersee2ec5f, SPIRV-Headersf88a2d7, dxil-spirv7c04863. Resultingd3d12core.dll: 9,054,325 B, sha2562ce1205ec72eae9c1e7dcd9d93ab398183eacb09e0570c18b8279ad99ea27cec.Two things are needed to build it with mingw-w64 13 that the v3.1 recipe does not mention:
windresin the cross file, and dxil-spirv needs a newer SPIRV-Headers than the one the parent pins (its ownthird_party/spirv-headersmust point at a tree withDecorationUTFEncodedKHR). And-Db_ndebug=trueis not optional: with asserts left on the build aborts ~2.3 s in, right after the title's first heap is wrapped, throughmsvcrt— the vtable assertions that the patch relaxes are still reached from other objects.Runs (RTX 5090, NVIDIA 620.73.04, Wine 11 / Proton 11,
VKD3D_CONFIG=ignore_shared_fence,XCL_PSO_DISK_CACHE=0,__GL_SHADER_DISK_CACHE=0,XCL_PSO_PRELOAD=0,XCL_SPLIT_MIDLIST_WAIT=0, 4096 MB page budget / 1024 MB coherent, saved profile)XCL_PSO_WAIT_MS=500x80000003atgame+0x4da6315(STATUS_BREAKPOINT,rax=2,rdx=0xffffffff)XCL_PSO_WAIT_MS=500XCL_PSO_WAIT_MS=50+VKD3D_CONFIG=ignore_shared_fence,single_queue0xc0000005read at0xffffffffffffffffingame+0x4f28df1(rax=0xe5e0c0c0aaaaaaae— a poison pattern, so a title-side read of memory it never wrote)None of the three logs contains
err:vulkan:vkCreateComputePipelines Exception 0xc0000005orprocess ends with status 0x3. With 3.1 + the same patch the AV came back in every leg (193, 200, 242, 256, 331 s), so the version change is what moved the stop, not the environment.single_queuechanges neither the timing nor the failure shape.What the 3.2.0 legs do show
0x887a0006.XCL_PSO_WAIT_MS=50the run reports 65,848 draws with translated pipelines (61,978 skipped, 8,761 PC) and 90,508 dispatches (60,572 skipped); with 500 ms the same phase reports 84,610 draws (2,048 skipped) — and the screen is equally black. So the black frame is not missing draws.D3D12.X: Write64 Signal ... would close a GPU cycle (waiters=...) – signalled on CPUwarnings throughout, which 3.1 did not print.So for this title + this driver: 3.1 (even with both caches off) is not enough on its own here, and 3.2.0 is where the pipeline-build AV stops reproducing. What is left is a title-side failfast/AV after ~6 minutes of prestream with everything idle, which needs its own issue; I am not claiming it is the same defect.
AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.
humsterbumster commentedon Nov 25, 2026
Correction to a detail in my previous comment: the 3.2.0 legs are not black for the whole story phase. Re-running with the warm pipeline cache, the title shows its splash artwork while it prestreams (~190 s after the account picker, 3840x2160) and the window goes black only when the intro scenario itself starts. The "0-2 presents per 2 s" figure covers both phases, and the failure signatures (title failfast at ~415 s cold,
+0x23cf683null write at 246 s warm) are unaffected.AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class.
voiceovarian1-max commentedon Nov 25, 2026
A v3.1-based data point (no crash with both caches on), and what the kept blobs are on this stack: 112-byte stubs. The offline pass and the title also use different vkd3d-proton cache files.
Setup: RTX 4070 Ti 12 GB (NVIDIA 620.73.04), CachyOS kernel 7.3.5, Proton Experimental's Wine (wine-11.0), vkd3d-proton v3.1 +
scripts/linux/vkd3d-proton-xcl.patch, dxil-spirv53aac418+ the fix of7f5a7780. Local stack onmain9e3831e(+ #1315/#1316, #867, #871, #877, #1321, #684, #640, #605, #495, #1420, #1368's line), HLSL path (XCL_DIRECT_DXILunset), blobs fromxcl shaders --precompile --pipelines --only cs(notxcl pipelines). A private NVIDIA cache (__GL_SHADER_DISK_CACHE_PATH, 1.5 GB by now).vkCreate…Pipelines Exceptionline in any log. So the crash may need vkd3d-proton master, graphics blobs fromxcl pipelines, orXCL_DIRECT_DXIL=1; I have none of the three.driverare 112 bytes: vkd3d-proton's header and compatibility chunk, no SPIR-V. The other 7 (1.0–4.7 MB) are from one pass I ran with vkd3d-proton's own cache off (VKD3D_SHADER_CACHE_PATH=0): then the blob is complete, and a second pass was fast from XCL's blobs alone, with NVIDIA's cache off too (9 pipelines: 52.1 s, then 3.4 s). WithVK_EXT_shader_module_identifierit keeps shader identifiers in its ownvkd3d-proton.cacheand expects the driver's cache to hold the code.VKD3D_CONFIG=…,pipeline_library_logshows it:[IDENTIFIER] Successfully created compute pipeline from identifier2,780 times,[IDENTIFIER] None compute250 times in one title run.<data root>/<package>/overlay/vkd3d-proton.cache); forxcl shadersit was wherever I started it. So for every program the pass had built, the title translated DXIL to SPIR-V again (the compactedCS_ScreenProbes_ActivateProbesof Recompiler: route compute programs through a compact backend (XCL_COMPACT_CS) #1316 alone: 267 s in dxil-spirv). After running the pass with the title's overlay folder as its working directory: 3,242 compute pipelines from an identifier, 0 without (before: 3,034 and 219). WithVKD3D_SHADER_CACHE_PATHset, vkd3d-proton names the file after the program (vkd3d-proton.xcl.exe.cache).For #2125: on this stack
XCL_PSO_DISK_CACHE=0would cost little, since the stubs carry nothing; what makes a second run fast is the pair vkd3d-proton cache + NVIDIA cache.Not tested: vkd3d-proton master,
XCL_DIRECT_DXIL=1,xcl pipelines(#759), graphics blobs, AMD.AI use: Claude Code (Claude Fable 5.2) ran the runs and wrote this report; posted with the account owner's approval.