Skip to content

Retail game (retail title, Series X build): GPU device removal after Wait64BitValueX waits with no producer; also watchdog stalls on slow compute pipeline builds #1452

Backlog

Description

@dhanush2412

Setup

  • XCL at upstream main (b7aa9f3, 2026-11-24) plus one local commit that only reports the title's own commit to TitleMemoryStatus (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 with xcl 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 thunk 0x145204e60 returns 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). Raising title_memory_mb to 13824 did not change it.

Questions

  • Is a Wait64BitValueX with no known producer meant to become a GPU queue.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

  1. CowboyBingus commented on Nov 24, 2026

    @CowboyBingus

    I'd like to take this: the Wait64BitValueX waits that XCL bridges to a GPU queue.Wait with prod=qNone at 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 b7aa9f3 with #1315/#1316, #1321, #1288, the shared-target compact form (#1448) and #1380. The giant compute pipelines there come from driver blobs (ActivateRays in 315 ms):

    • The last activity window with presents ends at 90.1 s.
    • At 92.141–92.148 s, three waits on >= 0x6f4 at 0x70417fe58 / fe10 / fee8 are bridged to GPU queue.Wait (waiter=q0/ty2 and q1/ty2, prod=qNone/tySome(0); wait-before-signal, after_write64=false).
    • After that, no wait on a pipeline build longer than 11 s is logged; most are 1.7–3.2 s.

    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), prod is the queue of the cell's last GPU Signal, or of the list that recorded its write. qNone means no signal was issued and the recording list was never executed. A wait is bridged once recorded_max >= value, and recorded_max is not lowered when a list is Reset.

    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.

  2. CowboyBingus commented on Nov 24, 2026

    @CowboyBingus

    Correction to my comment above. I'm withdrawing the claim: in my run the qNone waits are not what stops the title.

    From the same run's log and its three minidumps at the stop:

    • The three waits were no longer armed at the stop. ARMED_GPU_WAITS is 0 in all three dumps. The wait watchdog thread is parked in its idle cv.wait (list_x.rs:1367) from 95.0 s on. The log has no CPU-release, timeout or device-removal line.
    • Submits had already stopped when they were bridged. The 90.1–92.1 s window has 0 submits and 0 presents. The first split command list (type 2) around mid-list Wait after Write64 (#1) comes at 90.104 s, and the bridges at 92.141 s.
    • Two more runs of mine show the split before the bridges: 111.119 → 111.548 s and 113.317 → 113.679 s. A fourth run stops with no qNone line at all.
    • What runs after the stop is pipeline builds. From 90 s to the end at 600 s, the two busy render workers spent about 510 s each in pipeline waits inside XCL (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)): qNone is not the common factor.

    AI use: Claude Code (Claude Opus 5.5) analysed the run and wrote this; the run was on my machine.

  3. Krashgamer commented on Nov 24, 2026

    @Krashgamer

    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: main 930e8b4 + #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 by XCL_PRESS_AT.

    Four runs ending in 0x887a0006 (194 s, 204 s, 211 s, 204 s; the last two with #1429 + #1323 and XCL_GPU_CULPRIT=1):

    • Each run logs 3–6 Wait64BitValueX … bridged to GPU queue.Wait with prod=qNone (8 bridged in total per run).
    • In the last 15 s before the removal, 2–4 waits time out and are released on CPU. The producer queue had always submitted the value (or one below it) but not completed it, e.g. waiter=q1/ty0, prod=qSome(4)/tySome(2), recorded=0x3bd, submitted=0x3bc, completed=0x3bb, or waiter=q0/ty2, prod=qSome(3)/tySome(0), recorded=0x3a0, submitted=0x0, completed=0x0.
    • GPU culprit: 0 of N lists have dispatches started and not done at each release (N = 70–152), 6 and 3 lines in the two culprit runs.
    • The removal follows the last CPU release by 1–5 s. Presents and submits are already 0 for 6–10 s before it.
    • D3D12.X: track Write64 fence highs and keep the sync watchdog awake after CPU releases #1429 made no difference here (removal at 211 s and 204 s vs 194–204 s without it).

    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.

  4. Tanju42 commented on Nov 24, 2026

    @Tanju42

    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: branch pr887 at 32df6dd = main b7aa9f3 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:

    • Menu and loading at ~30 fps (fps lines 29.8 / 23.9 / 30.0); the fps line for frames 1200-1500 reads 7.0 at t=92.9 s, during heavy pipeline builds (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).
    • t=124.6-125.1 s: Wait64BitValueX ... bridged to GPU queue.Wait (waiter=q2/ty2, prod=qNone/tySome(0); wait-before-signal ...) at 0x70417fe00/0x70417fef8 >= 0x5f6 and 0x70417ff68 >= 0x5f7.
    • t=134.9-135.4 s: seven Write64 Signal ... would close a GPU cycle (waiters=[q3]/[q0]) — signalled on CPU.
    • t=136.1-138.1 s: activity windows drop to 0 submits / 0 draws / 0 dispatches (DirectStorage still serving 270 MB); t=139.1 s: D3D12 device removed: 0x887a0006 (GPU stopped responding; no TDR/display event 4101 in the System log), then unhandled 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.

  5. dhanush2412 commented on Nov 24, 2026

    @dhanush2412
    Author

    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-b7aa9f3 plus local fixes):

    Video memory is full and system RAM is gone when it happens. From the typeperf counters of run 67 (150 s, XCL_PSO_WAIT_MS=50, 1080p settings):

    t GPU local (dedicated) GPU non-local (shared) free RAM commit
    20 s 6.4 GB 4.7 GB 1.8 GB 27.7 GB
    90 s 7.9 GB 4.8 GB 0.4 GB 32.0 GB
    100 s 11.6 GB 4.9 GB 0.5 GB 37.8 GB
    136 s 11.8 GB 7.2 GB 0.1 GB 43.8 GB
    ~138-140 s (removal) 8.4 GB 5.0 GB 2.6 GB 38.3 GB

    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):

    • disk: page file on the SSD only, hard drive idle (the earlier stall was paging to a hard drive)
    • XCL_PSO_WAIT_MS=50: 18 late pipelines, 0 skipped dispatches, removal at 149 s
    • Wait64BitValueX with no producer handled on the CPU instead of as a GPU queue.Wait (XCL_WAIT_NOPRODUCER_CPU experiment): the CPU waits time out ("memory holds 0, want 0x702"), device still removed
    • the ExecuteIndirect root-signature errors (D3D12.X: an ExecuteIndirect dispatch of an untranslated compute pipeline is skipped, as Dispatch is #1195 does the same fix; with it the debug layer shows 0 instead of 11)
    • debug-layer state errors (8,808 INVALID_SUBRESOURCE_STATE -> 1,127 with the two PRs below)
    • FSR / 1080p settings, the NVIDIA shader cache, Series S (reaches the loading screen, then the title asserts at +0xcc2834 when 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):

    Next 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.

  6. Ariorh1337 commented on Nov 24, 2026

    @Ariorh1337

    RTX 5090 (32 GB): the same 0x887a0005 with video memory and RAM far from full. The GPU sits at 100 % from the first #101 until 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. No XCL_PSO_WAIT_MS: 0 skipped draws and dispatches.

    Tree: main 930e8b4 with b8b1f49 reverted, 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 #101 the title built 47 compute PSOs, 44 of them from kept blobs. Details are in my comment on #505.

    Counters: nvidia-smi and typeperf (\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.

    t (XCL log) VRAM used GPU util available RAM commit / limit shared GPU memory
    52 s 16.9 GB 6 % 24.5 GB 76.5 / 92.6 GB 4.7 GB
    57.7 s first #101
    59 s 19.7 GB 100 % 23.5 GB 80.1 / 92.6 GB 4.7 GB
    63.8 s first GPU queue.Wait … did not complete within 5000 ms (prod=qSome(1))
    59–105 s 19.7–20.2 GB 100 %, every sample 22.2–23.5 GB 80.1–80.9 / 92.6 GB 4.7–4.8 GB
    105.7 s D3D12 device removed: 0x887a0005
    106–107 s 15.4 → 3.7 GB 10 → 3 % 22 → 27 GB 71.6 → 61.0 GB 0.2 GB

    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.

  7. 3L1A5-1 commented on Nov 24, 2026

    @3L1A5-1

    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 by XCL_PRESS_A_AT. Local tree: main 930e8b4 + #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 of b8b1f49, local logging diagnostics. One run each.

    without a page budget + #640 (XCL_PAGE_BUDGET_MB=3072) + #1515
    local video memory, peak 9 490 MB 7 854 MB (Windows' budget for the process: 7 086–7 238 MB)
    target pages, peak 4 469 MB 3 071 MB
    before the end 8 Wait64BitValueX … bridged to GPU queue.Wait (7 with prod=qNone) at 133–135 s, no CPU release, no would close a GPU cycle 32 Write64 Signal … would close a GPU cycle – signalled on CPU from 186.0 s (waiters mostly q3; q3's own signals with waiters q0/q1/q4)
    end 0x887a0005 at 202.4 s 0x887a0006 at 197.6 s, then the same title breakpoint as in Tanju42's run above

    Presents 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 nvlddmkm events 13 (twice) and 153 in the System log at the second of the 0x887a0006 (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.

  8. dhanush2412 commented on Nov 24, 2026

    @dhanush2412
    Author

    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_GUARD on the GPU) fits my 3060 12 GB run better: the removal comes 9 s after the first #101 call, and the compute-queue queue.Waits with submitted=0x0 behind it never finish. I am testing XCL_LOOP_BUDGET from #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.

  9. changed the title [-]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[/+] on Nov 24, 2026
  10. rrrarrra9 commented on Nov 24, 2026

    @rrrarrra9

    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.

  11. Krashgamer commented on Nov 24, 2026

    @Krashgamer

    I'd like to take the root cause here: why the producer queue of the stalled Wait64BitValueX waits 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, main 4178e88 + #640 + #742 + #800 + #1055 + #1102 + #1765, XCL_DIRECT_DXIL=1, one 420 s run):

    • The picture stops at about 80 s. From 170 s on, 101 waits are released on the CPU, and 31.7k draws are skipped.
    • The first timeouts are q2 waiting on producer q3 with the producer's signal already submitted but not done: >= 0x79b … prod=qSome(3), recorded=0x79b, submitted=0x79b, completed=0x79a. So q3 is stuck one signal short, not missing its submit.
    • At every CPU release, no compute dispatch is still running (D3D12.X: XCL_GPU_CULPRIT names the dispatches a stalled queue has not done #1323 markers, my earlier comment above).

    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.rs in one small PR, with a test. I'll post the graph here first.

    AI use: Claude Code (Claude Opus 5.5).

  12. Krashgamer commented on Nov 24, 2026

    @Krashgamer

    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.

  13. added
    goal:world-load
    on Nov 24, 2026
  14. Daydream3r commented on Nov 24, 2026

    @Daydream3r

    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 1d027e5 builds 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.

  15. Raghav314 commented on Nov 24, 2026

    @Raghav314

    @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 main 689f2db (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 same main with #1442 + #1273 merged (on #1442).

    • Presents stop at 70 s. At 70.37–70.39 s five waits are bridged with prod=qNone (Wait64BitValueX at 0x704180110 … 0x704180168 >= 0x600, waiters q0/q1).
    • At 75.4 s 7 of them time out and are released on the CPU, with the producer now known but having completed nothing on those cells:
    GPU queue.Wait at 0x704180138 >= 0x600 did not complete within 5000 ms (waiter=q0/ty2, prod=qSome(2)/tySome(0), recorded=0x600, submitted=0x600, completed=0x0) – released on CPU to prevent GPU hang
    GPU queue.Wait at 0x704180120 >= 0x600 did not complete within 5000 ms (waiter=q0/ty2, prod=qSome(2)/tySome(0), recorded=0x600, submitted=0x600, completed=0x0) – released on CPU to prevent GPU hang
    pending title ID3D12Fences during GPU wait timeout: 0x3ccc1e0(done=0x5/sig=0x6/wait=0x0,cell=true), 0x3caf4a0(done=0x5/sig=0x7/wait=0x0,cell=true), 0x3caf310(done=0xc03/sig=0xc07/wait=0x0,cell=true)
    GPU queue.Wait at 0x704180168 >= 0x600 did not complete within 5000 ms (waiter=q1/ty2, prod=qSome(0)/tySome(2), recorded=0x600, submitted=0x600, completed=0x0) – released on CPU to prevent GPU hang
    GPU queue.Wait at 0x704180158 >= 0x600 did not complete within 5000 ms (waiter=q0/ty2, prod=qSome(2)/tySome(0), recorded=0x600, submitted=0x600, completed=0x0) – released on CPU to prevent GPU hang
    GPU queue.Wait at 0x704180110 >= 0x600 did not complete within 5000 ms (waiter=q1/ty2, prod=qSome(2)/tySome(0), recorded=0x600, submitted=0x600, completed=0x0) – released on CPU to prevent GPU hang
    

    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 has completed=0x0 on 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.

  16. 18 remaining items

  17. treybertram06 commented on Nov 25, 2026

    @treybertram06
    Contributor

    @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.

    • Same tree, settings and card as my comment above (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.
    • 1 303 frames in the first minute, then the world-load pattern from 52 s: presents drop to 0–10 per 2 s, at 50–150 submits per 2 s.
    • 66.58 s: 0x887a0006 (DEVICE_HUNG), followed by the title's assert at +0x2474606. Windows logged nvlddmkm event 153 "Error occurred on GPUID" at that moment, with no Display 4101. TdrDelay is 60 s on this machine, so this is the driver reporting a GPU error, not a timeout.
    • 0 GPU waits released on the CPU, 0 DirectStorage failures.

    So this card shows both modes: the silent 0x887a0005 (no event, what @bstillbstill traced to the UMD) during the cold-cache run above, and 0x887a0006 with 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.

  18. throny commented on Nov 25, 2026

    @throny
    Collaborator

    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 in alloc_pool.rs records 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_lists then passes the same PC list to ExecuteCommandLists with no check that its previous execution has completed. KickoffX is ruled out for my run: it is never called.

    Plan, as two PRs:

    1. A diagnostic: one log line when a PC list is submitted while its previous execution has not completed (which list kind, previous queue, this queue). A run confirms the path.
    2. The fix: before submitting, wait on the CPU, with a time limit, for the list's previous execution. It uses the per-queue fence alloc_pool::executed already 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).

  19. treybertram06 commented on Nov 25, 2026

    @treybertram06
    Contributor

    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, no nvlddmkm / 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 silent 0x887a0005 at 160.2 s.

    AI use: Claude Code (Claude Opus 5.5).

  20. throny commented on Nov 25, 2026

    @throny
    Collaborator

    Confirmed which path re-submits. With a diagnostic build (main 177cd40 plus a log in front of each ExecuteCommandLists chunk; the PR follows), on the same warm caches without the debug layer:

    • 89.27 s: 8 PC command lists are submitted while their previous submit is still on the GPU. All 8 are a new recording on the same queue: the title has reset each list and recorded it again, and submits it before the GPU has run the previous recording of that list. That is what the debug layer rejects as id 553.
    • 101.1 s: device removed (0x887a0005).
    • In this run there were no queue-wait timeouts and no "would close a GPU cycle" warnings at all. So it isn't a stuck queue that causes the re-submit: the queue is just still busy when the title submits again. The console allows that; PC D3D12 does not.

    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.

  21. throny commented on Nov 25, 2026

    @throny
    Collaborator

    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_x on 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).

  22. treybertram06 commented on Nov 25, 2026

    @treybertram06
    Contributor

    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 41303e4 with XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1. All 2 689 compute pipelines were prebuilt with XCL_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 with 0x887a0006 and nvlddmkm 153:

    • Device state: Error_DMA_PageFault, Engine reset occurred: true
    • Page fault: Access Type: Write, Client: Copy Engine, "Failed to translate the virtual address". The fault VA is exactly 64 KiB (tile 1) past the start of a BC1_UNORM_SRGB 1024×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).
    • The command queue that was executing: 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_once makes the title queue wait for the texture page mappings (vram::before_execute(q)). Then it collects the textures to upload, including pending_res, the textures made since the last look, by any thread. upload_all submits them on the same title queue through submit_on_title_queue, with no second wait. A texture made on another thread between those two steps has its UpdateTileMappings + Signal on 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 calls vram::before_execute right before texture::upload_batch. The title-queue path does not.

    The fix, title_textures.rs upload_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_execute only adds a queue.Wait when 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:

    build runs device lost
    #2057 4 3: 45.1 s (0x887a0006 + 153, the dump above), 66.6 s (0x887a0006 + 153), 160.2 s (0x887a0005, no event)
    #2057 + the fix 4 0, no nvlddmkm event, no dump

    So 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.

  23. treybertram06 commented on Nov 25, 2026

    @treybertram06
    Contributor

    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:

    run end frames per minute nvlddmkm events
    1 0x887a0005 at 210.5 s 1454, 331, 96, 15 none
    2 title crash at 101 s (below) 1346, 238 none
    3 0x887a0005 at 151.6 s 1328, 281, 67 none
    • The fixed build now gets through the opening cutscene. @treybertram06 watched it run, faster than in the Aftermath runs.
    • No 0x887a0006 / event 153 in any of the 7 fixed runs, with or without Aftermath. So the fix covers the copy-engine page fault. The silent 0x887a0005 (no event, @bstillbstill's UMD fault) is separate and still there: 2 of 3 runs, during or after the cutscene.
    • Run 2 ended in a title CPU crash instead: 0xc0000005 in VCRUNTIME140.dll (a memcpy), reading 0x8518f8000. 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).

  24. CharlyRien commented on Nov 25, 2026

    @CharlyRien

    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

    1. The removal in the trace (one run, removed at 231.6 s)

    • DxgKrnl kernelx: a lazy physical page whose commit fails leaves the lazy set, silently #467 VidSchMarkDeviceAsError, from user mode, VidSchErrorDriverFaulted, on a title render thread, 1 ms before XCL logs 0x887a0005.
    • On that thread just before: three submissions on three hardware queues and a fence signal, a CPU wait on that fence released 0.4 ms later (the GPU had finished that work), then 1.08 ms with no kernel event from any process, then GetDeviceState = normal, then the mark. No failed kernel call.
    • Nothing changes on the present side before it (same redirected flip every 0.6 – 2 s, no mode, plane or colour-space change).
    • Local usage 22.5 GB against a budget of 24.5 – 24.7 GB up to the removal; no eviction, trim or demotion for the process.

    2. What is new: a single device suspension shortly before

    • 3.4 s before the mark, one paging operation on the driver's paging queue fails with STATUS_RETRY (a 4 KiB allocation, fault "NOT_RESIDENT", process "UNDER_COMMITTED"): the only failure in about 42 800 such operations over 16 s.
    • 7 ms later 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.
    • The device resumes, and the mark comes 1.15 s later. XCL's own log shows the stall (its queue waits time out for 0.2 s and its 2 s report is 1.3 s late).
    • One trace, so I cannot say the suspension precedes every removal, nor what the 512 MiB allocation is.

    3. The time repeats

    • Two runs with the same binary and settings: removed at 208.4 s and 209.0 s (world entered at 86.06 s and 86.05 s). So it follows the title's progress, not chance. Other builds of the same tree with more logging: 168.1 s, 203.6 s.

    4. Ruled out here

    • Physical RAM: free RAM is down to about 0.6 GB at the removal, which looked suspicious, but with 1 GB more held by another process the removal came at 209.0 s against 208.4 s without.
    • Command lists submitted again while in flight (the debug-layer error 553 above): a counter at ExecuteCommandLists found 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.
    • Earlier, from 11 runs: video memory over budget (a lower page budget, 17.7 GB local, does not delay it), commit, XCL's tile mappings (each completed with the device fine), and in 21 logs no line or counter that is specific to the last 30 s.

    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.

  25. treybertram06 commented on Nov 25, 2026

    @treybertram06
    Contributor

    More on the silent 0x887a0005 (no nvlddmkm event, @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 UpdateTileMappings calls XCL issues (sparse windows and texture pages), printed by log_device_removed. In all three runs, the last operations before the removal were bursts of single-tile sparse map calls (ensure_mapped → map_tiles, one UpdateTileMappings + one Signal each). They come from commit_range, on a title thread committing memory.

    • run at 93.5 s: at least 24 one-tile maps of the same window resource within the last ~1 ms;
    • run at 106.2 s: 6 one-tile sparse maps in the last 7 ms, with texture-page maps 41 ms before;
    • run at 124.6 s: 5 one-tile sparse maps in the last 3 ms, with texture-page maps and unmaps 35–38 ms before.

    That fits your trace (the driver's worker doing UpdateGpuVirtualAddress right before the UMD marks the device faulted). It does not show that the maps cause it.

    2. No texture-page unmaps (unmap_superseded skipped): 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 UpdateTileMappings per window and heap, flushed before title submits, XCL's sparse-queue uploads and readbacks, and decommits): worse. 0x887a0005 at 84 s and 94 s, and one 0x887a0006 + 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): 0xc0000005 in VCRUNTIME140.dll+0x1c11d (memcpy), reading a page that XCL's log shows as page 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; main without #2057.

    AI use: Claude Code (Claude Opus 5.5).

  26. Eterst commented on Nov 25, 2026

    @Eterst
    Contributor

    Data points on the 0x887a0005 removal 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 main cbc296a + #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 five Wait64BitValueX bridged with prod=qNone (q0/q1/q2 ≥ 0x771), q0 and q1 waited on q3 ≥ 0x776 while q3 waited on q2 and on q0 ≥ 0x776, all of them completed at 0x775 – 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), no XCL_FRAME_DUMP, XCL_DRED=1 (no breadcrumbs, fault address 0, as reported above). XCL_VRAM_ARENAS=1 ran out of video memory instead (7.7 → 22.6 GB asked for, 0x8007000E at 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.
    • The removal that is left comes at 250–265 s (4 of 5 runs that got that far), with no watchdog release. It does not move with XCL_WATCH_HOT=0, XCL_COHERENT_MB=1024 or 2048, or with the CopyResource into 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-DxgKrnl at level 4 with the keywords Base, StatusChangeNotify, DriverEvents, GPUScheduler, Diagnostics and the Admin/Operational channels (0x0C00000000408501), and Direct3D12 / DXGI at level 3. The D3D12 journal ends as in the trace above: 0x88760870 "UMD reported device removed.", then 0x887A0005 "Removing device." What comes before it here is video memory running out:

    • XCL's local video memory (DXGI) reaches 12.0 GB at ~230 s; the card's dedicated usage stays at ~11.6 GB.
    • From that point the shared GPU memory grows (1.45 → 1.9 → 2.35 GB) and DxgKrnl logs 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.
    • No DmaPacket fault or TDR either.

    With DxgKrnl at all keywords instead (heavier), the title failed much earlier, at ~6 s, every time: 0x887a0006 with 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 main with 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.

  27. claudetools-gh commented on Nov 25, 2026

    @claudetools-gh

    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. main of ~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.
    • 58 lists with breadcrumbs, one of them started: 50 of 192 operations done, around: 26 15 15 >6 15 26, i.e. the op in progress is a DISPATCH (op 6) between barriers (15) and WriteBufferImmediate (26). The other 57 lists (same queue and one other) have 0 operations done.
    • So, unlike the runs above that had no breadcrumb line: when the hang was detected the GPU was inside one dispatch, not in a wait.

    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 the group * 4 + thread coordinates), outer loop over a count from user SGPR 6 (io.Load(24) in the HLSL), item stride 0x31c, exit on equality:

    0058: s_mov_b32 s83, 0
    005c: s_cmp_eq_u32 s6, 0
    0060: s_cbranch_scc1 0x25ec        ; count 0: skip
    0100: s_mul_i32 s75, s83, 0x31c    ; loop head
    ...
    25dc: s_add_i32 s83, s83, 1
    25e0: s_cmp_eq_u32 s83, s6
    25e4: s_cbranch_scc0 0x100         ; back until s83 == s6
    

    with an inner loop counting s84 down 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 byte 0x14 (s_buffer_load_dwordx4 s[12:15], …, 0xc → s14), item stride 0x90:

    0344: s_mov_b32 s75, 0
    0360: s_mul_i32 s78, s75, 0x90     ; loop head (0x358)
    ...
    04ec: s_add_i32 s75, s75, 1
    0500: s_cmp_eq_u32 s75, s14
    0544: s_cbranch_scc0 0x358
    

    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 at 0x14 of the first CBV for a542b07e605c8fd7 (read from the title's memory on the CPU at Dispatch time, and again when the GPU wait times out). A count in the thousands or more would be the answer.

    AI-assisted.

  28. upipibi commented on Nov 25, 2026

    @upipibi
    Contributor

    @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_range sparse-map data, though I haven't verified it: #2057's sparse/queue tests hang in parallel because of #1993's readback-queue change (cbba2d9d there), with no hang when its new test runs alone or when that test is skipped. Numbers: #1993 (comment)

    AI-assisted (Claude Code).

  29. treybertram06 commented on Nov 25, 2026

    @treybertram06
    Contributor

    @upipibi Not yet. The code it fixes is only in #455 (upload_all's title-queue path through submit_on_title_queue), not in main, so on its own it has nothing to apply to. #455 is conflicting with main right now and is under review. The cleanest place is #455 itself, @Cattn: it's the four lines in the diff in my comment above (a vram::before_execute(&tq) right before submit_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_range bursts either.

    AI use: Claude Code (Claude Opus 5.5).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    goal:world-load

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions