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
Newer retail title (TitleID 7952987A): reaches world loading, then the title's GPU watchdog ("GPU Loc Sig") after ListX #101 stub #505
i7-9700F (Intel; insn.rs emulation works), RTX 5070 Ti (wave32; no hangs), Windows 11, DXC 1.9.2609, xcl main as of 2026-11-23.
What happens
Boots, menus, goes into the world: the title's own crash context shows Game State: Game Running, peds/vehicles spawned, camera in the world. Screen stays on the grey loading screen with the spinner.
After 7–14 min: 0xC0000005 write at 0x0 at game_scarlett_master.exe+0x23cf683, same address every run. Stack: +0x4e4ba89, +0x2215c35, +0x71b9a20, +0x2215eca.
That site is a deliberate abort: it decodes a 12-byte string to "GPU Loc Sig", calls +0x2215950, then mov dword [0], 0x4D8BD421. Looks like the title's GPU-progress watchdog firing.
At that point: coherent 3998/4095 MB (it was 116/512 MB earlier in loading).
BCPack
Without a BCPack decoder, hundreds of BC1/BC5/BC7 requests were refused and streaming stalled (Streaming Requests: 3811). As a local test I plugged in a BCPack decoder: 2048+ requests decoded, 0 failed. The crash stays the same, so BCPack is not the cause of it, but the title needs BCPack to stream the world.
Also
Breakpad's http_upload reached submit.backtrace.io (HTTP 200, a 32 MB minidump). Maybe block it like the Xbox Live calls?
Same stop here (RTX 4070, Ryzen 7 7800X3D, main + #455), so a data point on #101:
At +0x50a6651 and +0x50a666a the title calls slot 101 (call qword ptr [rax+328h]) on the command list as (list, 2, 1) and later (list, 2, 0), around a block of work. Both calls pass only small constants, no address and no value to write. It looks like an on/off toggle of some mode (2), not a GPU progress label. The stub is probably not what starves "GPU Loc Sig", though what the mode is remains unknown.
A likelier lead on NVIDIA is pipeline builds not keeping up once the world loads. Our logs show ~10,000 new shaders at world load and only 5–50 pipelines finishing per 20 s afterwards, the pattern #156 and #499 describe. I'm measuring the backlog per 2 s next and will post it here.
(Disassembly and analysis by Claude Code, Claude Opus 5.5, read-only with dumpbin.)
Same stop here (RTX 4070, Ryzen 7 7800X3D, main + #455), so a data point on #101:
At +0x50a6651 and +0x50a666a the title calls slot 101 (call qword ptr [rax+328h]) on the command list as (list, 2, 1) and later (list, 2, 0), around a block of work. Both calls pass only small constants, no address and no value to write. It looks like an on/off toggle of some mode (2), not a GPU progress label. The stub is probably not what starves "GPU Loc Sig", though what the mode is remains unknown.
A likelier lead on NVIDIA is pipeline builds not keeping up once the world loads. Our logs show ~10,000 new shaders at world load and only 5–50 pipelines finishing per 20 s afterwards, the pattern #156 and #499 describe. I'm measuring the backlog per 2 s next and will post it here.
(Disassembly and analysis by Claude Code, Claude Opus 5.5, read-only with dumpbin.)
Cross-confirmation from an independent lab, plus two corrections.
The stop reproduces exactly. Same code path, same address, same stack, same parameter set, on a different machine (RTX 4070 Ti SUPER, wave32, Windows 11) and a different day:
unhandled exception 0xc0000005 in <title>+0x23cf683 (write at address 0x0)
stack: +0x4e4ba89, +0x2215c35, +0x71b9a20, +0x2215eca
GPU Loc Sig: 7333478d
The title's own crash context at that moment (it writes crashcontext.log before the upload attempt):
Game State: Game Running Frame: 1494
Streaming Requests: 3651 TileHeap used: 1671/6236 MB
Camera Position: <-1782.299927, -1914.123901, 6.035758>
Peds: 22/600 Cars: 24/700 BUILDING: 6910/22500 INSTANCE_LIST: 17239/45000
Currently running script threads: 1
So: simulation live in the world, pools populated, camera at a real coordinate — exactly your description.
Correction 1 - slot 101's return value is ignored. Disassembly of the function containing the call site (the log offset is the return address of call qword ptr [rax+0x328], i.e. slot 101 confirmed): the two control-flow joins never test it. One does setne al; the other immediately overwrites rax with mov rax,[rsi+...]. There is no GetCompletedValue or fence wait in the function at all. eax is neither stored nor compared. So 101 is a side-effect call and cannot be "the signal the CPU waits on" - there is no value to wait on. Its arguments are rcx=owner ptr, edx=2, r8d=1 or 0.
Correction 2 - the watchdog label is inline. "GPU Loc Sig" is not in the string table; it is a 13-byte immediate at +0x23cf62e decoded byte-wise with a per-byte key, inside the same 0x73-byte function that null-writes at +0x23cf683. That idiom occurs once in the image. It is a diagnostic label being assembled for the crash report, not a value being compared.
New wall on current main, worth knowing. On 7ebf1b8 the same title gets further (8521 buildings, 83 peds, 238 cars, TileHeap 3639 MB) and then dies before the watchdog, ~290 s in:
D3D12 XDXR Error: DestAccelerationStructureData can not have more than 40b of address set
C++ exception thrown; stack: xboxbvhbuilder.dll+0xd2538, vcruntime140.dll+0x6480
process ends with status 0xe06d7363
Our GPU VAs there are above 2^40 (e.g. 0x1d1ae5c0000). On 85bdf21 this never appears - that build dies at the watchdog instead. If you are testing on main, the BVH path may be killing your run before the watchdog does.
Also: on our side the loader refused every BCPack request with zero decoder present (filled_bytes 0 for BC1/BC5/BC6H/BC7), matching your streaming-stall observation. We would be interested in your local decoder if you are willing to share the approach.
A data point from AMD, much earlier than the 7–14 min above: the same stop at 161.7 s.
Setup: RX 9060 XT 16 GB (RDNA4, 64-lane waves), driver 32.0.31044.16, Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, release. Build: maina6f5f7a + #440 (be722a7, the intro video at speed) + #300 (9507d05) + #435 (a94e151), merged locally. XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_FRAME_DUMP=60, A pressed by hand on the first menu.
unhandled exception 0xc0000005 in <title>+0x23cf683 (write at address 0x0), GPU Loc Sig = 7333478d (the same value as sub-north's run).
World streaming starts at ~62 s; ID3D12GraphicsCommandList10::#101 (not on PC) is first called at 99 s.
From the activity (2 s) lines: 108–134 s the title submits (14–116 submits, 1–16 presents per 2 s) with heavy DirectStorage (1 100–3 500 requests per 2 s, up to 379 failed: BCPack refusals). From ~136 s to the stop, every line is 0 submits and 0 presents (a few dispatches, no DirectStorage). No device removal, no E_OUTOFMEMORY, no frame-event wait timed out.
Process commit was 27.2 GB at the stop (local video memory 13.9 GB).
So on this machine the watchdog fires after ~26 s in which XCL saw no submit at all from the title, rather than with a backlog of work on the GPU. I have not checked what the title's threads were waiting on.
AI use: Claude Code with Claude Opus 5.5 read the run's log and wrote this comment from my run.
Follow-up to my run above: what the title was waiting on in those ~26 s without a submit.
XCL's thread dump at the stop has four title threads with the same stack, inside XCL. Symbolized with a release build of the same tree with CARGO_PROFILE_RELEASE_DEBUG=line-tables-only (I checked that the code bytes at these offsets are identical to the build that ran):
xcl.exe+0x2508f6 hle/d3d12x/bind.rs:671 dispatch → pso_async::resolve_wait
xcl.exe+0xd5d7f hle/d3d12x/pso_async.rs:173 (resolve_for_bind / resolve_wait)
xcl.exe+0xd5992 hle/d3d12x/pso_async.rs:162 p.cv.wait(done) – no time limit
So four of the title's threads are in Dispatch, waiting for a compute pipeline that is still being built. At the same moment 10 of the 11 xcl-pso-* workers are idle, xcl-pso-7 waits on a channel, 9 of 10 xcl-dxc-* threads are idle, and one is inside dxcompiler.dll. That fits one compute program whose DXC compile took longer than the ~26 s, with every Dispatch of it blocked meanwhile – on AMD (no driver compile involved in that wait), not only on NVIDIA. I could not tell which program: XCL logs no per-compile time.
Related: #174 (DXC time of compute programs) and #267 (a time limit on the wait – for draws; dispatch calls resolve_wait, which has none).
AI use: Claude Code with Claude Opus 5.5 symbolized the dump and wrote this comment from my run.
Same stop on an RTX 3060 12 GB (Ampere, wave32) with 16 GB of RAM, on current main508a0c7. The pipeline backlog stands out.
Setup: RTX 3060 12 GB, driver 621.24; Ryzen 5 5600X; 16 GB RAM; Windows 11 Pro 26200; release build of 508a0c7, unmodified. XCL_NETWORK=0, XCL_ACTIVITY=1, menus walked with XCL_PRESS_AT (A at 14/17/21 s, then every 6 s from 125 to 197 s).
unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0) at 326.9 s, same stack (+0x4e4ba89, +0x2215c35, +0x71b9a20, +0x2215eca).
ID3D12GraphicsCommandList10::#101 (not on PC) was first called at 288.2 s from +0x50a6657.
From the activity (2 s) lines: presents fall from 19 per 2 s at 142 s to 2 at 162 s and about 0 from 182 s. Submits are 0 in every line from 282 s to the stop, the same ~30–40 s without a submit as @emirduran707's run.
report.json at the stop: background_pipelines: [46, 0, 58715], i.e. 46 built, 0 failed, 58 715 still building. That fits the pipeline-backlog lead of @Cattn and the unbounded resolve_wait in dispatch.
Memory from the memory: lines: process commit 15.6 GB at 122 s, 26.4 GB at 182 s and 40.1 GB at the stop. Local video memory reached 13.8 GB on the 12 GB card (4.6 GB non-local).
No XDXR … more than 40b of address error on 508a0c7: this run gets to the watchdog.
After the stop, the process did not end. The log stops at the crash line: no process ends, no thread dump, no breakpad lines. The window stayed black at 0 fps until I killed xcl.exe a few minutes later. So I have no thread dump of this run to add to the one above.
Not tested:#267 or a time limit on resolve_wait; a run without XCL_NETWORK=0; AMD.
AI use: Claude Code (Claude Opus 5.5) ran the session on my machine, read the log and report.json, and wrote this comment.
Static read of the retail exe (1.0.2.1), RVAs only, no run. Short version: +0x23cf683 looks like the same stall watchdog as #232, not a separate crash.
The "GPU Loc Sig" function (+0x23cf620) is installed as the watchdog's report hook: the init code at +0x23cf6f7 does lea rcx,[+0x23cf620]; call +0x22161f0, and that function stores rcx into global +0x71b6348 (only when a per-thread flag byte at [[gs:0x58]]+0x12d8 has bit 0 set).
Two ways the watchdog decides to abort, both reaching +0x2215c16: (A) a scoped timer registered through +0xb5b6b0 (push) / +0xb5b6f0 (pop) is >= 300.0f old (the table decode already posted); (B) when no scope is active ([+0x71b6334] == 0), a heartbeat timestamp at +0x71b6338 has not changed for 30 one-second ticks.
The heartbeat is written only by +0x22159f0, called from four sites: +0x120799, +0xc9e368, +0x1c82b67, +0x1c82bc1 (the last two in a loop-tick function at +0x1c82b20).
Inferred: emirduran707's ~26 s with zero submits fits route B (about 30 s) better than route A (300). If the title threads that post the heartbeat are the ones blocked in Dispatch -> resolve_wait (no time limit), the title aborts itself.
Slot 101: both call sites (+0x50a6651, +0x50a666a, args (2,1) / (2,0)) ignore the return value, so I agree with Cattn and sub-north that the stub is not what the watchdog waits on.
Unknown, one debugger check each: at the stop, [+0x71b6334] (zero means route B); which thread the last heartbeat write came from (watch +0x71b6338); and whether those threads are the ones XCL dumps in resolve_wait.
AI use: Claude Code (Claude Opus 5.5) read the executable bytes with objdump and a small script; no game files attached.
Confirming @Cattn's and @emirduran707's pipeline-backlog theory with numbers, and with a way to keep the title alive past the watchdog:
Update: past the world-loading crash (local patches)
1. BCPack: I plugged a BCPack decoder (BC1, BC3–BC7) into hle/dstorage.rs for a local test: zlib first, then BCPack, as on the console. 2048+ requests decoded, 0 failed, and streaming no longer stalls on refusals. (The decoder comes from VIctory, GPL-3.0-or-later, so it can't go into XCL as is. It just shows that BCPack is what this title needs to stream the world.)
2. Correction on #101: VIctory's measured layout for this title names list slot 101 DriverHintX(feature, value), and VIctory also returns 0 there. So that stub is not the cause.
3. The crash is the title's own watchdog. Thread at +0x2215af6:
every second (Sleep(1000)) it checks a main-thread heartbeat; if it hasn't changed 30 times in a row (mov ebp,0x1e … dec ebp; je), it calls the callback at [+0x71b6348] (+0x23cf620, which decodes "GPU Loc Sig" and writes to 0) and then mov dword [0],0 at +0x2215c35;
a second check walks a 64-entry table of in-flight timestamps (+0x6844a20, stride 0x48) and fires on the same path when one gets too old (jae at +0x2215bdc).
In every crash rbx = 0, which is the heartbeat path: the main thread stalled for 30 s.
4. With the watchdog off, the title keeps running (in-memory patch before the entry point; the game folder is untouched): +0x2215c70: 74 04 -> 90 90, +0x2215bdc: 73 2e -> 90 90. It's at 40+ minutes now, no crash, still on the loading screen.
5. What stalls the main thread, on NVIDIA: compute PSO creation. The world's compute pipelines are 130–380 KB of DXIL each (wave64 emulated on wave32) and take 15–25 s each to build in the NVIDIA driver, one after another on one thread: [1737 s] 371688 B, [1755 s] 310308 B, [1773 s] 356320 B, [1787 s] 294160 B, [1811 s] 378660 B …
345 compute PSOs so far, most built once or twice.
6. Also seen:Wait64BitValueX timed out after 2000 ms at 0x70417fe58 / fe10 / fee8 (op 7, want 0x28e; memory holds 0), only 3 in total, all at ~1240 s.
Setup: i7-9700F, RTX 5070 Ti, DXC 1.9.2609, NVIDIA shader cache set to unlimited. I'll report what the next run (with a warm cache) shows.
@sub-north BCPack: I ported the decoder from VIctory (crates/.../bcpack.rs + bcpack-tables.bin, GPL-3) into xcl/src/hle/bcpack.rs. dstorage.rs now inflates zlib first, then decodes BCPack modes 1,3,4,5,6,7 instead of refusing them. The streaming stall is gone; the log shows "DirectStorage: BCPack decoded N requests (0 failed)". Can share the diff.
Independent cross-confirmation and local engineering status from an AMD RX 9070 XT (RDNA4, native wave64, 16 GiB VRAM, Ryzen 7 5800X, 64 GB RAM, Windows 11 26100) lab.
Where our local branch stands (latest run before integrating our two-pass mesh and async compute PSO fixes)
Reaches live world execution (Game State: Game Running, Frame 797, ~191 s, 1,611 presents, 13,551 draws and 2,048 dispatches with translated pipelines and 0 skipped, 46 translated PSOs, 0 DXIL compilation failures).
DirectStorage: 0 E_ACCESS_VIOLATION (0x89240009) failures (down from 1,986 in our prior run — fix details below), and 2,087 / 2,088 BC1 BCPack requests unpacked (148.7 MB).
Audio: 10,454 Opus packets decoded through xapu with 0 errors (11,050,760 non-zero samples).
Exact stop (t = 190.9 s): Reproduced the exact same <title>+0x23cf683 watchdog abort (mov dword [0], 0x4d8bd421).
Confirmed Root Cause of the 30-Second Stall on RDNA4
In our crash thread dump at t = 192 s, all 15 xcl-pso-* background worker threads were completely idle while two of the title's own render worker threads were stuck deep inside amdxc64.dll and three more render worker threads were blocked in pso_async::resolve_wait. Because resolve_for_bind / bind::dispatch calls resolve_wait — which steals p.job and executes the driver compile synchronously on the calling render thread — cold large world compute shaders stalled presentation for ~27–30 s and tripped the title's heartbeat watchdog.
Fixes Implemented & Tested Locally (Ready to Split into Clean PRs if Helpful)
We have built and unit/GPU-tested the following fixes locally and are about to kick off our combined verification run (we can open clean, focused PRs for any of these the maintainers want):
Added a priority queue for xcl-pso-* workers so newly bound pipelines jump to the front, stopped resolve_wait from stealing heavy driver compiles onto title render threads, and added resolve_wait_timeout (default 1500 ms, configurable via XCL_COMPUTE_PSO_WAIT_MS) so fast startup compute shaders still run on their first frame while slow 20–30 s driver compiles finish in the background without tripping the 30 s watchdog.
Added an adapter + UMD-versioned on-disk GetCachedBlob() / CachedPSO cache (cache/pso_bin/) with stale-blob retry fallback so compiled pipelines reload in under 1 ms on subsequent runs.
Static analysis of the newer retail title's PSO stream builder confirmed Xbox Scarlett numbers PSO subobjects as AS = 23 (0x17) and MS = 24 (0x18) (whereas PC SDK reserves 23 and uses AS = 24, MS = 25). The 40+ pipelines previously refused as "MS in the AS slot" are normal Xbox mesh shader pipelines.
Confirmed newer-layout command list vtable mapping: slot 126 = RSSetShadingRate (PC slot 77), slot 127 = RSSetShadingRateImage (PC slot 78), slot 128 = 2-argument console setter (kept as stub), and slot 129 = DispatchMesh (plus ExecuteIndirect with DISPATCH_MESH command signatures).
Added Mode::Mesh root-argument SGPR layout (s[8:9] spill pointer, inline root arguments at s16..s31) and wired full Two-Pass execution (Compute pass -> UAV barrier -> Pass-through DispatchMesh, including companion DISPATCH signatures and GPU-scaled indirect arguments for split-chunk shaders), plus a small split == 1 && mv <= cap fix on top of Recompiler: the mesh pass-through budget accounts DXC’s vertex chunks #304.
Verified live on RX 9070 XT: 9 / 9 gpu_pso_e2e tests passing (including synthetic single-chunk and split-chunk direct & indirect DispatchMesh pixel readbacks and 7 / 7 retail MS+PS pipelines).
Stub audit (confirming slot 101 and the other per-frame stubs are not starving the watchdog):
Independently verified CommandList slot 101 passes (list, 2, 1) / (list, 2, 0) with an ignored return value (matching the findings above).
Also confirmed via static disassembly that the remaining per-frame stubs do not drop draws, copies, or GPU barriers: CommandQueue slot 31 is the copy-queue page-mapping helper paired with XMemMapPhysicalPagesScatter (already handled by XCL's sparse mapping hooks), CommandAllocator slot 9 registers an Xbox segment-grow callback, CommandList slot 75 takes a 1-bit PSO boolean, slot 142 takes a 64-bit CU occupancy mask, and slots 131 / 132 are init-only PM4 buffer sizing calls.
Eliminated the 1,986 DirectStorage E_ACCESS_VIOLATION burst by: (a) deferring QueueInner's capacity / 2 auto-submit when pending physical-page entries are still unready, (b) refreshing reused non-zero physical-page table slots on write_physical_pages failure (not only zero entries), (c) inserting into PHYS_BLOCKS before publishing page numbers, and (d) making lazy::commit() run VirtualAlloc(MEM_COMMIT)before removing a page from LAZY (same root cause as kernelx: a lazy physical page whose commit fails leaves the lazy set, silently #467).
Added fence-safe 64 MiB idle heap retirement and reclaim_idle() to vram::Pages (which otherwise climbed past 9.9 GB / 155 pools on 16 GiB VRAM), cleaned up texture_memory() reservations + LAZY ranges on Release, added reclaim + a 30 s deadline to BIG_COMPILES::wait_for_commit(), refactored sparse::readback_now() into a 3-phase flow that drops STATE across the GPU fence wait, and added frame validation + VEH-guarded recovery around RtlVirtualUnwind in eh::dump_threads() (which previously faulted at ntdll.dll on live mutating thread stacks).
Added pure-Rust 8-mode / 285-config BC7 + parameterized BC3 / BC4 / BC5 BCPack modules plus the lanes.rs flushed-fragment zero-restoration fix (bc1-1-8 passes; retail BC7 still hits ~190 cross-mode/preset refusals without unpublished preset tables).
(Note: we also saw #504 on #486's LAST_CONTENT invalidation bug and are folding that fix in before our next combined run.)
We'll report back once the combined build (Two-Pass DispatchMesh + async/cached compute PSOs + pool retirement) runs past Frame 797. Happy to open clean, individual PRs for any of the items above.
AI use: analysis, implementation, and tests assisted by Antigravity (Gemini Pro) on AMD Radeon RX 9070 XT; zero game files or binaries included.
Another data point for the world-loading stop, on an RTX 4070 (12 GB), with #435 applied.
Setup: RTX 4070 12 GB (32-lane waves), driver 621.24; i9-9900K (clwb/clzero emulated); 48 GB RAM; Windows 11 26300. Release build of main7ebf1b8 plus open PRs #300, #321, #468, #463, #451, #510, #487, #490, #348, #522 and #435. Run with XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_DXC_THREADS=4.
Same stop.unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0) at 134 s, about 20 s after the world's ambient audio starts, with the screen blank. This matches the watchdog reading above.
#435 stops the memory growth before it. Without #435, the process's private bytes climbed about 4 GB every 30 s during world loading (10 → 29 GB in 2.5 min) and the stop came at 179 s. With #435, the XCL_ACTIVITY memory line levels off at about 28 GB committed (title textures 22,907 live, 40,150 uploads; target pages 9.6 GB; local video memory 14.0 GB on a 12 GB card) and stays flat for the last 20 s before the stop. So on this machine the stop is not an out-of-memory failure.
Network: without XCL_NETWORK=0, the title's crash reporter uploaded its minidump after this stop (HTTP 200). With it, WinHttpConnect is refused, as intended. Worth repeating for anyone testing: always set it.
Next here: pipelines are being pre-built (xcl shaders shaders.rpf --precompile --pipelines, NVIDIA shader cache set to Unlimited). I'll report whether a warm driver cache gets the main thread past the 30 s watchdog.
A probe for "who stops feeding the watchdog", from a static read of the exe (1.0.2.1, RVAs only). It follows my comment above.
When no timed scope is open ([+0x71b6334] == 0) the watchdog aborts after 30 one-second ticks without a change of the heartbeat at +0x71b6338. Only +0x22159f0 writes it. Its callers:
+0x1c82b67 / +0x1c82bc1, inside +0x1c82b20: a "wait and keep the heartbeat going" loop (heartbeat, some pumping work, Sleep, repeat until done). It has 20 callers, so blocking loads that go through it are covered.
+0x120799 (function +0x120790, no direct callers, so reached through a pointer) and +0xc9e368 (function +0xc9e350, one caller at +0xc9e334). Inferred: one of these is the per-frame tick.
So the abort means the thread that runs the per-frame tick has been blocked for ~30 s outside that wait loop. That also fits @sperm's #533 run, where bounding compute waits did not stop it: something else blocks that thread.
Probe, for anyone with a debugger or a vectored handler on the title:
At the stop, read [+0x71b6334] (0 = this route).
Put a hardware write breakpoint on +0x71b6338, log the return address (+0x120799, +0xc9e368, +0x1c82b67, +0x1c82bc1) and the thread id of each hit, and stop logging after a few seconds of normal frames.
When it fails, the thread id of the last writer is the stalled thread. Its stack in XCL's thread dump names what it waits on.
Also on main: @sub-north's 40b of address set stop. I opened #585 for it. It ends runs before this watchdog can.
AI use: Claude Code (Claude Opus 5.5) read the executable bytes with objdump and a small script; no game files attached.
The game successfully launches and renders its menus. Audio and GameInput are functional, and menu performance reaches approximately 30 FPS.
When transitioning from the menus into gameplay, the game displays a loading screen before transitioning to a black screen. Shader compilation and audio decoding continue in the background, but the game eventually crashes.
The crash is reproducible across multiple runs, with the same faulting instruction, write address, and call stack.
Steps to reproduce
Build XCL using cargo build --release --workspace.
Launch the game through XCL.
Navigate through the menus and attempt to enter gameplay.
Observe the loading screen transitioning to a black screen.
The game eventually terminates with exception 0xc0000005.
Expected behavior
The game completes loading and enters gameplay.
Actual behavior
The screen goes black and the game eventually crashes with a null pointer write.
Crash information
Unhandled exception 0xc0000005
Module: game_scarlett_master.exe+0x23cf683
Operation: write at address 0x0
Slots 131 and 132 had identical call counts and calling locations across two consecutive runs.
Shader statistics
Unique shaders: 19,214
Xbox-native shaders: 19,099
NGG hardware-stage shaders: 6,685
RDNA2 instructions decoded: 37,858,913
Undecoded instruction words: 0
Xbox shader parsing errors: 0
Compute pipeline compilation continues until immediately before the crash.
Additional testing
Rebuilding XCL from the latest source did not eliminate the gameplay crash.
Repairing Windows Gaming Services did not resolve the issue.
Shader caches were retained between runs.
An earlier build (3516080) crashed during the gameplay transition with an invalid memory read inside VCRUNTIME140.dll, with XCL functions on the stack. After updating to 508a0c7, the crash changed to the reproducible null pointer write described above.
I also have an RX 9070 XT available for comparison. Testing through Wine has been substantially slower, and native Windows testing on that GPU is still pending.
I have not established whether the BCPack refusals, unsupported graphics operations, or another issue directly causes the crash.
I can provide additional logs, debugger output, and hardware comparison results if useful. Note that this comment report was generated by AI. I have reviewed it though.
How long the title's compute programs take in DXC, for the resolve_wait lead above: every compute program of the pack compiled once, offline, the way a title's pipeline translates it.
Run:xcl shaders <the title's shaders.rpf> --precompile --only cs (maina6f5f7a code for the recompiler; the build had #440 / #300 / #435 merged, which do not touch it), with a local timer around each program's pso::console_to_dxil_in (not committed). RX 9060 XT machine, Ryzen 5 5600 (6 cores / 12 threads, 11 DXC threads), DXC 1.9.2602.17, 4 memory windows, an empty DXIL cache.
compute programs
2 689, all compiled, 0 errors
DXC time, summed
35 216 s (2 721 s wall on 11 threads)
programs over 10 s
973
programs over 26 s
632
slowest
325.6 s, 322.5 s, 290.8 s, 263.7 s, 253.1 s (the top 10 are all over 179 s)
So once the world streams in, any of hundreds of compute programs that is not in the DXIL cache yet holds every Dispatch of it for longer than the title's ~30 s heartbeat. The cache never gets them either: the process ends at the watchdog before those compiles finish, so the next run waits for the same ones. This machine's DXIL cache now holds all 2 689; I'll check whether the stop goes away with a warm cache when I can drive the menus again, and post the result here.
Related: #174 (DXC time of compute programs: linked memory accessors), #267 (a time limit, for draws), and xcl shaders --precompile as a workaround that already exists.
AI use: Claude Code with Claude Opus 5.5 ran the compile and wrote this comment from my run.
An RDNA2 on Windows data point (the reports so far are NVIDIA, RDNA3 and RDNA4), on an Intel CPU that needs the console-instruction emulation: the same stop, at 275 s, with the same pipeline backlog. A second run back to back got past that point and ran into system memory instead.
Setup: AMD Radeon RX 6800 16 GB (RDNA2, native wave64), driver 32.0.21045.5002; Intel Core i5-10600KF (Comet Lake; clwb / monitorx emulated); 32 GB RAM; Windows 11 build 26200. Release build of plain main9ce2070, DXC from XCL_DXC_DIR. XCL_NETWORK=0 XCL_ACTIVITY=1, XCL_PRESS_A_AT=14,17,21,125,131,…,197 (A at 14/17/21 s, then every 6 s from 125 to 197 s, as @requiemsnkrp walked the menus). Run limit 600 s.
Run 1: the same stop.
unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0) at 275.0 s, rbx=0x0, rcx=0x70024c348 (the heartbeat path, as above).
The title's crash context: Game State: Game Running, Game Running Time: 0h:4m:1s, Frame: 3490, Streaming Requests: 4387, TileHeap: used (1600Mb) - total (6236Mb).
From the activity (2 s) lines: 60 presents per 2 s up to 191 s, then 12 at 200 s, 3 at 210 s; the last submit at 244 s, then none for 32 s until the stop.
report.json at the stop: background_pipelines: [14, 0, 58745] – 14 built, 0 failed, 58,745 still building, close to the RTX 3060's [46, 0, 58715]. So native wave64 does not avoid the backlog here.
The thread dump at the stop: the 11 xcl-pso-* workers are all waiting, as in @Simon-CR's RDNA4 dump. One title thread (22808) is running in xcl.exe (top frame xcl.exe+0x1c8454, called from game_scarlett_master.exe+0x4ecc821). I have not symbolized it.
Memory (memory: lines): commit 16.3 GB at 150 s, 21.3 GB at 210 s, 28.1 GB at 270 s; local video memory 6.9 → 11.4 GB on the 16 GB card.
Run 2, right after run 1: past 275 s without the watchdog.
Same build, same command. The activity looks the same up to the drop (60 presents per 2 s at 191 s, 2 at 201 s), but presents and submits do not stop for 30 s: there are a few every 20–40 s (last submit at 339 s).
No watchdog abort. The run was ended by my own runner at 353 s, when free system memory fell below 1 GB: commit 30.3 GB at 301 s and 32.5 GB at 331 s on the 32 GB machine.
The process was killed, so its report.json was not written at the end and I have no pipeline counts for this run.
I cannot say the second run lived longer because of a warmer cache: run 1 built only 14 pipelines before it stopped, and @emirduran707's numbers above put the pack's compute programs at many hours of DXC time. It may just be variance in when the main thread stalls. What it does show on this machine is that once past the stop, the memory growth (about 4 GB every 30 s, like @theswiss24's runs without #435) is the next limit on 32 GB.
Not tested:#435 or any other open PR; a run with the pipelines precompiled (xcl shaders … --precompile --pipelines); more than one run of each; symbolizing thread 22808.
AI use: Claude Code (Claude Opus 5.5): ran the tests and wrote this report.
Follow-up to my last comment: on this machine the 0x887a0005 removal is not caused by video memory oversubscription. With the title's texture pages in system memory (#1702, XCL_TEXTURE_PAGES_SYSTEM_MEMORY=1), local usage stayed well under the DXGI budget, and the device was still removed at the same point.
Setup: RTX 3080 10 GB, driver 621.01, Windows 11 Pro 26300, release. mainc4d37be + #1478 + #1702, heap windows, plus my local logging. One run.
#1702 does what it says on a 10 GB card: about 10 GB of local usage moves to system memory, and nothing went wrong before the removal. The removal itself is unchanged. It came again with the GPU idle and no nvlddmkm event, after 11 waits were released on the CPU. Removing the page-mapping waits (my comment above) did not stop it either. What is left, as far as I can see: something about the tile mappings themselves, rather than where their memory lives; the order between the mapping queue and the title queues; or the driver. @Krashgamer's 610.88 runs had no removal; this is 621.01.
Not tested: driver 610.88 on this machine; #1702 for longer than 90 s.
AI use: Claude Code (Claude Opus 5.5) ran this and wrote the comment.
@treybertram06 one correction to "610.88 runs had no removal": I've had one since, though it looks like a different mode from yours. RTX 3080 10 GB, driver 610.88, a cold run (every compute program built fresh) of main4178e88 + #640#742#751#800#1055#1405#1580#1765#1766#1791 + a local port of #1850: 0x887a0005 at 356 s. Unlike your runs, Windows logged nvlddmkm 14 and four 153 "TDR occurred" events at that moment. In a later run of the same tree with #1599 added, a TDR the driver could not recover from ended in bugcheck 0x116. So on this card it was a real GPU timeout (a long-running dispatch), not an idle GPU with an empty DRED.
Step 3 from my run-51 comment is now a PR: #1993. Copies back after a submission run on a readback queue of their own and land asynchronously, so readback_after_execute no longer GPU-waits on the title's queues or blocks the submitting thread. @lucsoft, this is the cleaner version of your bounded-CPU-wait change.
Lands before the title can see its work done. The data reaches the title's memory before Map's readback, in the CPU memory waits, and in the title's GetCompletedValue / SetEventOnCompletion, which are now hooked. Without those hooks the e2e test title read 0 after its own fence wait.
Tested so far:
suite on an RTX 5090: 987 passed, 4 failed, 45 ignored, against 986 / 4 / 45 on main. The 4 are the gpu::dxil::fuzz_tests driver OOM that main has too;
the new test fails on the old path (it waits 5 s) and passes with the change;
@lucsoft, @treybertram06, @not-rex: if you can run it on your setups, a test report on the PR would help most, especially with XCL_COHERENT_MB at 1024 or lower, where more of the title's GPU memory goes through readbacks.
AI use: Claude Code (Claude Opus 5.5) wrote the PR and this comment.
Linux / RDNA3 now gets into the game too: the opening credits were on screen, 330 s after the first #101, with 0 GPU wait timeouts. It then ends as @Ariorh1337's 5090 run did: a compute queue hangs, 0x887a0005, then the title's int3 at +0x2474606. Also: on current main, XCL_GPU_WAIT_TIMEOUT_MS is read but the watchdog doesn't use it.
Setup: RX 7800 XT (RDNA3, Mesa 26.3.1 RADV), kernel 7.3.5, Wine 11.21 Staging, vkd3d-proton 3.1 (relaxed). XCL main6567c5f + the stack from my comments above:
Env: XCL_HEAP_WINDOWS=1 XCL_COHERENT_MB=1024 XCL_SPARSE_WAIT_MS=100 XCL_GPU_WAIT_TIMEOUT_MS=20000. Warm caches. One run.
XCL_GPU_WAIT_TIMEOUT_MS on main:
list_x::gpu_wait_watchdog_timeout() reads it.
The watchdog's three checks (armed_at.elapsed() >= … twice, and the "did not complete within" message) still use the constant GPU_WAIT_WATCHDOG_TIMEOUT, so waits are released after 5 s whatever it is set to.
In my previous run, with the 5 s release in effect, a release came while the producer was submitted but one value short (submitted=0xdb8, completed=0xdb7). Compute queues then hung (ring comp_1.0.1 / comp_1.2.1 timeout), and MES failed to respond, so it took a mode1 reset with the desktop session.
The run:
First #101 at 301.3 s.
0 did not complete within lines for the whole run.
2 CPU Wait64BitValueX timeouts (2 s each, at 523 and 623 s), with memory trailing the fence (memory holds Some(dfe) at want 0xe0b).
At 472 s, 38 691 draws … (0 skipped), 131 072 dispatches (0 skipped).
On screen: through the loading screens into the game's opening credits.
The end, at 630.6 s:
Kernel: ring comp_1.1.0 timeout … Process main … thread vkd3d_queue, then Ring comp_1.1.0 reset succeeded (only that queue; no mode1 this time).
XCL: D3D12 device removed: 0x887a0005, then unhandled exception 0x80000003 in game_scarlett_master.exe+0x2474606.
That is the end @Ariorh1337 reported for run 51 on the 5090 (HUD, then 0x887a0005 and int3 at +0x2474606). So on both, the next obstacle past world load is a compute dispatch that does not finish.
Follow-up to my coherent-window table above: with the stall gone, what ends the title next on the RTX 3080 depends on DirectStorage. Same setup (XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512, XCL_PSO_WAIT_MS=50, warm caches, 600 s), one run each:
0x887A0007 (device reset) at 360.4 s, then the title's watchdog at 374.2 s
With #1405 and #1464 the title-side faults (+0x4ed8020, +0x4684e7, and earlier +0x4e8b302 / +0x108557) didn't appear, and the world ran longest. Before that the GPU showed only short 100 % bursts, the last at ~295-300 s, where the presents stop. Commit peaked at 39.3 GB. One run per arm, so it's a pointer to those two PRs rather than proof.
AI use: Claude Code (Claude Opus 5.5) ran the runs on my machine and wrote this.
Linux / NVIDIA: with the driver's cache warm, the screen-probe programs build in milliseconds and the title gets past the stop where a cold run froze. Complements @Royalflamejlh's #1809 report that the build of 56c0cd3b82a00c6e (ActivateProbes) stays open through the stop on main.
Setup: RTX 3080 Ti 12 GB (NVIDIA 620.73.04), i7-11700KF, 32 GB RAM, CachyOS, Proton Experimental's Wine, vkd3d-proton ec207194 (+ #257's patch). xcl: main62265d3 + #688 + #759 + #684 + #1660 + #1860, release, XCL_DIRECT_DXIL=1, XCL_SKIP_BINK=1, XCL_PSO_DISK_CACHE=0 (#2003). NVIDIA's shader cache in a folder of its own with a 20 GB limit (see this comment on #1269), filled by a full xcl pipelines run (58,804 made) before the first run below. Retail 1.0.2.1, no input after the start.
run 1 (first time into the world)
run 2 (the next run, same build and cache)
ActivateProbes 56c0cd3b82a00c6e (4,321,608 B DXIL)
driver compile ~540 s
75 ms (cache hit)
ActivateRays 95cc13288a27a96e (3.8 MB DXIL)
~940 s
60 ms
big driver compiles (≥ 256 KB DXIL)
29 hits, 167 misses
180 hits, 87 misses
the title
audio and frame logging stop at ~165 s (loading screen); no further progress in 30 min
still running at 870 s (audio thread logging throughout), black screen from ~150 s; closed by hand
No pipeline missed in both runs: 149 of run 1's 166 missed programs were hits in run 2, and run 2's misses were all programs run 1 never reached (about 1 MB of DXIL and ~30 s each). So the cache is reused across runs, and each run's misses are only the next stretch of the world.
All 47 programs run 2 missed had already been translated by the precompile, with the same settings; the title still built pipelines from them that the precompile hadn't (from the journal it couldn't know them yet).
Driver update: on this card the 0x887a0005 removal (idle GPU, no nvlddmkm event) has not come back on NVIDIA 621.40.
RTX 3080 10 GB, Windows 11 Pro 26300, same tree as my comments above (mainc4d37be + #1478 + #1702 with its switch off + local logging), warm caches.
On 621.01: every run of this tree lost the device at 69–171 s (more than ten runs today, across the settings in my tables above).
On 621.40: four runs of 300 s of title time each (with and without D3D12.X: a copy back after a submission does not wait for the title #1993, at the default coherent window and at XCL_COHERENT_MB=1024) had no removal and no crash. GPU waits were still released on the CPU 1–6 times per run. One earlier 30-minute run on 621.40 had no removal either, but it spent that time rebuilding the driver cache, so it never got far into the world load.
So anyone chasing this mode on NVIDIA should probably update first. This is four runs on one card, and 300 s each, which is past every removal I saw on 621.01 but not a long session. @Krashgamer's removal on 610.88 was a real TDR with nvlddmkm events, so a different mode from this one.
AI use: Claude Code (Claude Opus 5.5) ran this and wrote the comment.
@Ariorh1337 thanks for the run 51 write-up. We're setting up a replication on an RTX 5070 Ti (16 GB, driver 621.24) and will post what we get here.
Your earlier stack, as we read it from this comment and this one: b9b6ea6 with b8b1f49 reverted, #1316 + #1448's top commit, #688, #751, #1429, #929, #1464, #979, #1791, #1252, #1323 and #1766. On top of that we'd add #1329 (9ef4696 + ac4b997, as in your run-51 comment; not 88cd3a5), #1993 and #2009, with XCL_COHERENT_HEAPS=sparse:1024 XCL_HEAP_WINDOWS=1 XCL_NETWORK=0, no XCL_PSO_WAIT_MS, and all pipelines prebuilt. Is that the full set under run 51?
Step 2: steps 1 and 3 are published as #2009 and #1993 (run 51 used an earlier prototype of #1993, per #2009's description). Step 2, UpdateTileMappings on a queue of its own, isn't in your PRs or your fork's branches. Your run-51 comment listed "the mapping queue (step 2) first, since it is small and stands on its own"; could you push it, even as a draft PR or a branch? Without it we'd be testing a tree further from the one that reached the HUD.
AI use: Claude Code (Claude Opus 5.5) wrote this comment.
Request for a measurement nobody has posted yet: the split-wave64 programs' GPU time with the coherent window out of the way, in each shader form.
@cafeoh's and @oz-stanislav-zhukov's XCL_GPU_PROFILE (#1766) tables were taken with the default coherent window. @Ariorh1337, @kanade333 and @not-rex then showed that the window itself makes the heavy passes 14–350× slower. So we do not know yet how much of a9f2cd53943d5dc4 (3.1 s per call), 50625695d2e6cbe7, 206ed63b96be21a1 and the 4x4x4 split-wave64 programs is left once the window is out of the way. That number decides whether the split form is worth more work after #2009 / #1329 land.
I tried it here, but this machine (GTX 1650 4 GB, memory-limited) does not get past the menus. It sits at 16 GB committed there, so it never reaches the world.
If you already run main + #1766 and reach the world, three runs of the same length would answer it, all with XCL_GPU_PROFILE=1 XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512:
The "since the start" block at the end of each run is enough: the calls, total and longest time of the split-wave64 programs above, plus the GPU, driver and main commit. On native wave64 GPUs (AMD) the split form is not used, so this is a question for 32-lane GPUs (NVIDIA, Intel).
AI use: Claude Code (Claude Opus 5.5) wrote this for @gefydev.
The expensive programs are a small, slow-to-appear set — and each run banks the ones it finished. This follows the memory curve above and explains why precompiling in pack order did nothing.
Prior art, which I should have checked before writing the consequence below: #755 already proposes the right mechanism — a pipelines journal plus xcl pipelines <game> [--watch] to compile a title's queued pipelines outside the title, including the graphics ones — and #690 builds ahead what an earlier run used, with #634 keeping compute blobs on disk. #1035 covers the case where such a build never ends at all. So nothing here is a new mechanism; it is the cost distribution that #755 would remove, measured, and it argues for #755 rather than for iterating.
Method: join driver compile start #N: ... record <hash> to driver compile finish #N: ... <ms> in each run's log, on this machine (maincbc296a, 5070 Ti, release, defaults).
Per run, only 3–4 programs actually compile slowly
run compiles >=5 s their total whole window's driver time
postpc.log 4 372.7 s 372.7 s
rel-default5s.log 3 326.2 s 326.2 s
rel-release60s.log 4 347.8 s 347.8 s
Everything else that logs a driver compile start finishes in tens of milliseconds with driver blob supplied — the cache is working for those. The entire driver cost of a run is 3–4 programs, each 87–135 s.
Those same records are near-free the next run
A's slow records in next run (B) the run after (C)
d6a899deef4e55be 137 ms 127 ms
31b81a7b0427b16c 130 ms 118 ms
ef008c0f04b6261a 141 ms 152 ms
f1b22983d84270e4 144 ms 126 ms
87–135 s becomes ~0.13 s. So the driver blob cache does its job; the problem is that each run encounters 3–4 new ones, and no two runs I have share a slow record (A∩B = 0 of 3, B∩C = 0 of 4).
Consequence, and why pack order missed. Across 12 runs today there are 124 distinct compute records, and only ~11 distinct slow ones so far. Precompiling 650 pack-order pipelines therefore almost certainly built cheap programs and skipped exactly the ones that cost minutes — the order is unrelated to which programs the title binds at world load.
So the path is to do outside the title what iteration does slowly: run the title repeatedly, 3–4 new slow programs per run get banked, and the wall should move once the slow set is exhausted. At 3–4 per run and ~90 s each, that is on the order of ten runs rather than anything clever. I am starting that sequence now and will report whether the present wall moves from 46 s.
The two worst here are worth naming for whoever owns the perf work: prop_batch_slod:CS_RaytracingResolve_b1139868_Wrapped (3 645 KB HLSL, 971 008 B DXIL, 135 s) and ped_standard_head:CS_RaytracingResolve_b1139868_Wrapped (4 824 KB HLSL, 1 145 436 B DXIL, 120 s). Both are under the 8 MB line that #1723 caps, so that cap will not touch them — they are one per-asset raytracing resolve, which suggests the count grows with the assets the world touches rather than with the pipeline table.
@brainhay5 thank you for the measurements (maincbc296a, RTX 5070 Ti, release, defaults): per run only 3-4 programs compile slowly (326-373 s in total, 87-135 s each), the same records cost about 0.13 s on the next run, and no two runs share a slow record, so precompiling in pack order skipped them. Noted as measured; I have passed it to the session that writes the code.
If you can also run the request above (split-wave64 GPU time with XCL_GPU_PROFILE in the three forms), that is the number we are missing; a card with 32-lane waves is what we lack.
AI use: Claude Code (Claude Opus 5.5) wrote this reply for @gefydev.
Activity
Cattn commentedon Nov 24, 2026
Same stop here (RTX 4070, Ryzen 7 7800X3D, main + #455), so a data point on #101:
At
+0x50a6651and+0x50a666athe title calls slot 101 (call qword ptr [rax+328h]) on the command list as(list, 2, 1)and later(list, 2, 0), around a block of work. Both calls pass only small constants, no address and no value to write. It looks like an on/off toggle of some mode (2), not a GPU progress label. The stub is probably not what starves "GPU Loc Sig", though what the mode is remains unknown.A likelier lead on NVIDIA is pipeline builds not keeping up once the world loads. Our logs show ~10,000 new shaders at world load and only 5–50 pipelines finishing per 20 s afterwards, the pattern #156 and #499 describe. I'm measuring the backlog per 2 s next and will post it here.
(Disassembly and analysis by Claude Code, Claude Opus 5.5, read-only with
dumpbin.)Prime1997 commentedon Nov 24, 2026
I'll work on this.
Thank you for raising this issue.
sub-north commentedon Nov 24, 2026
Cross-confirmation from an independent lab, plus two corrections.
The stop reproduces exactly. Same code path, same address, same stack, same parameter set, on a different machine (RTX 4070 Ti SUPER, wave32, Windows 11) and a different day:
The title's own crash context at that moment (it writes
crashcontext.logbefore the upload attempt):So: simulation live in the world, pools populated, camera at a real coordinate — exactly your description.
Correction 1 - slot 101's return value is ignored. Disassembly of the function containing the call site (the log offset is the return address of
call qword ptr [rax+0x328], i.e. slot 101 confirmed): the two control-flow joins never test it. One doessetne al; the other immediately overwritesraxwithmov rax,[rsi+...]. There is noGetCompletedValueor fence wait in the function at all.eaxis neither stored nor compared. So 101 is a side-effect call and cannot be "the signal the CPU waits on" - there is no value to wait on. Its arguments arercx=owner ptr,edx=2,r8d=1 or 0.Correction 2 - the watchdog label is inline. "GPU Loc Sig" is not in the string table; it is a 13-byte immediate at
+0x23cf62edecoded byte-wise with a per-byte key, inside the same 0x73-byte function that null-writes at+0x23cf683. That idiom occurs once in the image. It is a diagnostic label being assembled for the crash report, not a value being compared.New wall on current main, worth knowing. On
7ebf1b8the same title gets further (8521 buildings, 83 peds, 238 cars, TileHeap 3639 MB) and then dies before the watchdog, ~290 s in:Our GPU VAs there are above 2^40 (e.g.
0x1d1ae5c0000). On85bdf21this never appears - that build dies at the watchdog instead. If you are testing on main, the BVH path may be killing your run before the watchdog does.Also: on our side the loader refused every BCPack request with zero decoder present (
filled_bytes 0for BC1/BC5/BC6H/BC7), matching your streaming-stall observation. We would be interested in your local decoder if you are willing to share the approach.emirduran707 commentedon Nov 24, 2026
A data point from AMD, much earlier than the 7–14 min above: the same stop at 161.7 s.
Setup: RX 9060 XT 16 GB (RDNA4, 64-lane waves), driver 32.0.31044.16, Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, release. Build:
maina6f5f7a + #440 (be722a7, the intro video at speed) + #300 (9507d05) + #435 (a94e151), merged locally.XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_FRAME_DUMP=60, A pressed by hand on the first menu.unhandled exception 0xc0000005 in <title>+0x23cf683 (write at address 0x0),GPU Loc Sig=7333478d(the same value as sub-north's run).ID3D12GraphicsCommandList10::#101 (not on PC)is first called at 99 s.activity (2 s)lines: 108–134 s the title submits (14–116 submits, 1–16 presents per 2 s) with heavy DirectStorage (1 100–3 500 requests per 2 s, up to 379 failed: BCPack refusals). From ~136 s to the stop, every line is 0 submits and 0 presents (a few dispatches, no DirectStorage). No device removal, noE_OUTOFMEMORY, no frame-event wait timed out.So on this machine the watchdog fires after ~26 s in which XCL saw no submit at all from the title, rather than with a backlog of work on the GPU. I have not checked what the title's threads were waiting on.
AI use: Claude Code with Claude Opus 5.5 read the run's log and wrote this comment from my run.
emirduran707 commentedon Nov 24, 2026
Follow-up to my run above: what the title was waiting on in those ~26 s without a submit.
XCL's thread dump at the stop has four title threads with the same stack, inside XCL. Symbolized with a release build of the same tree with
CARGO_PROFILE_RELEASE_DEBUG=line-tables-only(I checked that the code bytes at these offsets are identical to the build that ran):So four of the title's threads are in
Dispatch, waiting for a compute pipeline that is still being built. At the same moment 10 of the 11xcl-pso-*workers are idle,xcl-pso-7waits on a channel, 9 of 10xcl-dxc-*threads are idle, and one is insidedxcompiler.dll. That fits one compute program whose DXC compile took longer than the ~26 s, with everyDispatchof it blocked meanwhile – on AMD (no driver compile involved in that wait), not only on NVIDIA. I could not tell which program: XCL logs no per-compile time.Related: #174 (DXC time of compute programs) and #267 (a time limit on the wait – for draws;
dispatchcallsresolve_wait, which has none).AI use: Claude Code with Claude Opus 5.5 symbolized the dump and wrote this comment from my run.
requiemsnkrp commentedon Nov 24, 2026
Same stop on an RTX 3060 12 GB (Ampere, wave32) with 16 GB of RAM, on current
main508a0c7. The pipeline backlog stands out.Setup: RTX 3060 12 GB, driver 621.24; Ryzen 5 5600X; 16 GB RAM; Windows 11 Pro 26200; release build of
508a0c7, unmodified.XCL_NETWORK=0,XCL_ACTIVITY=1, menus walked withXCL_PRESS_AT(A at 14/17/21 s, then every 6 s from 125 to 197 s).unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0)at 326.9 s, same stack (+0x4e4ba89, +0x2215c35, +0x71b9a20, +0x2215eca).ID3D12GraphicsCommandList10::#101 (not on PC)was first called at 288.2 s from+0x50a6657.activity (2 s)lines: presents fall from 19 per 2 s at 142 s to 2 at 162 s and about 0 from 182 s. Submits are 0 in every line from 282 s to the stop, the same ~30–40 s without a submit as @emirduran707's run.report.jsonat the stop:background_pipelines: [46, 0, 58715], i.e. 46 built, 0 failed, 58 715 still building. That fits the pipeline-backlog lead of @Cattn and the unboundedresolve_waitindispatch.memory:lines: process commit 15.6 GB at 122 s, 26.4 GB at 182 s and 40.1 GB at the stop. Local video memory reached 13.8 GB on the 12 GB card (4.6 GB non-local).XDXR … more than 40b of addresserror on508a0c7: this run gets to the watchdog.process ends, no thread dump, no breakpad lines. The window stayed black at 0 fps until I killedxcl.exea few minutes later. So I have no thread dump of this run to add to the one above.Not tested: #267 or a time limit on
resolve_wait; a run withoutXCL_NETWORK=0; AMD.AI use: Claude Code (Claude Opus 5.5) ran the session on my machine, read the log and
report.json, and wrote this comment.13hourstilliland commentedon Nov 24, 2026
Static read of the retail exe (1.0.2.1), RVAs only, no run. Short version:
+0x23cf683looks like the same stall watchdog as #232, not a separate crash.+0x23cf620) is installed as the watchdog's report hook: the init code at+0x23cf6f7doeslea rcx,[+0x23cf620]; call +0x22161f0, and that function stores rcx into global+0x71b6348(only when a per-thread flag byte at[[gs:0x58]]+0x12d8has bit 0 set).+0x2215a60) reads+0x71b6348before its own null write and doescall raxat+0x2215c33. That call's return address is+0x2215c35, which is the+0x2215c35in your stack. So the fault is inside the hook, with the watchdog already decided to abort. The decode in Retail title: null write at +0x2215c35 (#159) still hits on NVIDIA RTX 4070 Ti, with and without XCL_NETWORK=0 #232 says the hook is NULL; here it evidently isn't.+0x2215c16: (A) a scoped timer registered through+0xb5b6b0(push) /+0xb5b6f0(pop) is >= 300.0f old (the table decode already posted); (B) when no scope is active ([+0x71b6334] == 0), a heartbeat timestamp at+0x71b6338has not changed for 30 one-second ticks.+0x22159f0, called from four sites:+0x120799,+0xc9e368,+0x1c82b67,+0x1c82bc1(the last two in a loop-tick function at+0x1c82b20).Dispatch -> resolve_wait(no time limit), the title aborts itself.+0x50a6651,+0x50a666a, args(2,1)/(2,0)) ignore the return value, so I agree with Cattn and sub-north that the stub is not what the watchdog waits on.Unknown, one debugger check each: at the stop,
[+0x71b6334](zero means route B); which thread the last heartbeat write came from (watch+0x71b6338); and whether those threads are the ones XCL dumps inresolve_wait.AI use: Claude Code (Claude Opus 5.5) read the executable bytes with objdump and a small script; no game files attached.
tadymila commentedon Nov 24, 2026
Confirming @Cattn's and @emirduran707's pipeline-backlog theory with numbers, and with a way to keep the title alive past the watchdog:
Update: past the world-loading crash (local patches)
1. BCPack: I plugged a BCPack decoder (BC1, BC3–BC7) into
hle/dstorage.rsfor a local test: zlib first, then BCPack, as on the console. 2048+ requests decoded, 0 failed, and streaming no longer stalls on refusals. (The decoder comes from VIctory, GPL-3.0-or-later, so it can't go into XCL as is. It just shows that BCPack is what this title needs to stream the world.)2. Correction on #101: VIctory's measured layout for this title names list slot 101
DriverHintX(feature, value), and VIctory also returns 0 there. So that stub is not the cause.3. The crash is the title's own watchdog. Thread at
+0x2215af6:Sleep(1000)) it checks a main-thread heartbeat; if it hasn't changed 30 times in a row (mov ebp,0x1e…dec ebp; je), it calls the callback at[+0x71b6348](+0x23cf620, which decodes "GPU Loc Sig" and writes to 0) and thenmov dword [0],0at+0x2215c35;+0x6844a20, stride 0x48) and fires on the same path when one gets too old (jaeat+0x2215bdc).rbx = 0, which is the heartbeat path: the main thread stalled for 30 s.4. With the watchdog off, the title keeps running (in-memory patch before the entry point; the game folder is untouched):
+0x2215c70: 74 04 -> 90 90,+0x2215bdc: 73 2e -> 90 90. It's at 40+ minutes now, no crash, still on the loading screen.5. What stalls the main thread, on NVIDIA: compute PSO creation. The world's compute pipelines are 130–380 KB of DXIL each (wave64 emulated on wave32) and take 15–25 s each to build in the NVIDIA driver, one after another on one thread:
[1737 s] 371688 B, [1755 s] 310308 B, [1773 s] 356320 B, [1787 s] 294160 B, [1811 s] 378660 B…345 compute PSOs so far, most built once or twice.
6. Also seen:
Wait64BitValueX timed out after 2000 ms at 0x70417fe58 / fe10 / fee8 (op 7, want 0x28e; memory holds 0), only 3 in total, all at ~1240 s.Setup: i7-9700F, RTX 5070 Ti, DXC 1.9.2609, NVIDIA shader cache set to unlimited. I'll report what the next run (with a warm cache) shows.
tadymila commentedon Nov 24, 2026
@sub-north BCPack: I ported the decoder from VIctory (crates/.../bcpack.rs + bcpack-tables.bin, GPL-3) into xcl/src/hle/bcpack.rs. dstorage.rs now inflates zlib first, then decodes BCPack modes 1,3,4,5,6,7 instead of refusing them. The streaming stall is gone; the log shows "DirectStorage: BCPack decoded N requests (0 failed)". Can share the diff.
Simon-CR commentedon Nov 24, 2026
Independent cross-confirmation and local engineering status from an AMD RX 9070 XT (RDNA4, native wave64, 16 GiB VRAM, Ryzen 7 5800X, 64 GB RAM, Windows 11 26100) lab.
Where our local branch stands (latest run before integrating our two-pass mesh and async compute PSO fixes)
Game State: Game Running, Frame 797, ~191 s, 1,611 presents, 13,551 draws and 2,048 dispatches with translated pipelines and 0 skipped, 46 translated PSOs, 0 DXIL compilation failures).E_ACCESS_VIOLATION(0x89240009) failures (down from 1,986 in our prior run — fix details below), and 2,087 / 2,088BC1BCPack requests unpacked (148.7 MB).xapuwith 0 errors (11,050,760non-zero samples).t = 190.9 s): Reproduced the exact same<title>+0x23cf683watchdog abort (mov dword [0], 0x4d8bd421).Confirmed Root Cause of the 30-Second Stall on RDNA4
In our crash thread dump at
t = 192 s, all 15xcl-pso-*background worker threads were completely idle while two of the title's own render worker threads were stuck deep insideamdxc64.dlland three more render worker threads were blocked inpso_async::resolve_wait. Becauseresolve_for_bind/bind::dispatchcallsresolve_wait— which stealsp.joband executes the driver compile synchronously on the calling render thread — cold large world compute shaders stalled presentation for ~27–30 s and tripped the title's heartbeat watchdog.Fixes Implemented & Tested Locally (Ready to Split into Clean PRs if Helpful)
We have built and unit/GPU-tested the following fixes locally and are about to kick off our combined verification run (we can open clean, focused PRs for any of these the maintainers want):
Non-blocking / time-bounded compute PSO compilation + on-disk
CachedPSObinary cache (pso_async.rs,real.rs,bind.rs):xcl-pso-*workers so newly bound pipelines jump to the front, stoppedresolve_waitfrom stealing heavy driver compiles onto title render threads, and addedresolve_wait_timeout(default1500 ms, configurable viaXCL_COMPUTE_PSO_WAIT_MS) so fast startup compute shaders still run on their first frame while slow 20–30 s driver compiles finish in the background without tripping the 30 s watchdog.GetCachedBlob()/CachedPSOcache (cache/pso_bin/) with stale-blob retry fallback so compiled pipelines reload in under 1 ms on subsequent runs.Solving the 40+ refused mesh pipelines (
AS = 23,MS = 24) & Two-PassDispatchMeshexecution (emit.rs,null.rs,console_list.rs,device_x.rs,real.rs,bind.rs,gpu_pso_e2e.rs):AS = 23(0x17) andMS = 24(0x18) (whereas PC SDK reserves23and usesAS = 24,MS = 25). The 40+ pipelines previously refused as "MS in the AS slot" are normal Xbox mesh shader pipelines.RSSetShadingRate(PC slot 77), slot 127 =RSSetShadingRateImage(PC slot 78), slot 128 = 2-argument console setter (kept as stub), and slot 129 =DispatchMesh(plusExecuteIndirectwithDISPATCH_MESHcommand signatures).Mode::Meshroot-argument SGPR layout (s[8:9]spill pointer, inline root arguments ats16..s31) and wired full Two-Pass execution (Compute pass -> UAV barrier -> Pass-throughDispatchMesh, including companionDISPATCHsignatures and GPU-scaled indirect arguments for split-chunk shaders), plus a smallsplit == 1 && mv <= capfix on top of Recompiler: the mesh pass-through budget accounts DXC’s vertex chunks #304.gpu_pso_e2etests passing (including synthetic single-chunk and split-chunk direct & indirectDispatchMeshpixel readbacks and 7 / 7 retail MS+PS pipelines).Stub audit (confirming slot 101 and the other per-frame stubs are not starving the watchdog):
CommandListslot 101 passes(list, 2, 1)/(list, 2, 0)with an ignored return value (matching the findings above).CommandQueueslot 31 is the copy-queue page-mapping helper paired withXMemMapPhysicalPagesScatter(already handled by XCL's sparse mapping hooks),CommandAllocatorslot 9 registers an Xbox segment-grow callback,CommandListslot 75 takes a 1-bit PSO boolean, slot 142 takes a 64-bit CU occupancy mask, and slots 131 / 132 are init-only PM4 buffer sizing calls.DirectStorage
0x89240009(1,986 -> 0) + commit/VRAM pressure & lock fixes (dstorage.rs,kernelx.rs,lazy.rs,vram.rs,sparse.rs,real.rs,uma.rs,eh.rs):E_ACCESS_VIOLATIONburst by: (a) deferringQueueInner'scapacity / 2auto-submit when pending physical-page entries are still unready, (b) refreshing reused non-zero physical-page table slots onwrite_physical_pagesfailure (not only zero entries), (c) inserting intoPHYS_BLOCKSbefore publishing page numbers, and (d) makinglazy::commit()runVirtualAlloc(MEM_COMMIT)before removing a page fromLAZY(same root cause as kernelx: a lazy physical page whose commit fails leaves the lazy set, silently #467).64 MiBidle heap retirement andreclaim_idle()tovram::Pages(which otherwise climbed past 9.9 GB / 155 pools on 16 GiB VRAM), cleaned uptexture_memory()reservations +LAZYranges onRelease, added reclaim + a 30 s deadline toBIG_COMPILES::wait_for_commit(), refactoredsparse::readback_now()into a 3-phase flow that dropsSTATEacross the GPU fence wait, and added frame validation + VEH-guarded recovery aroundRtlVirtualUnwindineh::dump_threads()(which previously faulted atntdll.dllon live mutating thread stacks).BC7+ parameterizedBC3/BC4/BC5BCPack modules plus thelanes.rsflushed-fragment zero-restoration fix (bc1-1-8passes; retailBC7still hits ~190 cross-mode/preset refusals without unpublished preset tables).(Note: we also saw #504 on #486's
LAST_CONTENTinvalidation bug and are folding that fix in before our next combined run.)We'll report back once the combined build (Two-Pass
DispatchMesh+ async/cached compute PSOs + pool retirement) runs past Frame 797. Happy to open clean, individual PRs for any of the items above.AI use: analysis, implementation, and tests assisted by Antigravity (Gemini Pro) on AMD Radeon RX 9070 XT; zero game files or binaries included.
theswiss24 commentedon Nov 24, 2026
Another data point for the world-loading stop, on an RTX 4070 (12 GB), with #435 applied.
Setup: RTX 4070 12 GB (32-lane waves), driver 621.24; i9-9900K (clwb/clzero emulated); 48 GB RAM; Windows 11 26300. Release build of
main7ebf1b8 plus open PRs #300, #321, #468, #463, #451, #510, #487, #490, #348, #522 and #435. Run withXCL_NETWORK=0 XCL_ACTIVITY=1 XCL_DXC_THREADS=4.Same stop.
unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0)at 134 s, about 20 s after the world's ambient audio starts, with the screen blank. This matches the watchdog reading above.#435 stops the memory growth before it. Without #435, the process's private bytes climbed about 4 GB every 30 s during world loading (10 → 29 GB in 2.5 min) and the stop came at 179 s. With #435, the
XCL_ACTIVITYmemory line levels off at about 28 GB committed (title textures 22,907 live, 40,150 uploads; target pages 9.6 GB; local video memory 14.0 GB on a 12 GB card) and stays flat for the last 20 s before the stop. So on this machine the stop is not an out-of-memory failure.Network: without
XCL_NETWORK=0, the title's crash reporter uploaded its minidump after this stop (HTTP 200). With it,WinHttpConnectis refused, as intended. Worth repeating for anyone testing: always set it.Next here: pipelines are being pre-built (
xcl shaders shaders.rpf --precompile --pipelines, NVIDIA shader cache set to Unlimited). I'll report whether a warm driver cache gets the main thread past the 30 s watchdog.Tested and written by Claude (Claude Code).
13hourstilliland commentedon Nov 24, 2026
A probe for "who stops feeding the watchdog", from a static read of the exe (1.0.2.1, RVAs only). It follows my comment above.
When no timed scope is open (
[+0x71b6334] == 0) the watchdog aborts after 30 one-second ticks without a change of the heartbeat at+0x71b6338. Only+0x22159f0writes it. Its callers:+0x1c82b67/+0x1c82bc1, inside+0x1c82b20: a "wait and keep the heartbeat going" loop (heartbeat, some pumping work,Sleep, repeat until done). It has 20 callers, so blocking loads that go through it are covered.+0x120799(function+0x120790, no direct callers, so reached through a pointer) and+0xc9e368(function+0xc9e350, one caller at+0xc9e334). Inferred: one of these is the per-frame tick.So the abort means the thread that runs the per-frame tick has been blocked for ~30 s outside that wait loop. That also fits @sperm's #533 run, where bounding compute waits did not stop it: something else blocks that thread.
Probe, for anyone with a debugger or a vectored handler on the title:
[+0x71b6334](0 = this route).+0x71b6338, log the return address (+0x120799,+0xc9e368,+0x1c82b67,+0x1c82bc1) and the thread id of each hit, and stop logging after a few seconds of normal frames.Also on main: @sub-north's
40b of address setstop. I opened #585 for it. It ends runs before this watchdog can.AI use: Claude Code (Claude Opus 5.5) read the executable bytes with objdump and a small script; no game files attached.
MJ26gaming commentedon Nov 24, 2026
Same stop here
Game and package version
New Retail Game / 930.048.020
What happens
Environment
XCL commit:
508a0c7OS: Windows 11 x64
CPU: AMD Ryzen 9 8945HS
GPU: NVIDIA GeForce RTX 4070 Laptop GPU (8 GB VRAM)
RAM: 32 GB DDR5
DXC: 1.9.2602.17 (21d28f72)
Build: Release with debug symbols
Game version:
930.048.020Game executable:
game_scarlett_master.exeDescription
The game successfully launches and renders its menus. Audio and GameInput are functional, and menu performance reaches approximately 30 FPS.
When transitioning from the menus into gameplay, the game displays a loading screen before transitioning to a black screen. Shader compilation and audio decoding continue in the background, but the game eventually crashes.
The crash is reproducible across multiple runs, with the same faulting instruction, write address, and call stack.
Steps to reproduce
Build XCL using
cargo build --release --workspace.Launch the game through XCL.
Navigate through the menus and attempt to enter gameplay.
Observe the loading screen transitioning to a black screen.
The game eventually terminates with exception
0xc0000005.Expected behavior
The game completes loading and enters gameplay.
Actual behavior
The screen goes black and the game eventually crashes with a null pointer write.
Crash information
Relevant warnings
Numerous DirectStorage BCPack requests are refused because the compression modes are unsupported:
At least 2,048 BCPack requests were refused before the crash in one run.
Other potentially relevant graphics warnings:
The following unimplemented functions were also called:
Interface | Slot | Calls -- | -- | -- ID3D12CommandAllocator | 9 | 2206 ID3D12GraphicsCommandList10 | 142 | 2166 ID3D12GraphicsCommandList10 | 75 | 2089 ID3D12GraphicsCommandList10 | 126 | 2088 ID3D12CommandQueue | 31 | 284 ID3D12GraphicsCommandList10 | 101 | 12 ID3D12GraphicsCommandList10 | 131 | 8 ID3D12GraphicsCommandList10 | 132 | 5Slots 131 and 132 had identical call counts and calling locations across two consecutive runs.
Shader statistics
Unique shaders: 19,214
Xbox-native shaders: 19,099
NGG hardware-stage shaders: 6,685
RDNA2 instructions decoded: 37,858,913
Undecoded instruction words: 0
Xbox shader parsing errors: 0
Compute pipeline compilation continues until immediately before the crash.
Additional testing
Rebuilding XCL from the latest source did not eliminate the gameplay crash.
Repairing Windows Gaming Services did not resolve the issue.
Shader caches were retained between runs.
An earlier build (
3516080) crashed during the gameplay transition with an invalid memory read insideVCRUNTIME140.dll, with XCL functions on the stack. After updating to508a0c7, the crash changed to the reproducible null pointer write described above.I also have an RX 9070 XT available for comparison. Testing through Wine has been substantially slower, and native Windows testing on that GPU is still pending.
I have not established whether the BCPack refusals, unsupported graphics operations, or another issue directly causes the crash.
I can provide additional logs, debugger output, and hardware comparison results if useful. Note that this comment report was generated by AI. I have reviewed it though.
emirduran707 commentedon Nov 24, 2026
How long the title's compute programs take in DXC, for the
resolve_waitlead above: every compute program of the pack compiled once, offline, the way a title's pipeline translates it.Run:
xcl shaders <the title's shaders.rpf> --precompile --only cs(maina6f5f7a code for the recompiler; the build had #440 / #300 / #435 merged, which do not touch it), with a local timer around each program'spso::console_to_dxil_in(not committed). RX 9060 XT machine, Ryzen 5 5600 (6 cores / 12 threads, 11 DXC threads), DXC 1.9.2602.17, 4 memory windows, an empty DXIL cache.So once the world streams in, any of hundreds of compute programs that is not in the DXIL cache yet holds every
Dispatchof it for longer than the title's ~30 s heartbeat. The cache never gets them either: the process ends at the watchdog before those compiles finish, so the next run waits for the same ones. This machine's DXIL cache now holds all 2 689; I'll check whether the stop goes away with a warm cache when I can drive the menus again, and post the result here.Related: #174 (DXC time of compute programs: linked memory accessors), #267 (a time limit, for draws), and
xcl shaders --precompileas a workaround that already exists.AI use: Claude Code with Claude Opus 5.5 ran the compile and wrote this comment from my run.
vibryxcx commentedon Nov 24, 2026
An RDNA2 on Windows data point (the reports so far are NVIDIA, RDNA3 and RDNA4), on an Intel CPU that needs the console-instruction emulation: the same stop, at 275 s, with the same pipeline backlog. A second run back to back got past that point and ran into system memory instead.
Setup: AMD Radeon RX 6800 16 GB (RDNA2, native wave64), driver 32.0.21045.5002; Intel Core i5-10600KF (Comet Lake;
clwb/monitorxemulated); 32 GB RAM; Windows 11 build 26200. Release build of plainmain9ce2070, DXC fromXCL_DXC_DIR.XCL_NETWORK=0 XCL_ACTIVITY=1,XCL_PRESS_A_AT=14,17,21,125,131,…,197(A at 14/17/21 s, then every 6 s from 125 to 197 s, as @requiemsnkrp walked the menus). Run limit 600 s.Run 1: the same stop.
unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0)at 275.0 s,rbx=0x0,rcx=0x70024c348(the heartbeat path, as above).Game State: Game Running,Game Running Time: 0h:4m:1s,Frame: 3490,Streaming Requests: 4387,TileHeap: used (1600Mb) - total (6236Mb).activity (2 s)lines: 60 presents per 2 s up to 191 s, then 12 at 200 s, 3 at 210 s; the last submit at 244 s, then none for 32 s until the stop.report.jsonat the stop:background_pipelines: [14, 0, 58745]– 14 built, 0 failed, 58,745 still building, close to the RTX 3060's[46, 0, 58715]. So native wave64 does not avoid the backlog here.xcl-pso-*workers are all waiting, as in @Simon-CR's RDNA4 dump. One title thread (22808) is running inxcl.exe(top framexcl.exe+0x1c8454, called fromgame_scarlett_master.exe+0x4ecc821). I have not symbolized it.memory:lines): commit 16.3 GB at 150 s, 21.3 GB at 210 s, 28.1 GB at 270 s; local video memory 6.9 → 11.4 GB on the 16 GB card.Run 2, right after run 1: past 275 s without the watchdog.
report.jsonwas not written at the end and I have no pipeline counts for this run.I cannot say the second run lived longer because of a warmer cache: run 1 built only 14 pipelines before it stopped, and @emirduran707's numbers above put the pack's compute programs at many hours of DXC time. It may just be variance in when the main thread stalls. What it does show on this machine is that once past the stop, the memory growth (about 4 GB every 30 s, like @theswiss24's runs without #435) is the next limit on 32 GB.
Not tested: #435 or any other open PR; a run with the pipelines precompiled (
xcl shaders … --precompile --pipelines); more than one run of each; symbolizing thread 22808.AI use: Claude Code (Claude Opus 5.5): ran the tests and wrote this report.
182 remaining items
treybertram06 commentedon Nov 25, 2026
Follow-up to my last comment: on this machine the
0x887a0005removal is not caused by video memory oversubscription. With the title's texture pages in system memory (#1702,XCL_TEXTURE_PAGES_SYSTEM_MEMORY=1), local usage stayed well under the DXGI budget, and the device was still removed at the same point.Setup: RTX 3080 10 GB, driver 621.01, Windows 11 Pro 26300, release.
mainc4d37be+ #1478 + #1702, heap windows, plus my local logging. One run.XCL_TEXTURE_PAGES_SYSTEM_MEMORY=1#1702 does what it says on a 10 GB card: about 10 GB of local usage moves to system memory, and nothing went wrong before the removal. The removal itself is unchanged. It came again with the GPU idle and no
nvlddmkmevent, after 11 waits were released on the CPU. Removing the page-mapping waits (my comment above) did not stop it either. What is left, as far as I can see: something about the tile mappings themselves, rather than where their memory lives; the order between the mapping queue and the title queues; or the driver. @Krashgamer's 610.88 runs had no removal; this is 621.01.Not tested: driver 610.88 on this machine; #1702 for longer than 90 s.
AI use: Claude Code (Claude Opus 5.5) ran this and wrote the comment.
Krashgamer commentedon Nov 25, 2026
@treybertram06 one correction to "610.88 runs had no removal": I've had one since, though it looks like a different mode from yours. RTX 3080 10 GB, driver 610.88, a cold run (every compute program built fresh) of
main4178e88+ #640 #742 #751 #800 #1055 #1405 #1580 #1765 #1766 #1791 + a local port of #1850:0x887a0005at 356 s. Unlike your runs, Windows loggednvlddmkm14 and four 153 "TDR occurred" events at that moment. In a later run of the same tree with #1599 added, a TDR the driver could not recover from ended in bugcheck0x116. So on this card it was a real GPU timeout (a long-running dispatch), not an idle GPU with an empty DRED.AI use: Claude Code (Claude Opus 5.5).
Ariorh1337 commentedon Nov 25, 2026
Step 3 from my run-51 comment is now a PR: #1993. Copies back after a submission run on a readback queue of their own and land asynchronously, so
readback_after_executeno longer GPU-waits on the title's queues or blocks the submitting thread. @lucsoft, this is the cleaner version of your bounded-CPU-wait change.Map's readback, in the CPU memory waits, and in the title'sGetCompletedValue/SetEventOnCompletion, which are now hooked. Without those hooks the e2e test title read 0 after its own fence wait.main. The 4 are thegpu::dxil::fuzz_testsdriver OOM thatmainhas too;main+ D3D12.X: a copy back after a submission does not wait for the title #1993 alone.@lucsoft, @treybertram06, @not-rex: if you can run it on your setups, a test report on the PR would help most, especially with
XCL_COHERENT_MBat 1024 or lower, where more of the title's GPU memory goes through readbacks.AI use: Claude Code (Claude Opus 5.5) wrote the PR and this comment.
lucsoft commentedon Nov 25, 2026
Linux / RDNA3 now gets into the game too: the opening credits were on screen, 330 s after the first
#101, with 0 GPU wait timeouts. It then ends as @Ariorh1337's 5090 run did: a compute queue hangs,0x887a0005, then the title'sint3at+0x2474606. Also: on currentmain,XCL_GPU_WAIT_TIMEOUT_MSis read but the watchdog doesn't use it.Setup: RX 7800 XT (RDNA3, Mesa 26.3.1 RADV), kernel 7.3.5, Wine 11.21 Staging, vkd3d-proton 3.1 (relaxed). XCL
main6567c5f+ the stack from my comments above:readback_after_executeCPU wait;b8b1f49reverted.Env:
XCL_HEAP_WINDOWS=1 XCL_COHERENT_MB=1024 XCL_SPARSE_WAIT_MS=100 XCL_GPU_WAIT_TIMEOUT_MS=20000. Warm caches. One run.XCL_GPU_WAIT_TIMEOUT_MSonmain:list_x::gpu_wait_watchdog_timeout()reads it.armed_at.elapsed() >= …twice, and the "did not complete within" message) still use the constantGPU_WAIT_WATCHDOG_TIMEOUT, so waits are released after 5 s whatever it is set to.submitted=0xdb8, completed=0xdb7). Compute queues then hung (ring comp_1.0.1/comp_1.2.1 timeout), and MES failed to respond, so it took a mode1 reset with the desktop session.The run:
#101at 301.3 s.did not complete withinlines for the whole run.Wait64BitValueXtimeouts (2 s each, at 523 and 623 s), with memory trailing the fence (memory holds Some(dfe)atwant 0xe0b).38 691 draws … (0 skipped), 131 072 dispatches (0 skipped).The end, at 630.6 s:
ring comp_1.1.0 timeout … Process main … thread vkd3d_queue, thenRing comp_1.1.0 reset succeeded(only that queue; no mode1 this time).D3D12 device removed: 0x887a0005, thenunhandled exception 0x80000003 in game_scarlett_master.exe+0x2474606.0x887a0005andint3at+0x2474606). So on both, the next obstacle past world load is a compute dispatch that does not finish.main), so I can't name the program. @dkdknight's50625695d2e6cbe7/206ed63b96be21a1would be the first to check.Not tested: #1323 on this tree; @Ariorh1337's steps 1 and 2 (big heaps in sparse windows, tile mappings on their own queue); more than one run.
AI use: Claude Code (Claude Opus 5.5) built the tree, read the logs and wrote this comment. The run was real, on the hardware above.
not-rex commentedon Nov 25, 2026
Follow-up to my coherent-window table above: with the stall gone, what ends the title next on the RTX 3080 depends on DirectStorage. Same setup (
XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512,XCL_PSO_WAIT_MS=50, warm caches, 600 s), one run each:#101main20cf1302+ diagnostics0xC0000005at+0x4ed8020at 179.3 smain+ #1323 (XCL_GPU_CULPRIT=1)0xC0000005at+0x4684e7(two threads) at 169.6 s; no culprit report, since nothing stalledmain+ #1405 + #14640x887A0007(device reset) at 360.4 s, then the title's watchdog at 374.2 sWith #1405 and #1464 the title-side faults (
+0x4ed8020,+0x4684e7, and earlier+0x4e8b302/+0x108557) didn't appear, and the world ran longest. Before that the GPU showed only short 100 % bursts, the last at ~295-300 s, where the presents stop. Commit peaked at 39.3 GB. One run per arm, so it's a pointer to those two PRs rather than proof.AI use: Claude Code (Claude Opus 5.5) ran the runs on my machine and wrote this.
itsd-effex commentedon Nov 25, 2026
Linux / NVIDIA: with the driver's cache warm, the screen-probe programs build in milliseconds and the title gets past the stop where a cold run froze. Complements @Royalflamejlh's #1809 report that the build of
56c0cd3b82a00c6e(ActivateProbes) stays open through the stop onmain.Setup: RTX 3080 Ti 12 GB (NVIDIA 620.73.04), i7-11700KF, 32 GB RAM, CachyOS, Proton Experimental's Wine, vkd3d-proton
ec207194(+ #257's patch). xcl:main62265d3+ #688 + #759 + #684 + #1660 + #1860, release,XCL_DIRECT_DXIL=1,XCL_SKIP_BINK=1,XCL_PSO_DISK_CACHE=0(#2003). NVIDIA's shader cache in a folder of its own with a 20 GB limit (see this comment on #1269), filled by a fullxcl pipelinesrun (58,804 made) before the first run below. Retail 1.0.2.1, no input after the start.56c0cd3b82a00c6e(4,321,608 B DXIL)95cc13288a27a96e(3.8 MB DXIL)+0x4da6315, Retail title 1.0.2.1 (Linux, RTX 3060 Ti 8 GB): past the end of story loading, then title assert 0x80000003 at +0x4da6315 #1164) and no device removal by 870 s.Not tested: whether run 2 would have rendered given more time; Windows, AMD; with
XCL_PSO_DISK_CACHEon (crashes here, #2003).AI use
treybertram06 commentedon Nov 25, 2026
Driver update: on this card the
0x887a0005removal (idle GPU, nonvlddmkmevent) has not come back on NVIDIA 621.40.RTX 3080 10 GB, Windows 11 Pro 26300, same tree as my comments above (
mainc4d37be+ #1478 + #1702 with its switch off + local logging), warm caches.XCL_COHERENT_MB=1024) had no removal and no crash. GPU waits were still released on the CPU 1–6 times per run. One earlier 30-minute run on 621.40 had no removal either, but it spent that time rebuilding the driver cache, so it never got far into the world load.So anyone chasing this mode on NVIDIA should probably update first. This is four runs on one card, and 300 s each, which is past every removal I saw on 621.01 but not a long session. @Krashgamer's removal on 610.88 was a real TDR with
nvlddmkmevents, so a different mode from this one.AI use: Claude Code (Claude Opus 5.5) ran this and wrote the comment.
D3D12.X: the GPU-wait watchdog says where a chain of waits ends
CowboyBingus commentedon Nov 25, 2026
@Ariorh1337 thanks for the run 51 write-up. We're setting up a replication on an RTX 5070 Ti (16 GB, driver 621.24) and will post what we get here.
Your earlier stack, as we read it from this comment and this one: b9b6ea6 with
b8b1f49reverted, #1316 + #1448's top commit, #688, #751, #1429, #929, #1464, #979, #1791, #1252, #1323 and #1766. On top of that we'd add #1329 (9ef4696+ac4b997, as in your run-51 comment; not88cd3a5), #1993 and #2009, withXCL_COHERENT_HEAPS=sparse:1024 XCL_HEAP_WINDOWS=1 XCL_NETWORK=0, noXCL_PSO_WAIT_MS, and all pipelines prebuilt. Is that the full set under run 51?Step 2: steps 1 and 3 are published as #2009 and #1993 (run 51 used an earlier prototype of #1993, per #2009's description). Step 2,
UpdateTileMappingson a queue of its own, isn't in your PRs or your fork's branches. Your run-51 comment listed "the mapping queue (step 2) first, since it is small and stands on its own"; could you push it, even as a draft PR or a branch? Without it we'd be testing a tree further from the one that reached the HUD.AI use: Claude Code (Claude Opus 5.5) wrote this comment.
gefydev commentedon Nov 25, 2026
Request for a measurement nobody has posted yet: the split-wave64 programs' GPU time with the coherent window out of the way, in each shader form.
@cafeoh's and @oz-stanislav-zhukov's
XCL_GPU_PROFILE(#1766) tables were taken with the default coherent window. @Ariorh1337, @kanade333 and @not-rex then showed that the window itself makes the heavy passes 14–350× slower. So we do not know yet how much ofa9f2cd53943d5dc4(3.1 s per call),50625695d2e6cbe7,206ed63b96be21a1and the 4x4x4 split-wave64 programs is left once the window is out of the way. That number decides whether the split form is worth more work after #2009 / #1329 land.I tried it here, but this machine (GTX 1650 4 GB, memory-limited) does not get past the menus. It sits at 16 GB committed there, so it never reaches the world.
If you already run
main+ #1766 and reach the world, three runs of the same length would answer it, all withXCL_GPU_PROFILE=1 XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512:XCL_DIRECT_DXIL=1(gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426's per-instruction form);XCL_DIRECT_DXIL=1 XCL_PER_LANE=1(the per-lane form, Recompiler: a per-lane form for the direct DXIL backend (XCL_PER_LANE) #1745, with Recompiler: fix per-lane whole-wave predicate and SRC_SCC checks #2014 and Recompiler: a float v_cmpx through #1426's lowering keeps lanes outside EXEC out #1876 now inmain).The "since the start" block at the end of each run is enough: the calls, total and longest time of the split-wave64 programs above, plus the GPU, driver and
maincommit. On native wave64 GPUs (AMD) the split form is not used, so this is a question for 32-lane GPUs (NVIDIA, Intel).AI use: Claude Code (Claude Opus 5.5) wrote this for @gefydev.
Recompiler: XCL_LOOP_BUDGET sets the loop iteration budget of a lane
Recompiler: without XCL_LOOP_BUDGET the HLSL is byte for byte as before
kernelx: XCL_COHERENT_HEAPS=sparse:N puts big GPU heaps in video memory
brainhay5 commentedon Nov 25, 2026
The expensive programs are a small, slow-to-appear set — and each run banks the ones it finished. This follows the memory curve above and explains why precompiling in pack order did nothing.
Prior art, which I should have checked before writing the consequence below: #755 already proposes the right mechanism — a pipelines journal plus
xcl pipelines <game> [--watch]to compile a title's queued pipelines outside the title, including the graphics ones — and #690 builds ahead what an earlier run used, with #634 keeping compute blobs on disk. #1035 covers the case where such a build never ends at all. So nothing here is a new mechanism; it is the cost distribution that #755 would remove, measured, and it argues for #755 rather than for iterating.Method: join
driver compile start #N: ... record <hash>todriver compile finish #N: ... <ms>in each run's log, on this machine (maincbc296a, 5070 Ti, release, defaults).Per run, only 3–4 programs actually compile slowly
Everything else that logs a
driver compile startfinishes in tens of milliseconds withdriver blob supplied— the cache is working for those. The entire driver cost of a run is 3–4 programs, each 87–135 s.Those same records are near-free the next run
87–135 s becomes ~0.13 s. So the driver blob cache does its job; the problem is that each run encounters 3–4 new ones, and no two runs I have share a slow record (A∩B = 0 of 3, B∩C = 0 of 4).
Consequence, and why pack order missed. Across 12 runs today there are 124 distinct compute records, and only ~11 distinct slow ones so far. Precompiling 650 pack-order pipelines therefore almost certainly built cheap programs and skipped exactly the ones that cost minutes — the order is unrelated to which programs the title binds at world load.
So the path is to do outside the title what iteration does slowly: run the title repeatedly, 3–4 new slow programs per run get banked, and the wall should move once the slow set is exhausted. At 3–4 per run and ~90 s each, that is on the order of ten runs rather than anything clever. I am starting that sequence now and will report whether the present wall moves from 46 s.
The two worst here are worth naming for whoever owns the perf work:
prop_batch_slod:CS_RaytracingResolve_b1139868_Wrapped(3 645 KB HLSL, 971 008 B DXIL, 135 s) andped_standard_head:CS_RaytracingResolve_b1139868_Wrapped(4 824 KB HLSL, 1 145 436 B DXIL, 120 s). Both are under the 8 MB line that #1723 caps, so that cap will not touch them — they are one per-asset raytracing resolve, which suggests the count grows with the assets the world touches rather than with the pipeline table.gefydev commentedon Nov 25, 2026
@brainhay5 thank you for the measurements (
maincbc296a, RTX 5070 Ti, release, defaults): per run only 3-4 programs compile slowly (326-373 s in total, 87-135 s each), the same records cost about 0.13 s on the next run, and no two runs share a slow record, so precompiling in pack order skipped them. Noted as measured; I have passed it to the session that writes the code.If you can also run the request above (split-wave64 GPU time with
XCL_GPU_PROFILEin the three forms), that is the number we are missing; a card with 32-lane waves is what we lack.AI use: Claude Code (Claude Opus 5.5) wrote this reply for @gefydev.