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
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#2140
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?
@humsterbumster on GitHub · 2026-11-25 06:03 UTC · original
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:0x80000003atgame_scarlett_master.exe+0x4da6315at 417 s and again at 414 s (rax=2,rdx=0xffffffff/0xaaaa..., STATUS_BREAKPOINT);vkd3d-proton.cache.writepromoted tovkd3d-proton.cache),0xc0000005write at address0x0ingame_scarlett_master.exe+0x23cf683at 246 s — issue #675's address, on a 5090;rc=1at 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.exesha256637dc4a402faf7404bbc...),--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=trueplus the two-hunk relaxed-vtable change (the one the Linux notes describe for v3.1, ind3d12_command_allocator_from_iface/d3d12_command_list_from_iface);d3d12core.dllsha2562ce1205ec72eae9c1e7dcd9d93ab398183eacb09e0570c18b8279ad99ea27cec.-Db_ndebug=trueis required: with asserts on, the build aborts ~2.3 s in throughmsvcrt, 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
err:vulkan:vkCreateComputePipelines Exception 0xc0000005 in Unix callat 193, 200, 242, 256 and 331 s) does not appear in any 3.2.0 log.XCL_PSO_WAIT_MS=50gives 61,978 skipped draws / 90,508 dispatches,XCL_PSO_WAIT_MS=500gives 2,048 skipped of 84,610 — same outcome.+0x22106e0(which a corrupt piece caused) is gone.VKD3D_CONFIG=ignore_shared_fence,single_queuechanges 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.
@YaBulochka on GitHub · 2026-11-25 07:46 UTC · original
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-amdat070df42(AMD-oriented fork offxceless/victory-fork) - our own upstream tree on the same machine loses the device instead.Where it ends:
0x80000003isSTATUS_BREAKPOINT, the title's own fail-fast, at the cutscene-to-gameplay handoff. Before it:DXGI_ERROR_DEVICE_REMOVEDat any point in the run (our upstream tree gets0x887A0005at a similar frame time);So this is a third address next to your
+0x4da6315and+0x23cf683, and the first one observed without a device removal first. I have not looked at what+0x19b5024checks, so I am only adding the address and the state, not a theory.No game files, no captures, counts and the fault line only.
@YaBulochka on GitHub · 2026-11-25 07:55 UTC · original
Short addition: the
+0x4da6315breakpoint is not NVIDIA-specific. On Linux/RADV theJMAN730/project-flamingotree (5c7e5d2, Wine 11.22, vkd3d-proton master, RX 7600 XT) stops at exactly the same address after ~5-6 minutes in the world:followed by
0xc0000005(read 0x34) at+0x4f36bb1. No device removal before it, and notimelinetimeout 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.
@ClosetPie107 on GitHub · 2026-11-25 14:50 UTC · original
Another AMD / Linux (RADV) data point hitting the exact same
+0x4da6315stop — this time on RDNA4 (main06c9f55+#2306withXCL_TEXTURE_LEVEL_PAGES=1):Setup
experimental-11.0-20261112),vkd3d-protonmasterec207194(3.2.0) +dxil-spirv694cc674(HansKristian-Work/dxil-spirv#374) + two-hunk relaxed-vtable patch (-Db_ndebug=true), DXC1.9.2609.5XCL_DIRECT_DXIL=1,XCL_TEXTURE_LEVEL_PAGES=1(#2306),XCL_PSO_WAIT_MS=50,XCL_SPLIT_MIDLIST_WAIT=0,XCL_COHERENT_MB=1024,VKD3D_CONFIG=ignore_shared_fence,XCL_PSO_PRELOAD=0,XCL_NETWORK=0, warm PSO /vkd3d-protoncacheWhere it ends (111 s)
15,947 MiBat exit (11.6 GiBthrough 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+0x4da6315with 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.
@Royalflamejlh on GitHub · 2026-11-25 15:20 UTC · original
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 onmain426a5a7with 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 atgame+0x524aeceandgame+0x3bf4. None of the three logged thevkCreateComputePipelinesexception 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-g30b0eb9bwith #175's vtable patch, dxil-spirve084e35cplus four patches. XCLmain426a5a7+ #684 + #751 + #2118b7d0ef2+ #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.0h:2m:25s,Frame: 6220xc0000005 in game+0x524aeceon eight title threads at 147.1 s (seven reads at0xffffffffffffffff)0h:2m:3s,Frame: 6430x80000003 in game+0x3bf4at 124.9 s, thengame+0x2215c350h:2m:29s,Frame: 6920x80000003 in game+0x4da6315at 148.8 s, then0xc0000005 in game+0x4ed80c0(read at0x8) at 150.7 sNot tested: current
main06c9f55and #2118's headb1e8457; 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.
@humsterbumster on GitHub · 2026-11-25 16:49 UTC · original
A/B with #1405 + #684 on today's
main, Linux/NVIDIA — the wall on this box is the device removal, not+0x4da6315, and#1405is the change that moves it.Setup (all legs). RTX 5090 32 GB, driver 620.73.04, Linux, Wine 11 / Proton 11, XCL
main3f4495a(236 commits past the report above, so #2080 direct-DXIL splitting is in), vkd3d-proton masterec20719(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.xcl.exesha256main4dd4a940…D3D12 device removed: 0x887a0005at 349 smain+ #1405 + #684c074d2e4…DirectStorage: N page lists written after their request was enqueuedlines, still 0 presents / black windowmain+ #1405 + #684 + #541 + #18032d616447…0x887a0005again at 344 sIn both legs that lost the device, the last thing before it is
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+0x2474606as a symptom rather than the cause.Two things worth keeping from this:
3f4495athe title's+0x4da6315did not appear in any leg — it was reproducible (417 s and 414 s) onaa9ab8a. The stop moved to0x887a0005→+0x2474606with the newer tree.#1405is 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.
@humsterbumster on GitHub · 2026-11-25 17:38 UTC · original
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:
w4d0x887a0005at 328 sw4s0x887a0005at 338 sw4wvkd3d-proton.cache.writepromoted)0xc0000005inmsvcrt.dll+0xa4fb, read at0x783820000, at 267 sw4n0 presents, 0 submitsbetweengated (waited 26–37 s)compile waitsThe removals land within a few seconds of a large build starting or finishing — in
w4da 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
msvcrton a host-side copy.XCL's own driver blob cache (
%LOCALAPPDATA%\XCL\dxil\driver, on unlessXCL_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.
@humsterbumster on GitHub · 2026-11-25 19:07 UTC · original
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 inmsvcrt.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.
@itsd-effex on GitHub · 2026-11-25 20:01 UTC · original
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).main68a284a+ #759 + #1860 + #2301, plus local test switches (all off here).XCL_HEAP_WINDOWS=1,XCL_DIRECT_DXIL=1,XCL_HUGE_PSO_CONCURRENCY=6,VKD3D_CONFIG=ignore_shared_fence,XCL_PRESS_A_AT=26,29,32,36,40,45.__GL_SHADER_DISK_CACHE_PATH,__GL_SHADER_DISK_CACHE_SIZE=21474836480) that I keep from one run to the next. Noxcl pipelinesprecompile.Two consecutive runs on the same cache, both ended by
XCL_RUN_SECONDS:+0x4da6315/+0x23cf683/ crash reportWhat I'd pass on:
.tocindex stores 32-bit offsets. Once a cache.binpasses 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.Written with Claude Code (Claude Opus 5.5).
@humsterbumster on GitHub · 2026-11-25 21:03 UTC · original
Wave 6 on this box (RTX 5090, vkd3d-proton 3.2.0
ec20719, dxil-spirv7c04863, Wine 11,XCL_DIRECT_DXIL=1, warmvkd3d-proton.cache, A pressed on the loading cards):3ceb550+ #541 + #1803 + #684 + mimalloc (05caef6c…)D3D12 device removed: 0x887a0005at 332.9 s →game+0x24746066d12f58+ the same + #2422 (9dc0292d…)0xc0000005indxil_spirv::CFGNode::find_common_post_dominator(null post-dominator) on anxcl-psoworker at 182–196 s, 3/3 — see #2368c685e12(#2368) reverted (de29de2c…)rc=1at 266–307 s with no exception and no removal+0x4da6315no longer appears on either tree.XCL_GPU_WAIT_TIMEOUT_MS=600000 XCL_WAIT_TIMEOUT_MS=60000and turningXCL_PSO_PRELOADback on change nothing on their own (samerc=1exit, 303 s and 307 s).The removal on
3ceb550is not the 512 MB code heap on this side: the translated console compute programs of a run total 12–24 MB of DXIL andGetCachedBlobreturns 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.