You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
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
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.
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).
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.
What I already tried (all negative, same package, same config unless noted)
XCL_ASYNC_PSO=0 - worse: 0 presents, crashes earlier at game_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_NOTIMPL for all 9 stubbed d3d12_xs methods
(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 = 8192 in xcl.toml is not honoured: report.json still says uma_mb: 4095, and it sits at
3,998.6 MB (99.8%) right before the crash.
With device_type = "lockhart" the pool drops to 72%, but the title then hits a fatal int3
(0x80000003) at game_scarlett_master.exe+0xcc2834, with console_type_raw still 6.
XCL_TRACE_IMPORTS=d3d12_xs: the last 12 traced calls before the crash are all D3D12SerializeVersionedRootSignature from +0x55ac80f, but they all succeed (17x console flags 0x3000000 dropped, 0 failures) - correlation with background pipeline work, not
the cause.
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-fences
thread 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.
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
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
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.
@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.
Both 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).
@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.
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)
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
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
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
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_refused empty). The fatal-error path is still taken, so missing BCPack textures are not what sends the title there.
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 0x0 at game image offset +0x23cf683, exception 0xc0000005. The caller +0x4e4ba89 and register values rax=0x0 rcx=0x70024c348 rdx=0x1 r8=0x7074d8c40 match 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.
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, +0x2215eca on 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_AT A-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, even powershell refuses to start with 0x800705AF (paging file too small)". That was commit exhaustion, not a lock. Static pagefile 122880 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 check Win32_OperatingSystem.TotalVirtualMemorySize vs the title's memory: line before analyzing stacks.
Setup: retail 1.0.2.1, Series X profile, XCL_NETWORK=1 (arc CreateTicketXbl still fails with 0x80072EFD — 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 in CheckFeatureSupport (features >= 0x20000000 answered supported with 0xFF data) that removes the older +0x2474606 wall — 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.
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:
memory allocation of 1299280 bytes failed
Game exited with code 0xc0000409
XCL_ACTIVITY memory lines (process commit):
t
commit
video local / non-local
target pages
sparse pools
10 s
12,765 MB
2,580 / 4,676 MB
714 MB
896 MB
20 s
24,959 MB
6,532 / 4,707 MB
3,621 MB
960 MB
30 s
32,627 MB
6,532 / 4,707 MB
3,621 MB
960 MB
40 s
46,306 MB
7,492 / 4,707 MB
4,578 MB
1,024 MB
50 s
62,240 MB
7,492 / 4,707 MB
4,578 MB
1,024 MB
52 s
65,740 MB
7,684 / 4,723 MB
4,609 MB
1,152 MB (arenas 311 MB)
From ~22 s the commit grows by 1.3–1.6 GB per second, steadily, while:
video memory, target pages, sparse pools and arenas stay roughly flat;
between 24 s and 36 s there are almost no shader compiles (the title registers ~10k shaders only at 36–48 s);
DirectStorage reads nothing from 24 s until the last sample (2,051 requests, 49 MB in the final 2 s).
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 on 4178e88 an earlier run reached 266 s / 6,600 frames at ~61 GB commit before a null read in the title (0xc0000005 at +0x4b4c, read at 0x3c); the process then hung holding the memory until killed.
Also seen on this machine (same day's main):
XCL_DRED=1: four runs on b9b6ea6 never 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_DXIL on the current main.
AI use: Claude Code (Claude Opus 5.5) read the logs and drafted this comment; the runs and numbers are from my machine.
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_LANE left 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 on c160d86).
Three machine-side changes since that comment, which reshape the memory picture:
Forcing the NVIDIA adapter (XCL_ADAPTER + GPU preference; the earlier run's 11.5 GB "local" was the Intel iGPU) and TdrDelay=60 + reboot: this removed the 0x887a0006 device-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 D3D12.X: allow title texture pages in system memory #1702 onto this tree) and XCL_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.
D3D12.X: eliminate multi-heap UpdateTileMappings and per-texture Signal stalls in vram::Pages #1747's per-heap UpdateTileMappings path 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 0x23cf683 null 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.
Retest from the RTX 5060 Laptop 8 GB / 31 GB rig above, now on main689f2db (PR #1679 direct-DXIL follow-up merged into our pr887 tree), with XCL_PSO_WAIT_MS=50 set from the start. The stop is unchanged: 0xc0000005 write at 0x0 at game_scarlett_master.exe+0x23cf683, rax=0 rbx=0 rcx=0x70024c348, now at t+131.4 s (was 155.7 s on 1d027e5). 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.
driver compile finish #1438: compute PSO, 666824 B DXIL, 47447 ms, huge, wanted at once (no slot)
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 of XCL_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 rig XCL_PSO_WAIT_MS=50 therefore 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=1 active.)
Additional first-run data point for the desktop RTX 5070. Windows 10 22H2 (19045.6466), i7-7700K, 32 GiB RAM, NVIDIA 610.88, XCL 9039900 built 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_DIR to 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.
RTX 5070 Ti 16 GB, plain main1d027e5, default settings: the abort at exe+0x23cf683 no longer fires here, the title stays alive with no presents instead. With XCL_SLEEP_HOLD=0 the 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:
Run
Settings
Last 2 s interval with presents
exe+0x23cf683
Exit
Peak commit
1
default
124.0 s
none in 300 s
0x0
31936 MB
2
XCL_PSO_WAIT_MS=50 (plus three XCL_PROBE breakpoints)
252.1 s
277.6 s
killed
39609 MB
3
default
122.1 s
none in 300 s
0x0
32318 MB
4
XCL_SLEEP_HOLD=0
126.0 s
154.5 s
0xc0000005
32428 MB
Runs 1 and 3: in the 86 activity intervals from 128 s to the end there are 0 presents, and 8 submits (run 1) or 0 submits (run 3); 0 device removals. driver compile start lines for compute pipelines keep coming after 120 s (8 in run 1, 44 in run 3).
Run 4: 0 presents from 128 s, 0 submits from 130 s, then the old stop: unhandled exception 0xc0000005 at exe+0x23cf683 (write at address 0x0) at 154.471 s.
Run 2: 25.5 s between the last present and the same exception. It committed 7.7 GB more than run 1.
On c160d86 this machine and route gave the abort at 153–159 s in six of six runs (three with default settings, three with XCL_DIRECT_DXIL=1).
For anyone comparing against earlier reports: a default run of current main that ends without this exception is not by itself a sign of getting further. XCL_SLEEP_HOLD=0 gives the old behaviour back for comparison.
Tested
Commit 1d027e5c7 (main), clean tree, release build, xcl run with XCL_NETWORK=0 XCL_ACTIVITY=1, the retail title, package 1.0.2.1
Runs made in the order shown; the shader cache was kept between them, the title's saved state was reset before each
Test suite on the same commit (debug, --test-threads=4): 958 passed, 43 ignored on this card, and the same counts on the integrated AMD Radeon (64-lane waves) with and without XCL_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
One run per changed setting (runs 2 and 4); only the default was repeated
No thread dump in runs 1 and 3, so what the title's threads wait on there is not shown by these logs
Run 2 had hardware breakpoints set; its timing is not comparable with a plain XCL_PSO_WAIT_MS=50 run
Commits after 1d027e5; an empty shader cache
AI use: omp. Claude Fable 5.2 ran the tests and wrote this report; Claude Opus 5.5 read the logs.
Independent data point on a desktop RTX 5070, current maincbc296ab65. Same conclusion as @AmateurWizrd's 5070 Ti result: with defaults the 0xc0000005 does not fire here at all, and XCL_SLEEP_HOLD=0 brings it straight back.
Script route in every run: Enter (= pad A) every 4 s from 20 s to 130 s, XCL_NETWORK=0, XCL_ACTIVITY=1
Run
Settings
Length
Frames
Peak commit
Stop
1
default
300 s
5 620
24 777 MB
none; timer, 0 presents in the last 4 s (it had gone into a streaming/loading phase — 1 530 DirectStorage requests, 76 MB, 0 failed in the last interval)
2
default
90 s
1 835
14 695 MB
none; timer
3
XCL_SLEEP_HOLD=0
60 s
640
15 315 MB
none; timer, stopped ~1.5 s before where the abort fires
4
XCL_SLEEP_HOLD=0
120 s
429
13 397 MB
unhandled exception 0xc0000005 in game_scarlett_master.exe+0x2215c35 (write at address 0x0) at t+58.5 s, process ends 0xc0000005
The stop address is one of the return addresses already in this thread: +0x2215c35, with +0x71b9a20 and +0x2215eca on the stack, so it is the earlier stage of the same family, not +0x23cf683. The last thing before it is a burst of D3D12.X: video-memory arena #9..#12 lines
(119 MB → 149 MB of arenas made).
No device removal in any run. report.json of the clean runs has an empty crash and presents: 5620 / 1835.
Suite on this machine at the same commit (cargo test --workspace -- --test-threads=4): 1094
passed, 4 failed, 26 ignored, 25 SKIPPED; the 4 failures are the gpu::dxil::fuzz_tests PSO 0x8007000E, reported in #42.
Written by OpenCode with DeepSeek V4.1 Flash Abliterated, from the runs above.
RTX 4070 Ti SUPER, XCL_PSO_WAIT_MS=500: the abort at +0x23cf683 with the title's submit thread in title_textures::refresh → texture::upload_batch → gpu::fence::wait, which the sleep hold (#1288) does not count
This 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=500 and XCL_DIRECT_DXIL=1, nothing else set. Build: main6020a33 + #751 + #1686 (rebased) + #2076, local commit d9e3a89. None of these PRs touch gpu/texture.rs, gpu/fence.rs or hle/kernelx.rs. #751 changes how title_textures reads 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=0x1 at 471.3 s. The same registers as in this issue.
432.4 s – 446.8 s: 96 GPU queue.Wait … did not complete within 5000 ms (values >= 0x999 and >= 0x99a, waiters on q0–q3, producers on q1–q3), all released on the CPU.
The log has no title-side line after 439.6 s (its last 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.
A thread dump 3 s after the abort, symbolized with the build's PDB, shows a title thread in ExecuteCommandLists:
The stall-check thread is in Sleep at +0x23cf735. upload_batch waits on the CPU up to 10 s for each batch, and pso_async::title_held is false then, so the stall check counts that time. No texture 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.
Warm driver-blob cache + XCL_PSO_WAIT_MS=2000 on RTX 5060 Laptop 8 GB: +0x23cf683 no longer fires; run dies later as 0x887a0006 device-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 with xcl.exe shaders C:\game\shaders.rpf --precompile --only cs --pipelines (2805 driver blobs on disk), then one title run with XCL_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):
Cache verified warm in-log: 297 driver blob supplied, 0 absent, 0 refused-adapter; the 39 huge, wanted at once demands were all served from disk (no 28-47 s sync builds).
The cold run died 0xc0000005 +0x23cf683 write-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).
Death: D3D12 device removed: 0x887a0006 at t=334.2 s, 1.1 s after a Wait64BitValueX ... 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.
last-present -> death interval: 236 s, so the ~25-29 s abort was fully masked at 2000 (consistent with the sleep-hold observations on main). TdrDelay=60 was 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=50 were sufficient to produce the +0x23cf683 death; 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=1 on the same seeded cache to name the stuck dispatch; will post the named program here.
Follow-up with the run #2 result, including a correction:
I armed the second run with XCL_GPU_CULPRIT=1 as promised — it produced no culprit output. Checked the source tree: it is origin/main 689f2db-based, and XCL_GPU_CULPRIT / XCL_GPU_PROFILE do not exist there (only XCL_X_SPIN is present). The flag was silently ignored. Anyone on a pre-XCL_GPU_CULPRIT main thinking the knob is active because the env var is set: it is a no-op.
That run (otherwise identical, same seeded cache): cache still fully warm (297 driver blob supplied, 0 absent, 0 wanted at once this 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.
Death: 0x887a0006 device removed at t=122.3 s, then title int3 +0x2474606 at 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_MS unset 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.
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, no wanted at once at all):
Run #2: 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).
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, zero wanted 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.
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.
run 1
run 2
last presents
42 s
92 s
end
0xc0000005 in XCL's title_textures at 42.7 s (the read #751 fixes; I posted it there)
still running at 300 s (XCL_RUN_SECONDS): no device removed, no title crash, no watchdog
compute PSOs built in the run
70
280; 46 of them took ≥ 3 s
builds ≥ 1 s from 10 s before the last present
2
74, 604 s of build time in all
driver blobs after
863
1,023
Run 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. No wanted at once lines, and no device removal in 300 s on this card, unlike @Tanju42's runs, which died with 0x887a0006 at 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.
Third warm datapoint, this time testing the 0d25b89 cache-flush-as-UAV-barrier fix in isolation on our rig (RTX 5060 Laptop 8 GB):
Cherry-picked 0d25b89 onto the previous tree (689f2db base) with an env kill-switch added; identical binary otherwise, same seeded driver-blob cache, XCL_PSO_WAIT_MS unset (zero skips).
With the flush barriers ON: device removed 0x887a0006 at 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.
Follow-up: six more warm runs of main568e7db on 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).
run
last presents
PSOs from disk / built
builds ≥ 1 s from 10 s before the last present (total)
The cache helps, but the tail doesn't shrink: each run gets more PSOs from disk. But each still ends on 4–8 compute builds of 0.9–1.3 MB DXIL taking 43–91 s each, and they are different programs every run (other sizes and records). So each run caches about five more huge programs, and the title is still waiting on new ones when the run ends.
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.
Activity
DUIBING818 commentedon Nov 24, 2026
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 commentedon Nov 24, 2026
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 commentedon Nov 24, 2026
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 commentedon Nov 24, 2026
The game executable it self has an intentional write to zero, not sure if apart of tamper protection or not
jcjordyn130 commentedon Nov 24, 2026
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 commentedon Nov 24, 2026
Retail game!!
Coldtrain commentedon Nov 24, 2026
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 commentedon Nov 24, 2026
@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 commentedon Nov 24, 2026
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 commentedon Nov 24, 2026
09940bb
13700F + 2070 Super
console_log.txt
report.json
xcl.log
Coldtrain commentedon Nov 24, 2026
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 commentedon Nov 24, 2026
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 commentedon Nov 24, 2026
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 commentedon Nov 24, 2026
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.
28 remaining items
Tanju42 commentedon Nov 24, 2026
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 commentedon Nov 24, 2026
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 commentedon Nov 24, 2026
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 D3D12.X: allow title texture pages in system memory #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 commentedon Nov 24, 2026
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 commentedon Nov 24, 2026
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 commentedon Nov 24, 2026
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 commentedon Nov 25, 2026
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
maincbc296a,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 commentedon Nov 25, 2026
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:Sleepat+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 commentedon Nov 25, 2026
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 with
xcl.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 commentedon Nov 25, 2026
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 commentedon Nov 25, 2026
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 commentedon Nov 25, 2026
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 commentedon Nov 25, 2026
Third warm datapoint, this time testing the 0d25b89 cache-flush-as-UAV-barrier fix in isolation on our rig (RTX 5060 Laptop 8 GB):
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 commentedon Nov 25, 2026
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 D3D12.X: title texture reads outside the coherent window use the safe copy #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.