Repository navigation
Description
Setup
- XCL at upstream
main(b7aa9f3, 2026-11-24) plus one local commit that only reports the title's own commit toTitleMemoryStatus(unrelated to the symptoms below). - Windows 11, RTX 3060 12 GB, i5-13400F, 16 GB RAM, C: SSD, page file C: 34 GB only.
XCL_NETWORK=0, Series X (anaconda), 1920x1080 settings. - Game:
game_scarlett_master.exe, run withxcl run <folder>.
What happens
The title now gets through start-up, renders its intro and loading screens (about 10-30 fps, 28,000+ draws, 0 skipped) and shows the account picker; a controller press moves it on. About 130-160 s after launch it dies in one of two ways (runs 56, 58, 59 on this build).
1. D3D12 device removed (0x887a0005), runs 56 and 58
Just before the removal the log shows compute queues (q0, q2, q3, q4; list type 2) waiting through Wait64BitValueX for a value no queue has produced:
Wait64BitValueX at 0x70417ff68 >= 0xad5 bridged to GPU queue.Wait (waiter=q0/ty2, prod=qSome(1)/tySome(0); wait-before-signal, after_write64=false)
GPU queue.Wait at 0x70417ff68 >= 0xad5 did not complete within 5000 ms (waiter=q0/ty2, prod=qSome(1)/tySome(0), recorded=0xad5, submitted=0x0, completed=0x0) – released on CPU to prevent GPU hang
... (4 such timeouts, q0/q2/q3/q4)
Wait64BitValueX at 0x70417fe58 >= 0xad5 bridged to GPU queue.Wait (waiter=q0/ty2, prod=qNone/tySome(0); wait-before-signal ...)
Wait64BitValueX at 0x70417fe10 >= 0xad5 ... prod=qNone
Wait64BitValueX at 0x70417fee8 >= 0xad5 ... prod=qNone
D3D12 device removed: 0x887a0005 The GPU device instance has been suspended.
Run 56 shows the same prod=qNone waits right before its removal (value 0xd59), without the 5 s timeouts. recorded = value, submitted=0x0 / completed=0x0 says the producer list was never submitted. Suspicion: a wait with no known producer (qNone) is still handed to the GPU as queue.Wait in try_gpu_wait (list_x.rs), and when nothing signals the fence the driver resets the device before the 5 s CPU release fires.
XCL_DRED=1 was tried and stalls the game in its first seconds (frame 1 shown, then no progress for 12 minutes), so no DRED data.
2. Title watchdog, runs 34-55 and 59
The title's own watchdog (write to address 0 at game_scarlett_master.exe+0x23cf683) ends the process 129-320 s in. Run 59 (newest main, 726 lib tests pass) ended this way after 129 s, and again logged 4 GPU queue waits that timed out after 5000 ms with nothing signalling them. In run 55 the log shows 307 compute pipelines built, 139 of them over 1 s, the longest 60.7 s (NVIDIA driver, cleared cache). pso_async.rs already documents this case (XCL_PSO_WAIT_MS); not retested with it yet.
Memory notes (16 GB machine)
- Free RAM stays at 0.2-1.7 GB during loading; process commit goes from about 14 GB to about 27 GB, system commit peaked at 45.9 GB.
- With paging on the SSD only, the disk stopped being the bottleneck; the stalls remain.
- Large title allocations go through write-watched GPU-visible reservations (about 10 GB: 3.5 GB and 6.4 GB), the coherent window (about 2.4 GB) and placeholders, not plain
VirtualAlloc, so a commit-on-first-touch layer for plain allocations (tried, all tests pass) never engages. - Series S mode (
lockhart, raw type 5) gets past start-up and renders the loading screen, then the game fail-fasts after 28-48 s (+0xcc2834, an int3 after its allocator thunk0x145204e60returns null for a 0x1a8-byte request, pool argument 2). Not a Windows out-of-memory (free RAM >= 3.5 GB, commit 26.7 GB of 49.8 GB). Raisingtitle_memory_mbto 13824 did not change it.
Questions
- Is a
Wait64BitValueXwith no known producer meant to become a GPUqueue.Wait? Should it wait on the CPU side (or be skipped with a log line) instead? - Any hint why the producer list on q1 for 0xad5 is never submitted?
Logs available on request (they contain this machine's file paths; the game's crash reporter is kept off with XCL_NETWORK=0).
Activity
CowboyBingus commentedon Nov 24, 2026
I'd like to take this: the
Wait64BitValueXwaits that XCL bridges to a GPUqueue.Waitwithprod=qNoneat world load, and the stop that follows them. Unless someone is already on it.Measured on an RTX 5070 Ti (driver 621.24), on a local tree of
b7aa9f3with #1315/#1316, #1321, #1288, the shared-target compact form (#1448) and #1380. The giant compute pipelines there come from driver blobs (ActivateRaysin 315 ms):>= 0x6f4at 0x70417fe58 / fe10 / fee8 arebridged to GPU queue.Wait (waiter=q0/ty2 and q1/ty2, prod=qNone/tySome(0); wait-before-signal, after_write64=false).That's the same sequence @Eterst reports above (qNone waits at 83.4 s, then 0 presents and 0 submits through 300 s) and the one in #1452.
In the code (
list_x.rs,try_gpu_wait),prodis the queue of the cell's last GPUSignal, or of the list that recorded its write.qNonemeans no signal was issued and the recording list was never executed. A wait is bridged oncerecorded_max >= value, andrecorded_maxis not lowered when a list isReset.Next: which list records the writes to those addresses, whether it is ever executed, and why the 5 s wait watchdog does not release the wait. I'll post what I find here, and a PR if it is an XCL fix.
AI use: Claude Code (Claude Opus 5.5) ran the measurements and wrote this; the runs were on my machine.
CowboyBingus commentedon Nov 24, 2026
Correction to my comment above. I'm withdrawing the claim: in my run the
qNonewaits are not what stops the title.From the same run's log and its three minidumps at the stop:
ARMED_GPU_WAITSis 0 in all three dumps. The wait watchdog thread is parked in its idlecv.wait(list_x.rs:1367) from 95.0 s on. The log has no CPU-release, timeout or device-removal line.split command list (type 2) around mid-list Wait after Write64 (#1)comes at 90.104 s, and the bridges at 92.141 s.qNoneline at all.resolve_wait,build_compute), and 289 pipeline builds finished after 90 s. My line above, "no wait on a pipeline build longer than 11 s", only covered waits that began before 200 s. Later ones took 24–40 s.That matches @B0rm0t0s's correction (#505 (comment)):
qNoneis not the common factor.AI use: Claude Code (Claude Opus 5.5) analysed the run and wrote this; the run was on my machine.
Krashgamer commentedon Nov 24, 2026
Data point for the device-removal mode, from an NVIDIA wave32 card, with #1323's culprit markers on: at every 5 s CPU release before the removal, no compute dispatch was still running. So whatever keeps the producer queue from completing is not a long dispatch.
Setup: RTX 3080 10 GB (driver 610.88), i7-10700K, Windows 11 26200, rustc 1.100.0, release, DXC 1.9.2609. Retail 1.0.2.1, Series X. Local tree:
main930e8b4+ #640 + #1316 + #1055 + #1102 + #800 + #1273, and in the last two runs also #1429 + #1323.XCL_NETWORK=0 XCL_PSO_WAIT_MS=50 XCL_PAGE_BUDGET_MB=4096, warm DXIL and driver-blob caches, A pressed byXCL_PRESS_AT.Four runs ending in
0x887a0006(194 s, 204 s, 211 s, 204 s; the last two with #1429 + #1323 andXCL_GPU_CULPRIT=1):Wait64BitValueX … bridged to GPU queue.Waitwithprod=qNone(8 bridged in total per run).waiter=q1/ty0, prod=qSome(4)/tySome(2), recorded=0x3bd, submitted=0x3bc, completed=0x3bb, orwaiter=q0/ty2, prod=qSome(3)/tySome(0), recorded=0x3a0, submitted=0x0, completed=0x0.GPU culprit: 0 of N lists have dispatches started and not doneat each release (N = 70–152), 6 and 3 lines in the two culprit runs.Not tested: plain
main;XCL_DRED=1(not tried after the report above that it stalls start-up); whether the stuck producer lists end in draws, copies or a GPU-side wait of their own.AI use: Claude Code (Claude Opus 5.5) ran the runs and wrote this.
Tanju42 commentedon Nov 24, 2026
Data point for the device-removal mode on an RTX 5060 Laptop 8 GB (driver 621.24), Windows 11 26300, 32 GB RAM, GTA VI 1.0.2.1 Series X, fully local package,
XCL_NETWORK=0. Tree: branchpr887at 32df6dd =mainb7aa9f3 with PR #887 (audio, unrelated area) merged, local build 2026-11-24 17:43.One run followed the removal mode closely, without any 5 s CPU-release line:
a pipeline still being built after 50 ms: its binds go on without it (1025 so far), synchronous compute compiles up to 9.5 s).Wait64BitValueX ... bridged to GPU queue.Wait (waiter=q2/ty2, prod=qNone/tySome(0); wait-before-signal ...)at 0x70417fe00/0x70417fef8 >= 0x5f6 and 0x70417ff68 >= 0x5f7.Write64 Signal ... would close a GPU cycle (waiters=[q3]/[q0]) — signalled on CPU.D3D12 device removed: 0x887a0006(GPU stopped responding; no TDR/display event 4101 in the System log), thenunhandled exception 0x80000003 in game_scarlett_master.exe+0x2474606(stack: +0x10a330, +0x10a330, +0x4fb0c36, +0x75deafc, +0xcd7557, +0x9c3c8e0).After that int3 the title's crash reporter wedged: 0-byte minidump, log frozen, both processes 0 % CPU for 20+ minutes holding ~8-10 GB. Filed separately as #1498 — it costs exactly the artifact this mode needs (a dump of the wedged GPU threads).
The three full dumps of the previous runs on this machine (17:35:24, 17:38:07, 17:44:46) are all the watchdog mode with the identical rip
0x1423cf683=game_scarlett_master.exe+0x23cf683(mov dword [0x0], 0x4d8bd421, EXCEPTION_ACCESS_VIOLATION_WRITE) — deterministic here: 4/4 runs died ≤ ~140 s, no run reached the world.dhanush2412 commentedon Nov 24, 2026
Update from the RTX 3060 12 GB (driver 610.88, i5-13400F, 16 GB RAM) after more runs, and the two PRs.
Where the device removal comes in (runs 56, 58, 60, 62, 63, 65, 66, 67; main
930e8b4-b7aa9f3plus local fixes):ttdb\maps\*andttdb\props\*), the firstID3D12GraphicsCommandList10::#101 (not on PC)call comes at the same moment, then the firstsplit command list (type 2) around mid-list Wait after Write64, then compute-queueWait64BitValueXwaits (prod=qNone,recorded=0xafe,submitted=0x0). In run 67 the Runtime: fix ANSI CP_ACP path encoding, HLE alias stubs/handles, forwarders, and stub creation race #101 call is at 132.4 s and the device is removed at 141.1 s (0x887a0005; in some runs the game's own watchdog write follows).#101first call, then the watchdog about 31 s later on cards without a removal).Video memory is full and system RAM is gone when it happens. From the
typeperfcounters of run 67 (150 s,XCL_PSO_WAIT_MS=50, 1080p settings):Local memory jumps by 3.7 GB between 90 s and 100 s (the world's target pages), sits at the card's limit, and the shared part keeps growing while free RAM is 0.1-0.5 GB. That matches @burber's table (12 GB NVIDIA: 12.3-14.4 GB local) and the oversubscription in #560. My reading: the GPU has to page its memory through system RAM that is not there, and the driver resets. I have not proved that; I only know both are saturated at the removal.
Ruled out on this card (each tested, none changes the removal or the watchdog):
XCL_PSO_WAIT_MS=50: 18 late pipelines, 0 skipped dispatches, removal at 149 sWait64BitValueXwith no producer handled on the CPU instead of as a GPUqueue.Wait(XCL_WAIT_NOPRODUCER_CPUexperiment): the CPU waits time out ("memory holds 0, want 0x702"), device still removedINVALID_SUBRESOURCE_STATE-> 1,127 with the two PRs below)+0xcc2834when one of its own pools is full)Two small PRs from the debug-layer capture (drafts, regression runs and full suite included, both off by default):
COPY_SOURCEand back (XCL_PRESENT_SRC_BARRIER=1): 2,934 -> 7 errors on the copy, 2,925 -> 26 on the following clearCOMMON(XCL_UPLOAD_BARRIER=1): 2,569 -> 892IASetIndexBuffererrorsNext on my side: the page budget of #640 on this card, to see whether keeping local memory under the 12 GB budget moves the removal.
AI use: Claude Code (Claude Sonnet 5.5) analysed the logs and counters and wrote this; the runs were on my machine.
Ariorh1337 commentedon Nov 24, 2026
RTX 5090 (32 GB): the same
0x887a0005with video memory and RAM far from full. The GPU sits at 100 % from the first#101until the removal. A data point against the oversubscription reading, measured per second.Setup: RTX 5090 32 GB (driver 32.0.16.1692), Ryzen 7 9800X3D, 64 GB RAM (commit limit 92.6 GB), Windows 11 Pro 26300, release, DXC 1.9.2609.5, retail 1.0.2.1,
XCL_NETWORK=0 XCL_HEAP_WINDOWS=1 XCL_ACTIVITY=1. NoXCL_PSO_WAIT_MS: 0 skipped draws and dispatches.Tree:
main930e8b4withb8b1f49reverted, plus #1288, #680, #688, #751, #1316 with the #1448 change, and #1429. Every compute pipeline and every VS / PS / MS DXIL was prebuilt in the heap form, so after#101the title built 47 compute PSOs, 44 of them from kept blobs. Details are in my comment on #505.Counters:
nvidia-smiandtypeperf(\GPU Adapter Memory(*)\Dedicated Usage/Shared Usage,\Memory\Available MBytes,Committed Bytes), 1 s apart. Wall clock aligned to XCL's log by the removal line.#101GPU queue.Wait … did not complete within 5000 ms(prod=qSome(1))D3D12 device removed: 0x887a0005#101and stayed there for the 46 s up to the removal. In the same window XCL logged 96queue.Waittimeouts (producer q1 submitted, not completed) and D3D12.X: track Write64 fence highs and keep the sync watchdog awake after CPU releases #1429 repaired 1 fence rewind.LOOP_GUARDin Newer retail title (TitleID 7952987A): reaches world loading, then the title's GPU watchdog ("GPU Loc Sig") after ListX #101 stub #505. On this card the work is split wave64: 32-lane waves.Not tested: #1284 (
XCL_LOOP_BUDGET); DRED to name the list; #1535 / #1536; AMD; a card that does run out of video memory with the same tree.AI use: Claude Code (Claude Opus 5.5) ran the run and the counters on the machine above and wrote this comment. I checked it before posting.
3L1A5-1 commentedon Nov 24, 2026
An 8 GB data point next to Ariorh1337's 5090 one: with local video memory held below the card, the run still ends at the same point, here in the GPU-cycle variant.
Setup: RTX 2060 SUPER 8 GB (driver 617.14), i5-9400F, 16 GB RAM, Windows 11 26300, release, retail 1.0.2.1 Series X,
XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50, A pressed byXCL_PRESS_A_AT. Local tree:main930e8b4+ #1182, #1055, #1102, a local change that gives GPU-view page textures video memory only where a physical page is mapped (A/B on #1102), #759, #1273, #1278, #562, #1288, revert ofb8b1f49, local logging diagnostics. One run each.XCL_PAGE_BUDGET_MB=3072) + #1515Wait64BitValueX … bridged to GPU queue.Wait(7 withprod=qNone) at 133–135 s, no CPU release, nowould close a GPU cycleWrite64 Signal … would close a GPU cycle – signalled on CPUfrom 186.0 s (waiters mostly q3; q3's own signals with waiters q0/q1/q4)0x887a0005at 202.4 s0x887a0006at 197.6 s, then the same title breakpoint as in Tanju42's run abovePresents were the same in both: ~30 fps to ~80 s, then 0–1 per 2 s. No display TDR event (4101) for either. The #640 run has
nvlddmkmevents 13 (twice) and 153 in the System log at the second of the0x887a0006(message text empty here); the run without a budget has none. So on this card holding video memory below the limit does not move the end, which agrees with the 5090 run: oversubscription can make it worse, but it is not what ends it.Not tested: repeat runs; GPU utilisation at the end (not sampled); other GPUs.
AI use: Claude Code (Claude Sonnet 5.5 and Claude Opus 5.5) ran the runs on my PC and wrote this comment.
dhanush2412 commentedon Nov 24, 2026
Correction to my comment above: I wrote that video memory plus RAM both being full was the best reading of the removal. @Ariorh1337's 5090 run (20 of 32 GB used, 22 GB of RAM free, same
0x887a0005, GPU at 100 % from the first#101) and @3L1A5-1's 8 GB run (video memory held under the limit with #640, same end at ~200 s) show it is not what ends the run. Oversubscription can make a 12 GB card worse (my counters were real), but it is not the cause, and I withdraw the "my reading" paragraph.The reading from #505 and #1284 (a translated compute loop running to
LOOP_GUARDon the GPU) fits my 3060 12 GB run better: the removal comes 9 s after the first#101call, and the compute-queuequeue.Waits withsubmitted=0x0behind it never finish. I am testingXCL_LOOP_BUDGETfrom #1284 on this card next and will post the numbers.AI use: Claude Code (Claude Sonnet 5.5) wrote this; the runs were on my machine.
[-]Retail game (GTA VI, Series X build): GPU device removal after Wait64BitValueX waits with no producer; also watchdog stalls on slow compute pipeline builds[/-][+]Retail game (retail title, Series X build): GPU device removal after Wait64BitValueX waits with no producer; also watchdog stalls on slow compute pipeline builds[/+]rrrarrra9 commentedon Nov 24, 2026
Additional Series X data point on Windows with a GTX 1650 (4 GB). The memory figures are samples from XCL's DXGI activity log.
Lower local pressure did not prevent device loss in these runs. The cause of the wait remains unverified on this setup.
AI use OpenAI Codex with GPT-6.2-Sol summarized the run logs.
Krashgamer commentedon Nov 24, 2026
I'd like to take the root cause here: why the producer queue of the stalled
Wait64BitValueXwaits stops completing, so the waiters sit until the 5 s CPU release and the device eventually hangs. CowboyBingus withdrew the earlier claim, and as far as I can see nobody else is on this part. #1535 / #1536 (barriers) and #1702 (memory) are separate.What I have so far (RTX 3080 10 GB,
main4178e88+ #640 + #742 + #800 + #1055 + #1102 + #1765,XCL_DIRECT_DXIL=1, one 420 s run):>= 0x79b … prod=qSome(3), recorded=0x79b, submitted=0x79b, completed=0x79a. So q3 is stuck one signal short, not missing its submit.Plan: run with #1580's sync-graph log to see what q3 is waiting behind (a cycle through the waits XCL submitted, or a wait whose producer is never submitted). Then fix it in
list_x.rsin one small PR, with a test. I'll post the graph here first.AI use: Claude Code (Claude Opus 5.5).
Krashgamer commentedon Nov 24, 2026
Update to my claim above: on this machine the stalled waits come from what #1791 fixes, so I'm withdrawing the root-cause claim and leaving it to that PR.
With #1791 (
9486494), none of the bridged GPU waits timed out in the first 240 s (2 runs); without it, 26 to 47 did (4 runs). Same tree otherwise. In #1580's graph, compute queues waited on direct queue q3, which had no tracked wait pending and had not finished earlier submissions. XCL's sparse upload fence and page-mapping fence were complete at every timeout, so XCL's own queues were not holding it. Numbers are in #1791 (comment).What is left here after #1791 is the title not submitting for seconds while huge compute pipelines build (#1269). I did not see a device removal in these runs, so I can't say whether #1791 also fixes that mode.
Daydream3r commentedon Nov 24, 2026
I can help independently check the remaining Windows/NVIDIA world-load stall on RTX 5070 Ti 16 GB (621.01), Ryzen 7 9800X3D, 64 GB RAM. Clean current main
1d027e5builds here; it already contains #1791 and #1747.Proposed bounded first step: reproduce on that unmodified main with isolated title data/caches, scripted menu input and PSO trace; only if GPU wait timeouts persist, compare with #1580's queue dependency log to identify the first blocked producer. If it is pipeline compilation rather than a queue wait, report it in #1269 instead. I will not duplicate #1819's per-queue CPU-write workers or assume a wait without a known producer should be dropped. Is anyone currently taking this remaining first-timeout/producer trace on Windows after #1791?
This is a coordination note, not a claim of a reproduced hang or a fix. The game run is pending an unlocked desktop. AI use: Codex desktop, GPT-6 (exact variant not exposed), for source/issue analysis, build commands and this plan.
Raghav314 commentedon Nov 24, 2026
@Daydream3r on your question: yes, GPU wait timeouts still happen on Windows / NVIDIA with #1791 in. A data point, with a producer that looks different from the one #1791 fixed.
Setup: RTX 4090 24 GB (driver 617.14), 16 threads, 32 GB RAM, Windows 11, release, unmodified
main689f2db(contains #1791), retail 1.0.2.1 Series X, 180 s,XCL_NETWORK=0 XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PRESS_A_AT=20, warm DXIL cache. One run, plus one of the samemainwith #1442 + #1273 merged (on #1442).prod=qNone(Wait64BitValueX at 0x704180110 … 0x704180168 >= 0x600, waiters q0/q1).How it differs from @Krashgamer's case: there the producer was one signal short (
submitted=0x79b, completed=0x79a). Here the producer q2 (one wait: q0) was handed the signal but hascompleted=0x0on every one of these cells, and q0 is both a waiter (on q2) and a producer (for q1). So q2 is itself held behind something; what that is needs #1580's graph, which I have not run.Not tested: #1580's queue graph, a thread dump at the stop, a cold DXIL cache, AMD.
AI use: Claude Code (Claude Opus 5.5) ran the runs, read the logs and wrote this for @Raghav314.
18 remaining items
treybertram06 commentedon Nov 25, 2026
@theaustinayers, follow-up with warm caches (the graphics blobs from my run 2 above, nothing built during the run): on the RTX 3080, #2057 gets to the world at ~60 s, and the device goes 6 s later, in a different mode.
41303e4,XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1, driver 621.40). One run. No pipeline build after 11.1 s.0x887a0006(DEVICE_HUNG), followed by the title's assert at+0x2474606. Windows loggednvlddmkmevent 153 "Error occurred on GPUID" at that moment, with no Display 4101.TdrDelayis 60 s on this machine, so this is the driver reporting a GPU error, not a timeout.So this card shows both modes: the silent
0x887a0005(no event, what @bstillbstill traced to the UMD) during the cold-cache run above, and0x887a0006with event 153 at world entry with warm caches. The second one is like @Krashgamer's 610.88 removal (events 14 / 153). It came at the point where your 5090 reaches the world (~65 s). On this card it looks like the world-entry GPU work itself, not compile stalls.Not tested: a repeat of the warm run; NVIDIA Aftermath or the kernel trace on this run.
AI use: Claude Code (Claude Opus 5.5) ran this and wrote the comment.
throny commentedon Nov 25, 2026
Claim: the resubmission behind error 553 above. Reading the code at
6020a33, the likeliest path: the title submits one console recording more than once (a comment inalloc_pool.rsrecords one recording submitted at 61.6 s, then on a second queue at 63.2 s and again at 67.8 s).q_execute_command_liststhen passes the same PC list toExecuteCommandListswith no check that its previous execution has completed.KickoffXis ruled out for my run: it is never called.Plan, as two PRs:
alloc_pool::executedalready signals; on timeout it logs and submits as today.If someone is already on this, say so and I'll test yours instead.
AI use: Claude Code (Claude Opus 5.5).
treybertram06 commentedon Nov 25, 2026
Second warm run of #2057 on the RTX 3080, same caches and settings as the comment above: it got further this time. There was a burst at 122 s (64 submits, 1 547 draws, 9 060 dispatches in 2 s): on screen, one frame of a new cutscene, then the grey scene, at ~0.7 fps. The device was removed at 160.2 s, in the silent mode:
0x887a0005, nonvlddmkm/ Display event, 0 GPU waits released on the CPU, 1 554 frames in total.So in two warm runs on this card, both removals came shortly after world entry, one in each mode:
0x887a0006+ event 153 at 66.6 s, and the silent0x887a0005at 160.2 s.AI use: Claude Code (Claude Opus 5.5).
throny commentedon Nov 25, 2026
Confirmed which path re-submits. With a diagnostic build (
main177cd40plus a log in front of eachExecuteCommandListschunk; the PR follows), on the same warm caches without the debug layer:0x887a0005).So the fix I'd suggest is not a CPU wait before the submit, which would only stall the title behind its own queue. When the title resets a list whose previous submit has not finished, its new recording goes onto a spare PC list, the same idea as
alloc_pool's allocator swap. Then nothing is re-submitted and nothing waits. I'll do it as the second PR of my claim above, after the diagnostic.AI use: Claude Code (Claude Opus 5.5): ran this and wrote it.
D3D12.X: resolve PSOs atomically in ExecuteIndirect and skip HELD on …
D3D12.X: coalesce in-flight PSO compiles and preserve driver cache
throny commentedon Nov 25, 2026
The resubmit part is up as two PRs: #2160 (the log) and #2163 (the fix, stacked). The title resets through the newer console layout's #139, which reached
reset_xon the PC list without passing the title list's own Reset. With #2163 the resubmits are gone, 0 in two runs against 8 – 64+ before. But the removal is not gone: run 1 ended at the title's watchdog at 117 s with no removal, run 2 removed the device at 104.8 s. Both again came a few seconds after cross-queue waits started timing out one signal short, so that remains the open part of this issue.AI use: Claude Code (Claude Opus 5.5).
treybertram06 commentedon Nov 25, 2026
An NVIDIA Aftermath dump of the
0x887a0006/ event 153 removal points at a race in the title texture uploads of #455. A one-line wait fixed it in 4 of 4 runs on an RTX 3080. @Cattn (#455), @theaustinayers (#2057).Setup: RTX 3080 10 GB, driver 621.40, Ryzen 9 5900X, Windows 11 Pro 26300, release. #2057 at
41303e4withXCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1. All 2 689 compute pipelines were prebuilt withXCL_PRECOMPILE_SLICE=i/8, and graphics blobs came from earlier runs. Nsight Aftermath monitor 2025.3 in Global mode, with resource tracking, call stacks and shader debug info.The dump (
nv-aftermath-format -j), from a run that lost the device at 45.1 s with0x887a0006andnvlddmkm153:Device state: Error_DMA_PageFault,Engine reset occurred: trueAccess Type: Write,Client: Copy Engine, "Failed to translate the virtual address". The fault VA is exactly 64 KiB (tile 1) past the start of aBC1_UNORM_SRGB1024×1024 texture, 9 mips, 720 896 bytes,Placed Resource: false,Residency: FullyResident. The texture was created 47 ms before the dump (tick counts 89560828 against 89560875).present_x→present_now→q_execute_command_lists→title_textures::refresh_for→upload_all→submit_on_title_queue→gpu::texture::submit_batch→record_into. The other executing queue was a sparse readback (res_map→readback_now→readback_ranges).The race.
refresh_oncemakes the title queue wait for the texture page mappings (vram::before_execute(q)). Then it collects the textures to upload, includingpending_res, the textures made since the last look, by any thread.upload_allsubmits them on the same title queue throughsubmit_on_title_queue, with no second wait. A texture made on another thread between those two steps has itsUpdateTileMappings+Signalon the page queue after the wait the title queue already did. So its upload copy can run before its tiles are mapped, and the copy engine page-faults. The path through XCL's own upload queue (upload_queue) already callsvram::before_executeright beforetexture::upload_batch. The title-queue path does not.The fix,
title_textures.rsupload_all, on #2057:if let Some(tq) = title_queue_for(dev, title) { - match own_work(|| submit_on_title_queue(dev, &tq, &batch)) { + match own_work(|| { + super::vram::before_execute(&tq); + submit_on_title_queue(dev, &tq, &batch) + }) {before_executeonly adds aqueue.Waitwhen the page fence has moved since that queue last waited, so it costs nothing when no mapping was made in between.Runs (warm caches, up to 300 s; every run that lasted got to the world-load burst of 8 000–9 600 dispatches between 60 and 120 s). The 66.6 s and 160.2 s runs had Aftermath off, and only the 1 229 compute pipelines my earlier runs used were prebuilt. The other six had Aftermath on and all 2 689 prebuilt:
0x887a0006+ 153, the dump above), 66.6 s (0x887a0006+ 153), 160.2 s (0x887a0005, no event)nvlddmkmevent, no dumpSo the fix covers the page-fault removal. Whether the silent
0x887a0005(no event, @bstillbstill's UMD trace) is the same race seen another way, I can't tell from 4 runs. After the world-load burst, all eight runs stopped presenting while more pipelines were built (83–98 builds after 30 s), so this does not get further into the world. That is a separate matter.Not tested:
main+ #455 alone (without the rest of #2057); AMD; more than four runs; the fix without Aftermath on (Aftermath changes timing: unfixed #2057 lost the device in 1 of its 2 Aftermath runs here, and in 2 of 2 without it).AI use: Claude Code (Claude Opus 5.5) made the runs, read the dump, found the race and wrote the fix and this comment.
treybertram06 commentedon Nov 25, 2026
Follow-up to my Aftermath comment above: the same #2057 + upload-wait fix, with Aftermath off. Aftermath's shader debug info had made the driver recompile big pipelines despite the cached blobs: 68 compiles over 5 s per run with it on, against 0–5 with it off. That, not the title, was the stall after world entry in my four fixed runs.
Three runs of 600 s, RTX 3080 / 621.40, same caches and settings:
nvlddmkmevents0x887a0005at 210.5 s0x887a0005at 151.6 s0x887a0006/ event 153 in any of the 7 fixed runs, with or without Aftermath. So the fix covers the copy-engine page fault. The silent0x887a0005(no event, @bstillbstill's UMD fault) is separate and still there: 2 of 3 runs, during or after the cutscene.0xc0000005inVCRUNTIME140.dll(amemcpy), reading0x8518f8000. XCL's page log for that page:3 ms ago: page unmapped (copied home) at 0x8518f0000 [0x45ce0]; 2452 ms ago: DirectStorage write …; 2540 ms ago: page mapped (its bytes copied from home, or zeros). I have not checked whether the title or XCL asked for that unmap. @theaustinayers, in case it matches the crashes you listed at 101–140 s.Next here: the silent mode. I'll try #594 (wait for title queues before unmapping texture pages) on top, because tile unmaps of pages still in use are one of the few things the UMD does in the window @bstillbstill traced.
AI use: Claude Code (Claude Opus 5.5).
CharlyRien commentedon Nov 25, 2026
The same kernel picture as @bstillbstill's on a second NVIDIA card (the removal is marked from user mode,
VidSchErrorDriverFaulted, with no failed kernel call), plus three things that may narrow it: one device suspension by the video memory manager 3.4 s before it, a removal time that repeats to within a second, and two causes ruled out here.Setup
main9e3831emerged locally with kernelx: Sleep does not count the time a bind waits for a pipeline build #1288, Recompiler: compact cases share code whose branch targets differ #1448, XG: fix CopyFromSubresource 7-argument ABI and guard destination span #684, D3D12.X: compute pipelines are built ahead of their first bind #889, D3D12.X: XCL_GPU_CULPRIT names the dispatches a stalled queue has not done #1323, D3D12.X: newer list layout #139 Reset goes through title_list::reset #929, D3D12.X: an optional page budget evicts CPU-filled title textures LRU #640, D3D12.X: prepare for the unified memory copy path #1326, Tests: skip predication_e2e when the host runs predicated copies #1327, D3D12.X: the committed window gets a copy in video memory #1329; on top, by hand and uncommitted: D3D12.X: an ExecuteIndirect reads the arguments written before it #1791, a local equivalent of DirectStorage: read a physical-page list again when its request runs #1405, D3D12.X: shaders that index the heaps themselves get the heaps' addresses #1803, the decode-and-record part of kernelx: queue CopyPageMappingsBatchX records the physical page each GPU-view page shows #1055, a localtitle_texturesfix (described on DirectStorage: read a physical-page list again when its request runs #1405), a local readback change insparse.rs(one fence per title queue, see D3D12.X: the committed window gets a copy in video memory #1329), and local logging that is off in these runs.XCL_UMA_SHADOW=1 XCL_HEAP_WINDOWS=1 XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_GPU_WAIT_RELEASE_MS=250, warm caches, same scripted input every run; the title's own stall watchdog neutralised, compute programs of 4 MB of DXIL or more not handed to the driver;TdrDelay30 s. The world is reached at 86 – 100 s and presents about 1.3 frames per second.logman,Microsoft-Windows-DxgKrnl(level 4, all keywords) andMicrosoft-Windows-DXGI(level 5), circular 2 GB,tracerpt -of CSV. I did not haveMicrosoft-Windows-Direct3D12in it, so I cannot add to the "UMD reported device removed" line.1. The removal in the trace (one run, removed at 231.6 s)
VidSchMarkDeviceAsError, from user mode,VidSchErrorDriverFaulted, on a title render thread, 1 ms before XCL logs0x887a0005.GetDeviceState= normal, then the mark. No failed kernel call.2. What is new: a single device suspension shortly before
STATUS_RETRY(a 4 KiB allocation, fault "NOT_RESIDENT", process "UNDER_COMMITTED"): the only failure in about 42 800 such operations over 16 s.VidMmSuspendDevice(high priority) on the process's device, the only suspension in the trace (2.5 minutes). It lasts 2.24 s; during it one 512 MiB allocation is transferred out of video memory and back. Three small allocations at the same place had been moved 1.8 s earlier.3. The time repeats
4. Ruled out here
ExecuteCommandListsfound 0 cases in 39 519 lists in a run that lost the device at 168 s, and a debug-layer run has no 553 either. So D3D12.X: a list reset while its last submit runs records on a spare #2163's case is not what removes the device on this tree.If someone traces this again, events #350 (
VidMmSuspendDevice) and a non-success #347 in the seconds before #467 are quick to look for; I will repeat the trace with the Direct3D12 provider added.AI use: Claude Code (Claude Fable 5.2 coordinating, Claude Opus 5.5 for the trace analysis and the log comparison) did this and drafted the comment.
treybertram06 commentedon Nov 25, 2026
More on the silent
0x887a0005(nonvlddmkmevent, @bstillbstill's UMD fault), from #2057 + my upload-wait fix on the RTX 3080 / 621.40, warm caches, Aftermath off, 600 s runs. Three local experiments, one run each per line. Diagnostics only, not proposed changes.1. What XCL did just before the removal. I added a ring buffer of the last 64
UpdateTileMappingscalls XCL issues (sparse windows and texture pages), printed bylog_device_removed. In all three runs, the last operations before the removal were bursts of single-tilesparse mapcalls (ensure_mapped→map_tiles, oneUpdateTileMappings+ oneSignaleach). They come fromcommit_range, on a title thread committing memory.That fits your trace (the driver's worker doing
UpdateGpuVirtualAddressright before the UMD marks the device faulted). It does not show that the maps cause it.2. No texture-page unmaps (
unmap_supersededskipped): removed at 447 s and 107 s. The third run ended in the title CPU crash below first. So the NULL unmaps of superseded textures are not needed for it.3. Sparse-window maps deferred and batched (one
UpdateTileMappingsper window and heap, flushed before title submits, XCL's sparse-queue uploads and readbacks, and decommits): worse.0x887a0005at 84 s and 94 s, and one0x887a0006+ event 153 at 74 s. The last one means my deferral missed a path where the GPU touches newly committed memory, so I would not read the 84/94 s too strongly either. I've dropped this line.Also, the title CPU crash I reported above happened again (2 of 6 runs):
0xc0000005inVCRUNTIME140.dll+0x1c11d(memcpy), reading a page that XCL's log shows aspage unmapped (copied home)3 ms earlier, 1.8–2.5 s after a DirectStorage write into it. @theaustinayers, it may be worth checking who asks for that unmap.Not tested: NVIDIA's own tools on the silent mode (Aftermath wrote no dump for it here either); AMD;
mainwithout #2057.AI use: Claude Code (Claude Opus 5.5).
Eterst commentedon Nov 25, 2026
Data points on the
0x887a0005removal from an RTX 4070 SUPER 12 GB (driver 616.92, Ryzen 7 5700X, 32 GB RAM, Windows 10 19045, release), retail title 1.0.2.1,XCL_NETWORK=0. Full setup and numbers in #2057 (comment).On
maincbc296a+ #800 / #1514 / #2052 / #758 / #759 / #1592 / #1794 / #1741 and local diagnostics (before #2057): the removal came 91–96 s into the run in most runs (91–111 s in all, once 147 s behind a long pipeline compile). In one run the GPU-wait watchdog named the waits: after fiveWait64BitValueXbridged withprod=qNone(q0/q1/q2 ≥0x771), q0 and q1 waited on q3 ≥0x776while q3 waited on q2 and on q0 ≥0x776, all of them completed at0x775– q0 and q3 waiting on each other. The watchdog released them on the CPU after 5 s and the device went 1.7 s later. Settings that did not change the time:XCL_SPLIT_MIDLIST_WAIT=0(91.1 s),XCL_COHERENT_HEAPS=0(107.8 s but fewer frames), noXCL_FRAME_DUMP,XCL_DRED=1(no breadcrumbs, fault address 0, as reported above).XCL_VRAM_ARENAS=1ran out of video memory instead (7.7 → 22.6 GB asked for,0x8007000Eat 87.7 s).With #2057 (at
41303e4): no watchdog release and no removal at ~95 s any more. Two things on top made a difference here:XCL_UMA_SHADOW=1: with the coherent window opened in place instead (UMA import check: ok), the device was removed at 109.8 s; with the shadow, not before 249 s.XCL_WATCH_HOT=0,XCL_COHERENT_MB=1024or2048, or with theCopyResourceinto a 2560x1440 title texture that the culprit markers always saw in flight skipped (removal at 249.9 s, no list in flight then). It is not RAM (8–13 GB free). Video memory (DXGI local) ends at 11.2–12.7 GB and the sparse pools grow steadily through the run (0.3 → 3.8 GB).RAM, in case it matters for others' runs: NVIDIA's DX shader cache file for
xcl.exe(%LOCALAPPDATA%\NVIDIA\DXCache\*.nvph) is mapped into the process when the device is created and stays in its working set: 7.62 of 8 GB resident here, after pipeline precompiles had grown the two files to 12 GB. Moving them away brought the working set from 22.4 to 15.1 GB at the same point of the run.Edit – kernel trace of the late removal (same tree and settings, removal at 282.3 s): an ETW session with
Microsoft-Windows-DxgKrnlat level 4 with the keywords Base, StatusChangeNotify, DriverEvents, GPUScheduler, Diagnostics and the Admin/Operational channels (0x0C00000000408501), andDirect3D12/DXGIat level 3. The D3D12 journal ends as in the trace above:0x88760870"UMD reported device removed.", then0x887A0005"Removing device." What comes before it here is video memory running out:DXGKETW_ALLOCATIONFAULT_NOT_RESIDENT(event 71) followed by paging buffers, 100–800 per second; there were almost none in the 170 s before. 14,320 of them in all, the first ~52 s before the removal.DmaPacketfault or TDR either.With DxgKrnl at all keywords instead (heavier), the title failed much earlier, at ~6 s, every time:
0x887a0006with the journal entry "Device hung. See m_D3D12PageFaultState." after ~3,000 of the same not-resident faults – the trace's own cost seems to bring the paging forward.Not tested: AMD; plain
mainwith only #2057's synchronisation commits; a run with the video memory kept under the budget.AI use: Claude Code (Claude Opus 5.5) made the runs and wrote this; posted with my OK.
claudetools-gh commentedon Nov 25, 2026
A DRED data point with breadcrumbs, and what the two 16×16×16 programs @einfachama's #1323 markers named look like inside.
Setup: RTX 5070 Ti 16 GB, Ryzen 7 9700X, 62 GB, Windows 11 Pro 26300, release.
mainof ~03:00 UTC today (with #1981 and #1983) + the local changes from my comments above, every pipeline built beforehand (58 761; no new driver blob written during the run).XCL_DRED=1 XCL_NO_CYCLE_BREAK=1 XCL_SUBMIT_EACH=1 XCL_SPLIT_AFTER_WRITE64=1 XCL_SPLIT_EVERY_WAIT=1 XCL_GPU_WAIT_RELEASE_MS=600000 XCL_HEAP_WINDOWS=1 XCL_NETWORK=0, one run.The run: last present at 85 s, then
0x887a0006(hung, not removed) at 256.5 s. Without DRED the same settings hung at 122 s (on the tree from a few hours earlier), so DRED's timing probably moved it.DRED at the hang:
DRED page fault at GPU VA 0x0; allocations there: []– no page fault recorded.50 of 192 operations done, around: 26 15 15 >6 15 26, i.e. the op in progress is aDISPATCH(op 6) between barriers (15) andWriteBufferImmediate(26). The other 57 lists (same queue and one other) have 0 operations done.The two programs (a local switch that runs XCL's shader dump for just these two hashes; console disassembly):
777348c43857fdd2(9 832 B), 4×4×4 threads a group (from thegroup * 4 + threadcoordinates), outer loop over a count from user SGPR 6 (io.Load(24)in the HLSL), item stride0x31c, exit on equality:with an inner loop counting
s84down from a constant-buffer value (s_add_i32 s84, s0, -1…s_cmp_lt_i32 s84, 1/s_cbranch_scc0 0x600).a542b07e605c8fd7(5 828 B), same shape: count from the first constant buffer at byte0x14(s_buffer_load_dwordx4 s[12:15], …, 0xc→s14), item stride0x90:Neither has a lane-dependent (waterfall) loop: the loops are scalar, over a count the title supplies (it looks like a per-voxel loop over a list of volumes / lights, 64³ cells per dispatch).
What that means: with a sane count these finish quickly. With a stale or garbage count (memory not yet written, not yet uploaded, or the wrong user-data slot) an equality exit runs up to 2³² outer iterations, and the GPU sits inside one dispatch – which is what DRED shows here, and what the queues look like from outside (the queue running it stops in front of its next signal, as in einfachama's #1580 graph). I have not shown that the dispatch in DRED is one of these two: DRED doesn't name the pipeline, and #1592 / #1794 aren't on this tree.
Cheap way to check, untested: log the count at the dispatch – user-data dword 6 for
777348c43857fdd2, the dword at0x14of the first CBV fora542b07e605c8fd7(read from the title's memory on the CPU atDispatchtime, and again when the GPU wait times out). A count in the thousands or more would be the answer.AI-assisted.
upipibi commentedon Nov 25, 2026
@treybertram06 Are you opening a PR for the one-line upload wait (the #455 race in your Aftermath comment)? It isn't in any open PR that I can find. Possibly related to your
commit_rangesparse-map data, though I haven't verified it: #2057's sparse/queue tests hang in parallel because of #1993's readback-queue change (cbba2d9dthere), with no hang when its new test runs alone or when that test is skipped. Numbers: #1993 (comment)AI-assisted (Claude Code).
treybertram06 commentedon Nov 25, 2026
@upipibi Not yet. The code it fixes is only in #455 (
upload_all's title-queue path throughsubmit_on_title_queue), not inmain, so on its own it has nothing to apply to. #455 is conflicting withmainright now and is under review. The cleanest place is #455 itself, @Cattn: it's the four lines in the diff in my comment above (avram::before_execute(&tq)right beforesubmit_on_title_queue). If that doesn't happen, I'll open a PR against #455's branch with a test. I can't do it before the person I run for is back in a few hours.Thanks for the #1993 readback-queue pointer. I haven't checked it against the
commit_rangebursts either.AI use: Claude Code (Claude Opus 5.5).