Skip to content

Retail title 1.0.2.1 on Linux + vkd3d-proton 3.2.0: the world loads, then the title failfasts at +0x4da6315 (or #675's +0x23cf683 with a warm pipeline cache) #2140

Backlog

Description

@humsterbumster

Game and package version

Retail title 1.0.2.1 (930.048.020-vb_sub_story, Sandbox RETAIL, Conole Type Anaconda), owned and fully downloaded.

What happens

Linux, NVIDIA. With vkd3d-proton master (3.2.0) the retail title gets much further than it does on the pinned 3.1 build: menus hold 30.0 fps, the story prestreams, the title's own diagnostics report a running world (its crash report lists Game State: Game Running, a player position, 40 peds, 60 cars, 9451 objects, 1407 lights, Current SRL State: Prestream), and then the title ends the run itself, three different ways across runs:

  • cold pipeline cache, 0x80000003 at game_scarlett_master.exe+0x4da6315 at 417 s and again at 414 s (rax=2, rdx=0xffffffff / 0xaaaa..., STATUS_BREAKPOINT);
  • warm pipeline cache (a previous run's vkd3d-proton.cache.write promoted to vkd3d-proton.cache), 0xc0000005 write at address 0x0 in game_scarlett_master.exe+0x23cf683 at 246 s — issue Retail title 1.0.2.1: GPU hang / crash at +0x23cf683 when the story loads (RTX 3070 Ti) #675's address, on a 5090;
  • plain exit rc=1 at 564 s / 423 s with no exception line in the log.

Expected: the intro plays and the world is drawn; here the window shows the splash artwork while prestreaming (~190 s after the account picker) and goes black when the intro scenario starts, with 0-2 presents per 2 s while the GPU queues are idle.

XCL version

aa9ab8a (clean tree, xcl.exe sha256 637dc4a402faf7404bbc...), --target x86_64-pc-windows-gnu, Wine 11 / Proton 11.

GPU and driver version

NVIDIA GeForce RTX 5090 32 GB, driver 620.73.04 (Linux). vkd3d-proton master ec20719 = PACKAGE_VERSION 3.2.0, built with --buildtype release --strip -Db_ndebug=true plus the two-hunk relaxed-vtable change (the one the Linux notes describe for v3.1, in d3d12_command_allocator_from_iface / d3d12_command_list_from_iface); d3d12core.dll sha256 2ce1205ec72eae9c1e7dcd9d93ab398183eacb09e0570c18b8279ad99ea27cec. -Db_ndebug=true is required: with asserts on, the build aborts ~2.3 s in through msvcrt, right after the first heap is wrapped.

Windows version

Linux (Arch, kernel 7.3.5) — Wine 11 / Proton 11, not Windows.

What was ruled out

  • The driver-side AV that killed every 3.1 leg here (err:vulkan:vkCreateComputePipelines Exception 0xc0000005 in Unix call at 193, 200, 242, 256 and 331 s) does not appear in any 3.2.0 log.
  • Not exhaustion: 13.8-15.2 GB local VRAM of 32 GB.
  • Not skipped draws: XCL_PSO_WAIT_MS=50 gives 61,978 skipped draws / 90,508 dispatches, XCL_PSO_WAIT_MS=500 gives 2,048 skipped of 84,610 — same outcome.
  • Not the data: the package repaired to 100 % and +0x22106e0 (which a corrupt piece caused) is gone.
  • VKD3D_CONFIG=ignore_shared_fence,single_queue changes neither timing nor failure shape.

Reproducing

VKD3D_CONFIG=ignore_shared_fence, XCL_PSO_DISK_CACHE=0, __GL_SHADER_DISK_CACHE=0, XCL_PSO_PRELOAD=0, XCL_SPLIT_MIDLIST_WAIT=0, XCL_COHERENT_MB=1024, saved profile, press A once the account picker is up (early presses are dropped), then watch. Cold runs fail in the title at ~7 min; with a warm vkd3d-proton pipeline cache the same run fails ~4 min in at +0x23cf683.

I am not attaching xcl.log / report.json: they carry the title's own strings and paths. Everything above was read from them locally; I can quote specific lines on request.

AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.

Activity

  1. YaBulochka commented on Nov 25, 2026

    @YaBulochka

    One more Linux stop site for the list, from AMD/RADV, so the picture is not NVIDIA-only.

    Setup. Linux, RADV 26.99.99, Radeon RX 7600 XT (NAVI33), Wine 11.22, vkd3d-proton master. Tree: myokex/victory-amd at 070df42 (AMD-oriented fork of fxceless/victory-fork) - our own upstream tree on the same machine loses the device instead.

    Where it ends:

    first-chance exception 0x80000003 at victory-image-...dll+0x19b5024
    

    0x80000003 is STATUS_BREAKPOINT, the title's own fail-fast, at the cutscene-to-gameplay handoff. Before it:

    • 542 mesh pipelines, ~700 draws/frame, 1.1 fps;
    • no DXGI_ERROR_DEVICE_REMOVED at any point in the run (our upstream tree gets 0x887A0005 at a similar frame time);
    • the presented frame is white throughout, same shape as the fork's own Windows note;

    So this is a third address next to your +0x4da6315 and +0x23cf683, and the first one observed without a device removal first. I have not looked at what +0x19b5024 checks, so I am only adding the address and the state, not a theory.

    No game files, no captures, counts and the fault line only.

  2. YaBulochka commented on Nov 25, 2026

    @YaBulochka

    Short addition: the +0x4da6315 breakpoint is not NVIDIA-specific. On Linux/RADV the JMAN730/project-flamingo tree (5c7e5d2, Wine 11.22, vkd3d-proton master, RX 7600 XT) stops at exactly the same address after ~5-6 minutes in the world:

    0x80000003 at victory-image-...dll+0x4da6315
    

    followed by 0xc0000005 (read 0x34) at +0x4f36bb1. No device removal before it, and no timeline timeout in the log (0 lines).

    So there are now two independent hosts reaching the same stop: NVIDIA on vkd3d-proton 3.2, and RADV on master. That makes it look like the title's own check rather than a driver path.

  3. ClosetPie107 commented on Nov 25, 2026

    @ClosetPie107

    Another AMD / Linux (RADV) data point hitting the exact same +0x4da6315 stop — this time on RDNA4 (main 06c9f55 + #2306 with XCL_TEXTURE_LEVEL_PAGES=1):

    Setup

    Where it ends (111 s)

    Game exited with code 0xc0000094 (3221225620)
    CRASH: unhandled exception 0x80000003 in game_scarlett_master.exe+0x4da6315 rax=0x4 rbx=0x3f69858 rcx=0x646fbac0 rdx=0x785c57db524762a8 ...
    on the stack: game_scarlett_master.exe+0x4da62b9, game_scarlett_master.exe+0x4da63cc, game_scarlett_master.exe+0x44e66d, game_scarlett_master.exe+0x7947bb, game_scarlett_master.exe+0x54c028, game_scarlett_master.exe+0x54c00a
    
    • Before the breakpoint: 1,800+ frames presented, 49,111 draws (20 skipped), 114,950 dispatches (64 skipped), 176 split compute programs / 2,584 chained dispatches, 0 device removals, 12.0 GiB system RAM still free, VRAM 15,947 MiB at exit (11.6 GiB through world setup thanks to #2306).

    That makes three distinct Linux GPUs/trees (RTX 5090, RX 7600 XT, RX 9070 — on both HLSL and XCL_DIRECT_DXIL=1) stopping at +0x4da6315 with no prior device removal.

    AI use: T3 Code / Antigravity (Gemini 4 Neon) ran this test on this machine and drafted this comment. No game data attached.

  4. Royalflamejlh commented on Nov 25, 2026

    @Royalflamejlh
    Contributor

    The title's own crash report showed the same state on a 16 GB card with vkd3d-proton 3.1: Game State: Game Running, with the intro prestreaming, in 3 of 3 runs on main 426a5a7 with four open pull requests merged, among them our #2118. 1 of the 3 then ended at your +0x4da6315 (rax=0x2, rdx=0xffffffffdefbe73c, #1164's assert); the other two at game+0x524aece and game+0x3bf4. None of the three logged the vkCreateComputePipelines exception you saw on 3.1, and none lost the device.

    Setup: RTX 4060 Ti 16 GB (NVIDIA 615.71.09), Wine 11.21 Staging, vkd3d-proton v3.1-90-g30b0eb9b with #175's vtable patch, dxil-spirv e084e35c plus four patches. XCL main 426a5a7 + #684 + #751 + #2118 b7d0ef2 + #1798 (local merge). XCL_DIRECT_DXIL=1 XCL_HUGE_PSO_WANTED_CONCURRENCY=6 XCL_PSO_DISK_CACHE=0 XCL_DXC_THREADS=4 XCL_SKIP_BINK=1; NVIDIA's shader cache in one folder, filled from empty by six earlier runs of the tree without #751 and kept from run to run. A pressed once, at 16.4 s, as soon as the title presented steadily; first-run screens completed once, no story progress; 300 s asked.

    run presents after the compute burst crash report end
    1 47 in 14 windows of 2 s, to 148.2 s 0h:2m:25s, Frame: 622 0xc0000005 in game+0x524aece on eight title threads at 147.1 s (seven reads at 0xffffffffffffffff)
    2 71 in 16 windows, to 126.2 s 0h:2m:3s, Frame: 643 0x80000003 in game+0x3bf4 at 124.9 s, then game+0x2215c35
    3 134 in 29 windows, to 150.2 s 0h:2m:29s, Frame: 692 0x80000003 in game+0x4da6315 at 148.8 s, then 0xc0000005 in game+0x4ed80c0 (read at 0x8) at 150.7 s

    Not tested: current main 06c9f55 and #2118's head b1e8457; vkd3d-proton 3.2.0; the standard dxil-spirv; a cold cache; #1405 or #1599; Windows.

    AI use: Claude Code (Claude Fable 5.2) merged the tree and made the runs; Claude Code (Claude Opus 5.5) read the logs and the crash reports and wrote this.

    Posted without review by a person: the account owner was away and reads replies later.

  5. humsterbumster commented on Nov 25, 2026

    @humsterbumster
    Author

    A/B with #1405 + #684 on today's main, Linux/NVIDIA — the wall on this box is the device removal, not +0x4da6315, and #1405 is the change that moves it.

    Setup (all legs). RTX 5090 32 GB, driver 620.73.04, Linux, Wine 11 / Proton 11, XCL main 3f4495a (236 commits past the report above, so #2080 direct-DXIL splitting is in), vkd3d-proton master ec20719 (3.2.0 + the two-hunk relaxed-vtable change, -Db_ndebug=true), XCL_DIRECT_DXIL=1, VKD3D_CONFIG=ignore_shared_fence, XCL_PSO_DISK_CACHE=0, XCL_SPLIT_MIDLIST_WAIT=0, XCL_COHERENT_MB=1024, cold data root from a saved profile each run, one A press once the account picker is up.

    tree xcl.exe sha256 end
    main 4dd4a940… menus 30.0 fps, 305 translated compute PSOs, then D3D12 device removed: 0x887a0005 at 349 s
    main + #1405 + #684 c074d2e4… 0 device removals in 684 s (stopped by hand), 16 DirectStorage: N page lists written after their request was enqueued lines, still 0 presents / black window
    main + #1405 + #684 + #541 + #1803 2d616447… 0x887a0005 again at 344 s

    In both legs that lost the device, the last thing before it is

    D3D12.X: 1 writes after the GPU so far done although their queue had not got there after 10000 ms (fence at 4741, wanted 4742)
    D3D12 device removed: 0x887a0005
    unhandled exception 0x80000003 in game_scarlett_master.exe+0x2474606
    

    i.e. a fence the GPU never reached in 10 s, then the title taking its crash-report path at +0x2474606 (#1508's address). That matches jessenic's DMA-fault finding and gigabyteZ390's reading of +0x2474606 as a symptom rather than the cause.

    Two things worth keeping from this:

    • On 3f4495a the title's +0x4da6315 did not appear in any leg — it was reproducible (417 s and 414 s) on aa9ab8a. The stop moved to 0x887a0005 → +0x2474606 with the newer tree.
    • #1405 is not a cure on its own (the 344 s leg above carries it), but it is the only difference between the run that kept the device for 684 s and the one that lost it at 349 s on the same machine, same caches, same press timing. Its page-list re-reads are visible in the log, so the requests are landing where the title intends.

    I am continuing with the in-world stack (#541/#1803 already merged locally, #2092 skipped because main's slab splitting supersedes it, #640 needs a rebase onto main's pool refactor).

    AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.

  6. humsterbumster commented on Nov 25, 2026

    @humsterbumster
    Author

    Follow-up: the device removal tracks the driver compiles, not any particular dispatch.

    Four legs, same machine and build stack as above, all with an A press once the picker is up:

    leg vkd3d pipeline cache driver compiles end
    w4d cold 40 0x887a0005 at 328 s
    w4s cold + XCL blob cache on 40 (2 blob hits) 0x887a0005 at 338 s
    w4w warm (238 KB vkd3d-proton.cache.write promoted) 16 no removal; 0xc0000005 in msvcrt.dll+0xa4fb, read at 0x783820000, at 267 s
    w4n warm 45 no removal; alive at 550 s, idle with 0 presents, 0 submits between gated (waited 26–37 s) compile waits

    The removals land within a few seconds of a large build starting or finishing — in w4d a 2,420,640 B DXIL compute PSO at 323.7 s, then the title's activity drops to 0 draws and the device goes at 328.5 s. In both legs that lost the device the fence the title waited on never advanced in 10 s (1 writes after the GPU ... after 10000 ms), which is the DMA-fault picture jessenic described rather than a page fault from the world geometry.

    Cutting the compile set with a warm pipeline cache removes the removal in 2 of 2 legs here. It does not get to a rendered frame: the run either idles in the title's own gated waits or faults inside msvcrt on a host-side copy.

    XCL's own driver blob cache (%LOCALAPPDATA%\XCL\dxil\driver, on unless XCL_PSO_DISK_CACHE=0) keeps a file per translated pipeline, but 557 of them here are 112-byte stubs, i.e. the driver refused nearly all serialized blobs, so successive runs barely benefit (2 hits).

    AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.

  7. humsterbumster commented on Nov 25, 2026

    @humsterbumster
    Author

    The compile correlation above has its cause: #2403 — NVIDIA keeps pipeline machine code in one 512 MB heap and silently removes the device when a submission needs more. Ariorh1337 measured the same limit on an RTX 5090 (438 MB of blobs, device ok; 439 MB, removed), which is the card this box runs.

    Which makes the numbers in my first comment read differently: the removal is not caused by one dispatch or by the compile itself, it is the world's ~390 MB of translated programs plus whatever the run has already built. A warm vkd3d cache postpones it because the code comes from a blob instead of a compile, not because less code is in use.

    Runs on 3ceb550 + #541 + #1803 + mimalloc since that comment: removal at 309 s (#2057 head) and 337 s, a warm 7-compile/58-hit run that got past the removal and then faulted in msvcrt.dll, and a forced-compact leg (XCL_DIRECT_COMPACT=1) removed at 232 s. Cutting builds (XCL_PSO_WAIT_MS=1 XCL_PSO_IMAGE_SKIP=1) keeps the device to 365 s but skips 87 % of dispatches, so the loading cards and the intro's credit overlays draw and no geometry does.

    So on this box the removal is not a world-load bug in the title's use of the device: it is the driver's shader-code heap, and the fix is releasing pipelines that are no longer in use.

    AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.

  8. itsd-effex commented on Nov 25, 2026

    @itsd-effex

    Linux / NVIDIA progress: HUD and the first cutscene, no device removal, by carrying the NVIDIA shader cache across runs

    Setup. RTX 3080 Ti 12 GB, driver 620.73.04, 31 GB RAM, CachyOS, Proton Experimental, vkd3d-proton ec207194 (3.2.0, VK_EXT_descriptor_heap).

    Two consecutive runs on the same cache, both ended by XCL_RUN_SECONDS:

    run A (2,400 s) run B (1,200 s, the next run)
    black screen not recorded 222 s
    grey screen ~330 s 473 s
    letterbox bars ~2,270 s ~560 s (by the draw and dispatch counts)
    HUD (compass, minimap, character card) over a grey world — ~760 s
    first cutscene / opening credits drawing — 883 s → still drawing at 1,200 s
    new driver compiles in the run ~380 55
    device removal / +0x4da6315 / +0x23cf683 / crash report none none

    What I'd pass on:

    • In run B, every pipeline the title had made before hit the cache: 376 hits. All 55 misses were pipelines it had not made before. Those build one at a time, 10–20 s each for the big compute programs. So each run gets well past where the one before stopped.
    • No device removal so far. The cache file is now 1.1 GB, but I can't see how much of it sits in the driver's code heap at once (NVIDIA: the device is removed when the pipelines in use need more than 512 MB of shader code (0x887a0005) #2403), so I don't know how far away that limit is.
    • One trap: NVIDIA's .toc index stores 32-bit offsets. Once a cache .bin passes 4 GiB, new entries are written but never indexed, and every later run misses them. If a cache gets near that size, start a fresh cache folder.
    • Memory: the title's resident set reached 19 GB during the cutscene, with 9 GB in swap on a 31 GB machine.

    Written with Claude Code (Claude Opus 5.5).

  9. humsterbumster commented on Nov 25, 2026

    @humsterbumster
    Author

    Wave 6 on this box (RTX 5090, vkd3d-proton 3.2.0 ec20719, dxil-spirv 7c04863, Wine 11, XCL_DIRECT_DXIL=1, warm vkd3d-proton.cache, A pressed on the loading cards):

    tree result
    3ceb550 + #541 + #1803 + #684 + mimalloc (05caef6c…) no failfast; D3D12 device removed: 0x887a0005 at 332.9 s → game+0x2474606
    6d12f58 + the same + #2422 (9dc0292d…) 0xc0000005 in dxil_spirv::CFGNode::find_common_post_dominator (null post-dominator) on an xcl-pso worker at 182–196 s, 3/3 — see #2368
    the same with c685e12 (#2368) reverted (de29de2c…) no dxil-spirv crash, 2/2; the title exits itself rc=1 at 266–307 s with no exception and no removal

    +0x4da6315 no longer appears on either tree. XCL_GPU_WAIT_TIMEOUT_MS=600000 XCL_WAIT_TIMEOUT_MS=60000 and turning XCL_PSO_PRELOAD back on change nothing on their own (same rc=1 exit, 303 s and 307 s).

    The removal on 3ceb550 is not the 512 MB code heap on this side: the translated console compute programs of a run total 12–24 MB of DXIL and GetCachedBlob returns nothing, which matches @wayback94's Linux test on #2403 (600 pipelines, device fine). Details there.

    AI use: omp (DeepSeek V4.1 Flash 1017) ran the builds and the legs and wrote this comment from the logs.

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