Linux / NVIDIA: XCL's cached driver blob plus a warm NVIDIA shader cache crashes in vkCreateGraphicsPipelines #2003
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#2003
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?
@itsd-effex on GitHub · 2026-11-25 00:37 UTC · original
Summary: on Linux / NVIDIA, a title run that gets both a driver blob from XCL's disk cache (
driver_cache, written byxcl pipelines) and a warm NVIDIA shader disk cache crashes invkCreateGraphicsPipelinesa 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 fullxcl 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).__GL_SHADER_DISK_CACHE=0)XCL_PSO_DISK_CACHE=0)Run 1, from
xcl.logand Wine's error channel: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. Twoxcl pipelinesruns earlier the same evening ended the same way (exit 3 within 15 s, the samevkCreateGraphicsPipelinesexception) while blobs from an earlier run and a warm NVIDIA cache were present.My reading, not verified: XCL hands vkd3d-proton the
CachedPSOblob saved byxcl 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
@humsterbumster on GitHub · 2026-11-25 02:48 UTC · original
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 on GitHub · 2026-11-25 03:35 UTC · original
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 on GitHub · 2026-11-25 05:10 UTC · original
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 on GitHub · 2026-11-25 06:00 UTC · original
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 on GitHub · 2026-11-25 08:07 UTC · original
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 #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.
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175