Skip to content

Linux / NVIDIA: XCL's cached driver blob plus a warm NVIDIA shader cache crashes in vkCreateGraphicsPipelines #2003

Backlog

Description

@itsd-effex

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: main 62265d3 + #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.

Activity

  1. humsterbumster commented on Nov 25, 2026

    @humsterbumster

    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. main aa9ab8a, local release build.

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions