The retail title 1.0.2.1 (RTX 5070): reaches the end of the first-run setup, then deterministic 0xC0000005 write at 0x0 in game_scarlett_master.exe+0x23cf683 #846
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#846
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?
@DUIBING818 on GitHub · 2026-11-24 06:40 UTC · original
Game and package version
The retail title – Xbox Series build. Identity Name: Identity Version: 1.0.2.1 Publisher: CN=3164F9C2-2C28-4832-BBE3-A642A4EF0054 Executable: game_scarlett_master.exe (Id , TargetDeviceFamily Scarlett) Package unpacked and unmodified; all 108 files match the package manifest.
What happens
The game runs far enough to be walked through the whole first-run flow:
ACCOUNT PICKER -> PLAYER 1 -> licence -> minimap settings -> subtitles -> language
Then it crashes. About 7,000 frames presented, 22-27 fps at 1920x1080, 19,241 unique shaders,
0 skipped draws. Same crash on two different main builds from today (the second one release
[optimized + debuginfo]):
unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0)
rax=0x0 rbx=0x0 rcx=0x70024c348 rdx=0x1 rbp=0x0
Same address, same rcx, same registers: deterministic, not timing-dependent.
Caller on the stack: game_scarlett_master.exe+0x4e4ba89
What I expected: after the language step the game continues to the character/world load.
XCL version
xcl 0.1.0 Built from a main zip snapshot downloaded 2026-11-24 ~13:15 UTC (cargo build --release --workspace, no local changes). A second build from an earlier snapshot of the same day (~10:50 UTC) gives the identical crash, so this is not commit-specific.
GPU and driver version
NVIDIA GeForce RTX 5070 Laptop, 7,891 MiB, driver 32.0.15.9197
Windows version
Windows 11 家庭中文版, version 10.0.26300, build 26300.9974 (26H2). The D3D12 Agility SDK question is for Windows 10; on Windows 11 the inbox D3D12Core is used (no D3D12Core.dll next to xcl.exe).
report.json and xcl.log
report.json
xcl.log
Console output
@DUIBING818 on GitHub · 2026-11-24 06:41 UTC · original
AI-assisted, and declared here as the project's PRs do: the report text and the log analysis
were drafted with an AI assistant. Every run, every number and every log excerpt above comes
from my own machine.I am a beginner with XCL and D3D12 - I
collected the data, the analysis in it is not mine to defend.
@DUIBING818 on GitHub · 2026-11-24 06:42 UTC · original
What I already tried (all negative, same package, same config unless noted)
XCL_ASYNC_PSO=0- worse: 0 presents, crashes earlier atgame_scarlett_master.exe+0x2215c35(write 0x0) while commit climbs to ~10.4 GB. So async PSO is masking it, not causing it.
XCL_DXC_THREADS=4- same crash address, same frame count.[stub_returns] = E_NOTIMPLfor all 9 stubbedd3d12_xsmethods(
ID3D12CommandAllocator::#9,ID3D12GraphicsCommandList10::#126/#142/#131/#132,#75 (console extension),ID3D12CommandQueue::#31) - same crash address, byte for byte.The null does not come from those stubs.
Two other observations
uma_mb = 8192in xcl.toml is not honoured: report.json still saysuma_mb: 4095, and it sits at3,998.6 MB (99.8%) right before the crash.
device_type = "lockhart"the pool drops to 72%, but the title then hits a fatalint3(
0x80000003) atgame_scarlett_master.exe+0xcc2834, withconsole_type_rawstill 6.XCL_TRACE_IMPORTS=d3d12_xs: the last 12 traced calls before the crash are allD3D12SerializeVersionedRootSignaturefrom+0x55ac80f, but they all succeed (17xconsole flags 0x3000000 dropped, 0 failures) - correlation with background pipeline work, notthe cause.
@DUIBING818 on GitHub · 2026-11-24 06:53 UTC · original
Update: rebuilt from main after #792/#795/#797/#798 merged. The split-list path now runs
(
split command list (type 2) around mid-list Wait after Write64 (#1)) and the xcl-fencesthread is active, so those changes are live - but the crash is unchanged:
game_scarlett_master.exe+0x23cf683, write at 0x0, rax=0, rcx=0x70024c348. Frames went up
(7,792 vs 6,936 either side of it), fps 16.5-30.
That rules out the wait/fence/cycle family as the cause of this specific null write.
@Coldtrain on GitHub · 2026-11-24 06:56 UTC · original
The game executable it self has an intentional write to zero, not sure if apart of tamper protection or not
@jcjordyn130 on GitHub · 2026-11-24 07:04 UTC · original
I got farther into the game by patching them all out, it's only 3-4. There's also a few debugging breakpoints after the null writes if those don't break, and I patched those out. Now the blocker on my end is just how long it takes these shaders to compile
@churchesyt on GitHub · 2026-11-24 07:17 UTC · original
Retail game!!
@Coldtrain on GitHub · 2026-11-24 07:34 UTC · original
I knew it!, I figured simply patching them out and removing any jump to this write to zero would get us further, then just debug the issues remaining., I had attempted patching but I didn't get them all, can you please provide all of the offsets to patch here.
@Voltingg on GitHub · 2026-11-24 07:52 UTC · original
@Coldtrain no, as far as I can tell this is not tamper protection. +0x23cf683 is inside the game's own fatal error routine (it starts at +0x23cf620). It writes 0x4d8bd421 to address 0 on purpose: a deliberate crash the game uses to stop itself once something has gone wrong, so it ends up in a crash report.
In my runs (RTX 3060 12 GB, same 1.0.2.1 build) that routine is called from the game's GPU hang watchdog thread (+0x2215a60), and the message it builds before crashing decodes to "GPU Loc Sig". The watchdog checks a table of timestamps that the game's threads keep refreshing. When one of them stops for too long, it assumes the GPU or that thread is hung and calls the fatal routine. In my case that happens during the world load, while the title threads are blocked waiting for the driver to build large compute pipelines. Nothing in it checks the exe or its files.
Several checks lead to the same routine, which is why patching out "the" write is not enough and why there are 3-4 of them. It also means patching them only hides the symptom: the game then keeps going in a state it considers broken, and the real blocker is still shader compile time, as jcjordyn130 found. @DUIBING818 your caller (+0x4e4ba89) is not the watchdog, so it is likely a different check. It would be worth finding out which one.
@ShyVortex on GitHub · 2026-11-24 08:00 UTC · original
Same crash on 16 GB VRAM, so it isn't specific to 8 GB cards.
Setup: Intel i7-12700H + RTX 3080 Ti Laptop 16 GB, Windows 11 26300, unmodified
main1ec4c98(release),XCL_NETWORK=0, retail 1.0.2.1. Two runs:unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0) rax=0x0 rbx=0x0 rcx=0x70024c348, at 171 s and 177 s.This fits @Voltingg's reading: the frame rate collapses during world load, one thread misses its watchdog check-in, and the game crashes itself on purpose. Patching out the null write would only remove the symptom; the stall itself looks like the VRAM/BCPack side (#878, #781).
@phantom54 on GitHub · 2026-11-24 08:17 UTC · original
09940bb13700F + 2070 Super
console_log.txt
report.json
xcl.log
@Coldtrain on GitHub · 2026-11-24 08:30 UTC · original · edited 2026-11-24 08:31 UTC
Interesting stuff, I can confirm however patching out these calls using NOPs does allow us ingame, I get ingame audio followed by a new crash - DX12 related!!
Funny I came across the GPU Loc Sig string as well when translating the instructions, could not find anything on it or what it meant though.
So most likely I am circumventing the games built in crash protection when it detects an issue in runtime or rendering, this is still a step forward for us to run the game (Despite being in a buggier state)
Working patch is provided below
patch.py
@Coldtrain on GitHub · 2026-11-24 08:35 UTC · original
Do you hear ingame audio? after patching I hear ingame audio, a few shaders begin to compile. but then game does crash with a new DX error
xcl: D3D12.X: compute PSO with the translated console CS (9344 B DXIL, 38 ms)
xcl: D3D12.X: compute PSO with the translated console CS (4240 B DXIL, 4 ms)
xcl: D3D12.X: compute PSO with the translated console CS (9928 B DXIL, 36 ms)
xcl: D3D12.X: compute PSO with the translated console CS (4760 B DXIL, 10 ms)
xcl: D3D12.X: compute PSO with the translated console CS (30892 B DXIL, 422 ms)
xcl: D3D12.X: compute PSO with the translated console CS (13600 B DXIL, 0 ms)
xcl: D3D12.X: compute PSO with the translated console CS (84980 B DXIL, 0 ms)
xcl: D3D12.X: compute PSO with the translated console CS (129352 B DXIL, 1 ms)
xcl: D3D12.X: compute PSO with the translated console CS (153840 B DXIL, 1 ms)
xcl: [debug]
xcl: [debug] D3D12 XDXR Error:
xcl: [debug] DestAccelerationStructureData can not have more than 40b of address set
xcl: [debug]
xcl: C++ exception .J "" thrown; on the stack: xboxbvhbuilder.dll+0xd2538, xboxbvhbuilder.dll+0xd2538, vcruntime140.dll+0x6480, xcl.exe+0x25d0, xboxbvhbuilder.dll+0x20000, xboxbvhbuilder.dll+0xd2538
xcl: unhandled exception 0xe06d7363 in KERNELBASE.dll+0xc569a rax=0x0 rbx=0x3474f7408 rcx=0x0 rdx=0x7ff9b1bdf037 rsi=0x1 rdi=0xe06d7363 rbp=0x4 r8=0x7ff9b1bdef25 r9=0x3474f682f r10=0xffffffff r11=0x1 r12=0x0 r13=0x1d93ba43b20 r14=0x0 r15=0x18 rsp=0x3474f72e0; on the stack: xboxbvhbuilder.dll+0xd2538, xboxbvhbuilder.dll+0xd2538, vcruntime140.dll+0x6480, xcl.exe+0x25d0, xboxbvhbuilder.dll+0x20000, xboxbvhbuilder.dll+0xd2538
xcl: D3D12.X: Wait64BitValueX timed out after 2000 ms at 0x1c60a32ff68 (op 7, want 0xb33, mask 0xffffffffffffffff; memory holds Some(0))
xcl: [debug] BacktraceBreakpad:c:\code\xbox\breakpad\src\src\common\windows\backtrace.cc:99:XSystemGetConsoleId(): 00000000.00000000.00000000.00000000.00
@AlexLopezDevelop on GitHub · 2026-11-24 08:52 UTC · original
Same stop on RTX 2080 Ti (Turing, driver 621.24) + Intel i9-9900K, Windows 11, 32 GB, own 1.0.2.1 package: walked through the first-run setup by hand, then
unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0)at about 454 s.One thing this run rules out: it was built from #905 (
d19a3d3), so every BCPack request was served (report.json: BC1 2,104, BC5 107, BC6H 1, BC7 193 requests, 0 failed,bcpack_refusedempty). The fatal-error path is still taken, so missing BCPack textures are not what sends the title there.AI-assisted (Claude Code, Claude Opus 5.5).
@Creaa on GitHub · 2026-11-24 09:03 UTC · original
Reproduced on a desktop RTX 4070 (driver 617.14), Core i7-13700F, Windows build 26300, and DXC 1.9.2602.17. XCL was built with MSVC in release mode from PR #631 head
12be9306269772e1e24aa1e44219f2bce684c193. The run was offline.After a few minutes of loading and a black screen, the process crashed at 218.382 s with a write to address
0x0at game image offset+0x23cf683, exception0xc0000005. The caller+0x4e4ba89and register valuesrax=0x0 rcx=0x70024c348 rdx=0x1 r8=0x7074d8c40match this report. The run never reached controllable gameplay.AI use: Codex (GPT-6) ran XCL, extracted the log details, and drafted this report. The on-screen observations came from the user.
@atk3001 on GitHub · 2026-11-24 09:21 UTC · original
Another data point, with where the main thread is before the null write.
Setup: RTX 5080 16 GB (driver 621.24), Ryzen 7 9800X3D, Windows 11 26300,
main077ce40(release),XCL_NETWORK=0, retail 1.0.2.1. A pressed by script (XCL_PRESS_A_AT=20,22,25,30,35,40,50,60), so every run gets the same input.Runs
scripts/smoke.ps1 -Seconds 180: no crash within 180 s, 1377 frames, 60 fps until ~50 s, then 0–3 presents per 2 s; peak commit 26.3 GB.XCL_THREAD_DUMP_AT=80,100,120: the null write at+0x23cf683comes at 95.6 s (GPU Loc Sig7333478d in the Breakpad parameters).crashcontext.log(written toT:\, i.e.<XCL data>\temp) shows that the world has loaded: player placed, 87 peds, 217 vehicles,Current SRL Name: fbk_stry000_FBK_STRY000_INTRO, statePrestream,Game State: Game Running.What the thread dump at 80 s shows
xcl-fences,xcl-pso-*andxcl-dxc-*are all idle.+0x23cf735. The stack is+0x23cf735 < +0x8126a7 < +0x53ec040 < +0x53ebf3a < ….+0x23cf6a0, called withcl=1from+0x8126a2, calls+0x4e4ba80and then sleeps in a loop.+0x812620is a state handler. It takes this branch when the byte at+0x7453ed4is 0 (read by+0x450920) or when[[+0xaae3b70]+0x1b3]is 0. Otherwise it continues with state 4.The watchdog at
+0x2215a60(disassembly)+0x4e4ba80and then writes 0 to address 0 (+0x2215c35).0x23cf683write is the same fatal path, reached from+0x4e4ba89.Not known yet: what clears
+0x7453ed4or the+0x1b3flag before ~56 s. The flag is set to 1 at+0x1c996b0(callers+0x21b745e,+0x21b8e02,+0x59965c8) and cleared at+0x2257734/+0x2258de7. One observation, not a cause: the same main thread queried XStore at 20.7 s, right after the first A press. XCL answers that as offline, and the title reportsXErrorReport 0x89240107.A second run on the same build crashed earlier, at 59.8 s, in
tiling::Chain::detile_level←title_textures::subresources(read AV inVCRUNTIME140memcpy). That is the race #751 fixes.Report and analysis written with Claude Code (Claude Opus 5.5) from my own runs. The disassembly was done with capstone on my copy of the exe. Nothing from the game is attached.
@AlexLopezDevelop on GitHub · 2026-11-24 09:36 UTC · original
Follow-up to my run above: with #891 (
XCL_PSO_WAIT_MS=50) the same machine (RTX 2080 Ti + i9-9900K) goes past this stop into the world load, and ends later at #585 instead. Details: https://github.com/ivall/xcl/pull/891 (my comment there).AI-assisted (Claude Code, Claude Opus 5.5).
@DUIBING818 on GitHub · 2026-11-24 09:48 UTC · original
comment-846-negative-results.txt
@ivall on GitHub · 2026-11-24 10:06 UTC · original
Thanks for the detailed reports and the analysis - this is clear now.
+0x23cf683is the title's own fatal-error routine (Voltingg's and atk3001's findings): its watchdog ends the process on purpose when a thread stops checking in, mostly while a thread waits for a big pipeline build during the world load. Patching the writes out only hides that.02bfd1d): withXCL_PSO_WAIT_MS=50a bind waits at most that long for a pipeline being built, and runs on several machines go past this stop into the world load. It stays opt-in for now, because the dispatches skipped meanwhile leave their outputs unwritten.40b of address setin the BVH builder (#585), is fixed by #631, also merged.Please retest on current main with
XCL_PSO_WAIT_MS=50and post where it stops now.@Coldtrain on GitHub · 2026-11-24 10:59 UTC · original
Merged your current build into my fork after this message as i noticed the fix for more than 40b of address set was mentioned!!
My fork has currently compiled up to 430 shaders and still going! Black screen after loading screen but no crash anymore (my exe is patched with the python script I included)
I patched alot of the DirectRoute errors in my fork as well, As of this moment i am technically ingame with no crashes (blackscreen though)
@Coldtrain on GitHub · 2026-11-24 11:02 UTC · original
Should I expect video once shader compilation is completed? My fork additionally brought cutscreens up to solid 30fps on my system, main branch last gave me 5fps avg, will retest and confirm, for now allowing shaders to compile and will report what happens.
@ClosetPie107 on GitHub · 2026-11-24 10:54 UTC · original · edited 2026-11-24 11:04 UTC
Retest on current
mainwithXCL_PSO_WAIT_MS=50, as asked, on AMD under Linux (RDNA4, RADV). Two runs. Neither gets into the world load: about 30 s after the first#101, the GPU takes a page fault from a shader's scalar data load, the driver resets the ring, D3D12 reports the device removed, and the run ends.Tested
experimental-11.0-20261112), vkd3d-proton v3.1 + #257's patch (-Db_ndebug=true, dxil-spirv53aac418), DXC 1.9.2609.5. Rust 1.96.0,x86_64-pc-windows-gnu, release, no local changes on the tree.xcl runwithXCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50 XCL_COHERENT_MB=512 VKD3D_CONFIG=ignore_shared_fence, 600 s limit. Run 5: one A press by hand. Run 6:XCL_PRESS_AT=30.6:A, no controller.main6efdabc+ #905 (44953c2, a fast-forward). Run 6:main384f7f7(#905 merged).XCL_PSO_WAIT_MS(077ce40+ #905, earlier today)#101journalctl -k)SQC (data),PERMISSION_FAULTS: 0x3,MAPPING_ERROR: 0, at0x00008000c39d80000x00008000befff000gfx_0.0.0ring timeout, ring reset failed → MODE1 GPU reset, "VRAM is lost"comp_1.1.0ring timeout, ring reset succeededGPU queue.Wait … did not complete within 5000 msD3D12 device removed: 0x887a00050x80000003at+0x2474606(the title's device-removed stop, as on #646 / #891)0x887a00050xc0000005write at 0 at+0x23cf683, 132.8 s#101in both runs (30.0 s and 29.6 s).SQC (data),PERMISSION_FAULTS: 0x3) and the same address range: RADV's 32-bit descriptor range, far past the end of XCL's shared view heap (1 000 000 × 32 B). @xstraok proved it there withRADV_DEBUG=bo_history: a console T# that never became an XCL view is used as a heap index. The fix is draft #610; I am testing it on this machine next.Not tested: more than two runs, other
XCL_PSO_WAIT_MSvalues,XCL_LIST_TRACEto find the faulting dispatch, Windows on this card, #867 / #871 on top.AI use: T3 Code (Claude Opus 5.5) built the trees, ran the title and wrote this comment from XCL's logs and the kernel log. The runs are real, on the hardware above, and I checked the report before posting.
@garuspl on GitHub · 2026-11-24 11:08 UTC · original
Same crash on an RTX 4090 (24 GB), and what happens with
XCL_PSO_WAIT_MS=1: the watchdog no longer fires, presents still stop at the same point, and the run ends ~60 s later in a GPU device removal.Setup: Ryzen 7 7800X3D, 64 GB RAM, RTX 4090 (driver 32.0.16.1742), Windows 11 Pro 10.0.26300. Unmodified
main384f7f7, release build. DXC 1.9.2602.17 from the Windows SDK 10.0.26100.0. Title 1.0.2.1. Noxcl.tomlchanges.xcl run <folder>, no input during the runs.Runs
67a3735)+0x23cf683write at 0x0, about 3.5 min into the run384f7f7)+0x23cf683write at 0x0, 102.0 s384f7f7)XCL_PSO_WAIT_MS=1D3D12 device removed: 0x887a0006at 165.8 s, then0x80000003ingame+0x2474606Runs 1–3 were one after another on the same machine, so runs 2 and 3 started with the earlier runs' shader caches.
Run 2: the watchdog, after compute pipeline builds
GPU Loc Sigis logged at 102.8 s, right after the null write at 102.0 s. Registers match the ones above:rax=rbx=rbp=0,rcx=0x70024c348,rdx=0x1,r8=0x7074d8c40.+0x23cf620..+0x23cf692on this build too: it ends in an unconditionalmov dword ptr [0], 0x4D8BD421, as @Voltingg described.Run 3:
XCL_PSO_WAIT_MS=1GPU Loc Sig.a pipeline still being built after 1 msis logged from 72.3 s, past 1025 by 120.9 s.xapulines every 5 s up to 166 s), so the title is still running.Wait64BitValueXtimeouts in this run.split command list (type 2) around mid-list Wait after Write64reached #32 by 123.8 s.D3D12 device removed: 0x887a0006(DXGI_ERROR_DEVICE_HUNG), thenunhandled exception 0x80000003 in game_scarlett_master.exe+0x2474606, process status0x80000003.So on this card the cap gets the title past the watchdog, but not to new frames. I have not checked whether a skipped dispatch is what hangs the GPU.
Not tested: other
XCL_PSO_WAIT_MSvalues; #684; a run withXCL_D3D12_DEBUG=1or DRED to see which command list hung the GPU; more than one run per configuration.AI use: Claude Code (Claude Opus 5.5) built XCL, ran the title, read the logs, disassembled the crash site with
dumpbinand drafted this comment. The runs are on my machine, on the hardware above.@Coldtrain on GitHub · 2026-11-24 11:14 UTC · original
xcl: D3D12.X: compute PSO with the translated console CS (207912 B DXIL, 4760 ms)
xcl: D3D12.X: compute PSO with the translated console CS (1295684 B DXIL, 28330 ms)
xcl: D3D12.X: compute PSO with the translated console CS (119996 B DXIL, 1641 ms)
xcl: D3D12.X: compute PSO with the translated console CS (204288 B DXIL, 3656 ms)
xcl: D3D12.X: compute PSO with the translated console CS (207156 B DXIL, 4669 ms)
What my logs look like essentially no errors, game is still running, 580 shaders compiled total, CPU usage for xcl is at 12%, looks promising, just not sure how long shader compilation takes, it appears to not utilize GPU for this stage?
@sharkintosh on GitHub · 2026-11-24 11:16 UTC · original
Post 1 — issue #846 (primary)
URL: https://github.com/ivall/xcl/issues/846
Retest on
main384f7f7withXCL_PSO_WAIT_MS=50— Windows 11, RX 9070 XT (RDNA4, native D3D12)Tested
main384f7f7, release (cargo build --release --workspace), no local changes; Rust 1.98.110.0.26100.0) — older than the 1.8 the README recommends (#156), so compilation here is slower than it needs to beXCL_PSO_WAIT_MS=50 XCL_NETWORK=0 XCL_ACTIVITY=1; DXIL cache warm (2,648 hits, 56 compilations this run)Result: the
+0x23cf683stop is gone; the run enters the world and ends at a different stopXCL_PSO_WAIT_MS(2 runs,6efdabcand384f7f7)XCL_PSO_WAIT_MS=50(384f7f7)0xC0000005, write at0x0,game_scarlett_master.exe+0x23cf683, identical registers in both runs0x80000003(STATUS_BREAKPOINT) atgame_scarlett_master.exe+0x2474606+0x4e4ba89,+0x2215c35,+0x71b9a20,+0x2215ecaxcl.exe+0x142302,+0x4daa2c8,+0x1f6503,+0x10a2b2,USER32.dll+0x4e170,+0x4fb0e29Game State: Game Running, camera in the world,Streaming Requests: 4021,TileHeap: used (4022Mb) - total (6236Mb)So the next stop looks like a cross-queue barrier that is never signalled (the #505 family), not the pipeline-wait watchdog.
Console slots still called a lot at that point:
GraphicsCommandList10::#1427,618;CommandAllocator::#97,376;CommandList10::#757,164;#1267,159;CommandQueue::#31386;#10138.Happy to rerun with other
XCL_PSO_WAIT_MSvalues (200 / 500) or with DXC 1.9 if that helps. No game data attached; the lines quoted above are the only title output used.@Coldtrain on GitHub · 2026-11-24 11:20 UTC · original · edited 2026-11-24 11:21 UTC
I think anyone still experiencing crashes should try the patch.py as my build is compiling shaders with it, otherwise then test with my fork - https://github.com/Coldtrain/xcl/tree/bc7-rds5-runtime-worldload
For me with my .exe patched, and my fork i have up to 608 shaders compiled and game has no longer crashed. (Blackscreen most likely until shader compilation is completed)
Most likely either the offsets I patched in the EXE has allowed my game to keep running without errors, or some of my previous changes compared to the main branch, if confirmed ival can work on merging them.
@throny on GitHub · 2026-11-24 10:23 UTC · original · edited 2026-11-24 11:24 UTC
Retest on current
mainwithXCL_PSO_WAIT_MS=50, as asked: RTX 4080, two runs. It gets past the old stop into the world load, presents almost nothing there, and ends at the same watchdog routine about a minute later.Tested
stable-x86_64-pc-windows-msvc;cargo build --release -p xclonmain6efdabc, no local changes.xcl run <folder>withXCL_NETWORK=0,XCL_ACTIVITY=1,XCL_PSO_WAIT_MS=50,XCL_PRESS_ATfor the profile prompt, 420 s limit. First-run setup was done in earlier runs. DXIL cache warm; the driver-blob cache holds 651 blobs (part of them from an unfinishedxcl shaders --precompile --only cs --pipelineswith #744).mainwithout the variable (10 warm-cache runs,beaa245…1c87b1d)0xc0000005, write at 0, the #534 location)GPU queue.Wait … did not complete within 5000 mssparse: the queue has not reached fence valueXCL_FRAME_DUMP, frame 1820) is a uniform green picture with darker green bars above and below, not the loading art: a frame whose planes hold no data.I have not shown that this is the cause.It is not the cause here: with #640'sXCL_PAGE_BUDGET_MB=6144on top, video memory stays at 12.6–12.8 GB and the waits still time out in one of two runs (numbers in my #640 comment).Not tested
AI use
main, ran the title and wrote this report. Counts and XCL's own log text only; no game data attached.Update: the same two runs on
main384f7f7(after #905 and the allocator-pool merges; same machine, same settings and caches)0xc0000005, write at 0, at 170.0 s – this time at the #232 title's locationGPU queue.Wait … did not complete within 5000 mssparse: the queue has not reached fence valueSame picture as on
6efdabc: past the old stop, a few presents per ten seconds in the world load (about twice as many as before: 20 and 24 against 3 and 9), then GPU waits time out. No device removal. Run 3 is not a result for where the title stops, only for how far it got before my guard ended it.@CeeJaded on GitHub · 2026-11-24 11:30 UTC · original
What is gta 6? I only know of newer retail game
@tatazildo on GitHub · 2026-11-24 13:31 UTC · original
Additional data point on NVIDIA Ampere with current main, following the BCPack merge.
Environment
47efa2ecea0a12934719ae69b81930cf02a4b1c3Comparison against previous run
508a0c747efa2eBCPack results
bcpack_refusedis empty.Remaining issues
The same fatal error persists:
The recorded stack also matches my previous run:
The report still contains 40 sampled mesh pipeline refusals (MS in the AS slot).
The background pipeline counters are
[72, 0, 58691].This provides another reproduction of the same fatal-error path despite successful BCPack decompression.
The higher cumulative presentation and compilation counts should not be interpreted as a measured performance improvement, since the runs were not duration-matched.
The full sequential library test suite also passed: 698 passed, 0 failed, 21 ignored.
AI disclosure: ChatGPT assisted with the testing procedure, interpretation of the diagnostic reports and preparation of this comment. All test results were generated on my own hardware.
Thanks for the continued work on XCL!
@vladbondarenko97 on GitHub · 2026-11-24 13:36 UTC · original
RTX 3080 Ti datapoint for
XCL_PSO_WAIT_MS=50on currentmain. This PC has no active playback device, so the run also needs #887 (without it,maintraps at+0x4dcbc9dat 27.6 s; see #695 / #887).Setup: RTX 3080 Ti 12 GB (32-lane waves, driver 32.0.16.1060), i7-12700KF, 32 GB RAM, fixed 64 GB page file, Windows 11 Pro 26300, rustc 1.100.0, release, DXC 1.9.2602.17. Retail 1.0.2.1 (hashes verified).
main47efa2e+ #887 (a3b0ea0) merged locally (98fd0c8).XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50, first-run menus walked withXCL_PRESS_AT, warm DXIL cache..ttpfstreaming from ~70 s, with BCPack unpacking and no refusals. Presents stop at ~120 s.0xc0000005ingame_scarlett_master.exe+0x2215c35(write at 0x0) at 188.5 s. That's the same stop @tiagonleal reported on a 5070 Ti withPSO_WAIT_MS=50, rather than+0x23cf683. No device removal in this run.process endswas never logged, and the process stayed alive (~20 GB working set) until I killed it 20 min later. That is what #967 addresses; I've queued a run of it here.Next on this machine: the journal +
xcl pipelinesroute from #505 (#688 #744 #759 #820 #684), withoutPSO_WAIT_MS.AI use: Claude Code (Claude Opus 5.5) ran the build/run on my machine, read the logs and drafted this; I reviewed it.
@l0g3n on GitHub · 2026-11-24 14:38 UTC · original
I reproduced the same crash on an AMD Radeon RX 7600 with Adrenalin 26.11.2 and Windows 11 Pro 26H2 (build 26300.9974). I built XCL at
930e8b4and tested game version 1.0.2.1. The loading artwork appeared at about 30 FPS, then the window went black and the game exited before I saw gameplay.The log shows 0xc0000005 writing to 0x0 at game_scarlett_master.exe+0x23cf683, with +0x4e4ba89 and +0x2215c35 on the stack.
@sernartar on GitHub · 2026-11-24 14:47 UTC · original
8 GB NVIDIA datapoint (RTX 4060 Ti 8 GB, Intel) on
930e8b4: same+0x23cf683end, 2 of 2 runs, after ~30 s of no presents while big compute PSOs buildSetup: Windows 11, Intel i5-12600KF, RTX 4060 Ti 8 GB, 32 GB RAM, DXC 1.9.2602 (SDK 10.0.26100),
main930e8b4,cargo build --release -p xcl,XCL_NETWORK=0 XCL_ACTIVITY=1, no other variables. Retail 1.0.2.1, 109/109 files unchanged after both runs. Second run had the DXIL/driver caches of the first.0xc0000005write at 0x0,+0x23cf683rax=rbx=rbp=0,rcx=0x70024c348)Game Running Time 0h:1m:39s,Frame 905, SRLfbk_stry000_FBK_STRY000_INTROinPrestream,Game Physical 2.21 / 2.31 GB,Pool 592 / 625 MB.CreateTicketXbl3, "no Xbox Live") happen a few log lines before the crash in both runs, but they repeat all through the run, so I read that as timing only.Next from me: one
xcl shaders shaders.rpf --precompile --only cs --pipelinespass on this 8 GB card (numbers for #1269), then the same run with warm caches, to see whether the watchdog still fires when the world-load compute PSOs are already built.AI use: Claude Code (Claude Opus 5.5) read the logs and wrote this; the runs were mine.
@DUIBING818 on GitHub · 2026-11-24 15:02 UTC · original
comment-846-heap-windows.txt
Short version, so nobody has to open the attachment:
@chenzhehao1129-eng on GitHub · 2026-11-24 15:44 UTC · original
Same stop on a desktop RTX 4070 Ti SUPER, with one difference worth adding: this machine gets through the whole first-run flow and into the intro, and the watchdog fires while the intro audio is playing, not at a menu.
Setup: NVIDIA GeForce RTX 4070 Ti SUPER 16 GB (driver 32.0.15.8097, i.e. 580.97), Ryzen 9 9900X, 64 GB, Windows 11 10.0.26100 build 26100, DXC 1.9.2602.17 from the SDK 10.0.26100.0,
xcl0.1.0 built frommain930e8b4(cargo build --release --workspace, no local changes). Retail 1.0.2.1 unpacked from my own copy (RockstarGamesInc.28872443D20A7, TitleId7952987A, 109 files). No game files attached.What happens
ACCOUNT PICKER → key art →
FINISH SETUP?→LEGAL NOTICES(Copyright / Photosensitivity) →ROCKSTAR GAMES LEGAL TERMS & POLICIES(Privacy + ToS, Confirm), all at a steady 30 fps with0 draws skipped, then a black screen with a spinner while the intro plays. At 11,915 presents (~6.5 min):exit code 3221225477. So
rcxis0x0c26c348here and not the0x70024c348others see, but the address and the write are the same.What the log says around it
The last 30 lines are not a picture, they are pipeline builds — the title is still bringing up compute PSOs while the intro plays, and some of them are big on this machine:
and just before that:
One thing I did not see in the other reports: there is no Xbox Live here, and the title keeps retrying the Rockstar auth endpoint through the whole intro —
XUser: token #5 … #12 for POST https://auth-arc-prod.ros.rockstargames.com/arc/11/gameservices/auth.asmx/CreateTicketXbl3 — none: no Xbox Live (0x80072EFD). If the sign-in path is what keeps a title thread waiting while frames are presented, this might be an extra variable worth excluding (I am retesting withXCL_NETWORK=0for exactly that reason).Report numbers (
report.prev.json):shaders.unique 19,211,submitted 274,780(ps 134,404 / vs 112,044 / as 25,479 / cs 2,742 / rootsig 111),xbox_errors 0,rdna2_undecoded_dwords 0,translated_pipelines 57,fallback_pipelines 0,failed_pipelines 0, 40 ×mesh pipeline with its MS <hash> in the AS slot — refused;xapu_packets_decoded 67,157,xapu_decode_errors 0;called_stubs:ID3D12CommandAllocator::#912,009,ID3D12GraphicsCommandList10::#126/#142/#7511,923 each,ID3D12CommandQueue::#31393; dxil cachehits 24 / misses 71 / compilations 71 / failures 0;uma_import_check: ok, 1 window(s), 31540 µs.Retest in progress
I only found this thread after drafting a separate report (the new-issue page flagged it as a potential duplicate — it is), so I am posting here instead. I am now running
main930e8b4withXCL_PSO_WAIT_MS=50 XCL_NETWORK=0 XCL_ACTIVITY=1and will add where it stops.One cross-check that may be useful, from the same machine under a different compatibility layer (Victory): there the world-load submission on the real GPU takes 11–13 s and the driver removes the device with
0x887A0006(this machine hasTdrDelay=8, so anything over 8 s is fatal), whileXCL_PSO_WAIT_MS=1here turns the watchdog stop into0x887A0006for @garuspl. That is consistent with a single long stall in the world-load phase being the thing that both layers trip over.@chenzhehao1129-eng on GitHub · 2026-11-24 16:01 UTC · original
Retest as asked, on the same machine as my report above: with
XCL_PSO_WAIT_MS=50the watchdog stop does not happen at all here.main930e8b4,XCL_PSO_WAIT_MS=50 XCL_NETWORK=0 XCL_ACTIVITY=1,xcl run <folder>(first-run flow already done in the previous run, so this one went straight to the intro).XCL_PSO_WAIT_MSXCL_PSO_WAIT_MS=500xc0000005write at 0x0,+0x23cf683, 11,915 presents (~6.5 min)No
0xc0000005, no device removal, no skipped draws or dispatches in the activity line, and the commit number does not move, so this is not the "load everything then die" pattern the others describe — on this machine the intro simply keeps going.Two things that may be worth knowing:
XCL_NETWORK=0does not stop the Xbox Live attempt: the log still showsXUser: token #8 for POST …CreateTicketXbl3 — none: no Xbox Live (0x80072EFD)while the intro plays. If a title thread is waiting on that call, the variable is not enough to exclude it.Logs and
report.jsonare available on request (I will strip the local paths first). I can run any instrumented build, and re-running from a cold cache takes ~2 minutes.@Krashgamer on GitHub · 2026-11-24 16:04 UTC · original
A correction to the main-thread analysis above (the
+0x23cf735 < +0x8126a7stack), from IDA on my own copy of 1.0.2.1:+0x23cf6a0is not the title's fatal routine. It is the main thread's sync with the render thread:+0x4e4ba80there only reads a millisecond counter (start and end of the wait are timed), and the wait itself is an infiniteWaitForSingleObject(+0x569f0) on a semaphore the render thread releases after each frame.+0x812620that calls it withcl=1is its normal path, not an error path, so the+0x7453ed4/+0x1b3flags are probably not what to chase.+0x23cefb0) in turn waits at+0x43c3d5dfor its fiveSubrender:%02uthreads. In my dumps those were in XCL's compute bind wait (pso_async::resolve_within). The watchdog fires because that chain holds the main thread for 30 s.Details, with thread dumps from an RTX 3080, in https://github.com/ivall/xcl/pull/1273#issuecomment-7137064542.
AI use: Claude Code (Claude Opus 5.5) did the analysis and wrote this.
@chenzhehao1129-eng on GitHub · 2026-11-24 16:08 UTC · original
Update: with
XCL_PSO_WAIT_MS=50this machine now reaches the world load, and the stop moves.Same run as my previous comment (
930e8b4,XCL_PSO_WAIT_MS=50 XCL_NETWORK=0 XCL_ACTIVITY=1). The dark screen with audio was not a hang after all - it was the intro waiting for input. It sat like that for ~19 minutes and 34,200 presents; anApress moved it on:6 done, 57,621 pipelines queued-> world load startsunhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0) rax=0x0 rcx=0x70024c348, i.e. the watchdog stop again, at ~41,700 presentsSo on this machine the option gets us past the intro and into the world load, and the stop is no longer "the intro never ends"; it is the same
+0x23cf683stop roughly five minutes later. Two things that may be worth knowing:128 driver blobs kept on disk for the next run (16948 ms, 850 KB)- a warm run of the same build should compile faster.I can do the warm-cache run and report where it stops this time, if that is useful.
No game data included; program hashes and log lines only. AI-assisted (Claude Code).
@tiagonleal on GitHub · 2026-11-24 11:52 UTC · original · edited 2026-11-24 16:34 UTC
RTX 5070 Ti datapoint for
XCL_PSO_WAIT_MS=50: on this card it moves the stop later but does not remove it.Setup: RTX 5070 Ti 16 GB (32-lane waves), driver 32.0.16.1742; Ryzen 7 9800X3D, 32 GB RAM; Windows 11 Pro 26300. Unmodified
main47efa2e, release. DXC 1.8.2502.11 (Windows SDK 10.0.26100.0). Title 1.0.2.1.XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PRESS_AT=30:A XCL_RUN_SECONDS=300. Four runs one after another, so the DXIL and driver caches were warmer in each.XCL_PSO_WAIT_MS+0x23cf683write at 0x0, 121.2 s+0x23cf683, 117.9 s+0x2215c35write at 0x0, 177.4 s+0x23cf683, 198.9 sXCL_PSO_WAIT_MS=1).Not tested:
XCL_PSO_WAIT_MSvalues other than 50; a run with every compute pipeline built beforehand (the precompile below did not finish).Update (same machine, same
main47efa2e, after more runs):xcl shaders shaders.rpf --precompile --only cs --pipelinesran ~75 min and was stopped at 22,600 / 26,503: the first 22,200 go in seconds (cached or not compute), the last ~4,000 hold the programs that take minutes each.XCL_PSO_WAIT_MS) after it:+0x23cf683at 111.5 s. 294 compute PSO builds, 110 from XCL's kept driver blobs, 7 over 5 s (the longest 50.2 s, 287,640 B DXIL).XCL_PSO_WAIT_MS=50, back to back): presents end at 108, 112 and 110 s, and each run ends differently: 108.7 s0xc0000005inVCRUNTIME140.dll+0x1c45a(read at0x825210000; maybe #662's copy, not checked); 117.5 sD3D12 device removed: 0x887a0006, then0x80000003at+0x2474606(as in the 4090 run above); 165.6 s+0x23cf683. Compute builds 318 / 372 / 435, kept blobs used 129 / 168 / 165, builds over 5 s 11 / 7 / 10; kept blobs on disk 171 → 216.Update 2 – serialized submissions do not remove it. A local experiment on
main930e8b4(not for a PR): after everyExecuteCommandListschunk the CPU waits (up to 10 s) for that queue to finish, so no two queues' work overlaps, as in a runtime that runs each submission to completion. Same machine,XCL_PSO_WAIT_MS=50, runs alternated:main+0x23cf683, 238.6 s+0x23cf683, 251.6 smain+0x23cf683, 218.6 sNo serialized submission took longer than 10 s, and the stop still came. So here it is not GPU work of two queues overlapping; with #1123's lines ending at "no tracked wait in front of it", it looks like a signal that is never submitted at all.
Update 3 – with the title's watchdog skipped, the title just stays frozen. Local experiment on
main930e8b4(not for a PR): the two deliberate faults (+0x23cf683and the fallback after the handler call at+0x2215c27) skipped in memory at load,XCL_PSO_WAIT_MS=50,XCL_PSO_PRELOAD=0, one 600 s run: no crash, no device removal, process exit0x0at the limit, but presents end for good at 202 s (0 fps from there to 600 s), peak commit 61.7 GB. So the watchdog reports a real stall here; skipping it does not let the title go on.(
XCL_PSO_PRELOAD=0because after a run that gets further, the preload of #1035 pushed commit to 50–110 GB within a minute of the next start.)Run and written with Claude Code (Claude Opus 5.5).
@AgneyaK on GitHub · 2026-11-24 16:37 UTC · original
The title's own crash context (
crash.login the data folder'stemp, written just before the stop)gives the same story state in every run of mine that reaches
+0x23cf683:Current SRL/ state930e8b4+ #640 (budget 3072), run 1fbk_stry000_FBK_STRY000_INTRO/Prestream0x98c85f2a/0xe9f5cf99ffe310e(independent runtime)RTX 3050 6 GB Laptop, Windows 11 26300, title 1.0.2.1, Series X profile. The
mainrun that ran out ofmemory (#333 assert, 192 s) had no mission yet and 3,169 streaming requests pending.
So the stop comes while the intro's SRL is prestreaming, with hundreds of streaming requests still
pending, in both runtimes. That fits the reading that this is the title's stall watchdog. I can't tell
from this whether the pending requests or the compute-pipeline backlog (#505) is what it waits on.
AI use: Claude Code (Claude Opus 5.5) ran the title and drafted this note; results are from the runs described.
@LocranKing on GitHub · 2026-11-24 18:50 UTC · original
Retest on clean
main9e3831ewithXCL_PSO_WAIT_MS=50(and default /XCL_HEAP_WINDOWS=1comparisons) on an 8 GB NVIDIA desktop card.Setup
8024 MiB VRAM, wave32), driver32.0.16.210131.8 GBRAM26200main9e3831e1f570d3646e53ab753b19ec07eb8f1485,--release,rustc 1.100.0, DXC1.9.2602.17XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_PRELOAD=0 XCL_RUN_SECONDS=300,XCL_PRESS_A_ATevery 4 s from 20 s to 80 s + 90, 100.skipped)>= 5 s)XCL_PSO_WAIT_MSunset)0/0)0x887a0006device removed at133.8 s(title0x80000003at+0x2474606)XCL_PSO_WAIT_MS=50(default switch form)12,389/18,750)+0x23cf683(0xc0000005) at204.8 sXCL_HEAP_WINDOWS=1(XCL_PSO_WAIT_MSunset, cold heap cache)0/0)+0x23cf683(0xc0000005) at195.8 sXCL_PSO_WAIT_MS=50+XCL_HEAP_WINDOWS=1(warm heap cache)0/0at 74.8 s; 2 binds skipped at 89.0 s)0x887a0006device removed at89.8 sWhat changed with
XCL_PSO_WAIT_MS=50(default switch form):65,536+textures kept in step,9,900 / 10,176 MBtarget pages,2,304 MBsparse pools,14,446 MBlocal VRAM,30,799 MBpeak commit) with0device removals and0xboxbvhbuilder40-bit errors.148.8 sand204.6 s, GPU wait timeouts began (pending title ID3D12Fences during GPU wait timeout), followed from179.6 sby repeatedsparse: the queue has not reached fence value ... after 5 s (at 39141)warnings (11 logged), while the background workers hit large switch-form compute builds (38,865 msfor829 KB DXIL,26,485 msfor610 KB,25,680 msfor494 KB,7builds>= 10 s).0xc0000005at+0x23cf683(204.8 s), after which the title's crash filter stayed wedged holding~30.4 GBcommit until terminated (matching #1498).Not tested:
XCL_PSO_PRELOADenabled, repeats per configuration, D3D12 debug layer (0x887A002Dunavailable).AI use: Antigravity (
Gemini 4 Neon) ran the builds and title tests on this machine and drafted this report from the captured logs; reviewed before posting. No game files attached.@tatazildo on GitHub · 2026-11-24 18:54 UTC · original
Follow-up:
c160d86— substantial pipeline translation improvement, same crashTested current main again on the same hardware and driver configuration as my previous comment.
c160d86ef2efe3a07e4dfb473e4fa72eafb413c0XCL_DIRECT_DXILunsetXCL_PSO_WAIT_MSunsetRuntime comparison
47efa2ec160d86Approximately 15.6 times as many pipelines were successfully translated before the crash, despite fewer presents.
The runs were not duration-matched, so this is not a measured compilation speed multiplier.
Unfortunately, the same fatal-error signature persists:
The recorded stack matches my previous runs. The report also continues to contain mesh pipeline refusals (MS in the AS slot).
Synthetic validation
I also tested the newly merged direct DXIL implementation on my Ampere GPU:
Direct DXIL mesh rendering, vertex/pixel rendering, texture sampling, split-wave64 operations and sparse VRAM tests all passed.
The synthetic results are encouraging, although some hardware-specific and optional sample tests were skipped.
AI disclosure: ChatGPT assisted with test procedures, diagnostic analysis and preparation of this comment. All tests were performed on my own hardware.
Thanks again for the continued development!
@JRamos1993 on GitHub · 2026-11-24 18:01 UTC · original · edited 2026-11-24 19:06 UTC
Edited three times. The first edit was right: the slow programs are separate variants, all created in every run. The second edit was wrong: I said no title thread was inside XCL. The dump lines of the threads in pipeline builds are cut at 14 frames, before any title frame, and my filter missed them. Everything below is now checked against the build's symbols.
Test report on an RTX 5090, without
XCL_PSO_WAIT_MS: a warm pipeline cache does not move the stop. In the ~29 s before it, title threads are building compute pipelines inside their binds, as in #924's chain. Every GPU completion the title armed had already been reached.Setup: RTX 5090 32 GB (32-lane waves), driver 621.24; i9-14900KF, 64 GB; Windows 11 Pro 26200; DXC 1.9.2609.5; release build of
main930e8b4. Retail 1.0.2.1, first-run setup already done in an earlier run. Every run:XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PRESS_AT=25:A,xcl run <folder>. Between runs 1 and 2 I ranxcl shaders <pack>\shaders.rpf --precompile --only cs --pipelinesinto the same cache. I stopped it after 3 h at 22,600 of 26,503 programs. Every run adds its own kept blobs.+0x23cf683(rcx=0x70024c348)XCL_PSO_WAIT_MS=50No kept blob was refused. In every run without the option, the stop comes 28–30 s after the last presents.
Thread dumps, run A (
main930e8b4,XCL_THREAD_DUMP_AT=88,96,104; presents ended at 82 s, stop at 112.0 s):+0x23cf735.real::build_compute→translated_compute_pso→pso::console_to_dxil_in→dxc::compile, waiting for DXC;xcl-pso-*threads or on the title thread that binds the pipeline, which takes the job and builds it itself. So these three are title threads building in a bind.Run B (
930e8b4+ #924,XCL_TRACE_WAITS=1, dump at 92 s; presents ended at 78 s, stop at 108.0 s):+0x43c3d5dwaits on an event made at start that the title never sets.I also added local-only logging of the title's
ID3D12Fence::SetEventOnCompletioncalls (not for a PR). At 92 s, all 343 events the title had armed on its fences were reached, and no title fence was behind the values its queues were told to signal. So in this window the title is not waiting for the GPU.Reading: this matches the chain in #924 and the analysis above. The frame-loop thread waits for the ring, and the ring workers build compute pipelines in their binds, one after another. Even with most compute pipelines coming from the disk cache, the few new ones each run (5–10 s each) fill the window.
They are new each run because several slow programs come in near-identical variants (for example, two programs whose DXIL differs only in one multiply constant). Each run binds some variants no earlier run had bound.
With
XCL_PSO_WAIT_MS=50presents went on until 116 s and the stop came at 167 s. Builds took much longer: 17 over 5 s, the longest 55 s, with nine started at 74–81 s still running 31–55 s later.Also seen: in 4 of 16 runs the process did not end after the exception and stayed not responding until killed. That matches what #742 and #967 address; I did not test them.
Not tested:
XCL_HEAP_WINDOWS=1in a title run; #1273; thread dumps withXCL_PSO_WAIT_MS=50on this machine.AI use: Claude Code with Claude Opus 5.5 ran the builds and runs above, read the dumps and wrote this report.
@Tanju42 on GitHub · 2026-11-24 19:32 UTC · original
RTX 5060 Laptop 8 GB / 31 GB RAM datapoint on
c160d86— and a machine-side confounder worth excluding on small-RAM rigs.The stop reproduces exactly as reported:
unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0)at t+247.9 s, return addresses+0x4e4ba89, +0x2215c35, +0x71b9a20, +0x2215ecaon the stack — byte-for-byte the same signature as the reports above. Before it: world setup ran,45006 draws with translated pipelines (512 skipped, 116 with PC pipelines), 12825 dispatches, DirectStorage streaming OK,XCL_PRESS_ATA-script running (the black-screen intro-with-audio is indeed input-gated — the internal press script moves it along).Confounder we hit first and should save someone a day: at story load the process commits ~124–127 GB (
memory:lines; video 11.5 GB local + 5 GB non-local, target pages ~8 GB, arenas, sparse pools). On a 31 GB RAM machine with the default auto pagefile (13 GB -> 44 GB commit cap) the first runs looked like "whole process deadlocks at story start, 0 CPU, 0-byte crash dump, evenpowershellrefuses to start with0x800705AF(paging file too small)". That was commit exhaustion, not a lock. Static pagefile122880 143360(commit cap now 151 GB) removed it; the runs now reach the real stop instead of thrashing. Anyone on <=32 GB RAM seeing "silent whole-process freeze at story load, logs stop mid-line" should checkWin32_OperatingSystem.TotalVirtualMemorySizevs the title'smemory:line before analyzing stacks.Setup: retail 1.0.2.1, Series X profile,
XCL_NETWORK=1(arcCreateTicketXblstill fails with0x80072EFD— no real XBL token exists offline — the title walks past it),XCL_PSO_WAIT_MS=50 XCL_ACTIVITY=1, warm DXIL cache, plus a local vendor shim inCheckFeatureSupport(features >= 0x20000000 answered supported with 0xFF data) that removes the older+0x2474606wall — with that,c160d86's direct DXIL path compiles 8760 shaders in the first 24 s on this laptop.Compute PSO build times seen in this window: several 5-17 s, consistent with the #924/#1273 chain analysis. Matches the 30 s watchdog reading; nothing here separates pending-streaming from pipeline-backlog as the trigger either.
@rnold182 on GitHub · 2026-11-24 21:23 UTC · original · edited 2026-11-24 21:24 UTC
RX 9070 (AMD, RDNA4): the process's commit climbs ~1.5 GB/s from ~22 s until it runs out at ~65 GB, with video memory flat
Setup: AMD Radeon RX 9070 16 GB, Adrenalin 26.11.2; Ryzen 5 9600X, 32 GB RAM; Windows 11 Pro 26300. Commit limit 49 GB (system-managed page file at 17 GB at the start of the run). Release build of
main177cd40(cargo build --release --workspace, no local changes), DXC 1.9.2609.5. Retail 1.0.2.1, Series X profile.Settings:
XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_HUGE_PSO_CONCURRENCY=8,xcl run <folder>.What happens: the title presents at ~30 fps through the first screens, then the host aborts at ~53 s:
XCL_ACTIVITYmemory lines (process commit):From ~22 s the commit grows by 1.3–1.6 GB per second, steadily, while:
So the growth does not seem to come from XCL's GPU-side memory, DXC, or streaming. I can't tell from the log what is being committed.
The same machine on
e9e94ce(#1321 included) ended the same way at ~140 s (memory allocation of 934250 bytes failed), and on4178e88an earlier run reached 266 s / 6,600 frames at ~61 GB commit before a null read in the title (0xc0000005at+0x4b4c, read at0x3c); the process then hung holding the memory until killed.Also seen on this machine (same day's
main):XCL_DRED=1: four runs onb9b6ea6never got past the first presented frame (black screen, 1–2 presents). Without it the same build presents normally.Not tested: a larger fixed page file, NVIDIA,
XCL_DIRECT_DXILon the currentmain.AI use: Claude Code (Claude Opus 5.5) read the logs and drafted this comment; the runs and numbers are from my machine.
@Tanju42 on GitHub · 2026-11-24 21:56 UTC · original
Follow-up datapoint from the same RTX 5060 Laptop 8 GB / 31 GB rig, now on
main1d027e5(includes the merged #605, #1791 and #1747 TilePool rewrite;XCL_PER_LANEleft off). The stop is unchanged:unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0),rax=0 rbx=0 rcx=0x70024c348 rdx=1, return addresses+0x4e4ba89, +0x2215c35, +0x71b9a20, +0x2215eca— identical to my earlier comment, only earlier in wall time: t+155.7 s (was t+247.9 s onc160d86).Three machine-side changes since that comment, which reshape the memory picture:
XCL_ADAPTER+ GPU preference; the earlier run's 11.5 GB "local" was the Intel iGPU) andTdrDelay=60+ reboot: this removed the0x887a0006device-removed class that previously killed the run before the stop under DirectStorage/compute bursts. The GPU stays healthy through the whole run now.XCL_TEXTURE_PAGES_SYSTEM_MEMORY=1(local port of #1702 onto this tree) andXCL_HEAP_WINDOWS=1: at the stop, video memory is 4.3 GB local / 15.2 GB non-local, target pages 9,979 MB (pools 10,176 MB) — and process commit is only ~31 GB, not the ~124 GB of my first datapoint. So on this rig the 120 GB pagefile is no longer the binding constraint, and the stop happens with commit nowhere near the limit — unlike the AMD commit-climb pattern reported above, which we do not reproduce.UpdateTileMappingspath is confirmed active in the run (system-memory pool log line + new TilePool). It changes tile bookkeeping but does not move the stop; DirectStorage is still streaming in the final windows (531 requests / 61 MB in the last 2 s sample at t=178) when the title takes the null write.So on NVIDIA the stop is a clean, reproducible
0x23cf683null write at ~t+156 s with a healthy GPU, modest commit and active streaming — 60 MB crash dump retained locally if any stack detail would help.@Tanju42 on GitHub · 2026-11-24 22:22 UTC · original
Retest from the RTX 5060 Laptop 8 GB / 31 GB rig above, now on
main689f2db(PR #1679 direct-DXIL follow-up merged into ourpr887tree), withXCL_PSO_WAIT_MS=50set from the start. The stop is unchanged:0xc0000005write at 0x0 atgame_scarlett_master.exe+0x23cf683,rax=0 rbx=0 rcx=0x70024c348, now at t+131.4 s (was 155.7 s on1d027e5). GPU stays healthy, commit flat ~31 GB, video 4.1 GB local / 15.2 GB non-local, DS streaming until the end.One measurement from this run that may matter for the watchdog story: the two compute PSOs built just before the stop are synchronous here, e.g.
plus a 501,444 B DXIL build at 28,895 ms ~19 s earlier. A
huge, wanted at once (no slot)build looks like it binds synchronously regardless ofXCL_PSO_WAIT_MS, and 47 s exceeds the ~30 s window the title watchdog allows - which fits @Krashgamer's render-thread chain: a thread pinned in such a bind stops checking in and the title ends itself. On this rigXCL_PSO_WAIT_MS=50therefore cannot be the cure while the driver needs longer than the watchdog on huge DXIL. Will try a precompile pass over the big CS pipelines next and report.(497 compute PSO builds in the run, max 47.4 s; DXIL cache warm;
XCL_HEAP_WINDOWS=1 XCL_TEXTURE_PAGES_SYSTEM_MEMORY=1active.)@Dezmonius on GitHub · 2026-11-24 22:29 UTC · original
Additional first-run data point for the desktop RTX 5070. Windows 10 22H2 (19045.6466), i7-7700K, 32 GiB RAM, NVIDIA 610.88, XCL
9039900built in release, local Agility SDK 1.618.5, DXC 1.8.2502.11,XCL_NETWORK=0, title 1.0.2.1. Both runs captured at a 3840×2160 source extent.On the same PC, I moved the package from a SATA HDD to an NVMe SSD. XCL and the shared DXIL cache were on the NVMe drive for both runs. The first sampled PLAYER1 screen was at 59.6 s from the HDD and 36.0 s from the SSD. A 60-frame interval bounded by identical captures of that screen averaged 7.83 and 7.25 FPS respectively. This was a sequential comparison with a reused cache, so it does not isolate the storage effect.
The HDD run reached first-run setup and ended at the 300 s timer with 2,125 displayed frames. The SSD run progressed through setup into a subsequent loading screen, with 4.3–4.5 FPS over the later 300-frame windows. I stopped it externally at 232 s when system commit headroom fell below the 3 GiB reserve. The last recorded process commit was about 21.4 GiB. The last sampled frame was 980. No title exception or device removal was logged before the stop. These later phases are not a like-for-like FPS comparison.
Windows 10 detail: as the DXC files were initially stored on the drive mapped to the console's game path, the preflight reported DXC 1.8 but the game host loaded the installed SDK's 1.4 and rendered black frames. Pointing
XCL_DXC_DIRto the same signed DXC 1.8 files on the NVMe drive kept both processes on 1.8 and made the first-run screens visible.No game files, captures, dumps or raw logs attached. AI use: Codex assisted with the local test harness, log analysis and report.
@AmateurWizrd on GitHub · 2026-11-24 23:57 UTC · original
RTX 5070 Ti 16 GB, plain
main1d027e5, default settings: the abort atexe+0x23cf683no longer fires here, the title stays alive with no presents instead. WithXCL_SLEEP_HOLD=0the abort is back 28.4 s after the last present. So on this card the stop is held off (#1288's sleep rule), not removed.Same scripted route in every run (fresh title state, button presses by
XCL_PRESS_AT, last press at 124 s),XCL_RUN_SECONDS=300:exe+0x23cf683XCL_PSO_WAIT_MS=50(plus threeXCL_PROBEbreakpoints)XCL_SLEEP_HOLD=0driver compile startlines for compute pipelines keep coming after 120 s (8 in run 1, 44 in run 3).unhandled exception 0xc0000005atexe+0x23cf683(write at address 0x0) at 154.471 s.c160d86this machine and route gave the abort at 153–159 s in six of six runs (three with default settings, three withXCL_DIRECT_DXIL=1).For anyone comparing against earlier reports: a default run of current
mainthat ends without this exception is not by itself a sign of getting further.XCL_SLEEP_HOLD=0gives the old behaviour back for comparison.Tested
1d027e5c7(main), clean tree, release build,xcl runwithXCL_NETWORK=0 XCL_ACTIVITY=1, the retail title, package 1.0.2.1--test-threads=4): 958 passed, 43 ignored on this card, and the same counts on the integrated AMD Radeon (64-lane waves) with and withoutXCL_SPLIT_WAVE64=1; one test (test_title_runs_and_game_folder_is_untouched) fails here for a local reason (the tests ran under an account without write access to the test's folder)Not tested
XCL_PSO_WAIT_MS=50run1d027e5; an empty shader cacheAI use: omp. Claude Fable 5.2 ran the tests and wrote this report; Claude Opus 5.5 read the logs.
@IAmTheSween on GitHub · 2026-11-25 03:19 UTC · original
Independent data point on a desktop RTX 5070, current
maincbc296ab65. Same conclusion as@AmateurWizrd's 5070 Ti result: with defaults the
0xc0000005does not fire here at all, andXCL_SLEEP_HOLD=0brings it straight back.Setup
maincbc296ab65,cargo build --release -p xcl, rustc 1.100.0, DXC 1.8.2502.11e95020b2…(the hash CL published)XCL_NETWORK=0,XCL_ACTIVITY=1XCL_SLEEP_HOLD=0XCL_SLEEP_HOLD=0unhandled exception 0xc0000005 in game_scarlett_master.exe+0x2215c35 (write at address 0x0)at t+58.5 s, process ends0xc0000005The stop address is one of the return addresses already in this thread:
+0x2215c35, with+0x71b9a20and+0x2215ecaon the stack, so it is the earlier stage of the same family, not+0x23cf683. The last thing before it is a burst ofD3D12.X: video-memory arena #9..#12lines(119 MB → 149 MB of arenas made).
No device removal in any run.
report.jsonof the clean runs has an emptycrashandpresents: 5620/1835.Suite on this machine at the same commit (
cargo test --workspace -- --test-threads=4): 1094passed, 4 failed, 26 ignored, 25 SKIPPED; the 4 failures are the
gpu::dxil::fuzz_testsPSO0x8007000E, reported in #42.Written by OpenCode with DeepSeek V4.1 Flash Abliterated, from the runs above.
@justrhoto on GitHub · 2026-11-25 06:22 UTC · original
RTX 4070 Ti SUPER,
XCL_PSO_WAIT_MS=500: the abort at+0x23cf683with the title's submit thread intitle_textures::refresh→texture::upload_batch→gpu::fence::wait, which the sleep hold (#1288) does not countThis fits @AmateurWizrd's result that the abort comes back when the sleep hold does not apply. With a bind budget, binds stop holding the title after 500 ms, so a different long wait in XCL is what runs out the title's stall check.
Run: retail title 1.0.2.1, release,
XCL_PSO_WAIT_MS=500andXCL_DIRECT_DXIL=1, nothing else set. Build:main6020a33+ #751 + #1686 (rebased) + #2076, local commitd9e3a89. None of these PRs touchgpu/texture.rs,gpu/fence.rsorhle/kernelx.rs. #751 changes howtitle_texturesreads the title's memory before an upload, not the upload or its wait.unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0) rax=0x0 rbx=0x0 rcx=0x70024c348 rdx=0x1at 471.3 s. The same registers as in this issue.GPU queue.Wait … did not complete within 5000 ms(values>= 0x999and>= 0x99a, waiters on q0–q3, producers on q1–q3), all released on the CPU.console code so far) until the abort 31.7 s later. Those progress lines are sparse, so this is an upper bound on the gap, not a measured one.ExecuteCommandLists: The stall-check thread is inSleepat+0x23cf735.upload_batchwaits on the CPU up to 10 s for each batch, andpso_async::title_heldis false then, so the stall check counts that time. Notexture copy:error was logged, so I can't tell from the log whether a single wait ran out or several batches in a row waited.I can run #1782 (and #455, which conflicts with
mainhere) on top of the same tree with the same settings, if that helps decide between them.Hardware: RTX 4070 Ti SUPER 16 GB, driver 32.0.16.1088; Ryzen 5 5600X3D (6 cores, 12 threads); 64 GB RAM; Windows 11 Home 26200.
AI use: Claude Code (Claude Opus 5.5) read the logs, symbolized the dump and wrote this comment. I ran the title.
@Tanju42 on GitHub · 2026-11-25 06:27 UTC · original
Warm driver-blob cache +
XCL_PSO_WAIT_MS=2000on RTX 5060 Laptop 8 GB:+0x23cf683no longer fires; run dies later as0x887a0006device-removed at t=334 s. Measured datapoint.Setup: pr887 tree = origin/main
689f2db+ merged 605/800/1046/1053/615/242/1702/1795 (no local XCL code changes). Precompiled the CS set once withxcl.exe shaders C:\game\shaders.rpf --precompile --only cs --pipelines(2805 driver blobs on disk), then one title run withXCL_PSO_WAIT_MS=2000,TdrDelay=60,XCL_TEXTURE_PAGES_SYSTEM_MEMORY=1,XCL_HEAP_WINDOWS=1. No rebuild between seeding and the run.Warm run vs the 23:17 cold run (same exe,
XCL_PSO_WAIT_MS=50):driver blob supplied, 0 absent, 0 refused-adapter; the 39huge, wanted at oncedemands were all served from disk (no 28-47 s sync builds).0xc0000005 +0x23cf683write-at-0 at t=131.4 s. This warm run never hit that exception. Last activity window with presents: t=98.1 s (12 presents/2 s). From t=100.1 s: 0 presents for the rest of the run, while draws/dispatches/DirectStorage kept running (last nonzero window t=332.3: 25 draws, 17 dispatches, 29 DS requests).D3D12 device removed: 0x887a0006at t=334.2 s, 1.1 s after aWait64BitValueX ... bridged to GPU queue.Wait (wait-before-signal)line at t=333.1 s; then the title's int3 at+0x2474606(rcx=0) at t=334.208 — which I read as a consequence of device loss, not the vendor-feature wall.TdrDelay=60was active, so something on the queue hung > 60 s rather than a slow aggregate of short compiles.Reading: on our rig the cold-blob sync compiles +
PSO_WAIT_MS=50were sufficient to produce the+0x23cf683death; removing both moves us onto the device-removed/never-finishing-dispatch class others report at world load (qcdaark / HKEY-Funk-Machine / joeypercia patterns).Run #2 is underway with
XCL_GPU_CULPRIT=1on the same seeded cache to name the stuck dispatch; will post the named program here.@Tanju42 on GitHub · 2026-11-25 06:35 UTC · original
Follow-up with the run #2 result, including a correction:
XCL_GPU_CULPRIT=1as promised — it produced no culprit output. Checked the source tree: it is origin/main 689f2db-based, andXCL_GPU_CULPRIT/XCL_GPU_PROFILEdo not exist there (onlyXCL_X_SPINis present). The flag was silently ignored. Anyone on a pre-XCL_GPU_CULPRITmain thinking the knob is active because the env var is set: it is a no-op.driver blob supplied, 0 absent, 0wanted at oncethis time — the 39 from the previous run were the now-disk-served set). Last activity window with presents t=104.8 s (1 present); from t≈107 s: 0 presents, all-zero activity windows by t=136.0x887a0006device removed at t=122.3 s, then title int3+0x2474606at t=122.301.So two identical warm runs died device-removed at t=122.3 s and t=334.2 s respectively — last-present in both runs at t≈98-105 s, i.e. the stop happens within ~20-230 s of entering the zero-present streaming phase, non-deterministically. Matches the "chain is card AND timing dependent, a single clean run proves nothing" finding from #675.
Next controlled run on this rig:
XCL_PSO_WAIT_MSunset entirely (wait-forever / zero-skip), per the HKEY-Funk-Machine datum that unset produced no device removal in 360 s on RX 9070. Will report.@Tanju42 on GitHub · 2026-11-25 06:38 UTC · original
Follow-up on my warm-cache comment: with the A-press schedule densified into world load, the death moves to t~125 s — and the 15 s before it are the cycle-guard warning class.
Two more runs on the same seeded driver-blob cache (2805 blobs; this time 297
driver blob supplied, 0 absent, nowanted at onceat all):XCL_GPU_CULPRIT=1+XCL_PSO_WAIT_MS=2000, A presses every 15 s (25..320 s): device loss, crash dump at t=125 s (title crash report: Frame 610,Game Running, 723 streaming requests, TileHeap 3.6/6.2 GB).XCL_PSO_WAIT_MSunset (zero skips, per @HKEY-Funk-Machine's model): identical end —D3D12 device removed: 0x887a0006at t=125.0 s, the title's int3+0x2474606(rcx=0) in the same instant, crash report Frame 618, 612 streaming requests.Run #3's log, t=110.2-113.0 s: 9 ×
D3D12.X: Write64 Signal at 0x70417f... on q0..q4 would close a GPU cycle (waiters=[q0,q2,q3]) - signalled on CPU, then device loss at 125.0 s, then all-zero activity windows. The denser A-press schedule moves world load (and the death) earlier — from t=334 s with my earlier sparse schedule to t~125 s; last-present->death no longer discriminates between 2000 and unset: skipping is not our variable anymore.On our rig the end now reads like @humsterbumster's and @justrhoto's direction: just before device loss the queue is waiting, fences that would close a GPU cycle are broken on CPU, and there is no sync-build path left (2000/unset
PSO_WAIT_MS, zerowanted at once). Next on this card: naming what is actually in flight at the removal (Aftermath-style). Run #2's log rotated before I could grep its cycle-guard lines; the dump is kept.@JRamos1993 on GitHub · 2026-11-25 07:09 UTC · original
RTX 5090 on current
main568e7db(with #1288): no stop in 300 s, but no frame after 92 s. The world load is still building the title's compute pipelines when the run ends.Setup: RTX 5090 32 GB, driver 621.24, i9-14900KF, Windows 11. MSVC release build, retail title 1.0.2.1,
XCL_NETWORK=0, A at 25 s, 300 s runs. The driver-blob cache was partly warm from earlier builds: 863 blobs at the start of run 2.0xc0000005in XCL'stitle_texturesat 42.7 s (the read #751 fixes; I posted it there)XCL_RUN_SECONDS): no device removed, no title crash, no watchdogRun 2 is what @Rednaxeh describes on RDNA3 for current
main: the watchdog is gone, and the load is bound by the driver compiling the pipelines the title binds. Every activity window after 92 s has 0 presents. Nowanted at oncelines, and no device removal in 300 s on this card, unlike @Tanju42's runs, which died with0x887a0006at 122–334 s.This is one run per row, and as #675 found, one clean run proves little. With 160 more blobs cached, a third run would likely get further; I stopped here to leave the machine idle.
AI use: Claude Code with Claude Opus 5.5 built
main, ran the title and wrote this. No title data beyond XCL's own log counters.@Tanju42 on GitHub · 2026-11-25 07:11 UTC · original
Third warm datapoint, this time testing the
0d25b89cache-flush-as-UAV-barrier fix in isolation on our rig (RTX 5060 Laptop 8 GB):0d25b89onto the previous tree (689f2dbbase) with an env kill-switch added; identical binary otherwise, same seeded driver-blob cache,XCL_PSO_WAIT_MSunset (zero skips).0x887a0006at t=121.8 s; last present-bearing window t=104.7 s. With OFF: t=125.0 s. Same class, same timing — the cache-flush barriers do not move this wall on our card.Tree rebuilt onto a base with
gpu_profile(#2057) so the next runs can name the stuck dispatch; will report the named program.@JRamos1993 on GitHub · 2026-11-25 08:28 UTC · original
Follow-up: six more warm runs of
main568e7dbon the RTX 5090. Nothing crashed and no device was removed, but every run stops presenting at 80–84 s and stays black to 300 s. Same build and setup as my comment above (A at 25 s,XCL_NETWORK=0, 300 s each, back to back).unhandled exception, 0 device removed. (Run 1's crash is thetitle_texturesread posted on #751.)95cc13288a27a96e,driver blob absent): from run 7 on, its driver compile starts at about 4.7 s and has not finished when the run ends at 300 s, in all three runs. I did not check whether the title waits on it or only a worker.So on this card, with #1288 in, the remaining stop is the build time of the title's huge compute programs, not a crash or the watchdog. Nine runs were not enough to cache them all.
AI use: Claude Code with Claude Opus 5.5 ran the title and wrote this from XCL's log counters. No title data beyond XCL's own logs.
@jennydeth on GitHub · 2026-11-25 17:57 UTC · original
RTX 3060 12 GB on current
main06c9f55: no crash and no device removal in 600 s, but no frame after ~100 s. The load is still driver-compiling compute pipelines at the end, including record95cc13288a27a96e(#1307), which had not finished 136 s after it started. On the same machine, the oldera1672efcrashed with this issue's+0x23cf683(rcx=0x70024c348) at 121 s on the same route.Setup: NVIDIA GeForce RTX 3060 12 GB, driver 32.0.16.2101 (wave32), Ryzen 5 5600X, 32 GB RAM, Windows 11 Pro 10.0.26300.9974. Release build, DXC 1.9.2609.5 (
XCL_DXC_DIR), retail title 1.0.2.1,XCL_NETWORK=0,scripts/smoke.ps1 -Seconds 600. Profile already past the first-run flow from earlier runs, so the title goes from its start screens straight into the story load. Driver-blob cache partly warm from ~6 earlier runs today.Input:
XCL_PRESS_AT=20:A,24:A,…,56:A,60:DOWN,70:DOWN,72:A,80:A,83:DOWN,85:A,88:DOWN,90:A, then A every 5 s to 166 s. (On a fresh profile this is the route through Legal Notices: A alone keeps reopening "Copyright", and "Next" only enables after the photosensitivity page's countdown; then the two terms checkboxes and Confirm. With the flow already done, the extra presses land on loading screens.)main06c9f55(this run)a1672ef(same machine, same route, earlier today)XCL_RUN_SECONDS)0xc0000005write at 0x0,+0x23cf683, 121 swould close a GPU cyclelinesrequest failedAfter the last present (100–600 s): 250 activity windows with 0 presents, 58 submits, 191 draws and 7 240 dispatches in all, the last busy window at ~588 s. So the title is not hung; it is waiting on pipelines.
Pipeline builds: 47 driver compiles started, 46 finished; 36 of them took ≥ 1 s (394 s of build time in all), 3 took ≥ 20 s.
driver blob supplied10,driver blob absent37,wanted at once0. The tail is the same shape as the RTX 5090 runs above, slower:95cc13288a27a96e:15008 KB of HLSL would compile unoptimised – direct DXIL instead (2363 KB),driver compile start #1626 … 2420640 B DXIL … driver blob absentat 463.9 s, no finish line by 600 s.Memory: commit reaches 29.0 GB by 120 s and stays at 28.8–30.8 GB to the end, on a 32 GB machine (video memory 13.9 GB local, 4.7 GB non-local at the end). That is roughly double the ~15 GB the README gives for the menus. I have not checked whether that is expected for a world load or a separate problem.
Not tested: whether the world appears given more time (the run ends at 600 s with #1626 still compiling); a fully cold driver cache; AMD / wave64; any open PR on top of
main.AI use: Claude Code (Claude Opus 5.5) built
main, worked out the input route, ran the title on my machine, read the log and wrote this.@xpatfussy69x on GitHub · 2026-11-26 02:19 UTC · original
RTX 3060 12 GB on
mainb49be18, with the compute pipelines built ahead (--used-only): almost every compute pipeline then comes from its driver blob, the compile wall goes away, and the next run loses the device (0x887a0006) at 69 s in the story load. One run of each, so the timings are rough.Setup: NVIDIA GeForce RTX 3060 12 GB, driver 32.0.16.2124 (wave32), Ryzen 5 7500F, 32 GB RAM, Windows 11 (26300), release build, retail title 1.0.2.1, profile past the first-run flow.
XCL_NETWORK=0, A every 4 s from 20 s,XCL_FRAME_DUMP=300, default settings otherwise,scripts/smoke.ps1.Built ahead:
xcl shaders shaders.rpf --precompile --only cs --pipelines --used-only(1 268 pipelines from earlier runs; 11 compile threads). 300 pipelines in the first ~8 min, then 50 more in 30 min on the big programs; I stopped it after ~48 min at 350.08db802, nothing built ahead (180 s)b49be18, built ahead, 1st (240 s)75862c583fd788f5(1 259 756 B DXIL, no blob) started at 33.6 s and took 194 383 ms in the driver; no frame while it built; no crashb49be18, 2nd (300 s, that blob now on disk)0x887a0006at 69.2 s, title stoppedThe 2nd run, just before the removal:
Local video memory was 12 326 MB at 68 s (the 13 824 MB title budget of #1337 on a 12 GB card). One other big program was still building without a blob: record
cbef13aafac162f4(1 222 308 B DXIL), from 22.5 s.So on this card the order is the one described above for others: the long driver compiles first, and once they come from blobs, a hang in the load. Whether the hang depends on the resubmitted list (#1452) or on video memory here, one run cannot say.
Not tested
title_memory_mblowered or with #2357.AI use
@crazymanjared on GitHub · 2026-11-26 03:12 UTC · original
AMD + Wine data point (RX 6950 XT / RDNA2, CachyOS, GE-Proton11-14 host, XCL built from
amd-dev+ MRs 175/393 rebased today + raw-fence/raw-command-list fixes for Wine vtable checks):Runs reach in-game reliably at a steady 30 fps with the coherent window capped (
XCL_COHERENT_MB=512, per #871's amdgpu userptr analysis — without the cap the title ran 0.7 fps while every amdgpu submit stalled; the cap fixed it outright).Then: deterministic
0xc0000005 write at 0x0 in game_scarlett_master.exe+0x23cf683atpresents≈1520-1580(~95 s), twice in a row, same presents count — the deliberate-watchdog-write signature per PR #1062 (thread exit path then shows+0x2215c35as in #746). Title version 1.0.2.1-CYBERLEEK. XCLwindow closednever reached; GPU side healthy (no device removal, 0 fallback pipelines, sparse upload/readback active).Question: on this title version is the world-load watchdog stall expected to need
XCL_PSO_WAIT_MS=50(testing now), or is #505's ListX #101 area still the blocker on retail 1.0.2.1? Happy to run instrumented builds — our stack builds in ~40 s and the Wine-specific fixes suggest more from-iface/adopt sites may need the raw-object treatment.@crazymanjared on GitHub · 2026-11-26 03:45 UTC · original
Follow-up on our AMD+Wine data point, now with
XCL_NETWORK=0+XCL_PSO_WAIT_MSruled out (the latter: 0 presents on AMD, #2577 disk-cache skip — wait window starves frame 1 with ~59k queued pipelines).Current shape on RX 6950 XT + GE-Proton11-14 + vkd3d master (
-Db_ndebug=true) + XCLamd-devrebased 2026-11-25 (+ raw fence/allocator/command-list fixes for Wine vtable checks):XCL_PRESS_AT, upstream bot trick) walks it ~40 s further.8192 page lists written after their request was enqueued), sparse upload/readback activity stops, no watchdog kill, no crash, thread dumps show everything parked. Full-system deadlock of title logic; process alive indefinitely (tested 14 min). NoListX#101 activity at all on this title/version — different stall from #505's.Question: anything we can instrument to see what the main thread parks on (wait-chain dump of the title's threads, or does XCL log the last-signalled handle anywhere)? Happy to run builds with extra tracing on Wine/AMD — the Wine-specific from-iface fixes above all reproduce reliably, so a trace we send you should be as good as a native one. Happy to run builds with extra tracing on Wine/AMD.
@chenzhehao1129-eng on GitHub · 2026-11-26 05:01 UTC · original
One more data point for the "watcher stop is gone but nothing appears" shape, from an RTX 4070 Ti SUPER (driver 580.97, Windows 11 26100, Ryzen 9 9900X, 61.5 GB):
xcl runwith default settings: the title stops itself at 11,915 presents (about 6.5 minutes) with0xc0000005write at0x0ingame_scarlett_master.exe+0x23cf683,rcx=0x24c348, exactly as #1062 describes. Before it, three compute PSO compiles of 5,185 / 1,515 / 730 ms, and aCreateShaderResourceView(RAYTRACING_ACCELERATION_STRUCTURE) … writing empty BVH descriptorwarning.XCL_PSO_WAIT_MS=50 XCL_NETWORK=0 XCL_ACTIVITY=1: no watchdog stop at all — 34,200 presents and still 30.0 fps after 19 minutes,0 draws skipped, commit flat at 14.6 GB. But the picture never changes: a dark screen with the intro audio playing (xapu: 67,157 Opus packets decoded, 0 errors), no spinner, no black-frame warnings. So we are in the state the reporter in #1617 calls "waiting on pipelines", except that presents keep coming at the display rate while the movie's frames never arrive.Two things that may be worth knowing:
XCL_NETWORK=0does not stop the Xbox Live sign-in retries on this title: the log keeps printingXUser: token #5 … #12 … CreateTicketXbl3 — none: no Xbox Live (0x80072EFD)through the whole intro. If a title thread is waiting on that call, dropping the network is not enough to rule the sign-in path out.PSO_WAIT_MS, so the black picture looks specific to the movie/world presentation path rather than a general device problem.Happy to run a build with extra tracing if that helps separate "PSO never finishes" from "finished but the present path is skipped".
No game data included; counts and timings only.
@GreemSC on GitHub · 2026-11-26 07:52 UTC · original
@crazymanjared a second AMD + Wine data point on
amd-dev, and a question about your Wine fixes so I don't redo them.Setup: RX 7900 XT (RDNA3), Mesa 26.2.5 RADV, Proton-CachyOS Wine 11, vkd3d-proton with dxil-spirv 53aac41.
amd-devb5c0275+ #1732 (with #867/#871/#877) + #684 + #1860 + diagnostics (#2244/#1734/#1656). Three newamd-devfences that would have got a Wine fence proxy go throughcreate_raw_fence(console_heap.rssignal_live_queues_for,vram.rssignal_device_queues,title_textures.rssubmit_on_title_queue). Retail 1.0.2.1, warm caches,XCL_DIRECT_DXIL=1.What happens: 3 of 3 runs at 30 fps until a deterministic crash at 104.5–106.7 s, before any
ListX #101:0xc0000005 in d3d12core.dll+0x56f58c (read at address 0x2a80). XCL's frame issparse::readback_now,sparse.rs:1903:s.queue.ExecuteCommandListsof the pooledReadbackJoblist (take_readback_job, from8549b14d"unlock sparse Map readback waits"), called from theres_maphook (aMapwith a read range on a sparse buffer). 7.8 GB RAM and 8.9 GB VRAM at that point.For comparison,
mainb49be18+ the same Wine stack + #2615/#2598/#751 presents to the end of 360 s runs (4 of 4, intro cutscene), so the stop looks specific toamd-dev's readback path under Wine.Question: do your "raw fence/allocator/command-list fixes" cover this
ReadbackJoblist, and did your tree already have8549b14d? If your fixes are on a public branch or in a gist, I'd test them here on RDNA3 rather than write my own.AI use: Claude Code (Claude Opus 5.5) ran the builds and runs and wrote this comment.
@jennydeth on GitHub · 2026-11-26 08:26 UTC · original
Follow-up to my RTX 3060 run above, same machine, same
main06c9f55, same route: two more 600 s runs on warm caches, afterxcl shaders … --precompile --only cs --pipelines --used-only, still stop presenting at 94 s and 96 s. About 12 s later, with nothing compiling, the title asks for compute programs that no earlier run had built (0.89–1.21 MB of DXIL). The driver builds them one at a time, 44–85 s each for the ones that finished. In between, the title only issues a few dispatches. No crash or device removal in either warm run.Setup: as in the first comment (RTX 3060 12 GB, driver 32.0.16.2101, 32 GB RAM, release, DXC 1.9.2609.5,
XCL_NETWORK=0,scripts/smoke.ps1 -Seconds 600, the sameXCL_PRESS_ATroute). Before each run:xcl shaders "<game>\shaders.rpf" --precompile --only cs --pipelines --used-only. The first made 564 pipelines in 286 s; the second made 572 in 134 s, 571 of them from the driver cache.used-pipelines.txtwent 803 → 811 → 819 entries.After the last present:
95cc13288a27a96e(#1307), which had not finished in the first run. In run 2 the six records run 1 built also came back with a driver blob, at 9.2–9.5 s.So on this card, the programs earlier runs reached come back from the driver cache, and each warm run then asks for 5–6 new ~1 MB programs, 4–5 of which finish within the 600 s, most taking 70–85 s to build. Presents stop about 12 s before the first of these starts, so these logs do not show that the builds are what stops the presents.
Current
main08db802(600 s, same route, default settings, no precompile before it):With
XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1, all 2,689 compute programs built ahead on08db802(one process, 37.7 min, 8,684 pipelines, 0 refused):08db802): presents still stop at 100 s and 106 s, with no removal. After that the driver builds compute programs of ~0.6–1.0 MB, mostly 10–15 s each (8–22 s), one compute program after another.08db802): the long compiles are gone, but presents still stop at 102 s. The device is removed silently (0x887a0005) about 10 s after that.08db802, presents went on to 167 s and the device was removed at 320 s. The runs are in my comment on #2403.For comparison only: @bstillbstill's 3090 Ti (on #2057) reached the scene start on #2057's tree plus #1452's upload wait, and those runs then hit
0x887a0005/0x887a0006or stopped presenting between 70 and 84 s. Their setup differed in several ways (#2057's switches, a 24 GB card,XCL_PRECOMPILE_SLICEin 4 processes, whichmaindoes not have). Without the direct-DXIL switches, a full precompile on the HLSL path here was much slower: I stopped it after 825 pipelines and ~73 min.Correction to my first comment: "250 activity windows with 0 presents, 58 submits, 191 draws and 7 240 dispatches" counted the 2 s window ending at 100.3 s, which still had 3 presents (51 submits, 45 draws, 6 893 dispatches). The windows with no presents were 249, with 7 submits, 146 draws and 347 dispatches up to ~587 s. Nearly all of the submits and dispatches, but not the draws, fell in that one window.
Not tested: a full precompile on the HLSL path; more than two warm iterations on
06c9f55; default-settings runs longer than 600 s; AMD / wave64.AI use: Claude Code (Claude Opus 5.5) ran the precompiles and the runs on my machine, read the logs and wrote this.
@GreemSC on GitHub · 2026-11-26 10:32 UTC · original
@crazymanjared follow-up to my question above: the
amd-devcrash under Wine at ~105 s has a likely cause and a one-line fix here (cc @gustavsi for #867).Cause (read from the code, then tested once):
real::initbuilds the sparse state before adopting the device, somain's readback list is native.amd-dev's pooledReadbackJob(8549b14d) makes its allocator and list later, through the device XCL has already adopted, so thecreator!hook adopts them too.readback_nowthen submits that list withs.queue.ExecuteCommandLists, on a native queue: XCL'sq_execute_command_listshook, and #867's per-listUnadoptGuard, are never in the path. vkd3d-proton'sd3d12_command_list_from_ifacedoes not know the replaced vtable and returns NULL, and the submit reads through it (the crash reads at 0x2a80 ind3d12core.dll). A vkd3d-proton with the relaxedfrom_ifacepatch from #175 would not see it.Fix tried: in
sparse::readback_now, right afterjob.list.cast::<ID3D12CommandList>(),let _native = super::real::UnadoptGuard::new(job.list.as_raw());for theExecuteCommandListscall (the same pattern #867 uses inrunner.rs::submit_list). A cleaner form would make the job's allocator and list through the device's original slots, ascreate_raw_fencedoes for fences.Result (RX 7900 XT, RADV, Proton-CachyOS Wine 11,
amd-devb5c0275+ #1732 stack + #684 + #1860 + diagnostics; one 200 s run): no crash in 210 s, against 3 of 3 runs crashing at 104.5–106.7 s without the guard. The title then reachesListX #101at 138.6 s and stops presenting 1.5 s later (amd-devhas no #2615), with 0 device removals.The same shape exists on
nvidia-dev(rb_job/pc_execute, and #2749 keeps it), so it may bite any Wine user with an unpatched vkd3d-proton there too.Not tested: more than one run, Windows (where the hook path does not matter),
nvidia-dev.AI use: Claude Code (Claude Opus 5.5) traced it with a read-only agent, made the one-line change, ran the run and wrote this.
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175