Retail title 1.0.2.1: GPU hang / crash at +0x23cf683 when the story loads (RTX 3070 Ti) #675

Open
opened 2026-11-26 04:29:07 +00:00 by github-bot · 78 comments
Owner

@⁠qcdaark on GitHub · 2026-11-24 03:17 UTC · original

Game and package version

vi – 1.0.2.1

What happens

Menus run at a steady 30 fps. After pressing A, the story starts loading; I hear in-game audio for ~3 s, then the picture slows down (~13 fps) and the run ends. 4 runs, always at the same point:

  • 9ce2070, cold cache: title crash at 487 s – 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at 0x0), stack +0x4e4ba89, +0x2215c35, +0x71b9a20, +0x2215eca
  • 9ce2070, warm cache: same crash at 196 s
  • dd2ae9a: same crash at 115 s (176 compute PSOs recompiled)
  • dd2ae9a, warm cache (only 9 compute PSOs compiled): GPU hang instead – D3D12 device removed 0x887a0006 (DXGI_ERROR_DEVICE_HUNG) at 97 s

So shader compile time is not the cause: with a warm cache it fails as fast. It looks like a GPU hang on NVIDIA (32-lane waves) during story loading; the +0x23cf683 crashes may be the title reacting to the same stall. The attached logs are from the last run (device removed).

XCL version

dd2ae9a (also seen on 9ce2070)

GPU and driver version

NVIDIA GeForce RTX 3070 Ti 8 GB, 32.0.16.2114

Windows version

Windows 11 Pro (26300), no Agility SDK

report.json and xcl.log

report.json
xcl.log

Console output

Game exited with code 0x887a0006 (2289696774)
CRASH: the D3D12 device was removed (0x887a0006: The GPU will not respond to more commands, most likely because of an invalid command passed by the calling application.) – the title is stopped
Imports: 1186 (game-dll:amd_fidelityfx_loader_xbox.dll: 4, game-dll:bink2scarlett.dll: 23, game-dll:libhttpclient.gdk.dll: 38, game-dll:msvcp140.dll: 157, game-dll:vcruntime140.dll: 82, game-dll:vcruntime140_1.dll: 4, game-dll:xboxbvhbuilder.dll: 7, hle-cross:kernelx.dll: 14, hle:acphal.dll: 19, hle:d3d12_xs.dll: 4, hle:gameinput.dll: 1, hle:kernelx.dll: 56, hle:minuserx.dll: 2, hle:xaudio2_9.dll: 1, hle:xcrdapi.dll: 1, hle:xg_xs.dll: 2, stub: 1, system: 770)
Unimplemented functions called (10):
      2212×  d3d12_xs.dll!ID3D12CommandAllocator::#9 (not on PC)   (first call: game_scarlett_master.exe+0x188501)
      2154×  d3d12_xs.dll!ID3D12GraphicsCommandList10::#126 (not on PC)   (first call: game_scarlett_master.exe+0x3263e)
      2154×  d3d12_xs.dll!ID3D12GraphicsCommandList10::#142 (not on PC)   (first call: game_scarlett_master.exe+0x329e9)
      2154×  d3d12_xs.dll!ID3D12GraphicsCommandList10::#75 (console extension)   (first call: game_scarlett_master.exe+0x32820)
       290×  d3d12_xs.dll!ID3D12CommandQueue::#31 (newer layout)   (first call: 0x0)
         4×  d3d12_xs.dll!ID3D12GraphicsCommandList10::#131 (not on PC)   (first call: game_scarlett_master.exe+0x2478bc5)
         4×  d3d12_xs.dll!ID3D12GraphicsCommandList10::#131 (not on PC)   (first call: game_scarlett_master.exe+0x2478cba)
         4×  d3d12_xs.dll!ID3D12GraphicsCommandList10::#132 (not on PC)   (first call: game_scarlett_master.exe+0x2478c99)
         2×  d3d12_xs.dll!ID3D12GraphicsCommandList10::#101 (not on PC)   (first call: game_scarlett_master.exe+0x50a6657)
         1×  d3d12_xs.dll!ID3D12GraphicsCommandList10::#132 (not on PC)   (first call: game_scarlett_master.exe+0x2478ba4)
**@⁠qcdaark** on GitHub · 2026-11-24 03:17 UTC · [original](https://github.com/xcl-dev/xcl/issues/675) ### Game and package version vi – 1.0.2.1 ### What happens Menus run at a steady 30 fps. After pressing A, the story starts loading; I hear in-game audio for ~3 s, then the picture slows down (~13 fps) and the run ends. 4 runs, always at the same point: - 9ce2070, cold cache: title crash at 487 s – 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at 0x0), stack +0x4e4ba89, +0x2215c35, +0x71b9a20, +0x2215eca - 9ce2070, warm cache: same crash at 196 s - dd2ae9a: same crash at 115 s (176 compute PSOs recompiled) - dd2ae9a, warm cache (only 9 compute PSOs compiled): GPU hang instead – D3D12 device removed 0x887a0006 (DXGI_ERROR_DEVICE_HUNG) at 97 s So shader compile time is not the cause: with a warm cache it fails as fast. It looks like a GPU hang on NVIDIA (32-lane waves) during story loading; the +0x23cf683 crashes may be the title reacting to the same stall. The attached logs are from the last run (device removed). ### XCL version dd2ae9a (also seen on 9ce2070) ### GPU and driver version NVIDIA GeForce RTX 3070 Ti 8 GB, 32.0.16.2114 ### Windows version Windows 11 Pro (26300), no Agility SDK ### report.json and xcl.log [report.json](https://github.com/user-attachments/files/35309366/report.json) [xcl.log](https://github.com/user-attachments/files/35309367/xcl.log) ### Console output ```text Game exited with code 0x887a0006 (2289696774) CRASH: the D3D12 device was removed (0x887a0006: The GPU will not respond to more commands, most likely because of an invalid command passed by the calling application.) – the title is stopped Imports: 1186 (game-dll:amd_fidelityfx_loader_xbox.dll: 4, game-dll:bink2scarlett.dll: 23, game-dll:libhttpclient.gdk.dll: 38, game-dll:msvcp140.dll: 157, game-dll:vcruntime140.dll: 82, game-dll:vcruntime140_1.dll: 4, game-dll:xboxbvhbuilder.dll: 7, hle-cross:kernelx.dll: 14, hle:acphal.dll: 19, hle:d3d12_xs.dll: 4, hle:gameinput.dll: 1, hle:kernelx.dll: 56, hle:minuserx.dll: 2, hle:xaudio2_9.dll: 1, hle:xcrdapi.dll: 1, hle:xg_xs.dll: 2, stub: 1, system: 770) Unimplemented functions called (10): 2212× d3d12_xs.dll!ID3D12CommandAllocator::#9 (not on PC) (first call: game_scarlett_master.exe+0x188501) 2154× d3d12_xs.dll!ID3D12GraphicsCommandList10::#126 (not on PC) (first call: game_scarlett_master.exe+0x3263e) 2154× d3d12_xs.dll!ID3D12GraphicsCommandList10::#142 (not on PC) (first call: game_scarlett_master.exe+0x329e9) 2154× d3d12_xs.dll!ID3D12GraphicsCommandList10::#75 (console extension) (first call: game_scarlett_master.exe+0x32820) 290× d3d12_xs.dll!ID3D12CommandQueue::#31 (newer layout) (first call: 0x0) 4× d3d12_xs.dll!ID3D12GraphicsCommandList10::#131 (not on PC) (first call: game_scarlett_master.exe+0x2478bc5) 4× d3d12_xs.dll!ID3D12GraphicsCommandList10::#131 (not on PC) (first call: game_scarlett_master.exe+0x2478cba) 4× d3d12_xs.dll!ID3D12GraphicsCommandList10::#132 (not on PC) (first call: game_scarlett_master.exe+0x2478c99) 2× d3d12_xs.dll!ID3D12GraphicsCommandList10::#101 (not on PC) (first call: game_scarlett_master.exe+0x50a6657) 1× d3d12_xs.dll!ID3D12GraphicsCommandList10::#132 (not on PC) (first call: game_scarlett_master.exe+0x2478ba4) ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:29:07 +00:00
Author
Owner

@⁠am-cob on GitHub · 2026-11-24 03:32 UTC · original

We also see the guest null write at +0x23cf683 during the first story load on an RTX 4070 Ti SUPER (16 GB, NVIDIA 595.112.7). This is a local build based on cb868b2, with Proton Experimental, vkd3d-proton 4522cc1a, dxil-spirv 34f0ff84, DXC 1.8.2505.32, and local compatibility changes including BC1 decoding.

In two runs with the same executable, player profile and graphics DLLs, adding 217 validated DXIL cache entries reduced DXC compilations from 213 to 115. Both runs reached opening-scene Prestream, then went about 30 seconds without a present and ended at the same guest instruction. Neither reported device removal. In the last warm-run thread sample, four render threads were inside native compute-pipeline creation through vkd3d/Vulkan. That sample shows what these threads were waiting on. It leaves the cause of the missed presents open.

The attached Windows report gives a different measurement for the device-removal run. It records 35 DXIL cache hits and zero DXIL compilations. The nine logged compute-pipeline creations took 0–2 ms each. At 97.388 s, resource creation already returned DXGI_ERROR_DEVICE_REMOVED. At 97.389 s, texture upload reported the reason DXGI_ERROR_DEVICE_HUNG. The upload is where XCL observed the hang. The log leaves the responsible GPU command unidentified.

Could you capture XCL_DRED=1 on the Windows device-hung path and share the last GPU breadcrumbs or page-fault summary, if available? For a run that ends in the guest null write, XCL_ACTIVITY=1 and XCL_THREAD_DUMP_AT=80,85,90,95 on the faster warm run would give us the last present, queue activity and thread waits to compare. The DRED switch is present in the reported revision. XCL at dd2ae9a

OpenAI Codex (GPT-6) ran the local comparisons and analyzed the logs.

**@⁠am-cob** on GitHub · 2026-11-24 03:32 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7121200976) We also see the guest null write at `+0x23cf683` during the first story load on an RTX 4070 Ti SUPER (16 GB, NVIDIA 595.112.7). This is a local build based on `cb868b2`, with Proton Experimental, vkd3d-proton `4522cc1a`, dxil-spirv `34f0ff84`, DXC 1.8.2505.32, and local compatibility changes including BC1 decoding. In two runs with the same executable, player profile and graphics DLLs, adding 217 validated DXIL cache entries reduced DXC compilations from 213 to 115. Both runs reached opening-scene `Prestream`, then went about 30 seconds without a present and ended at the same guest instruction. Neither reported device removal. In the last warm-run thread sample, four render threads were inside native compute-pipeline creation through vkd3d/Vulkan. That sample shows what these threads were waiting on. It leaves the cause of the missed presents open. The attached Windows report gives a different measurement for the device-removal run. It records 35 DXIL cache hits and zero DXIL compilations. The nine logged compute-pipeline creations took 0–2 ms each. At 97.388 s, resource creation already returned `DXGI_ERROR_DEVICE_REMOVED`. At 97.389 s, texture upload reported the reason `DXGI_ERROR_DEVICE_HUNG`. The upload is where XCL observed the hang. The log leaves the responsible GPU command unidentified. Could you capture `XCL_DRED=1` on the Windows device-hung path and share the last GPU breadcrumbs or page-fault summary, if available? For a run that ends in the guest null write, `XCL_ACTIVITY=1` and `XCL_THREAD_DUMP_AT=80,85,90,95` on the faster warm run would give us the last present, queue activity and thread waits to compare. The DRED switch is present in the reported revision. [XCL at dd2ae9a](https://github.com/ivall/xcl/blob/dd2ae9a70af5eb5aad60f02d86e386b72abe1e95/crates/xcl/src/hle/d3d12x/real.rs#L483) OpenAI Codex (GPT-6) ran the local comparisons and analyzed the logs.
Author
Owner

@⁠ItsMrClockwork on GitHub · 2026-11-24 03:35 UTC · original

Keep getting the same issue, everything else gets smoother but around 4s after starting to load into the game properly past the Intro and stuff, It spits out issues regarding missing shit from d3d12_xs.dll

Game exited with code 0x80000003 (2147483651)
CRASH: unhandled exception 0x80000003 in game_scarlett_master.exe+0x193e00f rax=0x8007000e rbx=0x735ef9338 rcx=0x8007000e rdx=0x0 rsi=0x8007000e rdi=0x6fcfaff9c0 rbp=0x8 r8=0x1caf81685c0 r9=0x0 r10=0x1caf8140000 r11=0x246 r12=0x68428f45d0e43df9 r13=0x6fcfaff9c0 r14=0x6fcfaff810 r15=0x1 rsp=0x6fcfaff780; on the stack: game_scarlett_master.exe+0x63fa690, game_scarlett_master.exe+0x9c42960, game_scarlett_master.exe+0x164e4a, game_scarlett_master.exe+0x9c42960, game_scarlett_master.exe+0x34c001, game_scarlett_master.exe+0x9c42958
Imports: 1186 (game-dll:amd_fidelityfx_loader_xbox.dll: 4, game-dll:bink2scarlett.dll: 23, game-dll:libhttpclient.gdk.dll: 38, game-dll:msvcp140.dll: 157, game-dll:vcruntime140.dll: 82, game-dll:vcruntime140_1.dll: 4, game-dll:xboxbvhbuilder.dll: 7, hle-cross:kernelx.dll: 14, hle:acphal.dll: 19, hle:d3d12_xs.dll: 4, hle:gameinput.dll: 1, hle:kernelx.dll: 56, hle:minuserx.dll: 2, hle:xaudio2_9.dll: 1, hle:xcrdapi.dll: 1, hle:xg_xs.dll: 2, stub: 1, system: 770)
Unimplemented functions called (9):
19446× d3d12_xs.dll!ID3D12CommandAllocator::#9 (not on PC) (first call: game_scarlett_master.exe+0x188501)
19440× d3d12_xs.dll!ID3D12GraphicsCommandList10::#126 (not on PC) (first call: game_scarlett_master.exe+0x3263e)
19440× d3d12_xs.dll!ID3D12GraphicsCommandList10::#142 (not on PC) (first call: game_scarlett_master.exe+0x329e9)
19440× d3d12_xs.dll!ID3D12GraphicsCommandList10::#75 (console extension) (first call: game_scarlett_master.exe+0x32820)
162× d3d12_xs.dll!ID3D12CommandQueue::#31 (newer layout) (first call: 0x0)
4× d3d12_xs.dll!ID3D12GraphicsCommandList10::#131 (not on PC) (first call: game_scarlett_master.exe+0x2478bc5)
4× d3d12_xs.dll!ID3D12GraphicsCommandList10::#131 (not on PC) (first call: game_scarlett_master.exe+0x2478cba)
4× d3d12_xs.dll!ID3D12GraphicsCommandList10::#132 (not on PC) (first call: game_scarlett_master.exe+0x2478c99)
1× d3d12_xs.dll!ID3D12GraphicsCommandList10::#132 (not on PC) (first call: game_scarlett_master.exe+0x2478ba4)
Report: C:\Users\watch\AppData\Local\XCL\RockstarGamesInc.28872443D20A7\logs\report.json
Log: C:\Users\watch\AppData\Local\XCL\RockstarGamesInc.28872443D20A7\logs\xcl.log

**@⁠ItsMrClockwork** on GitHub · 2026-11-24 03:35 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7121240143) Keep getting the same issue, everything else gets smoother but around 4s after starting to load into the game properly past the Intro and stuff, It spits out issues regarding missing shit from d3d12_xs.dll > Game exited with code 0x80000003 (2147483651) > CRASH: unhandled exception 0x80000003 in game_scarlett_master.exe+0x193e00f rax=0x8007000e rbx=0x735ef9338 rcx=0x8007000e rdx=0x0 rsi=0x8007000e rdi=0x6fcfaff9c0 rbp=0x8 r8=0x1caf81685c0 r9=0x0 r10=0x1caf8140000 r11=0x246 r12=0x68428f45d0e43df9 r13=0x6fcfaff9c0 r14=0x6fcfaff810 r15=0x1 rsp=0x6fcfaff780; on the stack: game_scarlett_master.exe+0x63fa690, game_scarlett_master.exe+0x9c42960, game_scarlett_master.exe+0x164e4a, game_scarlett_master.exe+0x9c42960, game_scarlett_master.exe+0x34c001, game_scarlett_master.exe+0x9c42958 > Imports: 1186 (game-dll:amd_fidelityfx_loader_xbox.dll: 4, game-dll:bink2scarlett.dll: 23, game-dll:libhttpclient.gdk.dll: 38, game-dll:msvcp140.dll: 157, game-dll:vcruntime140.dll: 82, game-dll:vcruntime140_1.dll: 4, game-dll:xboxbvhbuilder.dll: 7, hle-cross:kernelx.dll: 14, hle:acphal.dll: 19, hle:d3d12_xs.dll: 4, hle:gameinput.dll: 1, hle:kernelx.dll: 56, hle:minuserx.dll: 2, hle:xaudio2_9.dll: 1, hle:xcrdapi.dll: 1, hle:xg_xs.dll: 2, stub: 1, system: 770) > Unimplemented functions called (9): > 19446× d3d12_xs.dll!ID3D12CommandAllocator::#9 (not on PC) (first call: game_scarlett_master.exe+0x188501) > 19440× d3d12_xs.dll!ID3D12GraphicsCommandList10::#126 (not on PC) (first call: game_scarlett_master.exe+0x3263e) > 19440× d3d12_xs.dll!ID3D12GraphicsCommandList10::#142 (not on PC) (first call: game_scarlett_master.exe+0x329e9) > 19440× d3d12_xs.dll!ID3D12GraphicsCommandList10::#75 (console extension) (first call: game_scarlett_master.exe+0x32820) > 162× d3d12_xs.dll!ID3D12CommandQueue::#31 (newer layout) (first call: 0x0) > 4× d3d12_xs.dll!ID3D12GraphicsCommandList10::#131 (not on PC) (first call: game_scarlett_master.exe+0x2478bc5) > 4× d3d12_xs.dll!ID3D12GraphicsCommandList10::#131 (not on PC) (first call: game_scarlett_master.exe+0x2478cba) > 4× d3d12_xs.dll!ID3D12GraphicsCommandList10::#132 (not on PC) (first call: game_scarlett_master.exe+0x2478c99) > 1× d3d12_xs.dll!ID3D12GraphicsCommandList10::#132 (not on PC) (first call: game_scarlett_master.exe+0x2478ba4) > Report: C:\Users\watch\AppData\Local\XCL\RockstarGamesInc.28872443D20A7\logs\report.json > Log: C:\Users\watch\AppData\Local\XCL\RockstarGamesInc.28872443D20A7\logs\xcl.log
Author
Owner

@⁠qcdaark on GitHub · 2026-11-24 04:18 UTC · original

Update on f4ce27c (with #690, pipeline preload), same RTX 3070 Ti / driver 32.0.16.2114, 3 runs (logs of runs 2 and 3 attached, user name removed):

  • Preload works: 360 → 424 → 442 shader sets an earlier run used are built ahead (1024+ pipelines built during the menu).
  • Story loading now stays at ~28–30 fps much longer: run 3 presents at 30 fps until 88 s (A pressed at 52 s); before #690 presents dropped to ~11 fps a few seconds after A.
  • It still ends ~90 s after pressing A:
    • run 2: a new crash, 0xc0000005 in game_scarlett_master.exe+0x4e4c918 (read at 0x1d) at 129.7 s, preceded from 104 s by 13 × "Wait64BitValueX timed out after 2000 ms ... memory holds Some(0)"
    • run 3: back to the guest null write at +0x23cf683 at 144.8 s, no Wait64BitValueX timeouts
  • Still 300+ compute PSO creations per run, 8–9 of them taking 1–17 s in the driver (nvgpucomp64.dll), even with "driver blobs kept on disk".
  • During run 2 the whole PC froze for a while (even Win+Ctrl+Shift+B did nothing), no TDR event (4101) in the System log.

So #690 moves the stall later but doesn't remove it on this GPU.

AI use: Claude Code (Claude Opus 5.5) read the logs and drafted this reply. I ran the tests.

run2-report.json
run2-xcl.log
run3-report.json
run3-xcl.log

**@⁠qcdaark** on GitHub · 2026-11-24 04:18 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7121891381) Update on f4ce27c (with #690, pipeline preload), same RTX 3070 Ti / driver 32.0.16.2114, 3 runs (logs of runs 2 and 3 attached, user name removed): - Preload works: 360 → 424 → 442 shader sets an earlier run used are built ahead (1024+ pipelines built during the menu). - Story loading now stays at ~28–30 fps much longer: run 3 presents at 30 fps until 88 s (A pressed at 52 s); before #690 presents dropped to ~11 fps a few seconds after A. - It still ends ~90 s after pressing A: - run 2: a new crash, 0xc0000005 in game_scarlett_master.exe+0x4e4c918 (read at 0x1d) at 129.7 s, preceded from 104 s by 13 × "Wait64BitValueX timed out after 2000 ms ... memory holds Some(0)" - run 3: back to the guest null write at +0x23cf683 at 144.8 s, no Wait64BitValueX timeouts - Still 300+ compute PSO creations per run, 8–9 of them taking 1–17 s in the driver (nvgpucomp64.dll), even with "driver blobs kept on disk". - During run 2 the whole PC froze for a while (even Win+Ctrl+Shift+B did nothing), no TDR event (4101) in the System log. So #690 moves the stall later but doesn't remove it on this GPU. AI use: Claude Code (Claude Opus 5.5) read the logs and drafted this reply. I ran the tests. [run2-report.json](https://github.com/user-attachments/files/35310795/run2-report.json) [run2-xcl.log](https://github.com/user-attachments/files/35310794/run2-xcl.log) [run3-report.json](https://github.com/user-attachments/files/35310793/run3-report.json) [run3-xcl.log](https://github.com/user-attachments/files/35310792/run3-xcl.log)
Author
Owner

@⁠am-cob on GitHub · 2026-11-24 04:26 UTC · original

I compared the 13 addresses in your run 2 log with our traced control on an RTX 4070 Ti SUPER under Proton Experimental. All 13 occur at exactly the same addresses as 64-bit bottom-of-pipe writes on our host. The first 12 belong to one producer command list in our control. The last address belongs to a different producer and was one of the three words that timed out here. Your run waits for 2,283 after 2,279 presents. Our three waits also requested the final present count plus four. I can only identify the command lists on our machine.

We then tested #708 at 89184d1 on our local fork with the same starting profile, graphics backend and caches as our traced control. For the three corresponding words, CPU-side timeouts fell from three to zero. From the first consumer's wait-processing point, both producers reached the native queue within 16 ms (control: 6.024 s), and the CPU observed all three expected values by 180 ms (control: 6.185 s). All 38 traced queue gates retired. The title still stopped presenting for 28 s and hit +0x23cf683 in Prestream, consistent with your run 3 having no wait timeouts before that fault.

Your run 2's first fault, the read at +0x4e4c918, didn't occur in this comparison. Testing #708 alongside #690 on your setup would distinguish whether the 13 timeouts clear there and whether that read still occurs. Original control timings on #662

OpenAI Codex (GPT-6) integrated the PR locally, ran the matched test and compared the logs.

**@⁠am-cob** on GitHub · 2026-11-24 04:26 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7122025071) I compared the 13 addresses in your run 2 log with our traced control on an RTX 4070 Ti SUPER under Proton Experimental. All 13 occur at exactly the same addresses as 64-bit bottom-of-pipe writes on our host. The first 12 belong to one producer command list in our control. The last address belongs to a different producer and was one of the three words that timed out here. Your run waits for 2,283 after 2,279 presents. Our three waits also requested the final present count plus four. I can only identify the command lists on our machine. We then tested #708 at `89184d1` on our local fork with the same starting profile, graphics backend and caches as our traced control. For the three corresponding words, CPU-side timeouts fell from three to zero. From the first consumer's wait-processing point, both producers reached the native queue within 16 ms (control: 6.024 s), and the CPU observed all three expected values by 180 ms (control: 6.185 s). All 38 traced queue gates retired. The title still stopped presenting for 28 s and hit `+0x23cf683` in Prestream, consistent with your run 3 having no wait timeouts before that fault. Your run 2's first fault, the read at `+0x4e4c918`, didn't occur in this comparison. Testing #708 alongside #690 on your setup would distinguish whether the 13 timeouts clear there and whether that read still occurs. [Original control timings on #662](https://github.com/ivall/xcl/issues/662#issuecomment-7121835755) OpenAI Codex (GPT-6) integrated the PR locally, ran the matched test and compared the logs.
Author
Owner

@⁠qcdaark on GitHub · 2026-11-24 04:39 UTC · original

@⁠am-cob Thanks! I tested #708 merged onto main (64b3f35, includes #690), same RTX 3070 Ti / driver 32.0.16.2114. Logs of both runs attached (user name removed).

run build preloaded sets compute PSOs after A Wait64BitValueX timeouts end after A
3 f4ce27c 442 16 (30.8 s) 0 null write +0x23cf683 92.9 s
4 f4ce27c 470 2 (6.3 s) 0 null write +0x23cf683 89.2 s
5 f4ce27c 473 5 (1.9 s) 0 device removed 0x887a0006 64.1 s
708-1 main + #708 481 17 (24.4 s) 0 null write +0x23cf683 86.7 s
708-2 main + #708 502 0 0 device removed 0x887a0006 59.4 s

(f4ce27c run 2, without #708: 13 timeouts, then the read at +0x4e4c918.)

  • With #708 the 13 timeouts are gone, and the read at +0x4e4c918 did not occur in either run.
  • It still ends at the same point. In 708-2 nothing was compiled after A, and the run ended with:
    "Wait64BitValueX gate on queue ... still waiting on preceding queue work after 2 s; leaving the queue blocked" (twice, 73.5 s), then "Wait64BitValueX gate ...: D3D12 device removed (0x887a0006)" at 74.8 s.
  • So on this NVIDIA GPU some queue work before that gate never completes and the device hangs, even with no compile stalls. XCL_DRED=1 stalls the title at ~9 s here, so I can't get breadcrumbs. Happy to run any other switch.

AI use: Claude Code (Claude Opus 5.5) merged the PR locally, analyzed the logs and drafted this. I ran the tests.

pr708-run1-report.json
pr708-run1-xcl.log
pr708-run2-report.json
pr708-run2-xcl.log

**@⁠qcdaark** on GitHub · 2026-11-24 04:39 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7122213579) @⁠am-cob Thanks! I tested #708 merged onto main (64b3f35, includes #690), same RTX 3070 Ti / driver 32.0.16.2114. Logs of both runs attached (user name removed). | run | build | preloaded sets | compute PSOs after A | Wait64BitValueX timeouts | end | after A | |---|---|---|---|---|---|---| | 3 | f4ce27c | 442 | 16 (30.8 s) | 0 | null write +0x23cf683 | 92.9 s | | 4 | f4ce27c | 470 | 2 (6.3 s) | 0 | null write +0x23cf683 | 89.2 s | | 5 | f4ce27c | 473 | 5 (1.9 s) | 0 | device removed 0x887a0006 | 64.1 s | | 708-1 | main + #708 | 481 | 17 (24.4 s) | 0 | null write +0x23cf683 | 86.7 s | | 708-2 | main + #708 | 502 | 0 | 0 | device removed 0x887a0006 | 59.4 s | (f4ce27c run 2, without #708: 13 timeouts, then the read at +0x4e4c918.) - With #708 the 13 timeouts are gone, and the read at +0x4e4c918 did not occur in either run. - It still ends at the same point. In 708-2 nothing was compiled after A, and the run ended with: "Wait64BitValueX gate on queue ... still waiting on preceding queue work after 2 s; leaving the queue blocked" (twice, 73.5 s), then "Wait64BitValueX gate ...: D3D12 device removed (0x887a0006)" at 74.8 s. - So on this NVIDIA GPU some queue work before that gate never completes and the device hangs, even with no compile stalls. XCL_DRED=1 stalls the title at ~9 s here, so I can't get breadcrumbs. Happy to run any other switch. AI use: Claude Code (Claude Opus 5.5) merged the PR locally, analyzed the logs and drafted this. I ran the tests. [pr708-run1-report.json](https://github.com/user-attachments/files/35311375/pr708-run1-report.json) [pr708-run1-xcl.log](https://github.com/user-attachments/files/35311378/pr708-run1-xcl.log) [pr708-run2-report.json](https://github.com/user-attachments/files/35311377/pr708-run2-report.json) [pr708-run2-xcl.log](https://github.com/user-attachments/files/35311376/pr708-run2-xcl.log)
Author
Owner

@⁠am-cob on GitHub · 2026-11-24 04:56 UTC · original

Thanks for running both. I checked the four attachments. Both warnings in each run name the same queue. In 708-2 they appear at 73.516 s, and the gate monitor detects device removal 1.328 s later. In 708-1 the warnings appear at 110.066–110.067 s, another compute PSO finishes at 111.410 s, and the title hits the null write at 113.861 s.

In #708, “preceding queue work” means the GPU has yet to reach the marker placed ahead of that gate. The monitor checks the memory word only once it reaches that marker. An earlier wait on the same queue can also hold up later markers. The PR has since changed how it splits earlier work at a wait. Gate polling in #708

Could you confirm the #708 commit and try XCL_ACTIVITY=1 with DRED unset on the same warm cache? Contiguous activity lines from the last window with presents through the first fault would narrow down when submissions stopped. Those counts are process-wide. Identifying the blocked GPU batch would take per-queue markers.

On our RTX 4070 Ti SUPER under Proton, one null-write run retired all three matched gates and completed all 40 tracked batches. Fourteen seconds later, one recording thread was building a native compute pipeline and another was waiting on DXC for a graphics pipeline. In a separate matched pair, prebuilding one 903,000-byte compute shader and its native pipeline brought its in-game bind from at least 29.120 s to 220 ms. The title still hit the null write with three other native builds in progress. We haven't reproduced your device removal in these runs.

Comparing another run with this trace

  • Use the first A-button receipt to align the runs. The Windows logs say gamepad buttons 0x4 pressed for the first time. Our test controller logs test pad: applied 1 A. XCL log timestamps are seconds since host startup. Count the interval only up to the first unhandled exception or device removal, whichever comes first.
  • Count the stock log warnings for preceding queue work and the memory condition separately. Compare queue identities within a single run. The gate IDs, command-list recordings and batch IDs in our data come from private instrumentation.
  • In 708-1 we count 20 completed translated compute PSOs after A. Three log reuse of an XCL driver blob and 17 have no reuse marker. In 708-2 all three counts are zero. Whole-run DXIL compilations in report.json measure a different step. A build still in progress at the first fault has no completion line.
Machine-readable comparison data (JSON)
{
  "schema": "xcl.queue-comparison.v1",
  "scope": "Timestamps are XCL host uptime in seconds. Durations marked ms are milliseconds. Activity intervals bracket the last present reported by the two-second samples before the first fault. Recording/gate IDs are process-local. Guest outstanding and presents_whole_run come from exit reports. Stage- and queue-event counts stop at the first fault, even if other threads logged during crash handling.",
  "local_build": {"xcl_base":"00fa55c1eb2b","local_changes":"instrumented fork with pinned PR 708","pr708":"89184d1d3811005f8213153510fe545cf3c101ea","host":"Linux / Proton Experimental","gpu":"RTX 4070 Ti SUPER","driver":"595.112.07","backend":"vkd3d-proton 4522cc1a + dxil-spirv 34f0ff84","dxc":"1.8.2505.32"},
  "gate_semantics": "Private fence: 1 = queue reached prefix, 2 = monitor opened after testing guest memory, 3 = queue retired gate. A preceding-queue-work warning means fence < 1 at that poll; the guest-word predicate was skipped. A closed recording may never be submitted. A present counter alone does not establish a visible scene.",
  "matched_words": "Three 64-bit bottom-of-pipe writes from two producer recordings (the second serves two words). Matched by order, offsets -16/-88/+128 relative to the split word and wanted value equal to final presents + 4; no absolute addresses used.",
  "prior": {"instrumentation":"Address-scoped submissions and scheduled stacks, separate executable from the four pipeline-traced runs.","last_present_interval_s":[96.031,98.032],"scoped_batches_completed":40,"gates_retired":38,"guest_outstanding":515,"events_s":[[110.524,"gate_retired",19],[110.54,"gate_retired",20],[110.926,"gate_retired",21],[110.947,"batch_completed",20],[110.947,"batch_completed",22],[125.023,"symbolized_sample","one caller in translated_compute_pso via vkd3d/Vulkan; another waiting for DXC inside translated_graphics_pso (pixel stage); compiler worker in dxcompiler.dll"],[127.116,"guest_null_write"]],"presents":1537,"A_button_s":42.786,"logged_compute_after_A":{"all":265,"with_xcl_driver_blob":22,"without_xcl_driver_blob":243},"presents_whole_run":1537},
  "runs": {
    "control": {"A_button_s":42.731,"first_fault":{"kind":"guest_null_write","host_s":128.007,"seconds_after_A":85.276},"last_present_interval_s":[96.051,98.052],"guest_outstanding":499,"scoped_wait_recordings":{"submitted":18,"recorded":44},"gates":{"retired":18,"armed":18},"scoped_batches":{"completed":19,"submitted":19},"three_matched_words":"no producer or consumer submission","dxil":{"misses":163,"successful_compiles":160},"open_builds_at_first_fault":{"dxc":3,"native":0},"last_storage_sample":{"host_s":126.058,"requests_completed":88098,"controls_completed":1560,"requests_failed":1461,"requests_in_flight":0,"requests_unsubmitted":0},"logged_compute_after_A":{"all":209,"with_xcl_driver_blob":9,"without_xcl_driver_blob":200},"presents_whole_run":1586},
    "warm_first": {"A_button_s":42.751,"first_fault":{"kind":"guest_stack_overflow","host_s":100.164,"seconds_after_A":57.413},"last_present_interval_s":[96.092,98.092],"guest_outstanding":501,"scoped_wait_recordings":{"submitted":38,"recorded":42},"gates":{"retired":37,"armed":38},"scoped_batches":{"completed":38,"submitted":40},"three_matched_words":"submitted: 3 words reached, 2 gates retired","dxil":{"misses":11,"successful_compiles":9},"open_builds_at_first_fault":{"dxc":2,"native":2},"last_storage_sample":{"host_s":100.104,"requests_completed":89595,"controls_completed":1540,"requests_failed":319,"requests_in_flight":0,"requests_unsubmitted":0},"control_keys":{"reused":127,"recompiled":0},"logged_compute_after_A":{"all":206,"with_xcl_driver_blob":9,"without_xcl_driver_blob":197},"presents_whole_run":1573},
    "warm_repeat": {"A_button_s":42.768,"first_fault":{"kind":"guest_null_write","host_s":129.016,"seconds_after_A":86.248},"last_present_interval_s":[98.038,100.039],"guest_outstanding":644,"scoped_wait_recordings":{"submitted":18,"recorded":43},"gates":{"retired":18,"armed":18},"scoped_batches":{"completed":19,"submitted":19},"three_matched_words":"no producer or consumer submission","dxil":{"misses":65,"successful_compiles":64},"open_builds_at_first_fault":{"dxc":1,"native":2},"last_storage_sample":{"host_s":128.045,"requests_completed":87857,"controls_completed":1548,"requests_failed":2545,"requests_in_flight":0,"requests_unsubmitted":0},"control_keys":{"reused":156,"recompiled":0},"logged_compute_after_A":{"all":225,"with_xcl_driver_blob":9,"without_xcl_driver_blob":216},"presents_whole_run":1632},
    "two_prebuilt": {"A_button_s":42.828,"first_fault":{"kind":"guest_null_write","host_s":130.102,"seconds_after_A":87.274},"last_present_interval_s":[100.039,102.04],"guest_outstanding":565,"scoped_wait_recordings":{"submitted":18,"recorded":43},"gates":{"retired":18,"armed":18},"scoped_batches":{"completed":19,"submitted":19},"three_matched_words":"no producer or consumer submission","dxil":{"misses":67,"successful_compiles":67},"open_builds_at_first_fault":{"dxc":0,"native":3},"last_storage_sample":{"host_s":130.046,"requests_completed":88940,"controls_completed":1529,"requests_failed":318,"requests_in_flight":0,"requests_unsubmitted":0},"control_keys":{"reused":156,"recompiled":0},"logged_compute_after_A":{"all":254,"with_xcl_driver_blob":11,"without_xcl_driver_blob":243},"presents_whole_run":1563}
  },
  "native_microbench": [{"label":"control compute","dxil_bytes":685832,"static_samplers":0,"node_mask":1,"flags":0,"cold_ms":15126.169,"warm_ms":87.413,"cache_source":"earlier game run"},{"label":"warm repeat compute","dxil_bytes":903000,"static_samplers":2,"node_mask":1,"flags":0,"cold_ms":30099.352,"warm_ms":145.25,"cache_source":"offline build"}],
  "public_windows": {"708-1":{"A_button_s":27.163,"same_queue_prefix_warnings_s":[110.066,110.067],"fault":["guest_null_write",113.861],"dxil_compiles_whole_run":11,"presents_whole_run":1653,"logged_compute_after_A":{"all":20,"with_xcl_driver_blob":3,"without_xcl_driver_blob":17}},"708-2":{"A_button_s":15.457,"same_queue_prefix_warnings_s":[73.516,73.516],"fault":["device_hung",74.844],"dxil_compiles_whole_run":1,"presents_whole_run":1288,"logged_compute_after_A":{"all":0,"with_xcl_driver_blob":0,"without_xcl_driver_blob":0}}},
  "sources": {"windows_report_and_four_attachments":"https://github.com/ivall/xcl/issues/675#issuecomment-7122213579","gate_code":"https://github.com/ivall/xcl/blob/89184d1d3811005f8213153510fe545cf3c101ea/crates/xcl/src/hle/d3d12x/wait_gate.rs#L57-L78"},
  "protocol": "Control starts with 235 DXIL and 22 native entries. Both warm runs start with 394 and 22. The two-prebuilt run starts with 396 and 24. Same executable, backend, profile, 1280x720 private display, gamepad and loopback-only game network. No scheduled stacks in these four runs. Stage tracing begins at 80 s. Storage completion includes failed requests. Guest request counts come from the guest crash report.",
  "native_microbench_scope": "Standalone native compute PSO call in separate processes with identical DXIL, root signature, adapter and backend, without/with validated driver blob. One cold and one warm observation per pipeline; not scene timings.",
  "runtime_examples": {"control_compute_ms":{"dxc":6686,"native":15854},"warm_repeat_compute_ms":{"dxc":7234,"native_lower_bound_at_fault":21797,"demand_lower_bound_at_fault":29120},"two_prebuilt_same_warm_repeat_compute":{"dxil_hit_s":109.165,"native_begin_end_s":[109.171,109.329],"supplied_native_blob_bytes":4817328,"native_ms":158,"demand_ms":220,"other_unfinished_native_at_fault":{"compute":2,"graphics":1}}},
  "public_context": "Windows RTX 3070 Ti, driver 32.0.16.2114 per reporter; exact PR head unspecified. The two warnings refer to one queue within each run. No per-present timestamps for the final frame; DXIL report totals do not timestamp individual compilations.",
  "activity_scope": "Stock activity counters are process-wide two-second deltas. A submit is one nonempty ExecuteCommandLists call accounted after submission handling; it can contain multiple lists/segments. Neither its count nor a draw/dispatch count measures GPU completion.",
  "fault_codes": {"guest_null_write":"0xc0000005 at +0x23cf683, write to zero","guest_stack_overflow":"0xc00000fd at +0x5647177","device_hung":"0x887a0006"}
}
**@⁠am-cob** on GitHub · 2026-11-24 04:56 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7122473858) Thanks for running both. I checked the four attachments. Both warnings in each run name the same queue. In 708-2 they appear at 73.516 s, and the gate monitor detects device removal 1.328 s later. In 708-1 the warnings appear at 110.066–110.067 s, another compute PSO finishes at 111.410 s, and the title hits the null write at 113.861 s. In #708, “preceding queue work” means the GPU has yet to reach the marker placed ahead of that gate. The monitor checks the memory word only once it reaches that marker. An earlier wait on the same queue can also hold up later markers. The PR has since changed how it splits earlier work at a wait. [Gate polling in #708](https://github.com/ivall/xcl/blob/89184d1d3811005f8213153510fe545cf3c101ea/crates/xcl/src/hle/d3d12x/wait_gate.rs) Could you confirm the #708 commit and try `XCL_ACTIVITY=1` with DRED unset on the same warm cache? Contiguous activity lines from the last window with presents through the first fault would narrow down when submissions stopped. Those counts are process-wide. Identifying the blocked GPU batch would take per-queue markers. On our RTX 4070 Ti SUPER under Proton, one null-write run retired all three matched gates and completed all 40 tracked batches. Fourteen seconds later, one recording thread was building a native compute pipeline and another was waiting on DXC for a graphics pipeline. In a separate matched pair, prebuilding one 903,000-byte compute shader and its native pipeline brought its in-game bind from at least 29.120 s to 220 ms. The title still hit the null write with three other native builds in progress. We haven't reproduced your device removal in these runs. **Comparing another run with this trace** - Use the first A-button receipt to align the runs. The Windows logs say `gamepad buttons 0x4 pressed for the first time`. Our test controller logs `test pad: applied 1 A`. XCL log timestamps are seconds since host startup. Count the interval only up to the first unhandled exception or device removal, whichever comes first. - Count the stock log warnings for `preceding queue work` and `the memory condition` separately. Compare queue identities within a single run. The gate IDs, command-list recordings and batch IDs in our data come from private instrumentation. - In 708-1 we count 20 completed translated compute PSOs after A. Three log reuse of an XCL driver blob and 17 have no reuse marker. In 708-2 all three counts are zero. Whole-run DXIL compilations in `report.json` measure a different step. A build still in progress at the first fault has no completion line. <details> <summary>Machine-readable comparison data (JSON)</summary> ```json { "schema": "xcl.queue-comparison.v1", "scope": "Timestamps are XCL host uptime in seconds. Durations marked ms are milliseconds. Activity intervals bracket the last present reported by the two-second samples before the first fault. Recording/gate IDs are process-local. Guest outstanding and presents_whole_run come from exit reports. Stage- and queue-event counts stop at the first fault, even if other threads logged during crash handling.", "local_build": {"xcl_base":"00fa55c1eb2b","local_changes":"instrumented fork with pinned PR 708","pr708":"89184d1d3811005f8213153510fe545cf3c101ea","host":"Linux / Proton Experimental","gpu":"RTX 4070 Ti SUPER","driver":"595.112.07","backend":"vkd3d-proton 4522cc1a + dxil-spirv 34f0ff84","dxc":"1.8.2505.32"}, "gate_semantics": "Private fence: 1 = queue reached prefix, 2 = monitor opened after testing guest memory, 3 = queue retired gate. A preceding-queue-work warning means fence < 1 at that poll; the guest-word predicate was skipped. A closed recording may never be submitted. A present counter alone does not establish a visible scene.", "matched_words": "Three 64-bit bottom-of-pipe writes from two producer recordings (the second serves two words). Matched by order, offsets -16/-88/+128 relative to the split word and wanted value equal to final presents + 4; no absolute addresses used.", "prior": {"instrumentation":"Address-scoped submissions and scheduled stacks, separate executable from the four pipeline-traced runs.","last_present_interval_s":[96.031,98.032],"scoped_batches_completed":40,"gates_retired":38,"guest_outstanding":515,"events_s":[[110.524,"gate_retired",19],[110.54,"gate_retired",20],[110.926,"gate_retired",21],[110.947,"batch_completed",20],[110.947,"batch_completed",22],[125.023,"symbolized_sample","one caller in translated_compute_pso via vkd3d/Vulkan; another waiting for DXC inside translated_graphics_pso (pixel stage); compiler worker in dxcompiler.dll"],[127.116,"guest_null_write"]],"presents":1537,"A_button_s":42.786,"logged_compute_after_A":{"all":265,"with_xcl_driver_blob":22,"without_xcl_driver_blob":243},"presents_whole_run":1537}, "runs": { "control": {"A_button_s":42.731,"first_fault":{"kind":"guest_null_write","host_s":128.007,"seconds_after_A":85.276},"last_present_interval_s":[96.051,98.052],"guest_outstanding":499,"scoped_wait_recordings":{"submitted":18,"recorded":44},"gates":{"retired":18,"armed":18},"scoped_batches":{"completed":19,"submitted":19},"three_matched_words":"no producer or consumer submission","dxil":{"misses":163,"successful_compiles":160},"open_builds_at_first_fault":{"dxc":3,"native":0},"last_storage_sample":{"host_s":126.058,"requests_completed":88098,"controls_completed":1560,"requests_failed":1461,"requests_in_flight":0,"requests_unsubmitted":0},"logged_compute_after_A":{"all":209,"with_xcl_driver_blob":9,"without_xcl_driver_blob":200},"presents_whole_run":1586}, "warm_first": {"A_button_s":42.751,"first_fault":{"kind":"guest_stack_overflow","host_s":100.164,"seconds_after_A":57.413},"last_present_interval_s":[96.092,98.092],"guest_outstanding":501,"scoped_wait_recordings":{"submitted":38,"recorded":42},"gates":{"retired":37,"armed":38},"scoped_batches":{"completed":38,"submitted":40},"three_matched_words":"submitted: 3 words reached, 2 gates retired","dxil":{"misses":11,"successful_compiles":9},"open_builds_at_first_fault":{"dxc":2,"native":2},"last_storage_sample":{"host_s":100.104,"requests_completed":89595,"controls_completed":1540,"requests_failed":319,"requests_in_flight":0,"requests_unsubmitted":0},"control_keys":{"reused":127,"recompiled":0},"logged_compute_after_A":{"all":206,"with_xcl_driver_blob":9,"without_xcl_driver_blob":197},"presents_whole_run":1573}, "warm_repeat": {"A_button_s":42.768,"first_fault":{"kind":"guest_null_write","host_s":129.016,"seconds_after_A":86.248},"last_present_interval_s":[98.038,100.039],"guest_outstanding":644,"scoped_wait_recordings":{"submitted":18,"recorded":43},"gates":{"retired":18,"armed":18},"scoped_batches":{"completed":19,"submitted":19},"three_matched_words":"no producer or consumer submission","dxil":{"misses":65,"successful_compiles":64},"open_builds_at_first_fault":{"dxc":1,"native":2},"last_storage_sample":{"host_s":128.045,"requests_completed":87857,"controls_completed":1548,"requests_failed":2545,"requests_in_flight":0,"requests_unsubmitted":0},"control_keys":{"reused":156,"recompiled":0},"logged_compute_after_A":{"all":225,"with_xcl_driver_blob":9,"without_xcl_driver_blob":216},"presents_whole_run":1632}, "two_prebuilt": {"A_button_s":42.828,"first_fault":{"kind":"guest_null_write","host_s":130.102,"seconds_after_A":87.274},"last_present_interval_s":[100.039,102.04],"guest_outstanding":565,"scoped_wait_recordings":{"submitted":18,"recorded":43},"gates":{"retired":18,"armed":18},"scoped_batches":{"completed":19,"submitted":19},"three_matched_words":"no producer or consumer submission","dxil":{"misses":67,"successful_compiles":67},"open_builds_at_first_fault":{"dxc":0,"native":3},"last_storage_sample":{"host_s":130.046,"requests_completed":88940,"controls_completed":1529,"requests_failed":318,"requests_in_flight":0,"requests_unsubmitted":0},"control_keys":{"reused":156,"recompiled":0},"logged_compute_after_A":{"all":254,"with_xcl_driver_blob":11,"without_xcl_driver_blob":243},"presents_whole_run":1563} }, "native_microbench": [{"label":"control compute","dxil_bytes":685832,"static_samplers":0,"node_mask":1,"flags":0,"cold_ms":15126.169,"warm_ms":87.413,"cache_source":"earlier game run"},{"label":"warm repeat compute","dxil_bytes":903000,"static_samplers":2,"node_mask":1,"flags":0,"cold_ms":30099.352,"warm_ms":145.25,"cache_source":"offline build"}], "public_windows": {"708-1":{"A_button_s":27.163,"same_queue_prefix_warnings_s":[110.066,110.067],"fault":["guest_null_write",113.861],"dxil_compiles_whole_run":11,"presents_whole_run":1653,"logged_compute_after_A":{"all":20,"with_xcl_driver_blob":3,"without_xcl_driver_blob":17}},"708-2":{"A_button_s":15.457,"same_queue_prefix_warnings_s":[73.516,73.516],"fault":["device_hung",74.844],"dxil_compiles_whole_run":1,"presents_whole_run":1288,"logged_compute_after_A":{"all":0,"with_xcl_driver_blob":0,"without_xcl_driver_blob":0}}}, "sources": {"windows_report_and_four_attachments":"https://github.com/ivall/xcl/issues/675#issuecomment-7122213579","gate_code":"https://github.com/ivall/xcl/blob/89184d1d3811005f8213153510fe545cf3c101ea/crates/xcl/src/hle/d3d12x/wait_gate.rs#L57-L78"}, "protocol": "Control starts with 235 DXIL and 22 native entries. Both warm runs start with 394 and 22. The two-prebuilt run starts with 396 and 24. Same executable, backend, profile, 1280x720 private display, gamepad and loopback-only game network. No scheduled stacks in these four runs. Stage tracing begins at 80 s. Storage completion includes failed requests. Guest request counts come from the guest crash report.", "native_microbench_scope": "Standalone native compute PSO call in separate processes with identical DXIL, root signature, adapter and backend, without/with validated driver blob. One cold and one warm observation per pipeline; not scene timings.", "runtime_examples": {"control_compute_ms":{"dxc":6686,"native":15854},"warm_repeat_compute_ms":{"dxc":7234,"native_lower_bound_at_fault":21797,"demand_lower_bound_at_fault":29120},"two_prebuilt_same_warm_repeat_compute":{"dxil_hit_s":109.165,"native_begin_end_s":[109.171,109.329],"supplied_native_blob_bytes":4817328,"native_ms":158,"demand_ms":220,"other_unfinished_native_at_fault":{"compute":2,"graphics":1}}}, "public_context": "Windows RTX 3070 Ti, driver 32.0.16.2114 per reporter; exact PR head unspecified. The two warnings refer to one queue within each run. No per-present timestamps for the final frame; DXIL report totals do not timestamp individual compilations.", "activity_scope": "Stock activity counters are process-wide two-second deltas. A submit is one nonempty ExecuteCommandLists call accounted after submission handling; it can contain multiple lists/segments. Neither its count nor a draw/dispatch count measures GPU completion.", "fault_codes": {"guest_null_write":"0xc0000005 at +0x23cf683, write to zero","guest_stack_overflow":"0xc00000fd at +0x5647177","device_hung":"0x887a0006"} } ``` </details>
Author
Owner

@⁠qcdaark on GitHub · 2026-11-24 05:08 UTC · original

@⁠am-cob The #708 head I used is db4599d (merged onto main 64b3f35); it hasn't changed since. These two runs were made last night with XCL_ACTIVITY=1, DRED unset, on main 64b3f35 + #708 db4599d + #573 de5b510 (#573 changes 54 compute programs to wave32, so run 1 recompiled a few). Logs attached, user name removed.

Activity (2 s windows) from the last window with presents through the first fault:

Run 1 (A at 46.735 s) – null write +0x23cf683 at 134.152 s (87.4 s after A)
106.087 p=3 s=55 d=190 disp=7207 few=5
108.088 – 112.089: all 0
114.090 disp=1, 116.091 – 120.093: 0, 122.094 disp=1, 124.094 – 130.096: 0, 132.097 disp=1, 134.098: 0
Preceding-queue-work warnings (same queue): 106.910, 106.910

Run 2, warm cache (A at 29.471 s) – device removed 0x887a0006 at the gate at 96.888 s (67.4 s after A)
86.040 p=14 s=136 d=345 disp=7640 few=29
88.041 s=6 disp=2
90.042 all 0
92.043 disp=10
94.043 s=7 disp=17
96.044 disp=1
Preceding-queue-work warnings (same queue): 95.343, 95.343

In both runs the last window with presents has a burst of 7 000+ dispatches, then submissions stop. In run 1 nothing at all is submitted for 28 s before the null write.

run1-report.json
run1-xcl.log
run2-report.json
run2-xcl.log

AI use: Claude Code (Claude Opus 5.5) ran these tests and extracted the activity lines. I checked the reply.

**@⁠qcdaark** on GitHub · 2026-11-24 05:08 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7122669325) @⁠am-cob The #708 head I used is db4599d (merged onto main 64b3f35); it hasn't changed since. These two runs were made last night with XCL_ACTIVITY=1, DRED unset, on main 64b3f35 + #708 db4599d + #573 de5b510 (#573 changes 54 compute programs to wave32, so run 1 recompiled a few). Logs attached, user name removed. Activity (2 s windows) from the last window with presents through the first fault: Run 1 (A at 46.735 s) – null write +0x23cf683 at 134.152 s (87.4 s after A) 106.087 p=3 s=55 d=190 disp=7207 few=5 108.088 – 112.089: all 0 114.090 disp=1, 116.091 – 120.093: 0, 122.094 disp=1, 124.094 – 130.096: 0, 132.097 disp=1, 134.098: 0 Preceding-queue-work warnings (same queue): 106.910, 106.910 Run 2, warm cache (A at 29.471 s) – device removed 0x887a0006 at the gate at 96.888 s (67.4 s after A) 86.040 p=14 s=136 d=345 disp=7640 few=29 88.041 s=6 disp=2 90.042 all 0 92.043 disp=10 94.043 s=7 disp=17 96.044 disp=1 Preceding-queue-work warnings (same queue): 95.343, 95.343 In both runs the last window with presents has a burst of 7 000+ dispatches, then submissions stop. In run 1 nothing at all is submitted for 28 s before the null write. [run1-report.json](https://github.com/user-attachments/files/35312342/run1-report.json) [run1-xcl.log](https://github.com/user-attachments/files/35312341/run1-xcl.log) [run2-report.json](https://github.com/user-attachments/files/35312339/run2-report.json) [run2-xcl.log](https://github.com/user-attachments/files/35312340/run2-xcl.log) AI use: Claude Code (Claude Opus 5.5) ran these tests and extracted the activity lines. I checked the reply.
Author
Owner

@⁠am-cob on GitHub · 2026-11-24 05:19 UTC · original

@⁠qcdaark Thanks for confirming the #708 revision and the #573 setting. Both of your logs show over 7,000 dispatches in the last two-second window containing a present. I counted the complete windows between that window and each run's first fault. Your logs and build details

Windows run Time covered after that window Wrapped ExecuteCommandLists calls First fault
1 28.011 s 0 Guest null write at 134.152 s
2 10.004 s 13 Device removal at 96.888 s

In run 2, six calls landed in the window ending at 88.041 s and seven in the one ending at 94.043 s. The two warnings about preceding work on the same queue came at 95.343 s. The activity counters don't tell us whether that queue received any of the 13 calls or which batch the GPU finished.

Locally I ran one control and two prebuilt trials of the Windows XCL binary under Proton Experimental on an RTX 4070 Ti SUPER (Linux driver 595.112.07). The private build used base 00fa55c, #708 at 89184d1, and local tracing and cache changes. It did not include #573. Each trial ran xcl.exe run <game-folder> offline with XCL_ACTIVITY=1 and the same profile.

The control hit the Prestream null write at 127.019 s. The first prebuilt trial faulted before using the three target pipelines. On the repeat, the driver accepted both compute pipelines and the depth-only graphics pipeline. Native creation took 159, 16 and 10 ms. The last returned success at 121.068 s. The same null write (+0x23cf683) followed at 127.979 s with 581 guest streaming requests outstanding. The last XCL storage sample showed 87,829 completed requests, including 907 failures. Across 14 complete windows after the final present window, XCL counted 7,170 dispatches and zero wrapped submission calls.

For the next comparison I'd give each native batch a per-queue serial and log which command-list recording it came from. At the first prefix warning, I'd capture its target serial, the last fence-confirmed serial for each queue, and any outstanding queue waits and signals. That would show whether any of run 2's later calls reached the warned queue and how far that queue got.

Machine-readable comparison (host uptime in seconds)
{
  "windows_after_last_present_bin": {
    "1": {
      "seconds": 28.011,
      "wrapped_submit_calls": 0,
      "first_fault": [
        "guest_null_write",
        134.152
      ]
    },
    "2": {
      "seconds": 10.004,
      "wrapped_submit_calls": 13,
      "first_fault": [
        "device_hung",
        96.888
      ]
    }
  },
  "linux_repeat": {
    "first_fault": [
      "guest_null_write",
      "+0x23cf683",
      127.979
    ],
    "guest_at_fault": {
      "frame": 1110,
      "streaming_state": "Prestream",
      "streaming_requests": 581
    },
    "last_present_interval_s": [
      96.059,
      98.06
    ],
    "complete_later_windows": 14,
    "later_window_totals": {
      "presents": 0,
      "submits": 0,
      "draws": 121,
      "dispatches": 7170
    },
    "target_columns": [
      "pipeline",
      "native_create_ms",
      "whole_bind_ms",
      "cached_blob_bytes",
      "end_s",
      "hresult"
    ],
    "targets": [
      [
        "compute_881664",
        159,
        220,
        4672248,
        105.806,
        "0x0"
      ],
      [
        "compute_214404",
        16,
        33,
        1019016,
        117.234,
        "0x0"
      ],
      [
        "depth_only_graphics",
        10,
        40,
        699504,
        121.068,
        "0x0"
      ]
    ],
    "last_storage_sample": {
      "t": 126.069,
      "submitted": 87829,
      "completed": 87829,
      "in_flight": 0,
      "unsubmitted": 0,
      "failed": 907
    }
  }
}

AI use — OpenAI Codex (GPT-6) ran the local trials, compared their traces with your two Windows logs, and drafted this reply.

**@⁠am-cob** on GitHub · 2026-11-24 05:19 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7122840084) @⁠qcdaark Thanks for confirming the #708 revision and the #573 setting. Both of your logs show over 7,000 dispatches in the last two-second window containing a present. I counted the complete windows between that window and each run's first fault. [Your logs and build details](https://github.com/ivall/xcl/issues/675#issuecomment-7122669325) | Windows run | Time covered after that window | Wrapped `ExecuteCommandLists` calls | First fault | |---|---:|---:|---| | 1 | 28.011 s | 0 | Guest null write at 134.152 s | | 2 | 10.004 s | 13 | Device removal at 96.888 s | In run 2, six calls landed in the window ending at 88.041 s and seven in the one ending at 94.043 s. The two warnings about preceding work on the same queue came at 95.343 s. The activity counters don't tell us whether that queue received any of the 13 calls or which batch the GPU finished. Locally I ran one control and two prebuilt trials of the Windows XCL binary under Proton Experimental on an RTX 4070 Ti SUPER (Linux driver 595.112.07). The private build used base `00fa55c`, #708 at `89184d1`, and local tracing and cache changes. It did not include #573. Each trial ran `xcl.exe run <game-folder>` offline with `XCL_ACTIVITY=1` and the same profile. The control hit the Prestream null write at 127.019 s. The first prebuilt trial faulted before using the three target pipelines. On the repeat, the driver accepted both compute pipelines and the depth-only graphics pipeline. Native creation took 159, 16 and 10 ms. The last returned success at 121.068 s. The same null write (`+0x23cf683`) followed at 127.979 s with 581 guest streaming requests outstanding. The last XCL storage sample showed 87,829 completed requests, including 907 failures. Across 14 complete windows after the final present window, XCL counted 7,170 dispatches and zero wrapped submission calls. For the next comparison I'd give each native batch a per-queue serial and log which command-list recording it came from. At the first prefix warning, I'd capture its target serial, the last fence-confirmed serial for each queue, and any outstanding queue waits and signals. That would show whether any of run 2's later calls reached the warned queue and how far that queue got. <details> <summary>Machine-readable comparison (host uptime in seconds)</summary> ```json { "windows_after_last_present_bin": { "1": { "seconds": 28.011, "wrapped_submit_calls": 0, "first_fault": [ "guest_null_write", 134.152 ] }, "2": { "seconds": 10.004, "wrapped_submit_calls": 13, "first_fault": [ "device_hung", 96.888 ] } }, "linux_repeat": { "first_fault": [ "guest_null_write", "+0x23cf683", 127.979 ], "guest_at_fault": { "frame": 1110, "streaming_state": "Prestream", "streaming_requests": 581 }, "last_present_interval_s": [ 96.059, 98.06 ], "complete_later_windows": 14, "later_window_totals": { "presents": 0, "submits": 0, "draws": 121, "dispatches": 7170 }, "target_columns": [ "pipeline", "native_create_ms", "whole_bind_ms", "cached_blob_bytes", "end_s", "hresult" ], "targets": [ [ "compute_881664", 159, 220, 4672248, 105.806, "0x0" ], [ "compute_214404", 16, 33, 1019016, 117.234, "0x0" ], [ "depth_only_graphics", 10, 40, 699504, 121.068, "0x0" ] ], "last_storage_sample": { "t": 126.069, "submitted": 87829, "completed": 87829, "in_flight": 0, "unsubmitted": 0, "failed": 907 } } } ``` </details> **AI use** — OpenAI Codex (GPT-6) ran the local trials, compared their traces with your two Windows logs, and drafted this reply.
Author
Owner

@⁠qcdaark on GitHub · 2026-11-24 05:31 UTC · original

@⁠am-cob Thanks. One more run on main d5442d2 + #708 db4599d (no #573), warm cache, XCL_ACTIVITY=1, logs attached. The 881,664-byte compute shader from the previous run was loaded from its driver blob at 6.5 s (13 ms); after A only two small compute PSOs (321 + 72 ms). Still: device removed at the gate at 99.758 s (57.9 s after A), right after the burst:
96.047 p=15 s=142 d=340 disp=7375 few=31
98.048 p=0 s=6 d=0 disp=80 few=0
Preceding-queue-work warnings: 98.612 (×2).

About storage, summed over the activity windows of my three #708-only runs: 83,724 / 84,167 / 84,798 DirectStorage requests, of which 3,102 / 2,436 / 2,586 failed, and "BCPack refusals so far: 2048 requests" (mostly BC1, plus BC5 / BC7 / one BC6H) in each run. I can't tell whether the title waits on any of those.

I can't add per-queue serials myself, but I'm happy to run a branch with that tracing on this RTX 3070 Ti.

AI use: Claude Code (Claude Opus 5.5) counted these from the logs and drafted this. I ran the test.

run3-xcl.log
run3-report.json

**@⁠qcdaark** on GitHub · 2026-11-24 05:31 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7123022120) @⁠am-cob Thanks. One more run on main d5442d2 + #708 db4599d (no #573), warm cache, XCL_ACTIVITY=1, logs attached. The 881,664-byte compute shader from the previous run was loaded from its driver blob at 6.5 s (13 ms); after A only two small compute PSOs (321 + 72 ms). Still: device removed at the gate at 99.758 s (57.9 s after A), right after the burst: 96.047 p=15 s=142 d=340 disp=7375 few=31 98.048 p=0 s=6 d=0 disp=80 few=0 Preceding-queue-work warnings: 98.612 (×2). About storage, summed over the activity windows of my three #708-only runs: 83,724 / 84,167 / 84,798 DirectStorage requests, of which 3,102 / 2,436 / 2,586 failed, and "BCPack refusals so far: 2048 requests" (mostly BC1, plus BC5 / BC7 / one BC6H) in each run. I can't tell whether the title waits on any of those. I can't add per-queue serials myself, but I'm happy to run a branch with that tracing on this RTX 3070 Ti. AI use: Claude Code (Claude Opus 5.5) counted these from the logs and drafted this. I ran the test. [run3-xcl.log](https://github.com/user-attachments/files/35313249/run3-xcl.log) [run3-report.json](https://github.com/user-attachments/files/35313250/run3-report.json)
Author
Owner

@⁠qcdaark on GitHub · 2026-11-24 06:04 UTC · original

@⁠am-cob I identified the shader the GPU hangs in, from an Nsight Aftermath dump (RTX 3070 Ti, driver 621.24, main e50836b + #708 db4599d; no dump attached, it holds translated shader code).

Dump: Device state Hung, engine reset. All 88 active warps (23 distinct PCs) are in one compute shader, Aftermath shader hash 0x1B8AF86914A34496, native size 57,088 B.

Matching it: I ran GFSDK_Aftermath_GetShaderHash (Aftermath SDK 2026.3) over the 703 .dxil files in %LOCALAPPDATA%\xcl\dxil. Exactly one matches: eca1b978ee1c7799.dxil (38,960 B, DXIL shader hash 9b9f64b23a6dd4c3fe5731ccfeb08b3b; cache key from DXC 1.9.2602.17).

What it is (dxc -dumpbin):

  • compute, NumThreads=(64,1,1), WaveSize=32 → a console wave64 program in the split-wave64 form
  • 25 × Barrier(mode 9), 24 × WaveActiveBallot, 19 × WaveReadLaneAt, groupshared xcl_lds [8192 x i32]
  • 3 loops (back-edges); the big one spans listing lines 996–3980 with 6 barriers inside; its exit test combines both halves' masks through xcl_lds
  • Aftermath's PC mappings (dxil:1109 … dxil:4086), read as lines of the dxc -dumpbin listing: 22 of 23 fall inside that big loop and 1 inside the third loop (4066–4186). That line mapping is my assumption.

So it looks like the two 32-lane halves stop meeting at a barrier inside that loop. I can't name the console program (the cache key hashes the HLSL), but anyone on DXC 1.9.2602.17 should have the same eca1b978ee1c7799.dxil. Happy to test a fix or dump more from it.

AI use: Claude Code (Claude Opus 5.5) wrote the hash-matching script, disassembled the DXIL and drafted this. I ran the tests.

**@⁠qcdaark** on GitHub · 2026-11-24 06:04 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7123556525) @⁠am-cob I identified the shader the GPU hangs in, from an Nsight Aftermath dump (RTX 3070 Ti, driver 621.24, main e50836b + #708 db4599d; no dump attached, it holds translated shader code). Dump: Device state Hung, engine reset. All 88 active warps (23 distinct PCs) are in one compute shader, Aftermath shader hash 0x1B8AF86914A34496, native size 57,088 B. Matching it: I ran GFSDK_Aftermath_GetShaderHash (Aftermath SDK 2026.3) over the 703 .dxil files in %LOCALAPPDATA%\xcl\dxil. Exactly one matches: eca1b978ee1c7799.dxil (38,960 B, DXIL shader hash 9b9f64b23a6dd4c3fe5731ccfeb08b3b; cache key from DXC 1.9.2602.17). What it is (dxc -dumpbin): - compute, NumThreads=(64,1,1), WaveSize=32 → a console wave64 program in the split-wave64 form - 25 × Barrier(mode 9), 24 × WaveActiveBallot, 19 × WaveReadLaneAt, groupshared xcl_lds [8192 x i32] - 3 loops (back-edges); the big one spans listing lines 996–3980 with 6 barriers inside; its exit test combines both halves' masks through xcl_lds - Aftermath's PC mappings (dxil:1109 … dxil:4086), read as lines of the dxc -dumpbin listing: 22 of 23 fall inside that big loop and 1 inside the third loop (4066–4186). That line mapping is my assumption. So it looks like the two 32-lane halves stop meeting at a barrier inside that loop. I can't name the console program (the cache key hashes the HLSL), but anyone on DXC 1.9.2602.17 should have the same eca1b978ee1c7799.dxil. Happy to test a fix or dump more from it. AI use: Claude Code (Claude Opus 5.5) wrote the hash-matching script, disassembled the DXIL and drafted this. I ran the tests.
Author
Owner

@⁠qcdaark on GitHub · 2026-11-24 06:26 UTC · original

Summary of tonight's runs on main beaa245 (no #708), RTX 3070 Ti, driver 621.24. Logs attached (user name removed).

  1. GPU hang fixed on this GPU: in 4 runs, no device removal, no preceding-queue-work / Wait64BitValueX warning, no 7,000+ dispatch burst, no Aftermath dump.

  2. Still ends with the null write at +0x23cf683, always ~28–30 s after presents stop, with 0 submits and no warnings in between. In-game audio starts as if loading finished, then the title stops:

    run A last present window null write after A
    1 17.1 s 98.1 s 125.9 s 108.8 s
    2 45.5 s 104.1 s 132.8 s 87.4 s
    3 25.1 s ~59 s 86.9 s 61.8 s
    5 69.4 s 152.1 s 182.1 s 112.6 s
  3. Run 4 crashed at 12.3 s during the pipeline preload (520 shader sets), inside the NVIDIA driver: 0xc0000005 in nvwgf2umx.dll+0x85b227 (read at 0x3c), called from xcl.exe+0x188fa6. This came after several engine resets earlier tonight; the next run started fine.

  4. In run 5, 50 compute PSOs were created after A (171 s in total), which is more than in earlier warm runs; still nothing in the 30 s silence before the fault.

AI use: Claude Code (Claude Opus 5.5) summarized the logs. I ran the tests.

run1-report.json
run1-xcl.log
run2-report.json
run2-xcl.log
run4-driver-crash-report.json
run4-driver-crash-xcl.log
run5-report.json
run5-xcl.log

**@⁠qcdaark** on GitHub · 2026-11-24 06:26 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7123930160) Summary of tonight's runs on main beaa245 (no #708), RTX 3070 Ti, driver 621.24. Logs attached (user name removed). 1. GPU hang fixed on this GPU: in 4 runs, no device removal, no preceding-queue-work / Wait64BitValueX warning, no 7,000+ dispatch burst, no Aftermath dump. 2. Still ends with the null write at +0x23cf683, always ~28–30 s after presents stop, with 0 submits and no warnings in between. In-game audio starts as if loading finished, then the title stops: | run | A | last present window | null write | after A | |---|---|---|---|---| | 1 | 17.1 s | 98.1 s | 125.9 s | 108.8 s | | 2 | 45.5 s | 104.1 s | 132.8 s | 87.4 s | | 3 | 25.1 s | ~59 s | 86.9 s | 61.8 s | | 5 | 69.4 s | 152.1 s | 182.1 s | 112.6 s | 3. Run 4 crashed at 12.3 s during the pipeline preload (520 shader sets), inside the NVIDIA driver: 0xc0000005 in nvwgf2umx.dll+0x85b227 (read at 0x3c), called from xcl.exe+0x188fa6. This came after several engine resets earlier tonight; the next run started fine. 4. In run 5, 50 compute PSOs were created after A (171 s in total), which is more than in earlier warm runs; still nothing in the 30 s silence before the fault. AI use: Claude Code (Claude Opus 5.5) summarized the logs. I ran the tests. [run1-report.json](https://github.com/user-attachments/files/35315707/run1-report.json) [run1-xcl.log](https://github.com/user-attachments/files/35315703/run1-xcl.log) [run2-report.json](https://github.com/user-attachments/files/35315704/run2-report.json) [run2-xcl.log](https://github.com/user-attachments/files/35315709/run2-xcl.log) [run4-driver-crash-report.json](https://github.com/user-attachments/files/35315705/run4-driver-crash-report.json) [run4-driver-crash-xcl.log](https://github.com/user-attachments/files/35315710/run4-driver-crash-xcl.log) [run5-report.json](https://github.com/user-attachments/files/35315706/run5-report.json) [run5-xcl.log](https://github.com/user-attachments/files/35315708/run5-xcl.log)
Author
Owner

@⁠milas6669 on GitHub · 2026-11-24 08:34 UTC · original · edited 2026-11-24 08:43 UTC

A test that separates shader building from the freeze. Same machine and setup as above; main 09940bb plus the xcl pipelines stack (#758 / #759), see the report on #759.

I built 51,000 of the title's 58,970 queued pipelines outside the game (xcl pipelines, game closed), then ran the title.

before after
sum of the compute-pipeline build times in the title 37.1 s 2.2 s
compute builds slower than 2 s 1 0
last frame 100 s (time limit of that run) 106 s, then 0 presents (0 submits) until my 28 GB watchdog

Correction (please read this instead of my first conclusion): the freeze started at about the same time even though the title built almost nothing itself in that run. But xcl pipelines had not made the last 7,953 pipelines, which are the slowest (very large compute programs), so this test does not show that shader building is not the cause. The thread dumps in #505 (the title's threads blocked in pso_async::resolve_wait while the driver compiles tens-of-seconds pipelines) point the other way. What this run does show is that making 51,000 pipelines ahead cut the title's own compute build time from 37 s to 2.2 s and did not move the stop on its own.

Not tested: the last 7,953 pipelines were not built (the tool stalled, see #759); one run each; AMD.

AI use: Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment.

**@⁠milas6669** on GitHub · 2026-11-24 08:34 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7126307761) · edited 2026-11-24 08:43 UTC A test that separates shader building from the freeze. Same machine and setup as above; main `09940bb` plus the `xcl pipelines` stack (#758 / #759), see the report on #759. I built 51,000 of the title's 58,970 queued pipelines outside the game (`xcl pipelines`, game closed), then ran the title. | | before | after | |---|---|---| | sum of the compute-pipeline build times in the title | 37.1 s | 2.2 s | | compute builds slower than 2 s | 1 | 0 | | last frame | 100 s (time limit of that run) | 106 s, then 0 presents (0 submits) until my 28 GB watchdog | **Correction (please read this instead of my first conclusion):** the freeze started at about the same time even though the title built almost nothing itself in that run. But `xcl pipelines` had not made the last 7,953 pipelines, which are the slowest (very large compute programs), so this test does not show that shader building is not the cause. The thread dumps in #505 (the title's threads blocked in `pso_async::resolve_wait` while the driver compiles tens-of-seconds pipelines) point the other way. What this run does show is that making 51,000 pipelines ahead cut the title's own compute build time from 37 s to 2.2 s and did not move the stop on its own. **Not tested:** the last 7,953 pipelines were not built (the tool stalled, see #759); one run each; AMD. **AI use:** Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment.
Author
Owner

@⁠ateezie on GitHub · 2026-11-24 08:43 UTC · original

RTX 5090 data point (32 GB, Windows 11 26200, xcl main beaa245, release, CapFrameX closed):

  • Reaches past the start-up prompts at a steady 30 fps (the first run, with cold caches, 6.9 fps).
  • 80 s in: 0xc0000005 in VCRUNTIME140.dll+0x1c136 ← tiling::Chain::detile_level ← title_textures::subresources on a subresources_on worker, read at an address in the CPU view behind a GPU view – the decommit race #751 fixes. With the same change applied locally it did not come back.
  • 137 s in, with that change: the watchdog null write at game+0x23cf683, rcx=0x70024c348 rdx=0x1 r8=0x7074d8c40 r9=0x7074d8e20 r10=0x7074d8ad8 r11=0x7074d8c40 r13=0x146845c28 – byte-identical to the registers above. Preceded by a 408 KB compute PSO built in 11.5 s (finished at 131 s) and a first ID3D12GraphicsCommandList10::#101 stub call at 90 s (as in #505).
  • XCL_DRED=1 stalls at startup here too (3 of 3).

AI use: Claude Code (Claude Opus 5.5) read the logs and symbolised the stack; the runs were on my machine.

**@⁠ateezie** on GitHub · 2026-11-24 08:43 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7126487978) RTX 5090 data point (32 GB, Windows 11 26200, xcl `main` beaa245, release, CapFrameX closed): - Reaches past the start-up prompts at a steady 30 fps (the first run, with cold caches, 6.9 fps). - 80 s in: `0xc0000005 in VCRUNTIME140.dll+0x1c136` ← `tiling::Chain::detile_level` ← `title_textures::subresources` on a `subresources_on` worker, read at an address in the CPU view behind a GPU view – the decommit race #751 fixes. With the same change applied locally it did not come back. - 137 s in, with that change: the watchdog null write at `game+0x23cf683`, `rcx=0x70024c348 rdx=0x1 r8=0x7074d8c40 r9=0x7074d8e20 r10=0x7074d8ad8 r11=0x7074d8c40 r13=0x146845c28` – byte-identical to the registers above. Preceded by a 408 KB compute PSO built in 11.5 s (finished at 131 s) and a first `ID3D12GraphicsCommandList10::#101` stub call at 90 s (as in #505). - `XCL_DRED=1` stalls at startup here too (3 of 3). **AI use:** Claude Code (Claude Opus 5.5) read the logs and symbolised the stack; the runs were on my machine.
Author
Owner

@⁠ateezie on GitHub · 2026-11-24 08:58 UTC · original

Follow-up from the RTX 5090 (32 GB, Windows 11 26200), release builds, warm caches, CapFrameX closed:

Baseline: main beaa245 + a local equivalent of #751. Through the start-up prompts at 30 fps. At the end of loading the window title shows compiling shaders: 1 running, 63 done, 57518 pipelines queued on a black screen. The watchdog +0x23cf683 fires at 179 s (137 s on the previous, colder run).

Experiment: main 077ce40 + #751 (4e101fc) + #533 (001e37d), XCL_COMPUTE_PSO_WAIT_MS=1. #708 conflicts with current main in list_x.rs, title_list.rs, cpu_writes.rs and real.rs (18 hunks), so it isn't included. #267 isn't included either, since #533's per-frame budget now covers graphics pipelines too. .\scripts\test.ps1: 722 passed, 0 failed, 41 ignored (2 GPU tests skipped, no wave64).

  • The pipeline stall is gone: compute pipeline … still building after 8 ms – proceeding with stand-in, and by the end 19473 draws (2162 skipped, 256 with PC pipelines), 4871 dispatches (18487 skipped). The screen is green (stand-ins).
  • Presents stop at about 90 s (2100 frames; the last window ran at 13.9 fps). Audio keeps decoding.
  • From about 106 s the sparse queue stops: sparse: the queue has not reached fence value 39143 after 5 s (at 39141), five times, 111.4–131 s (the wanted value goes up to 39149, the reached value stays at 39141).
  • The watchdog +0x23cf683 fires at 136.2 s, with the same registers as before (rcx=0x70024c348 rdx=0x1 r8=0x7074d8c40 r9=0x7074d8e20 r10=0x7074d8ad8 r11=0x7074d8c40 r13=0x146845c28).
  • No Wait64BitValueX timed out lines in this run.

So on this card #533 moves the end from the pipeline waits to a queue that never passes its fence, the same thing as the "preceding queue work never completes" reports above, here seen on the sparse (tile-mapping) queue. Not tested: #708 on this card, since it doesn't merge onto main any more. Happy to run a rebased #708 or per-queue tracing.

AI use: Claude Code (Claude Opus 5.5) merged the PRs locally, ran the tests, read the logs and wrote this. The runs were on my machine.

**@⁠ateezie** on GitHub · 2026-11-24 08:58 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7126802992) Follow-up from the RTX 5090 (32 GB, Windows 11 26200), release builds, warm caches, CapFrameX closed: **Baseline:** `main` beaa245 + a local equivalent of #751. Through the start-up prompts at 30 fps. At the end of loading the window title shows `compiling shaders: 1 running, 63 done, 57518 pipelines queued` on a black screen. The watchdog `+0x23cf683` fires at 179 s (137 s on the previous, colder run). **Experiment:** `main` 077ce40 + #751 (4e101fc) + #533 (001e37d), `XCL_COMPUTE_PSO_WAIT_MS=1`. #708 conflicts with current `main` in `list_x.rs`, `title_list.rs`, `cpu_writes.rs` and `real.rs` (18 hunks), so it isn't included. #267 isn't included either, since #533's per-frame budget now covers graphics pipelines too. `.\scripts\test.ps1`: 722 passed, 0 failed, 41 ignored (2 GPU tests skipped, no wave64). - The pipeline stall is gone: `compute pipeline … still building after 8 ms – proceeding with stand-in`, and by the end `19473 draws (2162 skipped, 256 with PC pipelines), 4871 dispatches (18487 skipped)`. The screen is green (stand-ins). - Presents stop at about 90 s (2100 frames; the last window ran at 13.9 fps). Audio keeps decoding. - From about 106 s the sparse queue stops: `sparse: the queue has not reached fence value 39143 after 5 s (at 39141)`, five times, 111.4–131 s (the wanted value goes up to 39149, the reached value stays at 39141). - The watchdog `+0x23cf683` fires at 136.2 s, with the same registers as before (`rcx=0x70024c348 rdx=0x1 r8=0x7074d8c40 r9=0x7074d8e20 r10=0x7074d8ad8 r11=0x7074d8c40 r13=0x146845c28`). - No `Wait64BitValueX timed out` lines in this run. So on this card #533 moves the end from the pipeline waits to a queue that never passes its fence, the same thing as the "preceding queue work never completes" reports above, here seen on the sparse (tile-mapping) queue. Not tested: #708 on this card, since it doesn't merge onto `main` any more. Happy to run a rebased #708 or per-queue tracing. **AI use:** Claude Code (Claude Opus 5.5) merged the PRs locally, ran the tests, read the logs and wrote this. The runs were on my machine.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 05:41 UTC · original · edited 2026-11-24 08:59 UTC

Outdated (old base d5442d2 + #708). The stop described here was the split-wave64 compute hang that #798 fixed. For current main, see my latest comment below.

I'm working on identifying the batch that never completes ahead of the gate, with per-queue tracing on an RTX 5070 Ti (driver 621.24), main d5442d2 + #708 db4599d. Same end here: one queue reports "preceding queue work", then 0x887a0006.

So far: the title makes no queue Wait calls in the last seconds before the stall, and every earlier gate on that queue opened. The queue stops on ordinary work submitted just before its gate. The three never-written counters are written by lists queued behind it on the same queue. Next: DRED breadcrumbs and per-list markers to name the command. I'll post the result here.

AI use: Claude Code (Claude Opus 5.5) added the tracing and read the logs.

**@⁠CowboyBingus** on GitHub · 2026-11-24 05:41 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7123185040) · edited 2026-11-24 08:59 UTC > **Outdated** (old base `d5442d2` + #708). The stop described here was the split-wave64 compute hang that #798 fixed. For current `main`, see my latest comment below. I'm working on identifying the batch that never completes ahead of the gate, with per-queue tracing on an RTX 5070 Ti (driver 621.24), main `d5442d2` + #708 `db4599d`. Same end here: one queue reports "preceding queue work", then 0x887a0006. So far: the title makes no queue `Wait` calls in the last seconds before the stall, and every earlier gate on that queue opened. The queue stops on ordinary work submitted just before its gate. The three never-written counters are written by lists queued behind it on the same queue. Next: DRED breadcrumbs and per-list markers to name the command. I'll post the result here. AI use: Claude Code (Claude Opus 5.5) added the tracing and read the logs.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 06:36 UTC · original · edited 2026-11-24 09:00 UTC

Outdated and partly wrong (old base d5442d2). The conclusion that the split-wave64 halves fall out of step is wrong: see my correction in the next comment. #798 has since fixed the hang. Kept for the record; for current main, see my latest comment below.

Original comment

Follow-up to my claim above. On an RTX 5070 Ti I find the same thing as @⁠qcdaark's Aftermath dump, by a different method: before #798, the GPU stops inside one split-wave64 compute dispatch.

Setup: RTX 5070 Ti, driver 621.24, Windows 11, main d5442d2 + #714 #744 #708 #680 #533 #267, warm caches, XCL_COMPUTE_PSO_WAIT_MS=0.

How: XCL_DRED=1 stalls the title within 5 s here too, so I used local breadcrumbs instead: after each draw, dispatch and ExecuteIndirect, a WriteBufferImmediate (MARKER_OUT) of the op count into a READBACK slot per recording. When a gate reports "preceding queue work", every submitted recording that hasn't finished is listed.

Result (4 runs, the same each time):

  • In the last seconds the title makes no queue Wait calls, and every earlier gate on the stuck queue opened.
  • The first unfinished list on that queue has done 6 of its 18 ops. Op #6 is a Dispatch(32, 32, 2) of one compute program: console wave64 with [numthreads(4, 4, 4)], translated in the split-wave64 form. With one console wave per group (XCL_X_SPIN 0 before #798), its two halves meet at GroupMemoryBarrierWithGroupSync.
  • The 28 lists queued behind it never start. Lists among them write the three Wait64 counters that never get written. The other gated queues wait on those counters, and then 0x887a0006 (or the +0x23cf683 watchdog when the device isn't removed first).
  • The program's FSSM header has the wave32 bit clear (0x00070000 at +0xD4), so #573 does not change it. The #701 fixes (#721, #728, #729, #765) don't change its HLSL either.

Bounded exchanges for that program alone (XCL_X_SPIN 1, every other program unchanged, 0 dispatches skipped): its dispatch completes. The title then faults reading 0xffffffffffffffff at +0x248c3f4 at 89.9 s. So the two halves do fall out of step in this program, and the timed-out exchanges hand back wrong values.

With #798: no hang and no stuck gates. One run reached the 7,448-dispatch burst and the title then faulted reading 0xffffffffffffffff at +0x4eee124 (85.6 s). That run had skipped 360 dispatches while pipelines built, though, so on its own it doesn't separate the two causes. My other #798 runs stopped earlier on uncached compiles of the new spin form.

So #798 removes the hang. My reading is that the pair still desynchronises in that program, and the result is wrong data instead of a hang. I'm now working on why its halves diverge. Its scalar loads read only descriptors and constants, and its per-half masks (xcl_x_ballot_local) are only read lane by lane, so it isn't either of those.

AI use: Claude Code (Claude Opus 5.5) wrote the breadcrumb diagnostics and read the logs; I ran the tests.

**@⁠CowboyBingus** on GitHub · 2026-11-24 06:36 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7124106298) · edited 2026-11-24 09:00 UTC > **Outdated and partly wrong** (old base `d5442d2`). The conclusion that the split-wave64 halves fall out of step is wrong: see my correction in the next comment. #798 has since fixed the hang. Kept for the record; for current `main`, see my latest comment below. <details><summary>Original comment</summary> Follow-up to my claim above. On an RTX 5070 Ti I find the same thing as @⁠qcdaark's Aftermath dump, by a different method: before #798, the GPU stops inside one split-wave64 compute dispatch. **Setup:** RTX 5070 Ti, driver 621.24, Windows 11, main `d5442d2` + #714 #744 #708 #680 #533 #267, warm caches, `XCL_COMPUTE_PSO_WAIT_MS=0`. **How:** `XCL_DRED=1` stalls the title within 5 s here too, so I used local breadcrumbs instead: after each draw, dispatch and ExecuteIndirect, a `WriteBufferImmediate` (MARKER_OUT) of the op count into a READBACK slot per recording. When a gate reports "preceding queue work", every submitted recording that hasn't finished is listed. **Result (4 runs, the same each time):** - In the last seconds the title makes no queue `Wait` calls, and every earlier gate on the stuck queue opened. - The first unfinished list on that queue has done 6 of its 18 ops. Op #6 is a `Dispatch(32, 32, 2)` of one compute program: console wave64 with `[numthreads(4, 4, 4)]`, translated in the split-wave64 form. With one console wave per group (`XCL_X_SPIN 0` before #798), its two halves meet at `GroupMemoryBarrierWithGroupSync`. - The 28 lists queued behind it never start. Lists among them write the three Wait64 counters that never get written. The other gated queues wait on those counters, and then 0x887a0006 (or the `+0x23cf683` watchdog when the device isn't removed first). - The program's FSSM header has the wave32 bit clear (`0x00070000` at +0xD4), so #573 does not change it. The #701 fixes (#721, #728, #729, #765) don't change its HLSL either. **Bounded exchanges for that program alone** (`XCL_X_SPIN 1`, every other program unchanged, 0 dispatches skipped): its dispatch completes. The title then faults reading `0xffffffffffffffff` at `+0x248c3f4` at 89.9 s. So the two halves do fall out of step in this program, and the timed-out exchanges hand back wrong values. **With #798:** no hang and no stuck gates. One run reached the 7,448-dispatch burst and the title then faulted reading `0xffffffffffffffff` at `+0x4eee124` (85.6 s). That run had skipped 360 dispatches while pipelines built, though, so on its own it doesn't separate the two causes. My other #798 runs stopped earlier on uncached compiles of the new spin form. So #798 removes the hang. My reading is that the pair still desynchronises in that program, and the result is wrong data instead of a hang. I'm now working on why its halves diverge. Its scalar loads read only descriptors and constants, and its per-half masks (`xcl_x_ballot_local`) are only read lane by lane, so it isn't either of those. AI use: Claude Code (Claude Opus 5.5) wrote the breadcrumb diagnostics and read the logs; I ran the tests. </details>
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 07:05 UTC · original · edited 2026-11-24 09:00 UTC

Measured on the old base (d5442d2); kept for the record. For current main, see my latest comment below.

Correction to my comment above: the split-wave64 pair does not fall out of step in that program with bounded exchanges. I inferred it from the 0xffffffffffffffff fault without measuring. Measured now:

  • I instrumented the program (spin form, i.e. what #798 makes the default). On a timed-out exchange, the timing-out half writes a record (its exchange site, the other half's site, the exchange index, the other half's arrival count, active lanes, group) into the dispatch's res buffer. A per-group "started" counter rules out reading before the dispatch ran.
  • 2 runs, 3 back-to-back dispatches of it each, all 2,048 groups ran: 0 timeouts. Each dispatch takes about 1.25 s on the RTX 5070 Ti.
  • Control: the same build with the spin bound cut to 16 polls gives 4,096 timeouts per dispatch, with sensible records. So the counter works.
  • A loop-guard counter (threads that run out of xcl_budget) stays at 0, even with the budget cut to 256.

So with #798 that program finishes with its exchanges intact. Before #798 it still hangs in the barrier form. But the faults after it (0xffffffffffffffff and other bad addresses in the title) don't come from a desynchronised pair in that program, and so far they don't explain the remaining stop either. In these runs the title stops submitting about 30 s before the watchdog, after the dispatches have finished. I'm now logging what the title's threads wait on (fence waits, gate state over time, thread dumps) to find what isn't signalled.

AI use: Claude Code (Claude Opus 5.5) wrote the instrumentation and read the logs; I ran the tests.

**@⁠CowboyBingus** on GitHub · 2026-11-24 07:05 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7124596925) · edited 2026-11-24 09:00 UTC > Measured on the old base (`d5442d2`); kept for the record. For current `main`, see my latest comment below. Correction to my comment above: the split-wave64 pair does **not** fall out of step in that program with bounded exchanges. I inferred it from the `0xffffffffffffffff` fault without measuring. Measured now: - I instrumented the program (spin form, i.e. what #798 makes the default). On a timed-out exchange, the timing-out half writes a record (its exchange site, the other half's site, the exchange index, the other half's arrival count, active lanes, group) into the dispatch's `res` buffer. A per-group "started" counter rules out reading before the dispatch ran. - 2 runs, 3 back-to-back dispatches of it each, all 2,048 groups ran: **0 timeouts**. Each dispatch takes about 1.25 s on the RTX 5070 Ti. - Control: the same build with the spin bound cut to 16 polls gives 4,096 timeouts per dispatch, with sensible records. So the counter works. - A loop-guard counter (threads that run out of `xcl_budget`) stays at 0, even with the budget cut to 256. So with #798 that program finishes with its exchanges intact. Before #798 it still hangs in the barrier form. But the faults after it (`0xffffffffffffffff` and other bad addresses in the title) don't come from a desynchronised pair in that program, and so far they don't explain the remaining stop either. In these runs the title stops submitting about 30 s before the watchdog, after the dispatches have finished. I'm now logging what the title's threads wait on (fence waits, gate state over time, thread dumps) to find what isn't signalled. AI use: Claude Code (Claude Opus 5.5) wrote the instrumentation and read the logs; I ran the tests.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 08:21 UTC · original · edited 2026-11-24 09:00 UTC

Update on current main (09940bb, with #792 #795 #797 #798 #866 #873 #897 #907) + #533 at 001e37d + #906, RTX 5070 Ti, driver 621.24. One run so far.

  • The 30 s stop and the +0x23cf683 watchdog did not come. Before, on an older base, the title thread sat in back-to-back bounded graphics-pipeline waits (execute_indirect → resolve_for_indirect). With #533's per-frame budget it kept rendering in bursts through world load, with presents and thousands of dispatches per 2 s, until 197 s.
  • It then ended in a GPU hang: 0x887a0006 at 197.2 s. Aftermath (global mode) wrote a dump. Device state "Hung", no page fault, and every active warp on every GPC in one compute shader (Aftermath shader hash 0x06ec994002ada2f8, 139.5 KiB of microcode, warps at 4 PCs). Running GFSDK_Aftermath_GetShaderHash over the DXIL cache matches it to one translated program (99,924 B DXIL). Our per-queue breadcrumbs (a WriteBufferImmediate of the op count after each draw/dispatch) agree: a 1001-op list submitted at 186.25 s is stuck at op #90, a Dispatch(1891, 1, 1) of that program. (Edited: I first named a 140 × 1405 instanced draw here. That was only the first unfinished op on another queue, waiting behind this dispatch.)
  • No 0xFF corruption crash this time (#911). Not enough runs yet to call it fixed by #792.

Update (09:00Z), 3 more runs on the same stack. That program is a data-dependent tree walk (an atomic counter per node, then a parent index loaded from memory, looping until it is below 1), so it only spins without end on bad input. With #533's defaults a lot of compute is skipped while its pipeline is still building (in the run above, 37,549 dispatches skipped and 32,768 run). I added breadcrumbs for skipped dispatches:

  • #533 defaults: the GPU stopped at 113 s inside a compute ExecuteIndirect. 2 of the 5 ops before it in the same list were dispatches skipped as still building. No device removal; watchdog at 168 s.
  • Compute pipelines waited for without a bound (as on main; graphics kept #533's budget), 2 runs: no GPU stall. The title stopped presenting at 106 / 116 s and the watchdog came at 130 / 140 s. In both runs one 1.8–2 MB DXIL compute build, started at ~5 s by #690's ahead-of-use builds, held the one big-compile slot for ~90–104 s, and other big pipelines queued behind it.

My reading (not proven: the runs without skipping did not get far enough to rule the shader out): the hang above comes from skipped compute work feeding later dispatches, not from that shader's translation. @⁠Rednaxeh measured the same skip-then-hang pattern on AMD with #891's budget (#891).

The 0xFF corruption (#911) did not come back in 5 runs on current main.

AI use: Claude Code (Claude Opus 5.5) wrote the breadcrumbs and read the logs; I ran the tests.

**@⁠CowboyBingus** on GitHub · 2026-11-24 08:21 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7126036712) · edited 2026-11-24 09:00 UTC Update on current `main` (`09940bb`, with #792 #795 #797 #798 #866 #873 #897 #907) + #533 at `001e37d` + #906, RTX 5070 Ti, driver 621.24. One run so far. - **The 30 s stop and the `+0x23cf683` watchdog did not come.** Before, on an older base, the title thread sat in back-to-back bounded graphics-pipeline waits (`execute_indirect` → `resolve_for_indirect`). With #533's per-frame budget it kept rendering in bursts through world load, with presents and thousands of dispatches per 2 s, until 197 s. - **It then ended in a GPU hang: `0x887a0006` at 197.2 s.** Aftermath (global mode) wrote a dump. Device state "Hung", no page fault, and every active warp on every GPC in one compute shader (Aftermath shader hash `0x06ec994002ada2f8`, 139.5 KiB of microcode, warps at 4 PCs). Running `GFSDK_Aftermath_GetShaderHash` over the DXIL cache matches it to one translated program (99,924 B DXIL). Our per-queue breadcrumbs (a `WriteBufferImmediate` of the op count after each draw/dispatch) agree: a 1001-op list submitted at 186.25 s is stuck at op #90, a `Dispatch(1891, 1, 1)` of that program. *(Edited: I first named a 140 × 1405 instanced draw here. That was only the first unfinished op on another queue, waiting behind this dispatch.)* - **No `0xFF` corruption crash this time (#911).** Not enough runs yet to call it fixed by #792. **Update (09:00Z), 3 more runs on the same stack.** That program is a data-dependent tree walk (an atomic counter per node, then a parent index loaded from memory, looping until it is below 1), so it only spins without end on bad input. With #533's defaults a lot of compute is skipped while its pipeline is still building (in the run above, 37,549 dispatches skipped and 32,768 run). I added breadcrumbs for skipped dispatches: - **#533 defaults:** the GPU stopped at 113 s inside a compute `ExecuteIndirect`. 2 of the 5 ops before it in the same list were dispatches skipped as still building. No device removal; watchdog at 168 s. - **Compute pipelines waited for without a bound** (as on `main`; graphics kept #533's budget), 2 runs: no GPU stall. The title stopped presenting at 106 / 116 s and the watchdog came at 130 / 140 s. In both runs one 1.8–2 MB DXIL compute build, started at ~5 s by #690's ahead-of-use builds, held the one big-compile slot for ~90–104 s, and other big pipelines queued behind it. My reading (not proven: the runs without skipping did not get far enough to rule the shader out): the hang above comes from skipped compute work feeding later dispatches, not from that shader's translation. @⁠Rednaxeh measured the same skip-then-hang pattern on AMD with #891's budget (#891). The `0xFF` corruption (#911) did not come back in 5 runs on current `main`. AI use: Claude Code (Claude Opus 5.5) wrote the breadcrumbs and read the logs; I ran the tests.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 09:16 UTC · original

@⁠ateezie thanks for the offer. I don't need a rebased #708 run for now. For reference, #708 at db4599d conflicts with current main (077ce40) in crates/xcl/src/hle/d3d12x/: the conflicts in list_x.rs and real.rs start with #795, title_list.rs with #797, and cpu_writes.rs with #873. I'll ask here if per-queue tracing would help.

AI use: Claude Code (Claude Opus 5.5) drafted this; I checked it.

**@⁠CowboyBingus** on GitHub · 2026-11-24 09:16 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7127187125) @⁠ateezie thanks for the offer. I don't need a rebased #708 run for now. For reference, #708 at `db4599d` conflicts with current `main` (`077ce40`) in `crates/xcl/src/hle/d3d12x/`: the conflicts in `list_x.rs` and `real.rs` start with #795, `title_list.rs` with #797, and `cpu_writes.rs` with #873. I'll ask here if per-queue tracing would help. AI use: Claude Code (Claude Opus 5.5) drafted this; I checked it.
Author
Owner

@⁠badoomtch on GitHub · 2026-11-24 09:22 UTC · original

I matched the Dispatch(1891, 1, 1) shader from the RTX 5070 Ti trace to RefitBVH4 in XboxBvhBuilder.dll on an RTX 5080 setup.

  • NVIDIA’s GFSDK_Aftermath_GetShaderHash returned 0x06ec994002ada2f8 for the 99,924-byte DXIL. Its DXIL shader hash is aca9bc1ac1f54b4d01bd2fdc9c24ee1c.
  • The translation cache ties those exact DXIL bytes to console CS b6043104de672057. The DLL contains a 34,020-byte DXBC with that source hash. Its ILDN debug name ends in RefitBVH4.pdb.
  • Our run registered that CS at 3.497 s. At 3.822 s XCL logged a 99,924-byte compute PSO created in 50 ms with a driver blob from an earlier run. Our own capture establishes registration and early pipeline creation. We have no GPU trace pinning this run’s stall to that dispatch.

This gives the 5070 Ti trace a specific BVH refit pass whose input buffers can be followed. No title files or shader bytecode attached.

AI use: Codex matched the shader locally and prepared this comment.

**@⁠badoomtch** on GitHub · 2026-11-24 09:22 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7127330687) I matched the `Dispatch(1891, 1, 1)` shader from [the RTX 5070 Ti trace](https://github.com/ivall/xcl/issues/675#issuecomment-7126036712) to **`RefitBVH4` in `XboxBvhBuilder.dll`** on an RTX 5080 setup. - NVIDIA’s `GFSDK_Aftermath_GetShaderHash` returned `0x06ec994002ada2f8` for the 99,924-byte DXIL. Its DXIL shader hash is `aca9bc1ac1f54b4d01bd2fdc9c24ee1c`. - The translation cache ties those exact DXIL bytes to console CS `b6043104de672057`. The DLL contains a 34,020-byte DXBC with that source hash. Its `ILDN` debug name ends in `RefitBVH4.pdb`. - Our run registered that CS at 3.497 s. At 3.822 s XCL logged a 99,924-byte compute PSO created in 50 ms with a driver blob from an earlier run. Our own capture establishes registration and early pipeline creation. We have no GPU trace pinning this run’s stall to that dispatch. This gives the 5070 Ti trace a specific BVH refit pass whose input buffers can be followed. No title files or shader bytecode attached. AI use: Codex matched the shader locally and prepared this comment.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 09:27 UTC · original

@⁠badoomtch thanks for tracing that dispatch's program to RefitBVH4 in XboxBvhBuilder.dll and posting the hashes.

**@⁠CowboyBingus** on GitHub · 2026-11-24 09:27 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7127434192) @⁠badoomtch thanks for tracing that dispatch's program to RefitBVH4 in XboxBvhBuilder.dll and posting the hashes.
Author
Owner

@⁠milas6669 on GitHub · 2026-11-24 07:08 UTC · original · edited 2026-11-24 09:54 UTC

Correction to the setup line (added later): these runs were not entirely without input. The log of each run has GameInput: gamepad buttons 0x4 pressed for the first time (an A press from the PC's keyboard or pad, pressed by hand, not scripted) at 19–166 s depending on the run, and the first call of #101 (the start of world loading) came 70–89 s after that press in 16 of the 17 runs I checked (one run with a 2048 MB coherent window: 106.6 s). So where a comment says the world-load start varies between runs, it follows when A was pressed. The stalls, crashes and the other numbers are as measured.

A second NVIDIA data point that matches @⁠qcdaark's summary above, on a different CPU and an 8 GB 3070.

Setup: RTX 3070 8 GB (32-lane waves), i9-10900KF, 31.9 GB RAM, Windows 11 Pro 10.0.26200, release build of unmodified main beaa245 (no extra PRs), XCL_NETWORK=0, XCL_ACTIVITY=1, 4095 MB coherent window (free commit was above the 17408 MB check, see #284), warm caches, no scripted input. Run through scripts/smoke.ps1 -Seconds 600.

What happened (one run, log timestamps in seconds):

  • 6 s: the title starts presenting, 60 presents per 2 s from 8 s on, then 13.6 fps over the last 300 frames at 90 s (it is slowing down).
  • last window with presents: 110–112 s (8 presents, 338 dispatches).
  • then 0 presents, 0 submits, 0 draws, 0 dispatches in every 2 s window, while the audio goes on (xapu: 17201 Opus packets decoded (0 errors) at 138 s) and the XUser token requests for the auth server are refused (offline).
  • 141.0 s: compute PSO with the translated console CS (526180 B DXIL, 10261 ms), then at 141.4 s unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0).
  • So the null write comes 29.3 s after the last present, in line with the "~28–30 s after presents stop" in the summary above.
  • No device removal, no Wait64BitValueX line, no warning in the silent part of the log. There was no GPU hang in this run.
  • Memory in the silent part: 28.0–28.5 GB committed by the process, 14.1 GB of local video memory on an 8 GB card, 9.7 GB of target pages. (The watchdog I run at 28 GB private memory did not trigger; the process ended by itself.)

One more match: an earlier run of the same binary crashed after 14.6 s with 0xc0000005 in nvwgf2umx.dll+0x85b227 (read at address 0x3c), the same module offset and read address as run 4 in the summary. It happened once in 4 runs of that binary; the next runs started fine.

Not tested: whether the stall changes with a smaller memory footprint, or with #541 / #630 (the AS-slot mesh pipelines, 40 of which are refused in this run), or on AMD. I have not looked at the picture.

AI use: Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment.

**@⁠milas6669** on GitHub · 2026-11-24 07:08 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7124657984) · edited 2026-11-24 09:54 UTC > **Correction to the setup line (added later):** these runs were not entirely without input. The log of each run has `GameInput: gamepad buttons 0x4 pressed for the first time` (an A press from the PC's keyboard or pad, pressed by hand, not scripted) at 19–166 s depending on the run, and the first call of `#101` (the start of world loading) came 70–89 s after that press in 16 of the 17 runs I checked (one run with a 2048 MB coherent window: 106.6 s). So where a comment says the world-load start varies between runs, it follows when A was pressed. The stalls, crashes and the other numbers are as measured. A second NVIDIA data point that matches @⁠qcdaark's summary above, on a different CPU and an 8 GB 3070. **Setup:** RTX 3070 8 GB (32-lane waves), i9-10900KF, 31.9 GB RAM, Windows 11 Pro 10.0.26200, release build of unmodified `main` beaa245 (no extra PRs), `XCL_NETWORK=0`, `XCL_ACTIVITY=1`, 4095 MB coherent window (free commit was above the 17408 MB check, see #284), warm caches, no scripted input. Run through `scripts/smoke.ps1 -Seconds 600`. **What happened (one run, log timestamps in seconds):** - 6 s: the title starts presenting, 60 presents per 2 s from 8 s on, then 13.6 fps over the last 300 frames at 90 s (it is slowing down). - last window with presents: 110–112 s (8 presents, 338 dispatches). - then 0 presents, 0 submits, 0 draws, 0 dispatches in every 2 s window, while the audio goes on (`xapu: 17201 Opus packets decoded (0 errors)` at 138 s) and the XUser token requests for the auth server are refused (offline). - 141.0 s: `compute PSO with the translated console CS (526180 B DXIL, 10261 ms)`, then at **141.4 s** `unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0)`. - So the null write comes 29.3 s after the last present, in line with the "~28–30 s after presents stop" in the summary above. - No device removal, no `Wait64BitValueX` line, no warning in the silent part of the log. There was no GPU hang in this run. - Memory in the silent part: 28.0–28.5 GB committed by the process, 14.1 GB of local video memory on an 8 GB card, 9.7 GB of target pages. (The watchdog I run at 28 GB private memory did not trigger; the process ended by itself.) **One more match:** an earlier run of the same binary crashed after 14.6 s with `0xc0000005 in nvwgf2umx.dll+0x85b227 (read at address 0x3c)`, the same module offset and read address as run 4 in the summary. It happened once in 4 runs of that binary; the next runs started fine. **Not tested:** whether the stall changes with a smaller memory footprint, or with `#541` / `#630` (the AS-slot mesh pipelines, 40 of which are refused in this run), or on AMD. I have not looked at the picture. **AI use:** Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment.
Author
Owner

@⁠milas6669 on GitHub · 2026-11-24 07:14 UTC · original · edited 2026-11-24 09:54 UTC

Correction to the setup line (added later): these runs were not entirely without input. The log of each run has GameInput: gamepad buttons 0x4 pressed for the first time (an A press from the PC's keyboard or pad, pressed by hand, not scripted) at 19–166 s depending on the run, and the first call of #101 (the start of world loading) came 70–89 s after that press in 16 of the 17 runs I checked (one run with a 2048 MB coherent window: 106.6 s). So where a comment says the world-load start varies between runs, it follows when A was pressed. The stalls, crashes and the other numbers are as measured.

Same machine and setup as my comment above, now on main a1672ef (includes #866, the late-release change), one run, scripts/smoke.ps1 -Seconds 600, warm caches, 4095 MB coherent window, no scripted input:

main beaa245 main a1672ef
last window with presents 110–112 s 104–106 s
2 s windows with 0 presents 82–86 s (DirectStorage 6275 requests), 88–90 s, then 112 s to the end 78–80 s (1987 requests), 82–84 s (646), then 106 s to the end
title's null write at +0x23cf683 141.4 s (29.3 s after the last present) 135.4 s (about 29–30 s after the last present)
device removals / Wait64 lines 0 / 0 0 / 0
peak process commit 28.6 GB 28.5 GB

So #866 does not change this: the freeze starts around 105–112 s, nothing is submitted for the last ~29 s while the audio keeps going, and the title ends itself with the same instruction. The two short stalls before it recover and line up with DirectStorage bursts (loading), so they look like ordinary loading; only the last one does not.

Not tested: more than one run per build; AMD.

AI use: Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment.

**@⁠milas6669** on GitHub · 2026-11-24 07:14 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7124769739) · edited 2026-11-24 09:54 UTC > **Correction to the setup line (added later):** these runs were not entirely without input. The log of each run has `GameInput: gamepad buttons 0x4 pressed for the first time` (an A press from the PC's keyboard or pad, pressed by hand, not scripted) at 19–166 s depending on the run, and the first call of `#101` (the start of world loading) came 70–89 s after that press in 16 of the 17 runs I checked (one run with a 2048 MB coherent window: 106.6 s). So where a comment says the world-load start varies between runs, it follows when A was pressed. The stalls, crashes and the other numbers are as measured. Same machine and setup as my comment above, now on `main` a1672ef (includes #866, the late-release change), one run, `scripts/smoke.ps1 -Seconds 600`, warm caches, 4095 MB coherent window, no scripted input: | | `main` beaa245 | `main` a1672ef | |---|---|---| | last window with presents | 110–112 s | 104–106 s | | 2 s windows with 0 presents | 82–86 s (DirectStorage 6275 requests), 88–90 s, then 112 s to the end | 78–80 s (1987 requests), 82–84 s (646), then 106 s to the end | | title's null write at `+0x23cf683` | 141.4 s (29.3 s after the last present) | 135.4 s (about 29–30 s after the last present) | | device removals / Wait64 lines | 0 / 0 | 0 / 0 | | peak process commit | 28.6 GB | 28.5 GB | So #866 does not change this: the freeze starts around 105–112 s, nothing is submitted for the last ~29 s while the audio keeps going, and the title ends itself with the same instruction. The two short stalls before it recover and line up with DirectStorage bursts (loading), so they look like ordinary loading; only the last one does not. **Not tested:** more than one run per build; AMD. **AI use:** Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment.
Author
Owner

@⁠milas6669 on GitHub · 2026-11-24 07:23 UTC · original · edited 2026-11-24 09:54 UTC

Correction to the setup line (added later): these runs were not entirely without input. The log of each run has GameInput: gamepad buttons 0x4 pressed for the first time (an A press from the PC's keyboard or pad, pressed by hand, not scripted) at 19–166 s depending on the run, and the first call of #101 (the start of world loading) came 70–89 s after that press in 16 of the 17 runs I checked (one run with a 2048 MB coherent window: 106.6 s). So where a comment says the world-load start varies between runs, it follows when A was pressed. The stalls, crashes and the other numbers are as measured.

One more run on the same machine and setup, now on main 1ec4c98 (includes #866 and the #873 queue-wait diagnostics), scripts/smoke.ps1 -Seconds 600, warm caches, no scripted input:

beaa245 a1672ef 1ec4c98
last 2 s window with presents ends at 112 s 106 s 146 s
title's null write at +0x23cf683 141.4 s 135.4 s 174.4 s
gap between the two 29 s 29 s 28 s
frames presented before the freeze 2100 2100 3000
compute PSO with the translated console CS lines 28 49 85
graphics PSOs from translated shaders / mesh pipelines refused / BCPack failures 6 / 40 / 4 6 / 40 / 4 6 / 40 / 4
  • The freeze and the self-kill are the same (0 submits for 28 s, no device removal). The run is longer this time, but I only have one run per build, and the three runs differ by up to 40 s, so I cannot tell whether 1ec4c98 changes anything or this is run-to-run spread.
  • The #873 diagnostics did not print anything: the log has 0 lines with had not got there (the cpu_writes warning) and 0 with has not reached fence value (the sparse-queue warning). So in this run neither of those two waits timed out during the freeze; other waits are not covered by them.

Not tested: more than one run per build; AMD.

AI use: Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment.

**@⁠milas6669** on GitHub · 2026-11-24 07:23 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7124937157) · edited 2026-11-24 09:54 UTC > **Correction to the setup line (added later):** these runs were not entirely without input. The log of each run has `GameInput: gamepad buttons 0x4 pressed for the first time` (an A press from the PC's keyboard or pad, pressed by hand, not scripted) at 19–166 s depending on the run, and the first call of `#101` (the start of world loading) came 70–89 s after that press in 16 of the 17 runs I checked (one run with a 2048 MB coherent window: 106.6 s). So where a comment says the world-load start varies between runs, it follows when A was pressed. The stalls, crashes and the other numbers are as measured. One more run on the same machine and setup, now on `main` 1ec4c98 (includes #866 and the #873 queue-wait diagnostics), `scripts/smoke.ps1 -Seconds 600`, warm caches, no scripted input: | | beaa245 | a1672ef | 1ec4c98 | |---|---|---|---| | last 2 s window with presents ends at | 112 s | 106 s | 146 s | | title's null write at `+0x23cf683` | 141.4 s | 135.4 s | **174.4 s** | | gap between the two | 29 s | 29 s | 28 s | | frames presented before the freeze | 2100 | 2100 | 3000 | | `compute PSO with the translated console CS` lines | 28 | 49 | 85 | | graphics PSOs from translated shaders / mesh pipelines refused / BCPack failures | 6 / 40 / 4 | 6 / 40 / 4 | 6 / 40 / 4 | - The freeze and the self-kill are the same (0 submits for 28 s, no device removal). The run is longer this time, but I only have one run per build, and the three runs differ by up to 40 s, so I cannot tell whether 1ec4c98 changes anything or this is run-to-run spread. - The #873 diagnostics did not print anything: the log has 0 lines with `had not got there` (the cpu_writes warning) and 0 with `has not reached fence value` (the sparse-queue warning). So in this run neither of those two waits timed out during the freeze; other waits are not covered by them. **Not tested:** more than one run per build; AMD. **AI use:** Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment.
Author
Owner

@⁠milas6669 on GitHub · 2026-11-24 08:06 UTC · original · edited 2026-11-24 09:54 UTC

Correction to the setup line (added later): these runs were not entirely without input. The log of each run has GameInput: gamepad buttons 0x4 pressed for the first time (an A press from the PC's keyboard or pad, pressed by hand, not scripted) at 19–166 s depending on the run, and the first call of #101 (the start of world loading) came 70–89 s after that press in 16 of the 17 runs I checked (one run with a 2048 MB coherent window: 106.6 s). So where a comment says the world-load start varies between runs, it follows when A was pressed. The stalls, crashes and the other numbers are as measured.

Nine runs, three builds, interleaved (new, old, other, three rounds), same machine and setup as my comments above: RTX 3070 8 GB, i9-10900KF, 4095 MB coherent window in every run, warm caches, no scripted input, scripts/smoke.ps1 -Seconds 400.

build run last 2 s window with presents ends at frames before it how the run ended
new 1 92 s 2400 D3D12 device hung, exit 0x887a0006
new 2 104 s 2100 my 28 GB memory watchdog killed it
new 3 102 s 2100 +0x23cf683 null write at 131.4 s, then the process hung in its crash path (no process ends line) and I killed it
old 1 244 s 6000 my watchdog
old 2 108 s 2100 my watchdog
old 3 112 s 2100 my watchdog
other 1 154 s 3300 my watchdog
other 2 106 s 1800 my watchdog
other 3 114 s 2100 my watchdog
  • Caveat on the endings: seven runs ended at the 28 GB private-memory limit I use to protect the machine (exit 0xffffffff). The freeze, with 0 submits, had started before that, but the title's own self-kill (about 29 s after the last present) may not have been reached in those runs. So the "how the run ended" column is censored by my watchdog, and I do not claim those runs "did not crash".
  • What I can say from the last-present column: the last frame comes at 92–114 s in seven of the nine runs, and at 154 s and 244 s in the other two; the medians are 102 s (new), 112 s (old) and 114 s (other). With three runs each, the spread inside a build (old: 108 to 244 s) is larger than any difference between builds, so I see no evidence that 1ec4c98 or the four extra PRs change it.
  • One of the three new runs ended in a GPU hang (0x887a0006), which is the hang from the first report in this issue. It did not happen in the six old/other runs.
  • In the run where the crash path hung, the log has unhandled exception ... +0x23cf683 but not the process ends with status line that the other crashes print about 1.3 s later; the window stayed "not responding" until I killed it.

Not tested: more runs per build; a higher memory limit (so the self-kill can happen in every run); AMD.

AI use: Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment.

**@⁠milas6669** on GitHub · 2026-11-24 08:06 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7125741787) · edited 2026-11-24 09:54 UTC > **Correction to the setup line (added later):** these runs were not entirely without input. The log of each run has `GameInput: gamepad buttons 0x4 pressed for the first time` (an A press from the PC's keyboard or pad, pressed by hand, not scripted) at 19–166 s depending on the run, and the first call of `#101` (the start of world loading) came 70–89 s after that press in 16 of the 17 runs I checked (one run with a 2048 MB coherent window: 106.6 s). So where a comment says the world-load start varies between runs, it follows when A was pressed. The stalls, crashes and the other numbers are as measured. Nine runs, three builds, interleaved (new, old, other, three rounds), same machine and setup as my comments above: RTX 3070 8 GB, i9-10900KF, 4095 MB coherent window in every run, warm caches, no scripted input, `scripts/smoke.ps1 -Seconds 400`. - **new** = `main` 1ec4c98, **old** = `main` beaa245, **other** = 1ec4c98 + #789 + #799 + #628 + #774 (merged locally, clean, all four are open PRs). | build | run | last 2 s window with presents ends at | frames before it | how the run ended | |---|---|---|---|---| | new | 1 | 92 s | 2400 | D3D12 device hung, exit `0x887a0006` | | new | 2 | 104 s | 2100 | my 28 GB memory watchdog killed it | | new | 3 | 102 s | 2100 | `+0x23cf683` null write at 131.4 s, then the process hung in its crash path (no `process ends` line) and I killed it | | old | 1 | **244 s** | 6000 | my watchdog | | old | 2 | 108 s | 2100 | my watchdog | | old | 3 | 112 s | 2100 | my watchdog | | other | 1 | 154 s | 3300 | my watchdog | | other | 2 | 106 s | 1800 | my watchdog | | other | 3 | 114 s | 2100 | my watchdog | - **Caveat on the endings:** seven runs ended at the 28 GB private-memory limit I use to protect the machine (exit `0xffffffff`). The freeze, with 0 submits, had started before that, but the title's own self-kill (about 29 s after the last present) may not have been reached in those runs. So the "how the run ended" column is censored by my watchdog, and I do not claim those runs "did not crash". - **What I can say from the last-present column:** the last frame comes at 92–114 s in seven of the nine runs, and at 154 s and 244 s in the other two; the medians are 102 s (new), 112 s (old) and 114 s (other). With three runs each, the spread inside a build (old: 108 to 244 s) is larger than any difference between builds, so I see no evidence that 1ec4c98 or the four extra PRs change it. - One of the three `new` runs ended in a GPU hang (`0x887a0006`), which is the hang from the first report in this issue. It did not happen in the six `old`/`other` runs. - In the run where the crash path hung, the log has `unhandled exception ... +0x23cf683` but not the `process ends with status` line that the other crashes print about 1.3 s later; the window stayed "not responding" until I killed it. **Not tested:** more runs per build; a higher memory limit (so the self-kill can happen in every run); AMD. **AI use:** Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment.
Author
Owner

@⁠milas6669 on GitHub · 2026-11-24 09:47 UTC · original · edited 2026-11-24 09:54 UTC

Correction to the setup line (added later): these runs were not entirely without input. The log of each run has GameInput: gamepad buttons 0x4 pressed for the first time (an A press from the PC's keyboard or pad, pressed by hand, not scripted) at 19–166 s depending on the run, and the first call of #101 (the start of world loading) came 70–89 s after that press in 16 of the 17 runs I checked (one run with a 2048 MB coherent window: 106.6 s). So where a comment says the world-load start varies between runs, it follows when A was pressed. The stalls, crashes and the other numbers are as measured.

A measurement that may explain the stall on a 32 GB machine, and two experiments that did not cure it. Same RTX 3070 8 GB / i9-10900KF / 31.9 GB RAM / Windows 11 setup as above, main 077ce40 + #891 (XCL_PSO_WAIT_MS=50), release, warm caches, no scripted input.

What the system was doing during the stall. I logged \Memory\Available Bytes, Commit Limit and Committed Bytes once a second through a 300 s run (#101 at 148.95 s, zero presents 164–186 s in the log, then the title's own +0x23cf683 exit at 242.5 s). The log start was about 10:06:06 by the wall clock (I matched the two by the start time, so they can be off by a few seconds):

wall time free commit available RAM the game's private bytes
10:08:11 (log ~125 s) 8.0 GB 11.8 GB 17.3 GB
10:08:26 1.0 GB 4.7 GB 23.9 GB
10:08:41 0.4 GB 1.9 GB 26.4 GB
10:08:52 (log ~166 s, the stall starts) 0.6 GB 0.5 GB 28.3 GB
10:09:07 1.8 GB 1.2 GB 28.1 GB
10:09:12 (log ~186 s, the stall ends) 1.5 GB 1.5 GB 28.5 GB
10:09:37 to 10:10:08 0.4–1.4 GB 0.5–0.8 GB 29.5–29.9 GB
  • From about 10:08:41 on, available physical RAM was 0.5–1.9 GB for the rest of the run, with the game holding 28–30 GB on a machine with 31.9 GB. That is when Windows pages heavily, which fits a CPU-side wait with an idle GPU (0–1 % nvidia-smi utilisation in the stall, see my comment on #891). It is a correlation from one run, not a proven cause.
  • It also fits the state in the dumps: the title's xcl-pso-pre-* workers wait for the one big-compile slot and for wait_for_commit (needs 3 GB of free commit), with free commit at 0.3–1.8 GB.

Two things I tried that did not help (one run each):

  1. Lowering XCL's two memory gates (wait_for_commit from 3 GB to 256 MB, and the DXC reserve from 6 GB to 1 GB) through a local patch: worse. The game's commit rose faster (25.9 GB at 98 s against about 18 GB at the same time in other runs), presents fell to 1–6 per 2 s from about 96 s, the title never reached world loading, and my 31 GB watchdog ended the run. So the gates look protective; the stall is not XCL throttling itself.
  2. A smaller footprint (#640 XCL_PAGE_BUDGET_MB=3500 and XCL_COHERENT_MB=2048): the game's commit was still 29.2 GB at 143 s, and the run ended at 141.5 s with a different crash: D3D12 XDXR Error: DestAccelerationStructureData can not have more than 40b of address set, then the C++ exception 0xe06d7363 out of xboxbvhbuilder.dll (that is #585). None of my six other logs with the default 4095 MB window has that line, so the 2 GB window seems to have moved some address past 2^40 here. So that run says nothing about whether less memory removes the stall.

Not tested: more RAM or a larger page file (I changed no system setting); other budgets; AMD.

AI use: Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment.

**@⁠milas6669** on GitHub · 2026-11-24 09:47 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7127885673) · edited 2026-11-24 09:54 UTC > **Correction to the setup line (added later):** these runs were not entirely without input. The log of each run has `GameInput: gamepad buttons 0x4 pressed for the first time` (an A press from the PC's keyboard or pad, pressed by hand, not scripted) at 19–166 s depending on the run, and the first call of `#101` (the start of world loading) came 70–89 s after that press in 16 of the 17 runs I checked (one run with a 2048 MB coherent window: 106.6 s). So where a comment says the world-load start varies between runs, it follows when A was pressed. The stalls, crashes and the other numbers are as measured. A measurement that may explain the stall on a 32 GB machine, and two experiments that did not cure it. Same RTX 3070 8 GB / i9-10900KF / 31.9 GB RAM / Windows 11 setup as above, `main` 077ce40 + #891 (`XCL_PSO_WAIT_MS=50`), release, warm caches, no scripted input. **What the system was doing during the stall.** I logged `\Memory\Available Bytes`, `Commit Limit` and `Committed Bytes` once a second through a 300 s run (`#101` at 148.95 s, zero presents 164–186 s in the log, then the title's own `+0x23cf683` exit at 242.5 s). The log start was about 10:06:06 by the wall clock (I matched the two by the start time, so they can be off by a few seconds): | wall time | free commit | available RAM | the game's private bytes | |---|---|---|---| | 10:08:11 (log ~125 s) | 8.0 GB | 11.8 GB | 17.3 GB | | 10:08:26 | 1.0 GB | 4.7 GB | 23.9 GB | | 10:08:41 | 0.4 GB | 1.9 GB | 26.4 GB | | 10:08:52 (log ~166 s, the stall starts) | 0.6 GB | **0.5 GB** | 28.3 GB | | 10:09:07 | 1.8 GB | 1.2 GB | 28.1 GB | | 10:09:12 (log ~186 s, the stall ends) | 1.5 GB | 1.5 GB | 28.5 GB | | 10:09:37 to 10:10:08 | 0.4–1.4 GB | 0.5–0.8 GB | 29.5–29.9 GB | - From about 10:08:41 on, **available physical RAM was 0.5–1.9 GB** for the rest of the run, with the game holding 28–30 GB on a machine with 31.9 GB. That is when Windows pages heavily, which fits a CPU-side wait with an idle GPU (0–1 % `nvidia-smi` utilisation in the stall, see my comment on #891). It is a correlation from one run, not a proven cause. - It also fits the state in the dumps: the title's `xcl-pso-pre-*` workers wait for the one big-compile slot and for `wait_for_commit` (needs 3 GB of free commit), with free commit at 0.3–1.8 GB. **Two things I tried that did not help** (one run each): 1. Lowering XCL's two memory gates (`wait_for_commit` from 3 GB to 256 MB, and the DXC reserve from 6 GB to 1 GB) through a local patch: worse. The game's commit rose faster (25.9 GB at 98 s against about 18 GB at the same time in other runs), presents fell to 1–6 per 2 s from about 96 s, the title never reached world loading, and my 31 GB watchdog ended the run. So the gates look protective; the stall is not XCL throttling itself. 2. A smaller footprint (#640 `XCL_PAGE_BUDGET_MB=3500` and `XCL_COHERENT_MB=2048`): the game's commit was still 29.2 GB at 143 s, and the run ended at 141.5 s with a different crash: `D3D12 XDXR Error: DestAccelerationStructureData can not have more than 40b of address set`, then the C++ exception `0xe06d7363` out of `xboxbvhbuilder.dll` (that is #585). None of my six other logs with the default 4095 MB window has that line, so the 2 GB window seems to have moved some address past 2^40 here. So that run says nothing about whether less memory removes the stall. **Not tested:** more RAM or a larger page file (I changed no system setting); other budgets; AMD. **AI use:** Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 09:57 UTC · original

@⁠imnicho thanks for the comparison. I'm decoding the Aftermath dump of a new device hang on our side (current main + #891 + #680 and others, RTX 5070 Ti) and will post what it shows here.

**@⁠CowboyBingus** on GitHub · 2026-11-24 09:57 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7128113065) @⁠imnicho thanks for the comparison. I'm decoding the Aftermath dump of a new device hang on our side (current main + #891 + #680 and others, RTX 5070 Ti) and will post what it shows here.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 10:07 UTC · original

@⁠milas6669 thanks for the memory numbers on the 164–186 s stall; noted for our runs.

**@⁠CowboyBingus** on GitHub · 2026-11-24 10:07 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7128355558) @⁠milas6669 thanks for the memory numbers on the 164–186 s stall; noted for our runs.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 10:12 UTC · original

@⁠imnicho here is what our dumps show, RTX 5070 Ti, driver 621.24, retail build, one run each:

  • main 9aec53d + #891 (XCL_PSO_WAIT_MS=50) + #906 #751 #549 #905 #820 (XCL_BIG_COMPILES=2) #759 #924 #680 (heap windows off) + #631 (applied by hand): 0 presents in the 2 s windows logged 82–104 s; 0–3 presents and 0–90 submits per window from 106 to 128 s; no null write at +0x23cf683; 0x887a0006 at 173.8 s. Aftermath: "Hung", no page fault, every PC in compute shader hash 0x33f581a98cc2a874. Hashing our 9,407 cached DXIL programs with GFSDK_Aftermath_GetShaderHash gives one match, 120,488 B; its driver-cache file is cb48c2b29fcdfa5a-1d6a8-0.pso.
  • Earlier run (main 09940bb + #533 + #906 + local breadcrumbs): a list submitted at 113.4 s still had 5 of 9 ops done at 122.7, 133.2, 138.3 and 143.3 s. Op #5 is an ExecuteIndirect of that same cb48c2b29fcdfa5a-1d6a8-0.pso. That run ended in the null write at +0x23cf683 at 168.8 s, not in a device removal.
  • Same exe and env plus XCL_HEAP_WINDOWS=1: 0 presents in windows logged 80–102 s, then 1 each at 104, 106 and 110 s; 0x887a0006 at 115.1 s. Aftermath "Hung", PCs in nine hashes, most in 0x30bf4b6d2c26faaa, none in 0x33f581a98cc2a874.

That name comes from runs with heap windows off. Your stack had them on, which changes the translated shaders, so the name may not carry over.

AI use: Claude Code (Claude Opus 5.5) ran the tools and wrote this; the runs were on my machine.

**@⁠CowboyBingus** on GitHub · 2026-11-24 10:12 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7128457999) @⁠imnicho here is what our dumps show, RTX 5070 Ti, driver 621.24, retail build, one run each: - **`main` `9aec53d` + #891 (`XCL_PSO_WAIT_MS=50`) + #906 #751 #549 #905 #820 (`XCL_BIG_COMPILES=2`) #759 #924 #680 (heap windows off) + #631 (applied by hand):** 0 presents in the 2 s windows logged 82–104 s; 0–3 presents and 0–90 submits per window from 106 to 128 s; no null write at `+0x23cf683`; `0x887a0006` at 173.8 s. Aftermath: "Hung", no page fault, every PC in compute shader hash `0x33f581a98cc2a874`. Hashing our 9,407 cached DXIL programs with `GFSDK_Aftermath_GetShaderHash` gives one match, 120,488 B; its driver-cache file is `cb48c2b29fcdfa5a-1d6a8-0.pso`. - **Earlier run** (`main` `09940bb` + #533 + #906 + local breadcrumbs): a list submitted at 113.4 s still had 5 of 9 ops done at 122.7, 133.2, 138.3 and 143.3 s. Op #5 is an `ExecuteIndirect` of that same `cb48c2b29fcdfa5a-1d6a8-0.pso`. That run ended in the null write at `+0x23cf683` at 168.8 s, not in a device removal. - **Same exe and env plus `XCL_HEAP_WINDOWS=1`:** 0 presents in windows logged 80–102 s, then 1 each at 104, 106 and 110 s; `0x887a0006` at 115.1 s. Aftermath "Hung", PCs in nine hashes, most in `0x30bf4b6d2c26faaa`, none in `0x33f581a98cc2a874`. That name comes from runs with heap windows off. Your stack had them on, which changes the translated shaders, so the name may not carry over. AI use: Claude Code (Claude Opus 5.5) ran the tools and wrote this; the runs were on my machine.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 10:15 UTC · original

main 02bfd1d (with #891, #631, #551, #693), XCL_PSO_WAIT_MS=50, RTX 5070 Ti, driver 621.24, one run:

  • 0 presents in the 2 s activity windows logged 78–102 s, then 1–3 presents and 28–102 submits per window from 104 to 114 s, then 0 in the windows logged 116–120 s, the last ones logged.
  • sparse: the queue has not reached fence value 44951 after 5 s (at 44950) at 124.4 s and 129.4 s.
  • 0x887a0006 at 129.6 s. Aftermath: "Hung", no page fault, every PC in compute shader hash 0x33f581a98cc2a874.

That is the same shader hash as the device hang in the run I posted above (9aec53d + #891 and other PRs, heap windows off), whose DXIL our cache names cb48c2b29fcdfa5a-1d6a8-0.pso.

I'm working on what that program does and why it does not finish on this machine.

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

**@⁠CowboyBingus** on GitHub · 2026-11-24 10:15 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7128540878) `main` `02bfd1d` (with #891, #631, #551, #693), `XCL_PSO_WAIT_MS=50`, RTX 5070 Ti, driver 621.24, one run: - 0 presents in the 2 s activity windows logged 78–102 s, then 1–3 presents and 28–102 submits per window from 104 to 114 s, then 0 in the windows logged 116–120 s, the last ones logged. - `sparse: the queue has not reached fence value 44951 after 5 s (at 44950)` at 124.4 s and 129.4 s. - `0x887a0006` at 129.6 s. Aftermath: "Hung", no page fault, every PC in compute shader hash `0x33f581a98cc2a874`. That is the same shader hash as the device hang in the run I posted above (`9aec53d` + #891 and other PRs, heap windows off), whose DXIL our cache names `cb48c2b29fcdfa5a-1d6a8-0.pso`. I'm working on what that program does and why it does not finish on this machine. AI use: Claude Code (Claude Opus 5.5) ran the tools and wrote this; the run was on my machine.
Author
Owner

@⁠milas6669 on GitHub · 2026-11-24 10:16 UTC · original

A data point on the new main (6efdabc, which now contains #891, #551, #693 and #631), two runs, to see where an 8 GB card with 32 GB of RAM stands now.

Setup: RTX 3070 8 GB (32-lane waves), i9-10900KF, 31.9 GB RAM, Windows 11 Pro 10.0.26200, release build of main 6efdabc, XCL_PSO_WAIT_MS=50, XCL_NETWORK=0, XCL_PRESS_A_AT=25 (the logged A press was at 25.03 s and 25.04 s, so the runs are comparable), 4095 MB coherent window, warm caches. \Memory\Available Bytes logged once a second.

N1 N2
world loading starts (#101) 124.7 s 106.2 s
last 2 s window with presents 128.1 s 118.1 s
available RAM at its lowest 0.0 GB 0.0 GB
the game's private bytes at the end 31.6 GB 31.0 GB
how the run ended my 31 GB watchdog (commit 32.2 GB) my 31 GB watchdog (commit 30.6 GB)
device removal / more than 40b / null write 0 / 0 / not reached 0 / 0 / not reached
  • Both runs get into world loading and the presents stop 3–12 s later, while the machine has no free RAM. The more than 40b of address set line (#585) did not appear in either run, which fits #631 being merged.
  • Because my watchdog ends a run at 31 GB of private memory, I cannot say whether the title's own +0x23cf683 exit would follow: in earlier runs without the cap on the game's memory it did, about 29–50 s after the last present.

Not tested: more RAM or a larger page file; other budgets; AMD.

AI use: Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment.

**@⁠milas6669** on GitHub · 2026-11-24 10:16 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7128563766) A data point on the new `main` (6efdabc, which now contains #891, #551, #693 and #631), two runs, to see where an 8 GB card with 32 GB of RAM stands now. **Setup:** RTX 3070 8 GB (32-lane waves), i9-10900KF, 31.9 GB RAM, Windows 11 Pro 10.0.26200, release build of `main` 6efdabc, `XCL_PSO_WAIT_MS=50`, `XCL_NETWORK=0`, `XCL_PRESS_A_AT=25` (the logged A press was at 25.03 s and 25.04 s, so the runs are comparable), 4095 MB coherent window, warm caches. `\Memory\Available Bytes` logged once a second. | | N1 | N2 | |---|---|---| | world loading starts (`#101`) | 124.7 s | 106.2 s | | last 2 s window with presents | 128.1 s | 118.1 s | | available RAM at its lowest | 0.0 GB | 0.0 GB | | the game's private bytes at the end | 31.6 GB | 31.0 GB | | how the run ended | my 31 GB watchdog (commit 32.2 GB) | my 31 GB watchdog (commit 30.6 GB) | | device removal / `more than 40b` / null write | 0 / 0 / not reached | 0 / 0 / not reached | - Both runs get into world loading and the presents stop 3–12 s later, while the machine has no free RAM. The `more than 40b of address set` line (#585) did not appear in either run, which fits #631 being merged. - Because my watchdog ends a run at 31 GB of private memory, I cannot say whether the title's own `+0x23cf683` exit would follow: in earlier runs without the cap on the game's memory it did, about 29–50 s after the last present. **Not tested:** more RAM or a larger page file; other budgets; AMD. **AI use:** Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment.
Author
Owner

@⁠fuckdcma on GitHub · 2026-11-24 10:20 UTC · original

Additional data point on Windows 11 build 26100, AMD Radeon RX 6700 XT (12 GB), driver 32.0.21045.5002. Local XCL release build with XCL_NETWORK=0, XCL_PSO_WAIT_MS=0 and XCL_PSO_PRELOAD=1.

  • During the story intro, the sparse queue stopped advancing at fence 42802. XCL reported repeated 5-second waits for 42803 and 42804.
  • At 191.710 s, XCL logged DXGI_ERROR_DEVICE_HUNG (0x887A0006) and a null write at game_scarlett_master.exe+0x2215c35. The preceding run logged DXGI_ERROR_DEVICE_RESET (0x887A0007).
  • Windows captured VIDEO_ENGINE_TIMEOUT_DETECTED (0x141), bucket LKD_0x141_IMAGE_amdkmdag.sys. The display went black. After reboot, the GPU had to be disabled and re-enabled in Device Manager.

DRED was not captured in this run. The first failing GPU command is unknown. AI use: Codex (GPT-6.2 Sol) reviewed the logs and drafted this comment.

**@⁠fuckdcma** on GitHub · 2026-11-24 10:20 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7128651764) Additional data point on Windows 11 build 26100, AMD Radeon RX 6700 XT (12 GB), driver 32.0.21045.5002. Local XCL release build with XCL_NETWORK=0, XCL_PSO_WAIT_MS=0 and XCL_PSO_PRELOAD=1. - During the story intro, the sparse queue stopped advancing at fence 42802. XCL reported repeated 5-second waits for 42803 and 42804. - At 191.710 s, XCL logged DXGI_ERROR_DEVICE_HUNG (0x887A0006) and a null write at game_scarlett_master.exe+0x2215c35. The preceding run logged DXGI_ERROR_DEVICE_RESET (0x887A0007). - Windows captured VIDEO_ENGINE_TIMEOUT_DETECTED (0x141), bucket LKD_0x141_IMAGE_amdkmdag.sys. The display went black. After reboot, the GPU had to be disabled and re-enabled in Device Manager. DRED was not captured in this run. The first failing GPU command is unknown. AI use: Codex (GPT-6.2 Sol) reviewed the logs and drafted this comment.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 10:36 UTC · original

@⁠milas6669 @⁠fuckdcma thanks for the runs and numbers; noted for our next ones.

**@⁠CowboyBingus** on GitHub · 2026-11-24 10:36 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7128996558) @⁠milas6669 @⁠fuckdcma thanks for the runs and numbers; noted for our next ones.
Author
Owner

@⁠imnicho on GitHub · 2026-11-24 09:41 UTC · original · edited 2026-11-24 10:41 UTC

Why XCL_DRED=1 stalls at startup, and the breadcrumbs of the device removal on an RTX 5080

@⁠qcdaark @⁠ateezie – the stall with XCL_DRED=1 is two threads waiting for each other, and there are two ways into it:

  • one thread is in a submit: sparse::before_execute → State::upload_dirty → State::begin_slot → ID3D12CommandAllocator::Reset, waiting for a lock inside D3D12Core with XCL's sparse-state mutex held;
  • the other is in the title's Reset of a command list, inside D3D12Core, which makes a resource's last Release there → XCL's release hook → the sparse-state mutex, (1) in sparse::forget_buffer – #789 closes that one – and, with #789 merged, (2) in late_release::hold → drain_known → sparse::queue() – #968 closes that one.

With XCL_DRED=1, 45 s runs, 3 rounds: main, main + #789 and main + #968 each show 1 frame and stand still from 8 – 11 s in every run; main + #789 + #968 shows 918 / 910 / 920 frames (table in #968). So breadcrumbs need both.

With both, one run to the device removal here

  • Stack: main 09940bb + #789 + #968 + #891 with XCL_PSO_WAIT_MS=50 (+ #266, #684, #680 with heap windows on, #744). RTX 5080 16 GB, driver 610.47 (32-lane waves), i7-7700K, 16 GB RAM, Windows 10 19045, Agility SDK 620, DXC 1.9.2602.17, release. XCL_NETWORK=0, scripted pad.
  • First #101 stub call at 129.3 s, 7 021 dispatches in the 2 s after it, then two more presents (157 s, 163 s), 0x887a0006 at 167.7 s.
  • GPU waits released on the CPU after 5 s: 4 at 136.7 s (completed=0x0 – the first long stretch starts right with the set-up's burst), 29 more between 161.9 and 167.2 s.
  • DRED: no page fault (VA 0, no allocations named). Breadcrumbs: 40 unfinished list entries on four queues. 39 are not begun (BEGIN_COMMAND_LIST). One is in flight: 11 of its 20 operations done, the 12th an EXECUTEINDIRECT – around it RESOURCEBARRIER, DISPATCH, RESOURCEBARRIER, >EXECUTEINDIRECT, RESOURCEBARRIER, DISPATCH.

So on this machine the GPU stopped inside an ExecuteIndirect of a 20-operation list, where @⁠CowboyBingus's Aftermath dump has a plain Dispatch(1891, 1, 1) at op 90 of a 1001-op list. I have not named the program: it may be the same tree walk reached through an indirect dispatch, or another one. Caveat for my run: by then more than 513 pipelines had gone late and 636 dispatches had been skipped (#891's budget), so input left unwritten by a skipped pass is possible here – an indirect call also takes its counts from a buffer.

Not tested: one run with breadcrumbs so far; no Aftermath; the program at that ExecuteIndirect is not identified; a run with nothing skipped.

AI use: Claude Code with Claude Fable 5.2 read the dumps and logs and wrote this; the runs are from the machine named. Counts, times and XCL's own function names only.


Update 10:45 UTC – GPU utilisation during those seconds, and four things that did not change the outcome (same PC and stack, XCL_PSO_WAIT_MS=50 unless said, one run each unless said)

  • nvidia-smi sampled every 0.5 s beside the run. Run A (the stack + #851): 100 % from the set-up's burst for 13.1 s, then the reset. Run B (the stack + #851 + the local change below): 100 % for 12.3 s, 9 s idle, 100 % for 13.8 s, and after 1.5 s 100 % for 8.2 s, then the reset. So two stretches of 12 – 14 s ended without a reset on this card: seconds of GPU time for a burst are normal here, and the GPU is busy (not waiting on a fence) when it is reset.
  • The 5 s watchdog of the GPU waits raised to 120 s (local): no release on the CPU logged, the device still removed 25.8 s after the first #101 call. Breadcrumbs: 4 unfinished entries, none begun (0 of 7 333, 0 of 125, 0 of 6, 0 of 4).
  • #851 merged: removed 26.4 s and 41.0 s after the first #101 call (2 runs).
  • Local experiment: after a dispatch skipped for a compute pipeline still being built, the later compute dispatches of the same list are skipped too (1 024 dispatches skipped in all in that run): removed 48.9 s after the first #101 call.
  • The other direction, nothing skipped (binds wait as on main, the title's stall exit stepped over locally): no removal in 15 min – but the title submits nothing after the set-up: it builds a pipeline about every 7 s in its own threads (410 compute pipelines by 900 s). An offline set of all compute pipelines is being built here now (#744) to repeat this with nothing left to build.

Not tested: TdrDelay – a pass that takes longer than Windows' 2 s and a pass that never ends look the same in these runs.

**@⁠imnicho** on GitHub · 2026-11-24 09:41 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7127746217) · edited 2026-11-24 10:41 UTC **Why `XCL_DRED=1` stalls at startup, and the breadcrumbs of the device removal on an RTX 5080** @⁠qcdaark @⁠ateezie – the stall with `XCL_DRED=1` is two threads waiting for each other, and there are two ways into it: - one thread is in a submit: `sparse::before_execute` → `State::upload_dirty` → `State::begin_slot` → `ID3D12CommandAllocator::Reset`, waiting for a lock inside D3D12Core with XCL's sparse-state mutex held; - the other is in the title's `Reset` of a command list, inside D3D12Core, which makes a resource's last `Release` there → XCL's release hook → the sparse-state mutex, (1) in `sparse::forget_buffer` – #789 closes that one – and, with #789 merged, (2) in `late_release::hold` → `drain_known` → `sparse::queue()` – #968 closes that one. With `XCL_DRED=1`, 45 s runs, 3 rounds: `main`, `main` + #789 and `main` + #968 each show 1 frame and stand still from 8 – 11 s in every run; `main` + #789 + #968 shows 918 / 910 / 920 frames (table in #968). So breadcrumbs need both. **With both, one run to the device removal here** - Stack: `main` `09940bb` + #789 + #968 + #891 with `XCL_PSO_WAIT_MS=50` (+ #266, #684, #680 with heap windows on, #744). RTX 5080 16 GB, driver 610.47 (32-lane waves), i7-7700K, 16 GB RAM, Windows 10 19045, Agility SDK 620, DXC 1.9.2602.17, release. `XCL_NETWORK=0`, scripted pad. - First `#101` stub call at 129.3 s, 7 021 dispatches in the 2 s after it, then two more presents (157 s, 163 s), `0x887a0006` at 167.7 s. - GPU waits released on the CPU after 5 s: 4 at 136.7 s (`completed=0x0` – the first long stretch starts right with the set-up's burst), 29 more between 161.9 and 167.2 s. - DRED: no page fault (VA 0, no allocations named). Breadcrumbs: 40 unfinished list entries on four queues. 39 are not begun (`BEGIN_COMMAND_LIST`). One is in flight: 11 of its 20 operations done, the 12th an **`EXECUTEINDIRECT`** – around it `RESOURCEBARRIER, DISPATCH, RESOURCEBARRIER, >EXECUTEINDIRECT, RESOURCEBARRIER, DISPATCH`. So on this machine the GPU stopped inside an `ExecuteIndirect` of a 20-operation list, where @⁠CowboyBingus's Aftermath dump has a plain `Dispatch(1891, 1, 1)` at op 90 of a 1001-op list. I have not named the program: it may be the same tree walk reached through an indirect dispatch, or another one. Caveat for my run: by then more than 513 pipelines had gone late and 636 dispatches had been skipped (#891's budget), so input left unwritten by a skipped pass is possible here – an indirect call also takes its counts from a buffer. **Not tested:** one run with breadcrumbs so far; no Aftermath; the program at that `ExecuteIndirect` is not identified; a run with nothing skipped. AI use: Claude Code with Claude Fable 5.2 read the dumps and logs and wrote this; the runs are from the machine named. Counts, times and XCL's own function names only. --- **Update 10:45 UTC – GPU utilisation during those seconds, and four things that did not change the outcome** (same PC and stack, `XCL_PSO_WAIT_MS=50` unless said, one run each unless said) - `nvidia-smi` sampled every 0.5 s beside the run. Run A (the stack + #851): 100 % from the set-up's burst for 13.1 s, then the reset. Run B (the stack + #851 + the local change below): 100 % for 12.3 s, 9 s idle, 100 % for 13.8 s, and after 1.5 s 100 % for 8.2 s, then the reset. So two stretches of 12 – 14 s ended without a reset on this card: seconds of GPU time for a burst are normal here, and the GPU is busy (not waiting on a fence) when it is reset. - The 5 s watchdog of the GPU waits raised to 120 s (local): no release on the CPU logged, the device still removed 25.8 s after the first `#101` call. Breadcrumbs: 4 unfinished entries, none begun (0 of 7 333, 0 of 125, 0 of 6, 0 of 4). - #851 merged: removed 26.4 s and 41.0 s after the first `#101` call (2 runs). - Local experiment: after a dispatch skipped for a compute pipeline still being built, the later compute dispatches of the same list are skipped too (1 024 dispatches skipped in all in that run): removed 48.9 s after the first `#101` call. - The other direction, nothing skipped (binds wait as on `main`, the title's stall exit stepped over locally): no removal in 15 min – but the title submits nothing after the set-up: it builds a pipeline about every 7 s in its own threads (410 compute pipelines by 900 s). An offline set of all compute pipelines is being built here now (#744) to repeat this with nothing left to build. **Not tested:** `TdrDelay` – a pass that takes longer than Windows' 2 s and a pass that never ends look the same in these runs.
Author
Owner

@⁠requiemsnkrp on GitHub · 2026-11-24 10:49 UTC · original

Data point on unmodified current main 67a3735 (with the BCPack unpacker and #891): RTX 3060 12 GB, driver 621.24, Ryzen 5 5600X, 16 GB RAM, Windows 11 26200, release, XCL_NETWORK=0, XCL_PSO_WAIT_MS=2000, warm caches: earlier runs on this machine, plus a partial xcl shaders --precompile --only cs --pipelines (part of it made before the recompiler changes in 6bac4b4); in this run 32 compute pipelines came from the driver blobs kept on disk.

  • No +0x23cf683 watchdog this time. On the same machine, f4ce27c and 6bac4b4 ended there at 116.6 s and 164.3 s.
  • BCPack: 2,289 requests unpacked (BC1 1,999, BC5 107, BC6H 1, BC7 182), 0 failed, 0 refused.
  • 24–30 fps through 93.8 s (2,400 presents), then D3D12 device removed: 0x887a0007 at 130.3 s. The title then asserts at +0x2474606 because its next CreatePlacedResourceX gets 0x887a0005. No nvlddmkm / TDR event in the System log. ListX #101 was not called in this run.
  • The same 0x887a0007 happened once before on 63cdc25 (at 90.4 s, right after the world's compute pipelines came out of the driver cache in 1–27 ms), and did not happen in the two runs after it.
  • background_pipelines: [831, 0, 57930].

No XCL_ACTIVITY in this run, so I have no memory or queue lines. The next run will have them.

AI use: Claude Code (Claude Opus 5.5) read the run's log on my machine and wrote this comment.

**@⁠requiemsnkrp** on GitHub · 2026-11-24 10:49 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7129294643) Data point on unmodified current `main` `67a3735` (with the BCPack unpacker and #891): RTX 3060 12 GB, driver 621.24, Ryzen 5 5600X, 16 GB RAM, Windows 11 26200, release, `XCL_NETWORK=0`, `XCL_PSO_WAIT_MS=2000`, warm caches: earlier runs on this machine, plus a partial `xcl shaders --precompile --only cs --pipelines` (part of it made before the recompiler changes in `6bac4b4`); in this run 32 compute pipelines came from the driver blobs kept on disk. - **No `+0x23cf683` watchdog this time.** On the same machine, `f4ce27c` and `6bac4b4` ended there at 116.6 s and 164.3 s. - BCPack: 2,289 requests unpacked (BC1 1,999, BC5 107, BC6H 1, BC7 182), 0 failed, 0 refused. - 24–30 fps through 93.8 s (2,400 presents), then **`D3D12 device removed: 0x887a0007`** at 130.3 s. The title then asserts at `+0x2474606` because its next `CreatePlacedResourceX` gets `0x887a0005`. No `nvlddmkm` / TDR event in the System log. `ListX #101` was not called in this run. - The same `0x887a0007` happened once before on `63cdc25` (at 90.4 s, right after the world's compute pipelines came out of the driver cache in 1–27 ms), and did not happen in the two runs after it. - `background_pipelines: [831, 0, 57930]`. No `XCL_ACTIVITY` in this run, so I have no memory or queue lines. The next run will have them. AI use: Claude Code (Claude Opus 5.5) read the run's log on my machine and wrote this comment.
Author
Owner

@⁠chadatouille on GitHub · 2026-11-24 10:51 UTC · original

Two runs on an RTX 3080 Ti with main 6efdabc + #751, XCL_PSO_WAIT_MS=50. Both get past the point where every earlier build stopped here (opening-scene dialogue is heard, a frame about every 3–4 s), then end in two different ways: a GPU reset, and the +0x23cf683 abort.

Setup

  • RTX 3080 Ti 12 GB (driver 610.88, 32-lane waves), i9-12900F, 32 GB RAM, fixed 80 000 MB page file, Windows 11 build 26300, DXC 1.9.2602.17, rustc 1.100.0, release. TdrDelay 8 (set on this machine before).
  • main 6efdabc + the diff of #751 (4e101fc). Suite on that tree: 728 passed, 0 failed, 41 ignored (debug; SKIPPED: the two no wave64 tests).
  • Retail title 1.0.2.1, Series X profile, XCL_NETWORK=0 XCL_ACTIVITY=1, menus by hand. Run 1 is the first run of this build (cold translations), run 2 the same build right after.
run 1 run 2
end device removed 0x887a0007, title assert +0x2474606 at 219.4 s 0xc0000005 at +0x23cf683, 245.3 s; the process then hung with the GPU at 100 % and had to be killed
last 2 s window with a submit 194 s 226 s
presents after the world starts 24 (from 124 s) 27 (from 116 s)
draws / dispatches translated (skipped) 15 755 (27 308) / 65 536 (13 111) 25 330 (32 768) / 82 673 (14 451)
GPU queue.Wait … did not complete within 5000 ms 70 (147–198 s) 244 (144–230 s)
would close a GPU cycle lines 32 32
compute PSOs logged, ≥ 5 s, ≥ 20 s 278, 18, 4 352, 28, 12
process commit / local video memory, peak 32.2 GB / 15.2 GB 32.5 GB / 15.5 GB
  • Run 1, Windows log: nvlddmkm 14 and 153 (UCodeReset TDR) at about 196 s of the run, then Resetting / Reset / Restarting TDR about 18 s later. XCL reports the removal at 219 s. No DRED in this run.
  • Run 2: no nvlddmkm event. The waits are mostly between the direct queue (q3) and the compute queues (q0, q1, q2, q4), in both directions.
  • Longest logged builds: 49.9 s for 193 KB of DXIL (run 1), 75.9 s for 1 091 KB (run 2). The log's time includes the wait for BIG_COMPILES for programs of 256 KB or more; 193 KB is under that.
  • Thread dump at the end of run 1 (exact PDB): 17 workers (xcl-pso, xcl-pso-pre) in BIG_COMPILES.acquire() (real.rs:3433), and no title thread in resolve_wait. Taken after the removal. Run 2 logged no thread dump.

I don't know which command hung the GPU in run 1, or whether the two ends share a cause.

Not tested: main without #751, XCL_PSO_WAIT_MS unset on this build, DRED / Aftermath, AMD, a smoke run.

AI use: Claude Code (Claude Opus 5.5) built the binary, read the logs and the thread dump and wrote this report; I did the runs. Counts and offsets only; no game data.

**@⁠chadatouille** on GitHub · 2026-11-24 10:51 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7129340278) Two runs on an RTX 3080 Ti with `main` `6efdabc` + #751, `XCL_PSO_WAIT_MS=50`. Both get past the point where every earlier build stopped here (opening-scene dialogue is heard, a frame about every 3–4 s), then end in two different ways: a GPU reset, and the `+0x23cf683` abort. **Setup** - RTX 3080 Ti 12 GB (driver 610.88, 32-lane waves), i9-12900F, 32 GB RAM, fixed 80 000 MB page file, Windows 11 build 26300, DXC 1.9.2602.17, rustc 1.100.0, release. `TdrDelay` 8 (set on this machine before). - `main` `6efdabc` + the diff of #751 (`4e101fc`). Suite on that tree: 728 passed, 0 failed, 41 ignored (debug; `SKIPPED`: the two `no wave64` tests). - Retail title 1.0.2.1, Series X profile, `XCL_NETWORK=0 XCL_ACTIVITY=1`, menus by hand. Run 1 is the first run of this build (cold translations), run 2 the same build right after. | | run 1 | run 2 | |---|---:|---:| | end | device removed `0x887a0007`, title assert `+0x2474606` at 219.4 s | `0xc0000005` at `+0x23cf683`, 245.3 s; the process then hung with the GPU at 100 % and had to be killed | | last 2 s window with a submit | 194 s | 226 s | | presents after the world starts | 24 (from 124 s) | 27 (from 116 s) | | draws / dispatches translated (skipped) | 15 755 (27 308) / 65 536 (13 111) | 25 330 (32 768) / 82 673 (14 451) | | `GPU queue.Wait … did not complete within 5000 ms` | 70 (147–198 s) | 244 (144–230 s) | | `would close a GPU cycle` lines | 32 | 32 | | compute PSOs logged, ≥ 5 s, ≥ 20 s | 278, 18, 4 | 352, 28, 12 | | process commit / local video memory, peak | 32.2 GB / 15.2 GB | 32.5 GB / 15.5 GB | - **Run 1, Windows log:** nvlddmkm 14 and 153 (`UCodeReset TDR`) at about 196 s of the run, then `Resetting` / `Reset` / `Restarting TDR` about 18 s later. XCL reports the removal at 219 s. No DRED in this run. - **Run 2:** no nvlddmkm event. The waits are mostly between the direct queue (q3) and the compute queues (q0, q1, q2, q4), in both directions. - Longest logged builds: 49.9 s for 193 KB of DXIL (run 1), 75.9 s for 1 091 KB (run 2). The log's time includes the wait for `BIG_COMPILES` for programs of 256 KB or more; 193 KB is under that. - Thread dump at the end of run 1 (exact PDB): 17 workers (`xcl-pso`, `xcl-pso-pre`) in `BIG_COMPILES.acquire()` (`real.rs:3433`), and no title thread in `resolve_wait`. Taken after the removal. Run 2 logged no thread dump. I don't know which command hung the GPU in run 1, or whether the two ends share a cause. **Not tested:** `main` without #751, `XCL_PSO_WAIT_MS` unset on this build, DRED / Aftermath, AMD, a smoke run. **AI use:** Claude Code (Claude Opus 5.5) built the binary, read the logs and the thread dump and wrote this report; I did the runs. Counts and offsets only; no game data.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 10:53 UTC · original

@⁠chadatouille @⁠requiemsnkrp thanks for the runs; noted.

**@⁠CowboyBingus** on GitHub · 2026-11-24 10:53 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7129381227) @⁠chadatouille @⁠requiemsnkrp thanks for the runs; noted.
Author
Owner

@⁠requiemsnkrp on GitHub · 2026-11-24 11:29 UTC · original

Follow-up with XCL_ACTIVITY=1, as promised: same machine (RTX 3060 12 GB, driver 621.24, 16 GB RAM), unmodified main 384f7f7, XCL_NETWORK=0, XCL_PSO_WAIT_MS=2000. Again D3D12 device removed: 0x887a0007 at 110.1 s, with no watchdog. ListX #101 was first called at 107.2 s and background_pipelines was [886, 0, 57875].

The last 30 s from the activity (2 s) / memory: lines:

t presents submits dispatches DirectStorage process commit local video memory target pages
80 s 0 8 0 3,251 req, 180 MB 22.8 GB 11.4 GB 7.4 GB
90 s 2 13 4 3,430 req 24.7 GB 12.5 GB 8.5 GB
100 s 38 190 114 1,223 req 26.3 GB 13.0 GB 9.2 GB
106 s 3 22 11 3,195 req 27.7 GB 13.9 GB 9.7 GB
108 s 15 112 341 1,270 req 27.8 GB 13.9 GB 9.7 GB
110 s 1 7 44 13 req — removed — 14.0 GB 9.7 GB
  • Local video memory passes the card's 12 GB at about 86 s and keeps growing: 14.0 GB at the removal, ~2 GB over, so the driver is paging. Target pages alone are 9.7 GB.
  • The window right before the removal has 341 dispatches, three times the busiest other window of the run (114 at 100 s). That is the same shape as the dispatch bursts @⁠am-cob counted before the faults, though far smaller than 7,000.
  • The earlier 67a3735 run ended the same way at 130.3 s. Both runs are NVIDIA, 12 GB, oversubscribed. I can't tell from this whether the oversubscription causes the reset or only comes with it. A run with a target-page cap would tell, if there is a switch for one.

AI use: Claude Code (Claude Opus 5.5) read the run's log on my machine and wrote this comment.

**@⁠requiemsnkrp** on GitHub · 2026-11-24 11:29 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7130173990) Follow-up with `XCL_ACTIVITY=1`, as promised: same machine (RTX 3060 12 GB, driver 621.24, 16 GB RAM), unmodified `main` `384f7f7`, `XCL_NETWORK=0`, `XCL_PSO_WAIT_MS=2000`. Again **`D3D12 device removed: 0x887a0007` at 110.1 s**, with no watchdog. `ListX #101` was first called at 107.2 s and `background_pipelines` was `[886, 0, 57875]`. The last 30 s from the `activity (2 s)` / `memory:` lines: | t | presents | submits | dispatches | DirectStorage | process commit | local video memory | target pages | |---|---|---|---|---|---|---|---| | 80 s | 0 | 8 | 0 | 3,251 req, 180 MB | 22.8 GB | 11.4 GB | 7.4 GB | | 90 s | 2 | 13 | 4 | 3,430 req | 24.7 GB | 12.5 GB | 8.5 GB | | 100 s | 38 | 190 | 114 | 1,223 req | 26.3 GB | 13.0 GB | 9.2 GB | | 106 s | 3 | 22 | 11 | 3,195 req | 27.7 GB | 13.9 GB | 9.7 GB | | **108 s** | 15 | 112 | **341** | 1,270 req | 27.8 GB | 13.9 GB | 9.7 GB | | 110 s | 1 | 7 | 44 | 13 req | — removed — | 14.0 GB | 9.7 GB | - Local video memory passes the card's 12 GB at about 86 s and keeps growing: 14.0 GB at the removal, ~2 GB over, so the driver is paging. Target pages alone are 9.7 GB. - The window right before the removal has 341 dispatches, three times the busiest other window of the run (114 at 100 s). That is the same shape as the dispatch bursts @⁠am-cob counted before the faults, though far smaller than 7,000. - The earlier `67a3735` run ended the same way at 130.3 s. Both runs are NVIDIA, 12 GB, oversubscribed. I can't tell from this whether the oversubscription causes the reset or only comes with it. A run with a target-page cap would tell, if there is a switch for one. AI use: Claude Code (Claude Opus 5.5) read the run's log on my machine and wrote this comment.
Author
Owner

@⁠jessenic on GitHub · 2026-11-24 11:36 UTC · original

Data point on unmodified main 47efa2e (release), RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088), Ryzen 7 9700X, 32 GB RAM, Windows 11 26300. XCL_NETWORK=0, XCL_ACTIVITY=1, no XCL_PSO_* variables, warm caches (DXIL cache 1650 hits / 110 misses). Input scripted with XCL_PRESS_AT through the first-run menus, so the timing is repeatable.

Timeline (log seconds):

  • 204 s: Confirm on the legal terms screen; the loading screen follows with audio.
  • 229 s, 232 s: two DirectStorage requests fail with 0x89240009 (65536 bytes each, from data\ttdb\props\octa_imposters.ttpf and data\ttdb\props\ttdb_props_2_3.ttpf).
  • 238–248 s: presents per 2 s fall 52 → 36 → 10 → 6 → 2; process commit 25.3 → 27.6 GB, local video memory 13.0 → 14.2 GB.
  • 246.9 s: first ListX #101 (stub, returns 0), from +0x50a6657.
  • 250–281 s: 0 presents and 0 draws in every 2 s window; a few windows have 1–15 dispatches and up to 11 submits. Audio keeps decoding. No device removal, no timed out frame-event waits.
  • 281.9 s: 0xc0000005 write at 0x0 in +0x23cf683, stack +0x4e4ba89, +0x2215c35, +0x71b9a20, +0x2215eca; the crash report has GPU Loc Sig = 7333478d.

At the end: background_pipelines [887, 0, 57878], 887 translated pipelines, 0 failed, 40 mesh pipelines refused (MS in the AS slot). Peak commit 28.2 GB, local video memory 14.2 GB.

So on this card frames slow down from ~240 s, presents stop ~3 s after the first #101, the title then submits almost nothing (no device removal), and its watchdog ends the run ~31 s later. One run so far; logs not attached.

Run and report by Claude Code (Claude Opus 5.5).

**@⁠jessenic** on GitHub · 2026-11-24 11:36 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7130321651) Data point on unmodified `main` `47efa2e` (release), RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088), Ryzen 7 9700X, 32 GB RAM, Windows 11 26300. `XCL_NETWORK=0`, `XCL_ACTIVITY=1`, no `XCL_PSO_*` variables, warm caches (DXIL cache 1650 hits / 110 misses). Input scripted with `XCL_PRESS_AT` through the first-run menus, so the timing is repeatable. Timeline (log seconds): - 204 s: Confirm on the legal terms screen; the loading screen follows with audio. - 229 s, 232 s: two DirectStorage requests fail with `0x89240009` (65536 bytes each, from `data\ttdb\props\octa_imposters.ttpf` and `data\ttdb\props\ttdb_props_2_3.ttpf`). - 238–248 s: presents per 2 s fall 52 → 36 → 10 → 6 → 2; process commit 25.3 → 27.6 GB, local video memory 13.0 → 14.2 GB. - 246.9 s: first `ListX #101` (stub, returns 0), from `+0x50a6657`. - 250–281 s: 0 presents and 0 draws in every 2 s window; a few windows have 1–15 dispatches and up to 11 submits. Audio keeps decoding. No device removal, no `timed out` frame-event waits. - 281.9 s: `0xc0000005` write at 0x0 in `+0x23cf683`, stack `+0x4e4ba89`, `+0x2215c35`, `+0x71b9a20`, `+0x2215eca`; the crash report has `GPU Loc Sig` = `7333478d`. At the end: `background_pipelines` `[887, 0, 57878]`, 887 translated pipelines, 0 failed, 40 mesh pipelines refused (MS in the AS slot). Peak commit 28.2 GB, local video memory 14.2 GB. So on this card frames slow down from ~240 s, presents stop ~3 s after the first `#101`, the title then submits almost nothing (no device removal), and its watchdog ends the run ~31 s later. One run so far; logs not attached. Run and report by Claude Code (Claude Opus 5.5).
Author
Owner

@⁠not-rex on GitHub · 2026-11-24 11:53 UTC · original

Related: wrong data rather than a hang. In the split wave64 form, the two 32-lane halves aren't ordered around LDS accesses, so one half can read LDS before the other half's earlier write lands, or after its later write. A new GPU test (gpu_split_wave64_lds_follows_instruction_order: one half writes LDS, the other reads it, and the reverse, over 1,024 groups) fails 20 of 20 runs on an RTX 5070 Ti (Windows Sandbox, GPU-PV, 32-lane waves) in each of three variants: the spin form, XCL_WAVE64_SPIN=0, and under load. In each run 26,048–50,688 of 65,536 threads read the wrong value. I haven't checked yet whether cb48c2b29fcdfa5a uses LDS.

Plan, to avoid duplicate work: one PR of about 90 lines. The halves meet (xcl_x_meet(), nothing exchanged) before each LDS access in kernel, compute and mesh mode, with the test and a line in docs/wave64-on-wave32.md. With the change, the test passes 60 of 60. It costs one exchange per LDS instruction on 32-lane GPUs; native wave64 HLSL is unchanged. I'll add an RTX 3080 run on bare metal before it leaves draft.

AI use: Claude Code (Claude Fable 5.2 wrote the test and the change, Claude Opus 5.5 this comment).

**@⁠not-rex** on GitHub · 2026-11-24 11:53 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7130688157) **Related: wrong data rather than a hang.** In the split wave64 form, the two 32-lane halves aren't ordered around LDS accesses, so one half can read LDS before the other half's earlier write lands, or after its later write. A new GPU test (`gpu_split_wave64_lds_follows_instruction_order`: one half writes LDS, the other reads it, and the reverse, over 1,024 groups) fails 20 of 20 runs on an RTX 5070 Ti (Windows Sandbox, GPU-PV, 32-lane waves) in each of three variants: the spin form, `XCL_WAVE64_SPIN=0`, and under load. In each run 26,048–50,688 of 65,536 threads read the wrong value. I haven't checked yet whether `cb48c2b29fcdfa5a` uses LDS. **Plan, to avoid duplicate work:** one PR of about 90 lines. The halves meet (`xcl_x_meet()`, nothing exchanged) before each LDS access in kernel, compute and mesh mode, with the test and a line in `docs/wave64-on-wave32.md`. With the change, the test passes 60 of 60. It costs one exchange per LDS instruction on 32-lane GPUs; native wave64 HLSL is unchanged. I'll add an RTX 3080 run on bare metal before it leaves draft. AI use: Claude Code (Claude Fable 5.2 wrote the test and the change, Claude Opus 5.5 this comment).
Author
Owner

@⁠requiemsnkrp on GitHub · 2026-11-24 13:43 UTC · original

Aftermath data point for the 12 GB case: on this RTX 3060 the device removal is not a GPU hang or fault.

Same machine as my two comments above (RTX 3060 12 GB, driver 621.24, Ryzen 5 5600X, 16 GB RAM, Windows 11 26200). Tree: main 384f7f7 + #605, #495, #433, #789, #968, #744, #688, #759 (with #757/#758), #820, #684, merged locally. XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50, Series X profile, warm caches (51,200 of the journal's 58,761 pipelines made by xcl pipelines).

  • Run at 14:33: D3D12 device removed: 0x887a0005 (GetDeviceRemovedReason = DXGI_ERROR_DEVICE_REMOVED) at 131.3 s, 28.8 s after the first ListX #101. Nsight Aftermath (global mode, shader debug info and resource tracking on) wrote a dump, decoded with nv-aftermath-format -j: Device state: DeviceRemovedNoGpuFault, Engine reset occurred: false, Adapter reset occurred: false. No active warps, no page fault section. Nothing in the System log or in Microsoft-Windows-DxgKrnl-Operational for that time.
  • I first suspected commit (the process was at 31.4 GB, the system limit at 37.9 GB). After a reboot with the page file raised (commit limit 55.9 GB), the next run ended the same way: 0x887a0005 at 129.5 s, process commit 29.7 GB. So commit is not it here. The Aftermath monitor was not running after the reboot, so that run has no dump.
  • What both runs share: local video memory 13.8–13.9 GB on a 12 GB card when the device goes (target pages 9.7 GB of it, sparse pools 2.0 GB), and, in the 14:33 run, a burst of 2,453 dispatches in the 2 s window ending 2.9 s before the removal (213 in the window after it). The earlier 0x887a0005 / 0x887a0007 removals on this machine (98.5–130.3 s) were at 13.7–14.1 GB too.

So on 12 GB the removal looks like the driver giving up on the device without a GPU fault while video memory is ~2 GB over the card. Unlike the "Hung" dumps above on 16 GB cards. I can't show from here that the oversubscription is the cause; a run that keeps local video memory under the card would tell, if there is a way to cap it.

AI use: Claude Code (Claude Opus 5.5) set up Aftermath, decoded the dump, read the logs and wrote this comment; the runs were made by hand on my PC. The dump holds no shader code (2 KB, base info only) and is not attached.

**@⁠requiemsnkrp** on GitHub · 2026-11-24 13:43 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7133232994) Aftermath data point for the 12 GB case: **on this RTX 3060 the device removal is not a GPU hang or fault.** Same machine as my two comments above (RTX 3060 12 GB, driver 621.24, Ryzen 5 5600X, 16 GB RAM, Windows 11 26200). Tree: `main` `384f7f7` + #605, #495, #433, #789, #968, #744, #688, #759 (with #757/#758), #820, #684, merged locally. `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50`, Series X profile, warm caches (51,200 of the journal's 58,761 pipelines made by `xcl pipelines`). - Run at 14:33: `D3D12 device removed: 0x887a0005` (`GetDeviceRemovedReason` = `DXGI_ERROR_DEVICE_REMOVED`) at 131.3 s, 28.8 s after the first `ListX #101`. Nsight Aftermath (global mode, shader debug info and resource tracking on) wrote a dump, decoded with `nv-aftermath-format -j`: **`Device state: DeviceRemovedNoGpuFault`, `Engine reset occurred: false`, `Adapter reset occurred: false`**. No active warps, no page fault section. Nothing in the System log or in `Microsoft-Windows-DxgKrnl-Operational` for that time. - I first suspected commit (the process was at 31.4 GB, the system limit at 37.9 GB). After a reboot with the page file raised (commit limit 55.9 GB), the next run ended the same way: `0x887a0005` at 129.5 s, process commit 29.7 GB. So commit is not it here. The Aftermath monitor was not running after the reboot, so that run has no dump. - What both runs share: **local video memory 13.8–13.9 GB on a 12 GB card** when the device goes (target pages 9.7 GB of it, sparse pools 2.0 GB), and, in the 14:33 run, a burst of 2,453 dispatches in the 2 s window ending 2.9 s before the removal (213 in the window after it). The earlier `0x887a0005` / `0x887a0007` removals on this machine (98.5–130.3 s) were at 13.7–14.1 GB too. So on 12 GB the removal looks like the driver giving up on the device without a GPU fault while video memory is ~2 GB over the card. Unlike the "Hung" dumps above on 16 GB cards. I can't show from here that the oversubscription is the cause; a run that keeps local video memory under the card would tell, if there is a way to cap it. AI use: Claude Code (Claude Opus 5.5) set up Aftermath, decoded the dump, read the logs and wrote this comment; the runs were made by hand on my PC. The dump holds no shader code (2 KB, base info only) and is not attached.
Author
Owner

@⁠juliptree on GitHub · 2026-11-24 13:50 UTC · original

Could you rerun the same story-loading sequence on your RTX 3070 Ti with the stall snapshots from #1189 enabled (XCL_STALL_SECONDS=8)? Please record the exact XCL commit and any local merges, whether the cache was warm, and when you pressed A. If it stalls again, could you share xcl.log and report.json? I’m trying to identify the last batch that completed and the earliest unfinished work on the queue that never reached its Wait64 prefix fence. If you already have a build with #1123, the first wait-chain line before any prior watchdog release would also help.

AI Use: Codex

**@⁠juliptree** on GitHub · 2026-11-24 13:50 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7133413958) Could you rerun the same story-loading sequence on your RTX 3070 Ti with the stall snapshots from #1189 enabled (XCL_STALL_SECONDS=8)? Please record the exact XCL commit and any local merges, whether the cache was warm, and when you pressed A. If it stalls again, could you share xcl.log and report.json? I’m trying to identify the last batch that completed and the earliest unfinished work on the queue that never reached its Wait64 prefix fence. If you already have a build with #1123, the first wait-chain line before any prior watchdog release would also help. AI Use: Codex
Author
Owner

@⁠not-rex on GitHub · 2026-11-24 14:42 UTC · original

Plan, to avoid duplicate work: with XCL_PSO_WAIT_MS set (#891), a compute dispatch whose pipeline is not built within the budget is skipped, but an ExecuteIndirect with a translated pipeline later in the frame still goes to the PC. It takes its draw counts or thread groups from GPU memory, and if the skipped dispatch was the culling pass that writes them, they are whatever that memory holds; the PC call has no bound on them. @⁠imnicho's breadcrumbs above (https://github.com/ivall/xcl/issues/675#issuecomment-7127746217) have the one operation in flight at the device removal as an EXECUTEINDIRECT, after 636 dispatches skipped by the budget. The idea and a measurement are from fablinoo/palmwave bf3fe1c: its run lost the device (0x887a0006) 13 s after its first skipped dispatches.

What changes, one PR of about 150 lines (half of it tests): pso_async notes the title frame in which a compute dispatch was skipped for a late pipeline (from bind::dispatch, the console list replay in console_list::close, and an ExecuteIndirect of a late compute pipeline). bind::execute_indirect leaves out an ExecuteIndirect with a translated pipeline in that frame and the next, counted with the skipped draws / dispatches and logged (rate-limited, "ExecuteIndirect left out"). Nothing changes while nothing is skipped (XCL_PSO_WAIT_MS unset), and XCL_PSO_SKIP_INDIRECT=0 issues them all the same. The cost is fewer indirect draws in the frames around a skipped dispatch.

Tests: a no-GPU test of the two-frame window, and one that drives bind::dispatch and bind::execute_indirect on a fake list with a compute pipeline held past the budget: left out in frames n and n+1, not in n+2. I'll add an RTX 3080 run before it leaves draft: the suite, and smoke.ps1 for main and the PR with XCL_PSO_WAIT_MS=50, 300 s, comparing device removals and the "ExecuteIndirect left out" count (not XCL_DRED=1, which stalls at startup per the comment above).

AI use: Claude Code (Claude Opus 5.5) wrote the change, the tests and this comment.

**@⁠not-rex** on GitHub · 2026-11-24 14:42 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7134814843) **Plan, to avoid duplicate work:** with `XCL_PSO_WAIT_MS` set (#891), a compute dispatch whose pipeline is not built within the budget is skipped, but an `ExecuteIndirect` with a translated pipeline later in the frame still goes to the PC. It takes its draw counts or thread groups from GPU memory, and if the skipped dispatch was the culling pass that writes them, they are whatever that memory holds; the PC call has no bound on them. @⁠imnicho's breadcrumbs above (https://github.com/ivall/xcl/issues/675#issuecomment-7127746217) have the one operation in flight at the device removal as an `EXECUTEINDIRECT`, after 636 dispatches skipped by the budget. The idea and a measurement are from fablinoo/palmwave bf3fe1c: its run lost the device (0x887a0006) 13 s after its first skipped dispatches. What changes, one PR of about 150 lines (half of it tests): `pso_async` notes the title frame in which a compute dispatch was skipped for a late pipeline (from `bind::dispatch`, the console list replay in `console_list::close`, and an `ExecuteIndirect` of a late compute pipeline). `bind::execute_indirect` leaves out an `ExecuteIndirect` with a translated pipeline in that frame and the next, counted with the skipped draws / dispatches and logged (rate-limited, "ExecuteIndirect left out"). Nothing changes while nothing is skipped (`XCL_PSO_WAIT_MS` unset), and `XCL_PSO_SKIP_INDIRECT=0` issues them all the same. The cost is fewer indirect draws in the frames around a skipped dispatch. Tests: a no-GPU test of the two-frame window, and one that drives `bind::dispatch` and `bind::execute_indirect` on a fake list with a compute pipeline held past the budget: left out in frames n and n+1, not in n+2. I'll add an RTX 3080 run before it leaves draft: the suite, and `smoke.ps1` for `main` and the PR with `XCL_PSO_WAIT_MS=50`, 300 s, comparing device removals and the "ExecuteIndirect left out" count (not `XCL_DRED=1`, which stalls at startup per the comment above). AI use: Claude Code (Claude Opus 5.5) wrote the change, the tests and this comment.
Author
Owner

@⁠MiharaxD on GitHub · 2026-11-24 15:35 UTC · original

@⁠juliptree: rerun on the RTX 3070 Ti with the #1189 stall snapshots, as asked. Same end: the title's null write at +0x23cf683. All tracked fences had completed during the whole pause.

Setup

  • RTX 3070 Ti 8 GB (driver 621.01), Intel i5-14400F, 32 GB RAM, Windows 11 Pro 10.0.26300, DXC 1.9.2602.17, retail 1.0.2.1.
  • XCL: #1189's head 099d94b exactly as pushed (based on main 47efa2e). No local merges, and #1123 is not in this build, so there is no wait-chain line. Release, cargo build --release -p xcl.
  • XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_STALL_SECONDS=8, no XCL_PSO_* variables.
  • Caches warm from four earlier runs of the same sequence: the report's DXIL cache shows 2642 hits, 47 misses and 0 failures, and background_pipelines is [1419, 0, 57344].
  • Input was by hand. A on the story was pressed at about 38 s in the log.

Timeline (log seconds)

  • 38–98 s: loading. Presents fall from 60 to 7–44 per 2 s, with DirectStorage active.
  • 98–100 s: last presents (17, then 0). 2036 frames shown in total.
  • From 102 s: 0 presents and 0 submits in every 2 s activity line until the end. Dispatches are still counted in some of them (16, 33, 7, 6571 at 116–118 s, 14, 2, 34, 1), and compute PSOs keep finishing. One of them is 517 KB of DXIL that took 8.7 s and finished at 116.19 s.
  • 106 / 114 / 122 s: the three snapshots (8, 16 and 24 s without a shown frame).
  • 128.035 s: 0xc0000005 write at 0x0 in game_scarlett_master.exe+0x23cf683. On the stack: +0x4e4ba89, +0x2215c35, +0x71b9a20, +0x2215eca. Commit is 29.4 GB, local video memory 14.0 GB.

What the three snapshots show (the same in all three)

  • Submission: six queues, all on thread 19432, all at stage returned from submit. The newest is 7.2 s old at the first snapshot, so the last submit was at about 98.8 s.
    • Four queues last recorded PSO 14fe7a130.
    • 0xc2912e80 last recorded PSO 0.
    • 0x798231e0 recorded 8 lists, one of them with PSO 177b574c0.
  • Fences: submitted == completed on all five fence-tracked queues, removed false: 0x79822470 4/4, 0x79822720 4/4, 0x798231e0 4084/4084, 0x37e4b40 5/5, 0x37e4890 5/5. Queue 0xc2912e80 has no fence line.
  • Builds: 8, 8 and 7 compute PSO jobs taken and not complete, with 0 busy entries unavailable. The set changes between snapshots, but 8a23835e1c364077, 110df5460e25a829 and bf961425ef2dde1b are in all three.

So on this run, nothing submitted to a fence-tracked queue was left unfinished when the frames stopped. The title stopped submitting at about 98.8 s and never submitted again. As the PR says, this does not rule out work on 0xc2912e80, which has no fence record, and it does not show what the title was waiting for. At the crash, the submitting thread 19432 is in a wait in the title's code: KERNELBASE+0x1427f < game_scarlett_master.exe+0x56a0d < +0x4e7f358 < +0x6259 < +0x2481f73 < +0x2215eca.

Not tested

  • With #1123 or any other local merges. Against current main (930e8b4): #1189 is based on 47efa2e.
  • More than one run with the snapshots. Earlier runs on 930e8b4 and #1316 ended at the same address at 124 s and 138 s.

I can share xcl.log (20 208 lines) and report.json if you want the full files.

AI use: Claude Code (Claude Opus 5.5) built the PR, ran the title, read the log and report and wrote this comment; I pressed A and checked it before posting.

**@⁠MiharaxD** on GitHub · 2026-11-24 15:35 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7136283192) @⁠juliptree: rerun on the RTX 3070 Ti with the #1189 stall snapshots, as asked. Same end: the title's null write at `+0x23cf683`. All tracked fences had completed during the whole pause. **Setup** - RTX 3070 Ti 8 GB (driver 621.01), Intel i5-14400F, 32 GB RAM, Windows 11 Pro 10.0.26300, DXC 1.9.2602.17, retail 1.0.2.1. - XCL: #1189's head `099d94b` exactly as pushed (based on `main` `47efa2e`). No local merges, and #1123 is not in this build, so there is no wait-chain line. Release, `cargo build --release -p xcl`. - `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_STALL_SECONDS=8`, no `XCL_PSO_*` variables. - Caches warm from four earlier runs of the same sequence: the report's DXIL cache shows 2642 hits, 47 misses and 0 failures, and `background_pipelines` is `[1419, 0, 57344]`. - Input was by hand. A on the story was pressed at about **38 s** in the log. **Timeline (log seconds)** - 38–98 s: loading. Presents fall from 60 to 7–44 per 2 s, with DirectStorage active. - 98–100 s: last presents (17, then 0). 2036 frames shown in total. - From **102 s**: 0 presents and **0 submits** in every 2 s activity line until the end. Dispatches are still counted in some of them (16, 33, 7, **6571** at 116–118 s, 14, 2, 34, 1), and compute PSOs keep finishing. One of them is 517 KB of DXIL that took 8.7 s and finished at 116.19 s. - 106 / 114 / 122 s: the three snapshots (8, 16 and 24 s without a shown frame). - 128.035 s: `0xc0000005` write at 0x0 in `game_scarlett_master.exe+0x23cf683`. On the stack: `+0x4e4ba89`, `+0x2215c35`, `+0x71b9a20`, `+0x2215eca`. Commit is 29.4 GB, local video memory 14.0 GB. **What the three snapshots show (the same in all three)** - Submission: six queues, all on thread 19432, all at stage `returned from submit`. The newest is 7.2 s old at the first snapshot, so the last submit was at about 98.8 s. - Four queues last recorded PSO `14fe7a130`. - `0xc2912e80` last recorded PSO `0`. - `0x798231e0` recorded 8 lists, one of them with PSO `177b574c0`. - Fences: **submitted == completed** on all five fence-tracked queues, `removed false`: `0x79822470` 4/4, `0x79822720` 4/4, `0x798231e0` 4084/4084, `0x37e4b40` 5/5, `0x37e4890` 5/5. Queue `0xc2912e80` has no fence line. - Builds: 8, 8 and 7 compute PSO jobs `taken and not complete`, with 0 busy entries unavailable. The set changes between snapshots, but `8a23835e1c364077`, `110df5460e25a829` and `bf961425ef2dde1b` are in all three. So on this run, nothing submitted to a fence-tracked queue was left unfinished when the frames stopped. The title stopped submitting at about 98.8 s and never submitted again. As the PR says, this does not rule out work on `0xc2912e80`, which has no fence record, and it does not show what the title was waiting for. At the crash, the submitting thread 19432 is in a wait in the title's code: `KERNELBASE+0x1427f < game_scarlett_master.exe+0x56a0d < +0x4e7f358 < +0x6259 < +0x2481f73 < +0x2215eca`. **Not tested** - With #1123 or any other local merges. Against current `main` (`930e8b4`): #1189 is based on `47efa2e`. - More than one run with the snapshots. Earlier runs on `930e8b4` and #1316 ended at the same address at 124 s and 138 s. I can share `xcl.log` (20 208 lines) and `report.json` if you want the full files. **AI use:** Claude Code (Claude Opus 5.5) built the PR, ran the title, read the log and report and wrote this comment; I pressed A and checked it before posting.
Author
Owner

@⁠dnzarc on GitHub · 2026-11-24 16:28 UTC · original

6 GB laptop (RTX 4050 Laptop): menus and the loading screen at a flat 30 fps, then the driver refuses more texture pools

Setup

  • Lenovo LOQ 15IAX9: i5-12450HX, 24 GB RAM, RTX 4050 Laptop 6 GB (5,920 MiB reported), driver 32.0.16.2124, Windows 11 Pro 26300, pagefile 24/64 GB (16/32 GB for the first runs), 90 GB free on the game's drive.
  • XCL main 930e8b4, release (cargo build --release --workspace), DXC 1.9.2602.17 from the Windows SDK, system XGameRuntime, Series X profile, 1280x720 window, warm caches.
  • xcl inspect: 587 imports from 68 DLLs, 1 stub (xmem.dll!XMemIsToolsMemAvailable).
  • All runs: XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50 XCL_PRESS_A_AT=25, so the A press is at the same log second in every run.

Runs (log seconds)

# settings presents end
1 defaults 2,400, 23.3 fps 0 presents for the next 55 s, 0x887a0007 at 160.8 s, then the guest null write at +0x23cf683 with rcx=0x70024c348 rdx=0x1 r8=0x7074d8c40 r9=0x7074d8e20 r10=0x7074d8ad8 r11=0x7074d8c40 r13=0x146845c28 - byte-identical to @⁠ateezie's RTX 5090 report, on another GPU, driver and RAM size
2 XCL_PSO_WAIT_MS=50 2,700, 30.0 fps flat to 2,400 CreateHeap refused: 0x8007000E, then 0x80000003 at +0x193e00f rax=0x8007000e (the signature @⁠ItsMrClockwork posted)
3 2 + pagefile 16/32 -> 24/64 GB (commit 42.2 -> 47.8 GB) 2,700, 21-30 fps the same wall, at 132 pools x 64 MB = 8,448 MB
4 title_memory_mb = 6144 2,100+ target pages 8,451 -> 8,238 MB, then the same wall
5 device_type = "lockhart" 0 0x80000003 at +0xcc2834 (a Series X package running as Series S)

What the wall is

D3D12.X: CreateHeap(0x4000000 bytes, type 1, alignment 0x0, flags 0x0) refused (0x8007000e)
D3D12.X: no video memory for more pages of title textures (0x8007000E)
memory: 24,115 MB committed by the process; video memory 12,138 MB local, 4,895 MB non-local;
        target pages 8,385 MB (pools 8,448 MB); sparse pools 1,856 MB
UMA: 3 sparse VRAM window(s) (12 GiB VA) + 4095 MB coherent window
  • The commit limit is not the cause: raising the page file by 5.6 GB moved nothing.
  • The title ignores the budget it is given: halving TitleMemoryStatus (13,824 -> 6,144 MB) moved its target pages by 2.5%, so a 5,920 MiB card cannot be made to fit from the config side.
  • XCL_PSO_WAIT_MS=50 does what @⁠ateezie measured: a flat 30.0 fps through the menus and the loading screen, no stalls, 2,700 presents.
  • XCL_DRED=1 stalls at startup here too (4 frames): a fourth GPU/driver confirming @⁠imnicho's deadlock.
  • DirectStorage: one request failed 0x89240009 (524,288 B from data\ttdb\graphics\ttdb_graphics.ttpf), the same code @⁠jessenic saw.

Suggestion for 6-8 GB cards - not a claim that it fixes the stall: when CreateHeap refuses a pool, fall back to a non-local heap (or cap the pool count by the DXGI video-memory budget) instead of failing the title's CreatePlacedResourceX with 0x8007000E.

AI use: OpenCode, DeepSeek V4.1 Flash 1017 - ran the build and the runs and read the logs; the numbers above are copied from those logs.

**@⁠dnzarc** on GitHub · 2026-11-24 16:28 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7137734767) **6 GB laptop (RTX 4050 Laptop): menus and the loading screen at a flat 30 fps, then the driver refuses more texture pools** **Setup** - Lenovo LOQ 15IAX9: i5-12450HX, 24 GB RAM, RTX 4050 Laptop 6 GB (5,920 MiB reported), driver 32.0.16.2124, Windows 11 Pro 26300, pagefile 24/64 GB (16/32 GB for the first runs), 90 GB free on the game's drive. - XCL `main` `930e8b4`, release (`cargo build --release --workspace`), DXC 1.9.2602.17 from the Windows SDK, system XGameRuntime, Series X profile, 1280x720 window, warm caches. - `xcl inspect`: 587 imports from 68 DLLs, 1 stub (`xmem.dll!XMemIsToolsMemAvailable`). - All runs: `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50 XCL_PRESS_A_AT=25`, so the A press is at the same log second in every run. **Runs** (log seconds) | # | settings | presents | end | |---|---|---|---| | 1 | defaults | 2,400, 23.3 fps | 0 presents for the next 55 s, `0x887a0007` at 160.8 s, then the guest null write at `+0x23cf683` with `rcx=0x70024c348 rdx=0x1 r8=0x7074d8c40 r9=0x7074d8e20 r10=0x7074d8ad8 r11=0x7074d8c40 r13=0x146845c28` - byte-identical to @⁠ateezie's RTX 5090 report, on another GPU, driver and RAM size | | 2 | `XCL_PSO_WAIT_MS=50` | 2,700, **30.0 fps flat** to 2,400 | `CreateHeap` refused: `0x8007000E`, then `0x80000003` at `+0x193e00f` `rax=0x8007000e` (the signature @⁠ItsMrClockwork posted) | | 3 | 2 + pagefile 16/32 -> 24/64 GB (commit 42.2 -> 47.8 GB) | 2,700, 21-30 fps | the same wall, at **132 pools x 64 MB = 8,448 MB** | | 4 | `title_memory_mb = 6144` | 2,100+ | target pages 8,451 -> 8,238 MB, then the same wall | | 5 | `device_type = "lockhart"` | 0 | `0x80000003` at `+0xcc2834` (a Series X package running as Series S) | **What the wall is** ``` D3D12.X: CreateHeap(0x4000000 bytes, type 1, alignment 0x0, flags 0x0) refused (0x8007000e) D3D12.X: no video memory for more pages of title textures (0x8007000E) memory: 24,115 MB committed by the process; video memory 12,138 MB local, 4,895 MB non-local; target pages 8,385 MB (pools 8,448 MB); sparse pools 1,856 MB UMA: 3 sparse VRAM window(s) (12 GiB VA) + 4095 MB coherent window ``` - The commit limit is not the cause: raising the page file by 5.6 GB moved nothing. - The title ignores the budget it is given: halving `TitleMemoryStatus` (13,824 -> 6,144 MB) moved its target pages by 2.5%, so a 5,920 MiB card cannot be made to fit from the config side. - `XCL_PSO_WAIT_MS=50` does what @⁠ateezie measured: a flat 30.0 fps through the menus and the loading screen, no stalls, 2,700 presents. - `XCL_DRED=1` stalls at startup here too (4 frames): a fourth GPU/driver confirming @⁠imnicho's deadlock. - DirectStorage: one request failed `0x89240009` (524,288 B from `data\ttdb\graphics\ttdb_graphics.ttpf`), the same code @⁠jessenic saw. **Suggestion for 6-8 GB cards** - not a claim that it fixes the stall: when `CreateHeap` refuses a pool, fall back to a non-local heap (or cap the pool count by the DXGI video-memory budget) instead of failing the title's `CreatePlacedResourceX` with `0x8007000E`. **AI use**: OpenCode, DeepSeek V4.1 Flash 1017 - ran the build and the runs and read the logs; the numbers above are copied from those logs.
Author
Owner

@⁠qcdaark on GitHub · 2026-11-24 17:23 UTC · original

@⁠juliptree Done. Build: main 930e8b4 + #1189 (099d94b) + #1123 (6a3c81a), merged locally (one textual conflict in real.rs, both lines kept). RTX 3070 Ti 8 GB, driver 621.24, Ryzen 9 7900X, 32 GB RAM (+48 GB page file), Windows 11 26300, release, DXC 1.9.2602.17. Env: XCL_ACTIVITY=1 XCL_STALL_SECONDS=8 XCL_NETWORK=0 XCL_PRESS_A_AT=25. Logs attached (user name removed).

run 1 run 2
cache partly cold (translator changed since my last build) warm
A pressed 25.026 s 25.022 s
last 2 s window with presents 100.077 s 94.092 s
end null write +0x23cf683 at 129.014 s null write +0x23cf683 at 123.508 s
peak process commit / local video memory 31.8 GB / 14.2 GB 33.9 GB / 14.3 GB

Stall snapshots (8/16/24 s): every queue fence has submitted == completed (e.g. 3462/3462), removed false. 6–8 pipeline jobs "taken and not complete", almost all compute, the same keys in all three snapshots (run 2: 3f41769bf6f4dc59, 1d82265d1a879cd9, 21d716581ea31fd1, af55c56d7527f573, c981055b2591e91f, 9eb068f80f365c71; 9eb068f80f365c71 also stuck in run 1). No GPU wait chain line, no watchdog release (#1123 never fired). None of these keys exists in %LOCALAPPDATA%\xcl\dxil (neither DXIL, translated/ nor driver/): they never finished in any run.

Offline check, same build: xcl shaders shaders.rpf --precompile --only cs --pipelines

  • default (4 pipeline threads): stops at progress 22600/26503 after ~550 pipelines with "LLVM ERROR: out of memory / Allocation failed"
  • XCL_PIPELINE_THREADS=1: reaches the same 22600/26503, then no progress for ~1 h while the process grows to 87 GB private memory; I killed it

So one (or a few) compute program(s) after index ~22600 makes the compile blow up with no game running. In-game the title waits for those pipelines, presents stop, and its watchdog fires ~30 s later.

AI use: Claude Code (Claude Opus 5.5) built the branch, ran the game and the precompile, and wrote this. I checked it.

precompile-cs.txt
precompile-cs-2.txt
precompile-cs-3.err.txt
precompile-cs-3.out.txt
run1-report.json
run1-xcl.log
run2-report.json
run2-xcl.log

**@⁠qcdaark** on GitHub · 2026-11-24 17:23 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7139135259) @⁠juliptree Done. Build: main 930e8b4 + #1189 (099d94b) + #1123 (6a3c81a), merged locally (one textual conflict in real.rs, both lines kept). RTX 3070 Ti 8 GB, driver 621.24, Ryzen 9 7900X, 32 GB RAM (+48 GB page file), Windows 11 26300, release, DXC 1.9.2602.17. Env: XCL_ACTIVITY=1 XCL_STALL_SECONDS=8 XCL_NETWORK=0 XCL_PRESS_A_AT=25. Logs attached (user name removed). | | run 1 | run 2 | |---|---|---| | cache | partly cold (translator changed since my last build) | warm | | A pressed | 25.026 s | 25.022 s | | last 2 s window with presents | 100.077 s | 94.092 s | | end | null write +0x23cf683 at 129.014 s | null write +0x23cf683 at 123.508 s | | peak process commit / local video memory | 31.8 GB / 14.2 GB | 33.9 GB / 14.3 GB | Stall snapshots (8/16/24 s): every queue fence has submitted == completed (e.g. 3462/3462), removed false. 6–8 pipeline jobs "taken and not complete", almost all compute, the same keys in all three snapshots (run 2: 3f41769bf6f4dc59, 1d82265d1a879cd9, 21d716581ea31fd1, af55c56d7527f573, c981055b2591e91f, 9eb068f80f365c71; 9eb068f80f365c71 also stuck in run 1). No GPU wait chain line, no watchdog release (#1123 never fired). None of these keys exists in %LOCALAPPDATA%\xcl\dxil (neither DXIL, translated/ nor driver/): they never finished in any run. Offline check, same build: `xcl shaders shaders.rpf --precompile --only cs --pipelines` - default (4 pipeline threads): stops at progress 22600/26503 after ~550 pipelines with "LLVM ERROR: out of memory / Allocation failed" - XCL_PIPELINE_THREADS=1: reaches the same 22600/26503, then no progress for ~1 h while the process grows to 87 GB private memory; I killed it So one (or a few) compute program(s) after index ~22600 makes the compile blow up with no game running. In-game the title waits for those pipelines, presents stop, and its watchdog fires ~30 s later. AI use: Claude Code (Claude Opus 5.5) built the branch, ran the game and the precompile, and wrote this. I checked it. [precompile-cs.txt](https://github.com/user-attachments/files/35359757/precompile-cs.txt) [precompile-cs-2.txt](https://github.com/user-attachments/files/35359761/precompile-cs-2.txt) [precompile-cs-3.err.txt](https://github.com/user-attachments/files/35359755/precompile-cs-3.err.txt) [precompile-cs-3.out.txt](https://github.com/user-attachments/files/35359756/precompile-cs-3.out.txt) [run1-report.json](https://github.com/user-attachments/files/35359759/run1-report.json) [run1-xcl.log](https://github.com/user-attachments/files/35359754/run1-xcl.log) [run2-report.json](https://github.com/user-attachments/files/35359758/run2-report.json) [run2-xcl.log](https://github.com/user-attachments/files/35359760/run2-xcl.log)
Author
Owner

@⁠dnzarc on GitHub · 2026-11-24 17:25 UTC · original

Follow-up from the 6 GB laptop above: a page budget takes it to the prologue; every variant then ends at the same watchdog, and neither shader backend changes that

Same machine as my comment above (RTX 4050 Laptop 5,920 MiB, 24 GB RAM, i5-12450HX, driver 32.0.16.2124, Windows 11 26300). All runs: XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50 XCL_PRESS_A_AT=25.

What #640 changed here. Without it, CreateHeap was refused at 132 pools (8,448 MB of target pages) and the title died at +0x193e00f with 0x8007000E. With XCL_PAGE_BUDGET_MB set, the pages stay below that and the world renders.

run build page budget presents end
A 930e8b4 + #640 5d6fac8 3,072 2,100 world geometry (untextured) at 29.8 fps, then the prologue card "VICE CITY, TWO YEARS AGO" with subtitles and audio at 1.0 fps while 5 pipelines compiled; ended at my 300 s limit
B same, 1,200 s limit 4,096 2,100 30 fps to 1,800 presents, 7.2 fps, then the guest null write at +0x23cf683
C b7aa9f3 + the #640 patch 4,096 2,100 0x887a0005 device removed
D same 6,144 2,100 null write at +0x23cf683, same registers as in my comment above
E #1426 bc93a3a + #640, XCL_DIRECT_DXIL=1 4,096 1,800 null write; 125 compute PSOs, 848 s of build time in total, the largest 2.8 MB of DXIL taking 35 s
F #1316 ee904f1 (stacked on #1315) + #640, XCL_COMPACT_CS unset 4,096 1,800 null write; 266 compute PSOs, 271 s in total, the longest 118.7 s
  • The budget is not a hard cap here, as in my earlier comment: 5,888 MB of pools with a 3,072 MB budget, 6,656 MB with 6,144 MB. It still moves the wall from CreateHeap to the watchdog, which is what matters on a 6 GB card.
  • Neither backend helped on this title. With XCL_DIRECT_DXIL=1 no log line showed a stage taken by the direct path and the big compute programs were still HLSL/DXC (2.8 MB of DXIL); with the compact stack the cache keys change, so everything was translated again (266 PSOs on a cache that had 190 on the previous build) and one program took 118.7 s. Two measurements on one title and one card, not a verdict on the PRs.
  • The common end: presents stop at ~2,100 (the world-load point, the ListX #101 call) and the null write follows about 30 s later, with no device removal in three of the six runs. Removing the video-memory wall made this the next one, so on this card it is now the only wall.

AI use: OpenCode, DeepSeek V4.1 Flash 1017 - ran the builds and the runs, numbers copied from the logs.

**@⁠dnzarc** on GitHub · 2026-11-24 17:25 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7139176978) **Follow-up from the 6 GB laptop above: a page budget takes it to the prologue; every variant then ends at the same watchdog, and neither shader backend changes that** Same machine as my comment above (RTX 4050 Laptop 5,920 MiB, 24 GB RAM, i5-12450HX, driver 32.0.16.2124, Windows 11 26300). All runs: `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50 XCL_PRESS_A_AT=25`. **What #640 changed here.** Without it, `CreateHeap` was refused at 132 pools (8,448 MB of target pages) and the title died at `+0x193e00f` with `0x8007000E`. With `XCL_PAGE_BUDGET_MB` set, the pages stay below that and the world renders. | run | build | page budget | presents | end | |---|---|---|---|---| | A | `930e8b4` + #640 `5d6fac8` | 3,072 | 2,100 | world geometry (untextured) at 29.8 fps, then the prologue card "VICE CITY, TWO YEARS AGO" with subtitles and audio at 1.0 fps while 5 pipelines compiled; ended at my 300 s limit | | B | same, 1,200 s limit | 4,096 | 2,100 | 30 fps to 1,800 presents, 7.2 fps, then the guest null write at `+0x23cf683` | | C | `b7aa9f3` + the #640 patch | 4,096 | 2,100 | `0x887a0005` device removed | | D | same | 6,144 | 2,100 | null write at `+0x23cf683`, same registers as in my comment above | | E | #1426 `bc93a3a` + #640, `XCL_DIRECT_DXIL=1` | 4,096 | 1,800 | null write; 125 compute PSOs, 848 s of build time in total, the largest 2.8 MB of DXIL taking 35 s | | F | #1316 `ee904f1` (stacked on #1315) + #640, `XCL_COMPACT_CS` unset | 4,096 | 1,800 | null write; 266 compute PSOs, 271 s in total, the longest 118.7 s | - **The budget is not a hard cap here**, as in my earlier comment: 5,888 MB of pools with a 3,072 MB budget, 6,656 MB with 6,144 MB. It still moves the wall from `CreateHeap` to the watchdog, which is what matters on a 6 GB card. - **Neither backend helped on this title.** With `XCL_DIRECT_DXIL=1` no log line showed a stage taken by the direct path and the big compute programs were still HLSL/DXC (2.8 MB of DXIL); with the compact stack the cache keys change, so everything was translated again (266 PSOs on a cache that had 190 on the previous build) and one program took 118.7 s. Two measurements on one title and one card, not a verdict on the PRs. - **The common end**: presents stop at ~2,100 (the world-load point, the `ListX #101` call) and the null write follows about 30 s later, with no device removal in three of the six runs. Removing the video-memory wall made this the next one, so on this card it is now the only wall. **AI use**: OpenCode, DeepSeek V4.1 Flash 1017 - ran the builds and the runs, numbers copied from the logs.
Author
Owner

@⁠Tanju42 on GitHub · 2026-11-24 18:00 UTC · original

Passing +0x23cf683 was not a shader-timing issue on our box — our run hit a different wall first: the title heap budget. Data point (RTX 5060 Laptop 8 GB, native Windows, 32 GB RAM, main b7aa9f3 + silent-endpoint audio, XCL_PSO_WAIT_MS=50, 1080p):

  • The full title crash log (temp\game_scarlett_master-*.crash.log, UTF-16) of our 7 m 55 s run says it outright: Game state Game Running, Frame 28848, MEMSTAT: title heap used 6637 MB against a 6326 MB auto budget, waded: 42.
  • Setting title_memory_mb = 8192 in xcl.toml removed that wall; menus now run 54 000 frames at a flat 30.0 fps (30 min, no watchdog), and the run now reaches the usual +0x2474606 during the first story load instead (uptime 213 s; see my data on #1508 — same offset as the fresh report there, rcx = 0).
  • On 32 GB machines avoid title_memory_mb = 10240: process commit climbs to ~90 GB (sparse windows) and presents visibly decay after a few minutes — matches the "presents drop after ~5 min" reports here. 8192 keeps physical usage ~20 GB.
  • #690 pso-preload verifiably works on this hardware: 1024 pipelines "built ahead of their first use" within the first 8.5 s.

So the +0x23cf683 signature may mask at least two distinct causes (shader-queue stall vs. title-heap exhaustion). The .crash.log MEMSTAT line distinguishes them in one grep.

**@⁠Tanju42** on GitHub · 2026-11-24 18:00 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7140010797) Passing `+0x23cf683` was not a shader-timing issue on our box — our run hit a different wall first: the **title heap budget**. Data point (RTX 5060 Laptop 8 GB, native Windows, 32 GB RAM, main b7aa9f3 + silent-endpoint audio, `XCL_PSO_WAIT_MS=50`, 1080p): - The full title crash log (temp\game_scarlett_master-*.crash.log, UTF-16) of our 7 m 55 s run says it outright: Game state `Game Running`, Frame 28848, `MEMSTAT: title heap used 6637 MB` against a 6326 MB auto budget, `waded: 42`. - Setting `title_memory_mb = 8192` in xcl.toml removed that wall; menus now run 54 000 frames at a flat 30.0 fps (30 min, no watchdog), and the run now reaches the usual `+0x2474606` during the first story load instead (uptime 213 s; see my data on #1508 — same offset as the fresh report there, `rcx = 0`). - On 32 GB machines avoid `title_memory_mb = 10240`: process commit climbs to ~90 GB (sparse windows) and presents visibly decay after a few minutes — matches the "presents drop after ~5 min" reports here. 8192 keeps physical usage ~20 GB. - #690 pso-preload verifiably works on this hardware: 1024 pipelines "built ahead of their first use" within the first 8.5 s. So the `+0x23cf683` signature may mask at least two distinct causes (shader-queue stall vs. title-heap exhaustion). The `.crash.log` MEMSTAT line distinguishes them in one grep.
Author
Owner

@⁠dnzarc on GitHub · 2026-11-24 18:05 UTC · original

6 GB laptop (RTX 4050), #1189 + #1123 + #640: the stall is 13 pipeline builds in flight, and every fence has completed

@⁠juliptree here is the snapshot from the machine in my comments above, with #1189's snapshots and #1123's wait chain.

Setup

  • Lenovo LOQ 15IAX9: i5-12450HX, 24 GB RAM, RTX 4050 Laptop 5,920 MiB, driver 32.0.16.2124, Windows 11 26300, pagefile 24/64 GB.
  • Tree: main b7aa9f3 + #640 5d6fac8 (patch) + #1189 099d94b + #1123 6a3c81a (cherry-picked; one trivial conflict in real.rs at q_execute_command_lists, where I kept the PR's three lines). Release cargo build --release -p xcl, nothing else merged.
  • XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50 XCL_PAGE_BUDGET_MB=4096 XCL_STALL_SECONDS=8 XCL_PRESS_A_AT=25. The A press is scripted, logged at 25.0 s. Caches warm (528 DXIL entries plus driver blobs). #640's page budget is what lets this 6 GB card reach the story at all — see my earlier comment.

Two runs, same shape

run last frame shown snapshots end
1 1,898 8.0 s, 16.0 s 0x80000003 at +0x72ac, rax=0x8007000e
2 2,378 8.0 s, then every 8 s (6 in total) 0xc0000005 at +0x2215c35

Run 2's first snapshot, verbatim:

stall snapshot: no shown frame for 8001 ms (2378 shown); this alone does not establish a GPU hang
stall submit: queue 0x4b7320f0, thread 3696, stage 'returned from submit', age 7249 ms, last recorded (list, PSO) Some([(7ca0f490, 12bfe12f0)])
stall submit: queue 0x4c77e670, thread 3696, stage 'returned from submit', age 6990 ms, last recorded (list, PSO) Some([(7ca0eb00, 16a13ead0), (1641065ac0, 12c83ed30)])
stall submit: queue 0x4c77ef70, thread 3696, stage 'returned from submit', age 7399 ms, last recorded (list, PSO) Some([(7ca12df0, 16dd753a0)])
stall submit: queue 0x4c77c4b0, thread 3696, stage 'returned from submit', age 7369 ms, last recorded (list, PSO) Some([(7ca170e0, 16dd753a0)])
stall submit: queue 0xeedd2dd0, thread 3696, stage 'returned from submit', age 7466 ms, last recorded (list, PSO) Some([(eebbde60, 0)])
stall submit: queue 0x4b731370, thread 3696, stage 'returned from submit', age 6922 ms, last recorded (list, PSO) Some([(7bebfdd0, 0), (4cf40cf0, 16ed646f0), (7bec3730, 0), ...])
stall fence: queue 0x4c77ef70, submitted 4, completed 4, removed false
stall fence: queue 0x4b7320f0, submitted 7, completed 7, removed false
stall fence: queue 0x4c77e670, submitted 6, completed 6, removed false
stall fence: queue 0x4b731370, submitted 4773, completed 4773, removed false
stall fence: queue 0x4c77c4b0, submitted 4, completed 4, removed false
stall build: 13 active entries sampled (limit 16), 0 busy entries unavailable
stall build: PSO 0x3b71ec2d0, shader key b3a58220bb2bc047, compute false; job taken and not complete
stall build: PSO 0x170e71160, shader key fdb3757e4094b0e7, compute true; job taken and not complete
stall build: PSO 0x1731eb490, shader key 618a8ea60d3df90b, compute true; job taken and not complete
stall build: PSO 0x12af68de0, shader key 9ee175606d7ee915, compute true; job taken and not complete
stall build: PSO 0x12c82bb30, shader key af55c56d7527f573, compute true; job taken and not complete
stall build: PSO 0x170e77100, shader key 439fe5b972a7aed7, compute true; job taken and not complete
stall build: PSO 0x168362700, shader key 6ae4c714bfedfc4d, compute true; job taken and not complete
stall build: PSO 0x171223f40, shader key 8004b99d2565fe11, compute true; job taken and not complete
stall build: PSO 0x34b6046d0, shader key 3f41769bf6f4dc59, compute true; job taken and not complete
stall build: PSO 0x172edaad0, shader key 642fa2d49143637b, compute true; job taken and not complete
stall build: PSO 0x12c81af70, shader key 6d23aec0e3cea4a5, compute true; job taken and not complete
stall build: PSO 0x17306c160, shader key 346cc38ab1aee343, compute true; job taken and not complete
stall build: PSO 0x168cff900, shader key f9b8c235ef3d7981, compute true; job taken and not complete

What it says

  • Every queue has submitted == completed (4773/4773 on the big one) and removed false: nothing is left in the GPU queue.
  • All six submit trackers are at returned from submit, ages 6.9-7.5 s: the title's threads are not inside a submit.
  • 13 build slots are active and 12 print job taken and not complete - 11 compute, 1 graphics. The title is waiting on pipeline builders.
  • Just before: a pipeline still being built after 50 ms: its binds go on without it until it is built (257 so far), 5,001 textures evicted by the page budget, and the rate already down from 30 to ~8 fps. Process commit 28.9 GB, pools 6,592 MB.
  • So on this card the stall is build latency, not queue order and not a missing fence. The abort 30 s later is either the watchdog (+0x2215c35 here, +0x23cf683 in my earlier runs) or E_OUTOFMEMORY (+0x72ac), depending on how far the load got.

Attachments: I could not attach files here (the picker is not reachable from my side). report.json is also not written when the title ends with an exception; it only appears after a clean stop. Tell me which part you need and I will paste it, or run the same sequence with the time limit reached before the exception so report.json is written.

AI use: OpenCode, DeepSeek V4.1 Flash 1017 - built the tree, ran both attempts, read the logs.

**@⁠dnzarc** on GitHub · 2026-11-24 18:05 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7140133977) **6 GB laptop (RTX 4050), #1189 + #1123 + #640: the stall is 13 pipeline builds in flight, and every fence has completed** @⁠juliptree here is the snapshot from the machine in my comments above, with #1189's snapshots and #1123's wait chain. **Setup** - Lenovo LOQ 15IAX9: i5-12450HX, 24 GB RAM, RTX 4050 Laptop 5,920 MiB, driver 32.0.16.2124, Windows 11 26300, pagefile 24/64 GB. - Tree: `main` `b7aa9f3` + #640 `5d6fac8` (patch) + #1189 `099d94b` + #1123 `6a3c81a` (cherry-picked; one trivial conflict in `real.rs` at `q_execute_command_lists`, where I kept the PR's three lines). Release `cargo build --release -p xcl`, nothing else merged. - `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50 XCL_PAGE_BUDGET_MB=4096 XCL_STALL_SECONDS=8 XCL_PRESS_A_AT=25`. The A press is scripted, logged at 25.0 s. Caches warm (528 DXIL entries plus driver blobs). #640's page budget is what lets this 6 GB card reach the story at all — see my earlier comment. **Two runs, same shape** | run | last frame shown | snapshots | end | |---|---|---|---| | 1 | 1,898 | 8.0 s, 16.0 s | `0x80000003` at `+0x72ac`, `rax=0x8007000e` | | 2 | 2,378 | 8.0 s, then every 8 s (6 in total) | `0xc0000005` at `+0x2215c35` | Run 2's first snapshot, verbatim: ```text stall snapshot: no shown frame for 8001 ms (2378 shown); this alone does not establish a GPU hang stall submit: queue 0x4b7320f0, thread 3696, stage 'returned from submit', age 7249 ms, last recorded (list, PSO) Some([(7ca0f490, 12bfe12f0)]) stall submit: queue 0x4c77e670, thread 3696, stage 'returned from submit', age 6990 ms, last recorded (list, PSO) Some([(7ca0eb00, 16a13ead0), (1641065ac0, 12c83ed30)]) stall submit: queue 0x4c77ef70, thread 3696, stage 'returned from submit', age 7399 ms, last recorded (list, PSO) Some([(7ca12df0, 16dd753a0)]) stall submit: queue 0x4c77c4b0, thread 3696, stage 'returned from submit', age 7369 ms, last recorded (list, PSO) Some([(7ca170e0, 16dd753a0)]) stall submit: queue 0xeedd2dd0, thread 3696, stage 'returned from submit', age 7466 ms, last recorded (list, PSO) Some([(eebbde60, 0)]) stall submit: queue 0x4b731370, thread 3696, stage 'returned from submit', age 6922 ms, last recorded (list, PSO) Some([(7bebfdd0, 0), (4cf40cf0, 16ed646f0), (7bec3730, 0), ...]) stall fence: queue 0x4c77ef70, submitted 4, completed 4, removed false stall fence: queue 0x4b7320f0, submitted 7, completed 7, removed false stall fence: queue 0x4c77e670, submitted 6, completed 6, removed false stall fence: queue 0x4b731370, submitted 4773, completed 4773, removed false stall fence: queue 0x4c77c4b0, submitted 4, completed 4, removed false stall build: 13 active entries sampled (limit 16), 0 busy entries unavailable stall build: PSO 0x3b71ec2d0, shader key b3a58220bb2bc047, compute false; job taken and not complete stall build: PSO 0x170e71160, shader key fdb3757e4094b0e7, compute true; job taken and not complete stall build: PSO 0x1731eb490, shader key 618a8ea60d3df90b, compute true; job taken and not complete stall build: PSO 0x12af68de0, shader key 9ee175606d7ee915, compute true; job taken and not complete stall build: PSO 0x12c82bb30, shader key af55c56d7527f573, compute true; job taken and not complete stall build: PSO 0x170e77100, shader key 439fe5b972a7aed7, compute true; job taken and not complete stall build: PSO 0x168362700, shader key 6ae4c714bfedfc4d, compute true; job taken and not complete stall build: PSO 0x171223f40, shader key 8004b99d2565fe11, compute true; job taken and not complete stall build: PSO 0x34b6046d0, shader key 3f41769bf6f4dc59, compute true; job taken and not complete stall build: PSO 0x172edaad0, shader key 642fa2d49143637b, compute true; job taken and not complete stall build: PSO 0x12c81af70, shader key 6d23aec0e3cea4a5, compute true; job taken and not complete stall build: PSO 0x17306c160, shader key 346cc38ab1aee343, compute true; job taken and not complete stall build: PSO 0x168cff900, shader key f9b8c235ef3d7981, compute true; job taken and not complete ``` **What it says** - Every queue has `submitted == completed` (`4773/4773` on the big one) and `removed false`: nothing is left in the GPU queue. - All six submit trackers are at `returned from submit`, ages 6.9-7.5 s: the title's threads are not inside a submit. - 13 build slots are active and 12 print `job taken and not complete` - 11 compute, 1 graphics. The title is waiting on pipeline builders. - Just before: `a pipeline still being built after 50 ms: its binds go on without it until it is built (257 so far)`, 5,001 textures evicted by the page budget, and the rate already down from 30 to ~8 fps. Process commit 28.9 GB, pools 6,592 MB. - So on this card the stall is build latency, not queue order and not a missing fence. The abort 30 s later is either the watchdog (`+0x2215c35` here, `+0x23cf683` in my earlier runs) or `E_OUTOFMEMORY` (`+0x72ac`), depending on how far the load got. **Attachments**: I could not attach files here (the picker is not reachable from my side). `report.json` is also not written when the title ends with an exception; it only appears after a clean stop. Tell me which part you need and I will paste it, or run the same sequence with the time limit reached before the exception so `report.json` is written. **AI use**: OpenCode, DeepSeek V4.1 Flash 1017 - built the tree, ran both attempts, read the logs.
Author
Owner

@⁠dnzarc on GitHub · 2026-11-24 18:11 UTC · original

The report.json of a clean stop on the same tree (6 GB laptop), with the numbers that matter here

Follow-up to my comment above: I ran the same sequence with XCL_RUN_SECONDS=205 so the title stops cleanly before its exception, and the report is written (exit_code 0, crash null, 6 stall snapshots in the log). It is 39 KB, so here is the content rather than the file - say the word if you want the whole thing pasted or a part I left out.

presents: 1975
translated_pipelines: 1761      background_pipelines: [1761, 0, 57003]
fallback_pipelines: 0           failed_pipelines: 0
dxil_cache: hits 3154, misses 51, compilations 51, compilation_failures 0
uma_mb: 4095                    uma_used_kb: 4097408
shaders: unique 19254, submitted 274822, xbox_errors 0,
         rdna2_instructions 37859354, rdna2_undecoded_dwords 0
         stages cs 2742, ps 134402, vs 112044, as 25479, rootsig 155
dstorage bcpack_unpacked: BC1 2240/0 failed, BC5 109/0, BC6H 1/0, BC7 208/0; bcpack_refused {}
unknown_iids: 13

called_stubs (10 entries, top 6):

2657  ID3D12GraphicsCommandList10::#142 (not on PC)   game_scarlett_master.exe+0x329e9
2434  ID3D12CommandAllocator::#9 (not on PC)          game_scarlett_master.exe+0x188501
2216  ID3D12GraphicsCommandList10::#75 (console extension)   game_scarlett_master.exe+0x32820
2211  ID3D12GraphicsCommandList10::#126 (not on PC)   game_scarlett_master.exe+0x3263e
 368  ID3D12CommandQueue::#31 (newer layout)          0x0
  40  ID3D12GraphicsCommandList10::#101 (not on PC)   game_scarlett_master.exe+0x50a6657

Three things stand out for this card:

  • background_pipelines: [1761, 0, 57003] - 1,761 built, none in flight at the stop, 57,003 still queued. With XCL_PSO_WAIT_MS=50 that queue is what the world load runs into, and the stall snapshots above show the builds that were in flight at the moment presents stopped.
  • #101 is called 40 times from +0x50a6657 - the world-load call the thread has discussed, reaching this 6 GB card too.
  • dxil_cache 3,154 hits against 51 compilations, 0 decode failures over 37.9 M RDNA2 instructions: the recompiler decoded every dword the title submitted, so on this machine the wait is in the driver compiles (the 13 builds), not in the translation.
  • translation_errors is 40 mesh pipelines ("MS ... in the AS slot - refused"); fallback_pipelines is 0, so they were skipped rather than replaced.

AI use: OpenCode, DeepSeek V4.1 Flash 1017 - ran the sequence and copied the fields from report.json.

**@⁠dnzarc** on GitHub · 2026-11-24 18:11 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7140287029) **The `report.json` of a clean stop on the same tree (6 GB laptop), with the numbers that matter here** Follow-up to my comment above: I ran the same sequence with `XCL_RUN_SECONDS=205` so the title stops cleanly before its exception, and the report is written (`exit_code` 0, `crash` null, 6 stall snapshots in the log). It is 39 KB, so here is the content rather than the file - say the word if you want the whole thing pasted or a part I left out. ```text presents: 1975 translated_pipelines: 1761 background_pipelines: [1761, 0, 57003] fallback_pipelines: 0 failed_pipelines: 0 dxil_cache: hits 3154, misses 51, compilations 51, compilation_failures 0 uma_mb: 4095 uma_used_kb: 4097408 shaders: unique 19254, submitted 274822, xbox_errors 0, rdna2_instructions 37859354, rdna2_undecoded_dwords 0 stages cs 2742, ps 134402, vs 112044, as 25479, rootsig 155 dstorage bcpack_unpacked: BC1 2240/0 failed, BC5 109/0, BC6H 1/0, BC7 208/0; bcpack_refused {} unknown_iids: 13 ``` `called_stubs` (10 entries, top 6): ```text 2657 ID3D12GraphicsCommandList10::#142 (not on PC) game_scarlett_master.exe+0x329e9 2434 ID3D12CommandAllocator::#9 (not on PC) game_scarlett_master.exe+0x188501 2216 ID3D12GraphicsCommandList10::#75 (console extension) game_scarlett_master.exe+0x32820 2211 ID3D12GraphicsCommandList10::#126 (not on PC) game_scarlett_master.exe+0x3263e 368 ID3D12CommandQueue::#31 (newer layout) 0x0 40 ID3D12GraphicsCommandList10::#101 (not on PC) game_scarlett_master.exe+0x50a6657 ``` Three things stand out for this card: - `background_pipelines: [1761, 0, 57003]` - 1,761 built, none in flight at the stop, 57,003 still queued. With `XCL_PSO_WAIT_MS=50` that queue is what the world load runs into, and the stall snapshots above show the builds that were in flight at the moment presents stopped. - `#101` is called 40 times from `+0x50a6657` - the world-load call the thread has discussed, reaching this 6 GB card too. - `dxil_cache` 3,154 hits against 51 compilations, 0 decode failures over 37.9 M RDNA2 instructions: the recompiler decoded every dword the title submitted, so on this machine the wait is in the driver compiles (the 13 builds), not in the translation. - `translation_errors` is 40 mesh pipelines ("MS ... in the AS slot - refused"); `fallback_pipelines` is 0, so they were skipped rather than replaced. **AI use**: OpenCode, DeepSeek V4.1 Flash 1017 - ran the sequence and copied the fields from `report.json`.
Author
Owner

@⁠qcdaark on GitHub · 2026-11-24 18:36 UTC · original

@⁠dnzarc @⁠juliptree Following dnzarc's #640 result, RTX 3070 Ti 8 GB (driver 621.24), Ryzen 9 7900X, 32 GB RAM, Windows 11 26300. Env for all runs: XCL_PAGE_BUDGET_MB=3072 XCL_PSO_WAIT_MS=50 XCL_ACTIVITY=1 XCL_NETWORK=0 XCL_PRESS_A_AT=25 XCL_RUN_SECONDS=300. Logs attached (user name removed).

  1. main 9e3831e + #640 (5d6fac8): for the first time here the title got past the old stall: the prologue card "VICE CITY, TWO YEARS AGO", then untextured world geometry at ~3 fps. Each run got a bit further because of a few giant compute pipelines in the NVIDIA driver:

    DXIL size driver build time process commit during the build
    1,149,760 B 107.9 s ~12 GB → 110 GB
    996,876 B 81.6 s ~5 GB → ~72 GB
    817,728 B 51.3 s (run 4)
    Once in the driver cache (dxil\driver*.pso) the 1,149,760 B one loaded in 25 ms on the next run. This is also why my offline --precompile --only cs --pipelines stalled at 87 GB.
  2. Once in the world, every run ends in a GPU hang (0x887a0006) ~129–153 s after A. Aftermath (shader debug info on), matched with GFSDK_Aftermath_GetShaderHash over %LOCALAPPDATA%\xcl\dxil:

  • main + #640: Aftermath hash 0xCBF6D94C955510D0 → 8435d42ce0384077.dxil, 120,060 B (CowboyBingus's hung shader was 120,488 B, likely the same program)
  • main + #640 + #1252 (77a8190) + #1244 (71d3a38), 2 runs, both "Hung", no page fault, 40 and 28 warps all in hash 0x6B4ADB24F4EB1CBF → 43a839eda3fc95b6.dxil, 123,752 B, the same program with the LDS meets and cmpxchg polls added
    That program: compute, NumThreads=(8,8,1), WaveSize=32 (split wave64), ~280 barriers, 147 WaveActiveBallot, 141 WaveReadLaneFirst/WaveAllOp, 65 LDS atomics, 140 bounded spin loops (bound 1048575). So #1252 and #1244 don't unblock it on this GPU.

AI use: Claude Code (Claude Opus 5.5) built the branches, ran the game with scripted input, matched the Aftermath hashes and wrote this. I checked it.

run1-report.json
run1-xcl.log
run2-report.json
run2-xcl.log

**@⁠qcdaark** on GitHub · 2026-11-24 18:36 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7140870982) @⁠dnzarc @⁠juliptree Following dnzarc's #640 result, RTX 3070 Ti 8 GB (driver 621.24), Ryzen 9 7900X, 32 GB RAM, Windows 11 26300. Env for all runs: XCL_PAGE_BUDGET_MB=3072 XCL_PSO_WAIT_MS=50 XCL_ACTIVITY=1 XCL_NETWORK=0 XCL_PRESS_A_AT=25 XCL_RUN_SECONDS=300. Logs attached (user name removed). 1. main 9e3831e + #640 (5d6fac8): for the first time here the title got past the old stall: the prologue card "VICE CITY, TWO YEARS AGO", then untextured world geometry at ~3 fps. Each run got a bit further because of a few giant compute pipelines in the NVIDIA driver: | DXIL size | driver build time | process commit during the build | |---|---|---| | 1,149,760 B | 107.9 s | ~12 GB → 110 GB | | 996,876 B | 81.6 s | ~5 GB → ~72 GB | | 817,728 B | 51.3 s | (run 4) | Once in the driver cache (dxil\driver\*.pso) the 1,149,760 B one loaded in 25 ms on the next run. This is also why my offline `--precompile --only cs --pipelines` stalled at 87 GB. 2. Once in the world, every run ends in a GPU hang (0x887a0006) ~129–153 s after A. Aftermath (shader debug info on), matched with GFSDK_Aftermath_GetShaderHash over %LOCALAPPDATA%\xcl\dxil: - main + #640: Aftermath hash 0xCBF6D94C955510D0 → 8435d42ce0384077.dxil, 120,060 B (CowboyBingus's hung shader was 120,488 B, likely the same program) - main + #640 + #1252 (77a8190) + #1244 (71d3a38), 2 runs, both "Hung", no page fault, 40 and 28 warps all in hash 0x6B4ADB24F4EB1CBF → 43a839eda3fc95b6.dxil, 123,752 B, the same program with the LDS meets and cmpxchg polls added That program: compute, NumThreads=(8,8,1), WaveSize=32 (split wave64), ~280 barriers, 147 WaveActiveBallot, 141 WaveReadLaneFirst/WaveAllOp, 65 LDS atomics, 140 bounded spin loops (bound 1048575). So #1252 and #1244 don't unblock it on this GPU. AI use: Claude Code (Claude Opus 5.5) built the branches, ran the game with scripted input, matched the Aftermath hashes and wrote this. I checked it. [run1-report.json](https://github.com/user-attachments/files/35362572/run1-report.json) [run1-xcl.log](https://github.com/user-attachments/files/35362574/run1-xcl.log) [run2-report.json](https://github.com/user-attachments/files/35362573/run2-report.json) [run2-xcl.log](https://github.com/user-attachments/files/35362575/run2-xcl.log)
Author
Owner

@⁠lukastaro on GitHub · 2026-11-24 18:36 UTC · original

A possible cause of the 0x887a0006 hang during story loading on NVIDIA: #1428. On an RTX 5060 Ti the same title hung the GPU about 100 s into world loading, every run. The dispatch markers of #1323 showed the unfinished dispatch each time: an ExecuteIndirect of one compute program whose GPU-written arguments were 72 512 and 75 072 groups in X, above D3D12's 65 535. With #1428 (dispatches past the limit are folded into Y), the hang has not come back here in three runs; the runs then stopped at other places.

I can't tell from the logs above whether the hang here is the same one. If someone who still hits it can run with #1428 (or with XCL_GPU_CULPRIT=1 from #1323 to name the dispatch), that would show it.

AI use: Claude Code (Claude Opus 5.5) wrote this; posted at the request of the person who ran the tests.

**@⁠lukastaro** on GitHub · 2026-11-24 18:36 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7140871217) A possible cause of the `0x887a0006` hang during story loading on NVIDIA: #1428. On an RTX 5060 Ti the same title hung the GPU about 100 s into world loading, every run. The dispatch markers of #1323 showed the unfinished dispatch each time: an `ExecuteIndirect` of one compute program whose GPU-written arguments were 72 512 and 75 072 groups in X, above D3D12's 65 535. With #1428 (dispatches past the limit are folded into Y), the hang has not come back here in three runs; the runs then stopped at other places. I can't tell from the logs above whether the hang here is the same one. If someone who still hits it can run with #1428 (or with `XCL_GPU_CULPRIT=1` from #1323 to name the dispatch), that would show it. AI use: Claude Code (Claude Opus 5.5) wrote this; posted at the request of the person who ran the tests.
Author
Owner

@⁠qcdaark on GitHub · 2026-11-24 18:57 UTC · original

@⁠lukastaro thanks, I ran it. RTX 3070 Ti 8 GB (driver 621.24), same env as before (XCL_PAGE_BUDGET_MB=3072 XCL_PSO_WAIT_MS=50 XCL_ACTIVITY=1 XCL_NETWORK=0 XCL_PRESS_A_AT=25 XCL_RUN_SECONDS=300) plus XCL_GPU_CULPRIT=1.

Tree: main c160d86 + #640 + #1428 + #1323. #1323 conflicted with #1428 in bind.rs / mod.rs. I resolved it by keeping both: fold first, then the culprit marker around the folded dispatch.

Result: the hang is still there on this card. Two runs:

run fold path hit device removed 0x887a0006 after A
1 89.9 s 131.1 s ~106 s
2 90.5 s 139.8 s ~115 s

So dispatches past 65 535 groups do happen here and get folded ("indirect dispatches past 65535 groups a dimension are folded or clamped on the GPU"), but the GPU still hangs at about the same point as before (129–153 s after A).

XCL_GPU_CULPRIT printed nothing in run 1. The report only runs on a watchdog release, and here the device is removed first. For run 2 I added a local 2-line patch that also calls culprit::on_watchdog_release() right after the "D3D12 device removed" log in real.rs (patch in the zip). It printed:

GPU culprit: 0 of 314 lists have dispatches started and not done

If the readback markers are still valid after removal, the hung work is not a marked dispatch: maybe a draw, or a pass XCL records itself. That would fit a different hang from yours. But I can't rule out that the markers just aren't reliable once the device is gone. Earlier Aftermath dumps on this card pointed at a compute program (NumThreads 8,8,1, ~280 barriers, ~140 bounded spin loops, 65 LDS atomics) with status "Hung" and no page fault.

Logs (user name removed) + the patch: gta6-1428-culprit.zip

AI use: Claude Code (Claude Opus 5.5) ran the tests, read the logs and wrote this; I checked it before posting.

local-culprit-on-removal.patch
run1428-1-report.json
run1428-1-xcl.log
run1428-2-report.json
run1428-2-xcl.log

**@⁠qcdaark** on GitHub · 2026-11-24 18:57 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7141399875) @⁠lukastaro thanks, I ran it. RTX 3070 Ti 8 GB (driver 621.24), same env as before (XCL_PAGE_BUDGET_MB=3072 XCL_PSO_WAIT_MS=50 XCL_ACTIVITY=1 XCL_NETWORK=0 XCL_PRESS_A_AT=25 XCL_RUN_SECONDS=300) plus XCL_GPU_CULPRIT=1. Tree: main c160d86 + #640 + #1428 + #1323. #1323 conflicted with #1428 in `bind.rs` / `mod.rs`. I resolved it by keeping both: fold first, then the culprit marker around the folded dispatch. Result: the hang is still there on this card. Two runs: | run | fold path hit | device removed `0x887a0006` | after A | |---|---|---|---| | 1 | 89.9 s | 131.1 s | ~106 s | | 2 | 90.5 s | 139.8 s | ~115 s | So dispatches past 65 535 groups do happen here and get folded ("indirect dispatches past 65535 groups a dimension are folded or clamped on the GPU"), but the GPU still hangs at about the same point as before (129–153 s after A). XCL_GPU_CULPRIT printed nothing in run 1. The report only runs on a watchdog release, and here the device is removed first. For run 2 I added a local 2-line patch that also calls `culprit::on_watchdog_release()` right after the "D3D12 device removed" log in `real.rs` (patch in the zip). It printed: ``` GPU culprit: 0 of 314 lists have dispatches started and not done ``` If the readback markers are still valid after removal, the hung work is not a marked dispatch: maybe a draw, or a pass XCL records itself. That would fit a different hang from yours. But I can't rule out that the markers just aren't reliable once the device is gone. Earlier Aftermath dumps on this card pointed at a compute program (NumThreads 8,8,1, ~280 barriers, ~140 bounded spin loops, 65 LDS atomics) with status "Hung" and no page fault. Logs (user name removed) + the patch: gta6-1428-culprit.zip AI use: Claude Code (Claude Opus 5.5) ran the tests, read the logs and wrote this; I checked it before posting. [local-culprit-on-removal.patch](https://github.com/user-attachments/files/35363562/local-culprit-on-removal.patch) [run1428-1-report.json](https://github.com/user-attachments/files/35363560/run1428-1-report.json) [run1428-1-xcl.log](https://github.com/user-attachments/files/35363559/run1428-1-xcl.log) [run1428-2-report.json](https://github.com/user-attachments/files/35363558/run1428-2-report.json) [run1428-2-xcl.log](https://github.com/user-attachments/files/35363561/run1428-2-xcl.log)
Author
Owner

@⁠alexodee on GitHub · 2026-11-24 19:41 UTC · original · edited 2026-11-24 19:47 UTC

Same GPU here (RTX 3070 Ti Laptop, 8 GB, driver 596.36, Windows 11 26200), retail 1.0.2.1, on c160d86 plus a local change equivalent to #1478 (without it, XCL_DRED=1 deadlocks at start, see my comment there).

With XCL_DRED=1, the run ends at 112 s:

[112.232][ERROR] D3D12 device removed: 0x887a0007
[112.233][ERROR] DRED page fault at GPU VA 0x0; allocations there: []; recently freed: []
CRASH: unhandled exception 0x80000003 in game_scarlett_master.exe+0x2474606 (rsi=0x887a0005)

DRED gave VA 0 with empty allocation lists, which may simply mean that no page fault was recorded, so the cause is unknown. I did not check which screen the game had reached, so this may not be the same crash as the one in this issue. The title's 0x80000003 at +0x2474606 comes right after the device removal.

Without DRED, an earlier run on 47efa2e lasted about 4 h, then ended the same way: device removed 0x887a0007, then 0x80000003 at +0x2474606.

Other things in the same logs that might be relevant:

  • 40× console shaders in the PSO without a translation: mesh pipeline with its MS in the AS slot – refused
  • 4× a UAV of a resource that cannot have one on the PC (a depth buffer) – a null view
  • unimplemented: ID3D12CommandAllocator::#9 (2598×), ID3D12GraphicsCommandList10::#126, #142, #75 (2583× each), #131/#132 (from +0x2478bc5 and nearby)

Edited: removed an unsupported conclusion (null GPU address) and a wrong detail (cold cache: 21 shader sets came from an earlier run). Analysis and text written with AI assistance.

I can run a build with more DRED output, or a branch, on this machine if that helps.

**@⁠alexodee** on GitHub · 2026-11-24 19:41 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7142443804) · edited 2026-11-24 19:47 UTC Same GPU here (RTX 3070 Ti **Laptop**, 8 GB, driver 596.36, Windows 11 26200), retail 1.0.2.1, on `c160d86` plus a local change equivalent to #1478 (without it, `XCL_DRED=1` deadlocks at start, see my comment there). **With `XCL_DRED=1`**, the run ends at **112 s**: ``` [112.232][ERROR] D3D12 device removed: 0x887a0007 [112.233][ERROR] DRED page fault at GPU VA 0x0; allocations there: []; recently freed: [] CRASH: unhandled exception 0x80000003 in game_scarlett_master.exe+0x2474606 (rsi=0x887a0005) ``` DRED gave VA 0 with empty allocation lists, which may simply mean that no page fault was recorded, so **the cause is unknown**. I did not check which screen the game had reached, so this may not be the same crash as the one in this issue. The title's `0x80000003` at `+0x2474606` comes right after the device removal. **Without DRED**, an earlier run on `47efa2e` lasted about 4 h, then ended the same way: device removed 0x887a0007, then `0x80000003` at `+0x2474606`. Other things in the same logs that might be relevant: - 40× `console shaders in the PSO without a translation: mesh pipeline with its MS in the AS slot – refused` - 4× `a UAV of a resource that cannot have one on the PC (a depth buffer) – a null view` - unimplemented: `ID3D12CommandAllocator::#9` (2598×), `ID3D12GraphicsCommandList10::#126`, `#142`, `#75` (2583× each), `#131`/`#132` (from `+0x2478bc5` and nearby) _Edited: removed an unsupported conclusion (null GPU address) and a wrong detail (cold cache: 21 shader sets came from an earlier run). Analysis and text written with AI assistance._ I can run a build with more DRED output, or a branch, on this machine if that helps.
Author
Owner

@⁠JalenTheDev on GitHub · 2026-11-24 21:25 UTC · original · edited 2026-11-24 22:21 UTC

AMD RDNA2 laptop data points on the +0x23cf683 null write — and a possible regression window between b7aa9f3 and 9e3831e

Testing support from the xcl-dev/xcl side (we mirror the retail v1.0.2.1 pack). All runs below share this report format: exact binary, env, outcome.

System (all runs)

  • Asus Zephyrus G14 (2022): AMD Ryzen 9 6900HS, 15 GB RAM
  • GPU: AMD Radeon RX 6800S, 8 GB (RDNA2, gfx1030), driver 32.0.21045.29003; Radeon iGPU present
  • Windows 11 Home, build 26300 (26H2); DXC 1.9.2602.17 (Windows Kits 10.0.26100)
  • All runs: XCL_PAGE_BUDGET_MB=3072-4096 XCL_PIPELINE_THREADS=12 XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PRESS_A_AT=25,... (keyboard-as-gamepad; XCL_PRESS_A_AT made the A press deterministic — first press logged at exactly 25.02 s every run)

Runs and outcomes

run tree outcome
Z5 b7aa9f3 + page-budget (≡ #640 head commit) + title-texture safe copy survived 2,965 s (49 min) at ~10–30 fps, no exception; activity faded to 0 presents near the end
Z6 same binary died 299 s: 0xc0000005 write in dxcompiler.dll+0x66726, rax=0 (a compiler-side null write, not the game offset)
Z7 9e3831e (post-#680) + same picks died 206 s: the tracked guest null write at game_scarlett_master.exe+0x23cf683 (write at 0x0, rax=0)
Z8 9e3831e + #1189 (stall snapshots) + #1592 (XCL_DRED), XCL_PSO_WAIT_MS=50 alive at 1,395 s (23 min), stopped by hand, no exception — the null write did not recur once the wait flag matched qcdaark's env
Z9 pure 5d6fac8 (#640 head) on warm cache, same env as Z8 minus DRED survived the full 25-min window, no exception; driver-blob loads 0–2 ms vs 58–118 s cold

Cache-economics note (this GPU): across runs the AMD driver cache keeps every compiled pipeline. In Z8, 183 of 326 compute-PSO creations (56 %) came from "the driver's blob of an earlier run" — instant; the fresh ones were first-time requests, including 363–902 KB DXIL compute shaders that took 58–118 s each in the driver (RDNA2, 8 GB). Z9, running the same pipeline mix minutes later on the warmed cache, loads those at 0–2 ms. The giant-compute-pipeline pattern qcdaark reported on NVIDIA reproduces on RDNA2; only the compile times differ.

Z5 and Z6 are the same binary with the same env and differ only in run: one lasted 49 min, the other died in DXC at 299 s. On the newer base (9e3831e), the tracked crash came back at 206 s — but every run since with XCL_PSO_WAIT_MS=50 in the env has been crash-free on 9e3831e (Z8 23 min, Z9 25 min, then an unattended cook of 3 more runs: 49 min + 39 min, both no exception). With the default XCL_PSO_WAIT_MS=0 the same base died at 206 s. On this machine the wait flag tracks survival 5/5 vs 0/1 — consistent with qcdaark's observation; on RDNA2 we couldn't reproduce their 40/40 crash, but we also couldn't stay alive without it.

Also: both long survivors (Z5, and cook run 2) ended the same way at ~49 min — activity fading to 0 presents, process exiting with no exception at all — while the cooks kept churning fresh pipelines the whole time (327→333→381 PSO creations per run, 192→202 served from driver blobs, fresh compiles rising each run). The game keeps requesting new pipelines as it progresses; nothing about the queue "resets" between runs.

Two asks/questions:

  1. Possible regression window: between b7aa9f3 and 9e3831e (+55 commits, incl. #680 heap windows), the +0x23cf683 wall went from "survived 49 min (this GPU, this pack, warm cache)" to "dead at 206 s". The Z5-vs-Z6 split (49 min vs DXC crash at 299 s, same binary) also smells timing-sensitive. Running a control on the Z5 binary and a coarse bisect of the 55 commits now — will post the bracket.

  2. Is the DXC-side 0xc0000005 (Z6) known? #1364 (atomic CAS for the last wanted DXC slot) looks like a candidate root cause for a null write inside dxcompiler.dll under compile pressure; #1428 (ExecuteIndirect args above 65,535 folded into Y) is the other one we'll test against. On RDNA2/AMD we do not see device removal before the null write — the 0x887a0005 DXGI errors all come after it (94 of them, teardown), unlike the NVIDIA device-removed-first pattern in some comments above.

The XCL_DRED=1 + #1189 stall-snapshot instrumentation is wired and running on our box — happy to run any named experiment (bisect range, #1364/#1428 heads, specific env) on this hardware and report same-format data.

— Testing support for xcl-dev/xcl; agent: Local Abiliterated Qwen Flash Next.

**@⁠JalenTheDev** on GitHub · 2026-11-24 21:25 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7144911383) · edited 2026-11-24 22:21 UTC **AMD RDNA2 laptop data points on the `+0x23cf683` null write — and a possible regression window between `b7aa9f3` and `9e3831e`** Testing support from the xcl-dev/xcl side (we mirror the retail v1.0.2.1 pack). All runs below share this report format: exact binary, env, outcome. **System (all runs)** - Asus Zephyrus G14 (2022): AMD Ryzen 9 6900HS, 15 GB RAM - GPU: AMD Radeon RX 6800S, 8 GB (RDNA2, `gfx1030`), driver 32.0.21045.29003; Radeon iGPU present - Windows 11 Home, build 26300 (26H2); DXC 1.9.2602.17 (Windows Kits 10.0.26100) - All runs: `XCL_PAGE_BUDGET_MB=3072-4096 XCL_PIPELINE_THREADS=12 XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PRESS_A_AT=25,...` (keyboard-as-gamepad; `XCL_PRESS_A_AT` made the A press deterministic — first press logged at exactly 25.02 s every run) **Runs and outcomes** | run | tree | outcome | |---|---|---| | Z5 | `b7aa9f3` + page-budget (≡ #640 head commit) + title-texture safe copy | **survived 2,965 s (49 min)** at ~10–30 fps, no exception; activity faded to 0 presents near the end | | Z6 | same binary | died 299 s: `0xc0000005` **write in `dxcompiler.dll+0x66726`**, `rax=0` (a compiler-side null write, not the game offset) | | Z7 | `9e3831e` (post-#680) + same picks | died 206 s: the tracked guest null write at `game_scarlett_master.exe+0x23cf683` (write at 0x0, rax=0) | | Z8 | `9e3831e` + #1189 (stall snapshots) + #1592 (`XCL_DRED`), `XCL_PSO_WAIT_MS=50` | **alive at 1,395 s (23 min), stopped by hand, no exception** — the null write did not recur once the wait flag matched qcdaark's env | | Z9 | pure `5d6fac8` (#640 head) on warm cache, same env as Z8 minus DRED | **survived the full 25-min window, no exception**; driver-blob loads 0–2 ms vs 58–118 s cold | **Cache-economics note (this GPU):** across runs the AMD driver cache keeps every compiled pipeline. In Z8, 183 of 326 compute-PSO creations (56 %) came from "the driver's blob of an earlier run" — instant; the fresh ones were first-time requests, including 363–902 KB DXIL compute shaders that took **58–118 s each** in the driver (RDNA2, 8 GB). Z9, running the same pipeline mix minutes later on the warmed cache, loads those at 0–2 ms. The giant-compute-pipeline pattern qcdaark reported on NVIDIA reproduces on RDNA2; only the compile times differ. Z5 and Z6 are the same binary with the same env and differ only in run: one lasted 49 min, the other died in DXC at 299 s. On the newer base (`9e3831e`), the tracked crash came back at 206 s — **but every run since with `XCL_PSO_WAIT_MS=50` in the env has been crash-free on `9e3831e`** (Z8 23 min, Z9 25 min, then an unattended cook of 3 more runs: 49 min + 39 min, both no exception). With the default `XCL_PSO_WAIT_MS=0` the same base died at 206 s. On this machine the wait flag tracks survival 5/5 vs 0/1 — consistent with qcdaark's observation; on RDNA2 we couldn't reproduce their 40/40 crash, but we also couldn't stay alive without it. Also: both long survivors (Z5, and cook run 2) ended the same way at ~49 min — activity fading to 0 presents, process exiting with **no exception at all** — while the cooks kept churning fresh pipelines the whole time (327→333→381 PSO creations per run, 192→202 served from driver blobs, fresh compiles rising each run). The game keeps requesting *new* pipelines as it progresses; nothing about the queue "resets" between runs. **Two asks/questions:** 1. **Possible regression window:** between `b7aa9f3` and `9e3831e` (+55 commits, incl. #680 heap windows), the `+0x23cf683` wall went from "survived 49 min (this GPU, this pack, warm cache)" to "dead at 206 s". The Z5-vs-Z6 split (49 min vs DXC crash at 299 s, same binary) also smells timing-sensitive. Running a control on the Z5 binary and a coarse bisect of the 55 commits now — will post the bracket. 2. **Is the DXC-side `0xc0000005` (Z6) known?** #1364 (atomic CAS for the last wanted DXC slot) looks like a candidate root cause for a null write inside `dxcompiler.dll` under compile pressure; #1428 (ExecuteIndirect args above 65,535 folded into Y) is the other one we'll test against. On RDNA2/AMD we do **not** see device removal before the null write — the `0x887a0005` DXGI errors all come after it (94 of them, teardown), unlike the NVIDIA device-removed-first pattern in some comments above. The `XCL_DRED=1` + #1189 stall-snapshot instrumentation is wired and running on our box — happy to run any named experiment (bisect range, #1364/#1428 heads, specific env) on this hardware and report same-format data. — Testing support for **xcl-dev/xcl**; agent: Local Abiliterated Qwen Flash Next.
Author
Owner

@⁠jordi-vancuijlenborg-vinci on GitHub · 2026-11-24 22:32 UTC · original

I reproduced the story-load null write at game+0x23cf683 on an RTX 3080 with #1123 alone. The diagnostic logged three wait chains before the crash. All three ended at end=signal.

Tested

GTA VI 1.0.2.1, Series X, Windows 11 25H2 (26200.9974), i7-9700F, RTX 3080 10 GB, driver 621.01. Release build, Rust 1.100.0 MSVC. Base b9b6ea62080cc62fc19e212033372d01c6214e5c with only #1123 (6a3c81a9da642f13c360e02b00ccaa79120410bf) applied locally.

One xcl run <game-folder> with a saved profile and warm shader cache. XCL_ACTIVITY=1 XCL_NETWORK=0 XCL_PSO_WAIT_MS=50 XCL_PRESS_A_AT=52,65 XCL_RUN_SECONDS=720.

Time Wait chain Sparse queue
260.717 s q3 Wait64(0x70417ff80>=0x1529) -> q2 end=signal, same_end=2/4, earlier_releases=0 fence=39045/39045 rb=0/0
281.335 s q1 end=signal, same_end=1/1 fence=39047/? rb=0/? (state busy, wait_for=39049)
301.874 s q2 end=signal, same_end=1/1 fence=39047/? rb=0/? (state busy, wait_for=39107)

At 306.977 s the title logged 0xc0000005 writing to 0x0 at +0x23cf683. It exited with 0xc0000005. There were 13 five-second GPU queue-wait warnings and no logged D3D12 device removal. The sparse fence read 39047 at both of the last two samples while its wait target increased. end=signal leaves open whether the queue was executing or behind an untracked wait. None of the three reported chains ended in a tracked cycle.

Not tested

One diagnostic run on this GPU. I did not apply #1189 or run the full test suite. The cause of the final stall is still open here.

OpenAI Codex (GPT-6.2 Sol High) ran the test, read the log and drafted this report.

**@⁠jordi-vancuijlenborg-vinci** on GitHub · 2026-11-24 22:32 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7146347281) I reproduced the story-load null write at `game+0x23cf683` on an RTX 3080 with #1123 alone. The diagnostic logged three wait chains before the crash. All three ended at `end=signal`. **Tested** GTA VI 1.0.2.1, Series X, Windows 11 25H2 (26200.9974), i7-9700F, RTX 3080 10 GB, driver 621.01. Release build, Rust 1.100.0 MSVC. Base `b9b6ea62080cc62fc19e212033372d01c6214e5c` with only #1123 (`6a3c81a9da642f13c360e02b00ccaa79120410bf`) applied locally. One `xcl run <game-folder>` with a saved profile and warm shader cache. `XCL_ACTIVITY=1 XCL_NETWORK=0 XCL_PSO_WAIT_MS=50 XCL_PRESS_A_AT=52,65 XCL_RUN_SECONDS=720`. | Time | Wait chain | Sparse queue | |---:|---|---| | 260.717 s | `q3 Wait64(0x70417ff80>=0x1529) -> q2 end=signal`, `same_end=2/4`, `earlier_releases=0` | `fence=39045/39045 rb=0/0` | | 281.335 s | `q1 end=signal`, `same_end=1/1` | `fence=39047/? rb=0/? (state busy, wait_for=39049)` | | 301.874 s | `q2 end=signal`, `same_end=1/1` | `fence=39047/? rb=0/? (state busy, wait_for=39107)` | At 306.977 s the title logged `0xc0000005` writing to `0x0` at `+0x23cf683`. It exited with `0xc0000005`. There were 13 five-second GPU queue-wait warnings and no logged D3D12 device removal. The sparse fence read 39047 at both of the last two samples while its wait target increased. `end=signal` leaves open whether the queue was executing or behind an untracked wait. None of the three reported chains ended in a tracked cycle. **Not tested** One diagnostic run on this GPU. I did not apply #1189 or run the full test suite. The cause of the final stall is still open here. OpenAI Codex (GPT-6.2 Sol High) ran the test, read the log and drafted this report.
Author
Owner

@⁠qcdaark on GitHub · 2026-11-24 22:49 UTC · original

Follow-up on the 3070 Ti hang, with #1791 (ExecuteIndirect argument order), since it was found on NVIDIA during a retail world load and looked like it could be this one. It isn't, on this card.

RTX 3070 Ti 8 GB (driver 621.24), Ryzen 9 7900X, 32 GB, Windows 11 26300. Env: XCL_PAGE_BUDGET_MB=3072 XCL_PSO_WAIT_MS=50 XCL_ACTIVITY=1 XCL_NETWORK=0 XCL_PRESS_A_AT=25 XCL_RUN_SECONDS=300 XCL_GPU_CULPRIT=1. Aftermath on, shader debug info on.

run tree GPU hang after A Aftermath
1 c160d86 + #640 + #1428 + #1323 + #1791 (9486494, cherry-picked) 126.9 s first failed call, 132.9 s device removed 0x887a0006 ~102 s "Hung", no page fault, 96 warps, all in one program
2 main 689f2db alone (has #1791, #1747, #1321) ~126.2 s first 0x887a0005, then the process stays up and logs nothing more ~101 s "Hung", no page fault, 96 warps, all in one program

For run 1, the cherry-pick conflicted with #1428 + #1323 in bind.rs. I kept both: culprit marker, then fresh_indirect_arguments(|| pc(...)), then the clamp done. #640 doesn't merge onto the new main (it conflicts with #1747's TilePool in vram.rs), so run 2 has no page budget. It reached the same point anyway.

In both runs the hung program is the same one as in my earlier dumps, matched by Aftermath hash against the DXIL cache. The DXIL hash changes from tree to tree, but the shape stays the same: compute, NumThreads (8,8,1), WaveSize 32 (split wave64), 270 barriers, 405 atomic ops. That is the program from my earlier comment, and run 1's culprit line again reads 0 of 183 lists have dispatches started and not done.

So on this card the hang is not the stale-arguments one from #1791. It also happens without #640, #1428 or #1323, which rules out those PRs as the cause. What's left is one compute program that never finishes on NVIDIA, about 100 s after A, every run.

Logs (user name removed) + the local culprit patch: gta6-1791.zip

AI use: Claude Code (Claude Opus 5.5) ran the tests, read the logs and the Aftermath dumps, and wrote this; I checked it before posting.

local-culprit-on-removal.patch
run1791-1-report.json
run1791-1-xcl.log
run-main689-report.json
run-main689-xcl.log

**@⁠qcdaark** on GitHub · 2026-11-24 22:49 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7146690209) Follow-up on the 3070 Ti hang, with #1791 (ExecuteIndirect argument order), since it was found on NVIDIA during a retail world load and looked like it could be this one. It isn't, on this card. RTX 3070 Ti 8 GB (driver 621.24), Ryzen 9 7900X, 32 GB, Windows 11 26300. Env: XCL_PAGE_BUDGET_MB=3072 XCL_PSO_WAIT_MS=50 XCL_ACTIVITY=1 XCL_NETWORK=0 XCL_PRESS_A_AT=25 XCL_RUN_SECONDS=300 XCL_GPU_CULPRIT=1. Aftermath on, shader debug info on. | run | tree | GPU hang | after A | Aftermath | |---|---|---|---|---| | 1 | c160d86 + #640 + #1428 + #1323 + #1791 (`9486494`, cherry-picked) | 126.9 s first failed call, 132.9 s device removed `0x887a0006` | ~102 s | "Hung", no page fault, 96 warps, all in one program | | 2 | `main` 689f2db alone (has #1791, #1747, #1321) | ~126.2 s first `0x887a0005`, then the process stays up and logs nothing more | ~101 s | "Hung", no page fault, 96 warps, all in one program | For run 1, the cherry-pick conflicted with #1428 + #1323 in `bind.rs`. I kept both: culprit marker, then `fresh_indirect_arguments(|| pc(...))`, then the clamp `done`. #640 doesn't merge onto the new `main` (it conflicts with #1747's `TilePool` in `vram.rs`), so run 2 has no page budget. It reached the same point anyway. In both runs the hung program is the same one as in my earlier dumps, matched by Aftermath hash against the DXIL cache. The DXIL hash changes from tree to tree, but the shape stays the same: compute, NumThreads (8,8,1), WaveSize 32 (split wave64), 270 barriers, 405 atomic ops. That is the program from my earlier comment, and run 1's culprit line again reads `0 of 183 lists have dispatches started and not done`. So on this card the hang is not the stale-arguments one from #1791. It also happens without #640, #1428 or #1323, which rules out those PRs as the cause. What's left is one compute program that never finishes on NVIDIA, about 100 s after A, every run. Logs (user name removed) + the local culprit patch: gta6-1791.zip AI use: Claude Code (Claude Opus 5.5) ran the tests, read the logs and the Aftermath dumps, and wrote this; I checked it before posting. [local-culprit-on-removal.patch](https://github.com/user-attachments/files/35380840/local-culprit-on-removal.patch) [run1791-1-report.json](https://github.com/user-attachments/files/35380841/run1791-1-report.json) [run1791-1-xcl.log](https://github.com/user-attachments/files/35380842/run1791-1-xcl.log) [run-main689-report.json](https://github.com/user-attachments/files/35380839/run-main689-report.json) [run-main689-xcl.log](https://github.com/user-attachments/files/35380843/run-main689-xcl.log)
Author
Owner

@⁠qcdaark on GitHub · 2026-11-25 01:46 UTC · original

RTX 3070 Ti: the world-load hang is one split-wave64 compute program, CS_DepthProcessingHBO (cs b78fa10b425b8e54). Refusing only that program removes the hang every time.

Follow-up to my runs above. This confirms @⁠not-rex's #505 result (refusing all split-wave64 programs ends the stall on a 3080) on a second card, and narrows it down to a single program.

Setup: RTX 3070 Ti 8 GB (driver 621.24), Ryzen 9 7900X, 32 GB, Windows 11 26300. Tree: c160d86 + #640 + #1428 + #1323, plus local diagnostic switches (patch in the zip, ~100 lines, off unless set). Env for all runs: XCL_PAGE_BUDGET_MB=3072 XCL_PSO_WAIT_MS=50 XCL_ACTIVITY=1 XCL_NETWORK=0 XCL_PRESS_A_AT=25.

Naming the program: in every Aftermath dump from my earlier runs, all hung warps (28–97) sat in one DXIL program: NumThreads (8,8,1), WaveSize 32 (split), 270 fences, no group sync except the one in xcl_x_thread. With XCL_PSO_TRACE=1 on main 6567c5f, the dump's DXIL size (119,880 B) matches driver compile … record b78fa10b425b8e54. --export-hlsl --record-hash names it deferred_tiled:CS_DepthProcessingHBO. It is an 8×8 HBAO depth pass with two [loop] marches, and every compare in it is a xcl_x_ballot exchange (177 meets).

run switch (local) result
A every split-wave64 CS/MS refused (like not-rex's XCL_WAVE64_REFUSE=1) no device removal; world runs at ~1 present / 2 s; title 0x80000003 at +0x4da6315 at 187 s
B only b78fa10b425b8e54 refused no device removal; title 0x80000003 at +0x4da6315 at 235 s
C same as B, repeat no device removal; same title exception at 343 s
D XCL_X64_ALL_MASKS=1 hang, 0x887a0006 at 131 s
E LOOP_GUARD budget 1024 in split programs only (same idea as #1284) hang at 155 s (no dump)
F exchange wait bounded at 1024 polls instead of 2^20 hang at 120 s, but this time the dump has 4 warps in a different split program (37 KB DXIL)

Without these switches the hang happened in every run I made today: 10 runs across c160d86, 689f2db and 6567c5f, 45–125 s after A.

What it rules out, on this card:

  • It's not the mask liveness pass (D).
  • It's not the program's own loops running into LOOP_GUARD (E).
  • It's not just a slow desync timeout in the meets (F only moved the hang to another program).

Dropping just the HBO pass is enough to get past it (B, C), and the title then stops in its own code at +0x4da6315. That stop may come from the AO data the dropped pass never wrote.

Two other data points:

  • main 6567c5f: 2 of 4 runs ended earlier (65–70 s) in a different way: Aftermath Error_DMA_PageFault, a Copy Engine write to "failed to translate the virtual address" inside a 1024×1024 BC7 (and BC7_SRGB) texture of 1,441,792 B. It is a non-placed resource, not destroyed, and the fault is ~1.1 MB into it. The log's first error is title texture: upload failed: texture copy: D3D12 device removed. This looks like an unmapped tile in a reserved texture. #1747 (tile mappings trimmed, merged today) is my guess, but I haven't bisected it.
  • Another layer on the same card doesn't hang here: VIctory-based forks (fxceless/victory-fork) render the opening cutscene with no device loss. Its README says it fixed a split-wave64 hang by turning off a barrier form for 64-lane programs, which suggests the split form of this kind of program is where the trouble is.

My suggestion: a per-program refuse/skip switch (like not-rex's planned XCL_WAVE64_REFUSE, but taking hashes) would let NVIDIA users get past this today. And CS_DepthProcessingHBO is a concrete program to look at for why the split form never finishes on NVIDIA. I can run anything against it on this card.

Logs (user name removed, 8 runs) + the local switches patch: gta6-hbo.zip. No shader code or dumps attached.

AI use: Claude Code (Claude Opus 5.5) ran the runs, added the local switches, read the logs and Aftermath dumps, and wrote this; I checked it before posting.

A-refuse-all-split-report.json
A-refuse-all-split-xcl.log
B-refuse-hbo-1-report.json
B-refuse-hbo-1-xcl.log
C-refuse-hbo-2-report.json
C-refuse-hbo-2-xcl.log
D-all-masks-report.json
D-all-masks-xcl.log
E-loop-budget-1024-report.json
E-loop-budget-1024-xcl.log
F-spin-polls-1024-report.json
F-spin-polls-1024-xcl.log
G-main6567-pagefault-report.json
G-main6567-pagefault-xcl.log
H-main6567-hung-report.json
H-main6567-hung-xcl.log
local-experiment-switches.patch

**@⁠qcdaark** on GitHub · 2026-11-25 01:46 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7149937119) **RTX 3070 Ti: the world-load hang is one split-wave64 compute program, `CS_DepthProcessingHBO` (cs `b78fa10b425b8e54`). Refusing only that program removes the hang every time.** Follow-up to my runs above. This confirms @⁠not-rex's #505 result (refusing all split-wave64 programs ends the stall on a 3080) on a second card, and narrows it down to a single program. **Setup:** RTX 3070 Ti 8 GB (driver 621.24), Ryzen 9 7900X, 32 GB, Windows 11 26300. Tree: `c160d86` + #640 + #1428 + #1323, plus local diagnostic switches (patch in the zip, ~100 lines, off unless set). Env for all runs: `XCL_PAGE_BUDGET_MB=3072 XCL_PSO_WAIT_MS=50 XCL_ACTIVITY=1 XCL_NETWORK=0 XCL_PRESS_A_AT=25`. **Naming the program:** in every Aftermath dump from my earlier runs, all hung warps (28–97) sat in one DXIL program: NumThreads (8,8,1), WaveSize 32 (split), 270 fences, no group sync except the one in `xcl_x_thread`. With `XCL_PSO_TRACE=1` on `main` `6567c5f`, the dump's DXIL size (119,880 B) matches `driver compile … record b78fa10b425b8e54`. `--export-hlsl --record-hash` names it `deferred_tiled:CS_DepthProcessingHBO`. It is an 8×8 HBAO depth pass with two `[loop]` marches, and every compare in it is a `xcl_x_ballot` exchange (177 meets). | run | switch (local) | result | |---|---|---| | A | every split-wave64 CS/MS refused (like not-rex's `XCL_WAVE64_REFUSE=1`) | **no device removal**; world runs at ~1 present / 2 s; title `0x80000003` at `+0x4da6315` at 187 s | | B | only `b78fa10b425b8e54` refused | **no device removal**; title `0x80000003` at `+0x4da6315` at 235 s | | C | same as B, repeat | **no device removal**; same title exception at 343 s | | D | `XCL_X64_ALL_MASKS=1` | hang, `0x887a0006` at 131 s | | E | `LOOP_GUARD` budget 1024 in split programs only (same idea as #1284) | hang at 155 s (no dump) | | F | exchange wait bounded at 1024 polls instead of 2^20 | hang at 120 s, but this time the dump has 4 warps in a different split program (37 KB DXIL) | Without these switches the hang happened in every run I made today: 10 runs across `c160d86`, `689f2db` and `6567c5f`, 45–125 s after A. What it rules out, on this card: - It's not the mask liveness pass (D). - It's not the program's own loops running into `LOOP_GUARD` (E). - It's not just a slow desync timeout in the meets (F only moved the hang to another program). Dropping just the HBO pass is enough to get past it (B, C), and the title then stops in its own code at `+0x4da6315`. That stop may come from the AO data the dropped pass never wrote. Two other data points: - **`main` `6567c5f`:** 2 of 4 runs ended earlier (65–70 s) in a different way: Aftermath `Error_DMA_PageFault`, a **Copy Engine write** to "failed to translate the virtual address" inside a 1024×1024 BC7 (and BC7_SRGB) texture of 1,441,792 B. It is a non-placed resource, not destroyed, and the fault is ~1.1 MB into it. The log's first error is `title texture: upload failed: texture copy: D3D12 device removed`. This looks like an unmapped tile in a reserved texture. #1747 (tile mappings trimmed, merged today) is my guess, but I haven't bisected it. - **Another layer on the same card doesn't hang here:** VIctory-based forks (fxceless/victory-fork) render the opening cutscene with no device loss. Its README says it fixed a split-wave64 hang by turning off a barrier form for 64-lane programs, which suggests the split form of this kind of program is where the trouble is. My suggestion: a per-program refuse/skip switch (like not-rex's planned `XCL_WAVE64_REFUSE`, but taking hashes) would let NVIDIA users get past this today. And `CS_DepthProcessingHBO` is a concrete program to look at for why the split form never finishes on NVIDIA. I can run anything against it on this card. Logs (user name removed, 8 runs) + the local switches patch: gta6-hbo.zip. No shader code or dumps attached. AI use: Claude Code (Claude Opus 5.5) ran the runs, added the local switches, read the logs and Aftermath dumps, and wrote this; I checked it before posting. [A-refuse-all-split-report.json](https://github.com/user-attachments/files/35388295/A-refuse-all-split-report.json) [A-refuse-all-split-xcl.log](https://github.com/user-attachments/files/35388297/A-refuse-all-split-xcl.log) [B-refuse-hbo-1-report.json](https://github.com/user-attachments/files/35388298/B-refuse-hbo-1-report.json) [B-refuse-hbo-1-xcl.log](https://github.com/user-attachments/files/35388293/B-refuse-hbo-1-xcl.log) [C-refuse-hbo-2-report.json](https://github.com/user-attachments/files/35388299/C-refuse-hbo-2-report.json) [C-refuse-hbo-2-xcl.log](https://github.com/user-attachments/files/35388303/C-refuse-hbo-2-xcl.log) [D-all-masks-report.json](https://github.com/user-attachments/files/35388296/D-all-masks-report.json) [D-all-masks-xcl.log](https://github.com/user-attachments/files/35388302/D-all-masks-xcl.log) [E-loop-budget-1024-report.json](https://github.com/user-attachments/files/35388301/E-loop-budget-1024-report.json) [E-loop-budget-1024-xcl.log](https://github.com/user-attachments/files/35388305/E-loop-budget-1024-xcl.log) [F-spin-polls-1024-report.json](https://github.com/user-attachments/files/35388309/F-spin-polls-1024-report.json) [F-spin-polls-1024-xcl.log](https://github.com/user-attachments/files/35388294/F-spin-polls-1024-xcl.log) [G-main6567-pagefault-report.json](https://github.com/user-attachments/files/35388307/G-main6567-pagefault-report.json) [G-main6567-pagefault-xcl.log](https://github.com/user-attachments/files/35388300/G-main6567-pagefault-xcl.log) [H-main6567-hung-report.json](https://github.com/user-attachments/files/35388306/H-main6567-hung-report.json) [H-main6567-hung-xcl.log](https://github.com/user-attachments/files/35388308/H-main6567-hung-xcl.log) [local-experiment-switches.patch](https://github.com/user-attachments/files/35388304/local-experiment-switches.patch)
Author
Owner

@⁠qcdaark on GitHub · 2026-11-25 02:23 UTC · original

@⁠imnicho one more data point for your table, from the RTX 3070 Ti above. Same tree and env as my HBO comment, plus XCL_WAVE64_SPIN=0 (a group barrier at each meet in every split program with one console wave per group, CS_DepthProcessingHBO included):

0x887a0006 at 149.7 s, then +0x2474606. No Aftermath dump this time.

So on this card the barrier form doesn't get past it, unlike your one-program change on the 5080. Refusing b78fa10b425b8e54 alone is still the only change that has (2 of 2 runs).

AI use: Claude Code (Claude Opus 5.5) ran the run and wrote this; I checked it before posting.

**@⁠qcdaark** on GitHub · 2026-11-25 02:23 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7150653929) @⁠imnicho one more data point for your table, from the RTX 3070 Ti above. Same tree and env as my HBO comment, plus `XCL_WAVE64_SPIN=0` (a group barrier at each meet in every split program with one console wave per group, `CS_DepthProcessingHBO` included): `0x887a0006` at 149.7 s, then `+0x2474606`. No Aftermath dump this time. So on this card the barrier form doesn't get past it, unlike your one-program change on the 5080. Refusing `b78fa10b425b8e54` alone is still the only change that has (2 of 2 runs). AI use: Claude Code (Claude Opus 5.5) ran the run and wrote this; I checked it before posting.
Author
Owner

@⁠imnicho on GitHub · 2026-11-25 01:41 UTC · original · edited 2026-11-25 02:27 UTC

RTX 5080: the hang with every pipeline built and nothing skipped - one split-wave64 dispatch, and what eight one-program changes do to it

Edited 02:09 and 02:27 UTC. The later one-program changes (the last four rows of the table in 4) overturn my first reading: that program finishes in time in the switch form, and also with heap windows once globallycoherent is off its windows. That is the change #1850 already proposes; my numbers for it are there: #1850 . Section "What I take from it" is rewritten; the measurements above it are unchanged.

Most runs in this thread use XCL_PSO_WAIT_MS, so skipped dispatches are always a suspect. These runs have none.

Setup. RTX 5080 16 GB (32-lane waves, driver 610.47 / 32.0.16.1047), i7-7700K, 16 GB RAM, Windows 10 22H2. The retail title of this issue (my own copy), XCL_NETWORK=0, scripted pad, no XCL_PSO_WAIT_MS (binds wait for their pipelines), heap windows on. Two local trees on one driver-blob cache: A = main c4d37be + #684 + #266 + #1782 + #1316 / #1448; B = main b7aa9f3 + #684 + #266 + #1288 + #1316 / #1448 + #1323 (for XCL_GPU_CULPRIT).

1. Getting there. Without skipping, the world load on this card is first a backlog of big compute pipelines: about 230 driver builds of 10 s or more (40 - 250 s each) over ten back-to-back runs on one cache, 2.3 hours. After that a run needs none: 887 compute pipelines, 0 builds of 10 s or more.

2. Then every run ends in 0x887a0006: 3 of 3 on tree A, the last frame or dispatch 7 s, 33 s and 98 s after the world's set-up (#101), 0 dispatches skipped; the title follows with 0x80000003 at +0x2474606.

3. XCL_GPU_CULPRIT=1 (tree B) names one dispatch as started and not done at the watchdog's report: record 50625695d2e6cbe7, groups 32x32x2. It is numthreads(4, 4, 4) in the split form, one console wave per group, XCL_X_SPIN 1; its HLSL (358 KB) has 51 xcl_x_ballot and 76 xcl_x_rla_uniform sites and three nested [loop]s. The device was removed 68 s after that report.

4. Changes in that one program only (a local hook that substitutes text in the HLSL of one record, so no other pipeline changes; tree B, one run each):

change its dispatch how the run ends
none not done at the report 0x887a0006
spin bound 2^20 -> 2^8 done in under 5 s (not in the report) 0x887a0006 27 s after the set-up; not done then: 0f7ab64371906bc1 (8x8x1, groups 320x180x1) and 18567a5f0145bde9 (64x1x1, indirect), both split with XCL_X_SPIN 1; dispatch markers reached #11567 (#3260 before)
the poll as in #1244 (InterlockedCompareExchange(.., 0u, 0u, c)), bound 2^20 not done after 5 s, gone from the report 4 s later 0x887a0006 16 s after the set-up
XCL_X_SPIN 1 -> 0 (a group barrier at each meet) not done after 5 s, done before 16 s no device removal; the title's stall check (0xc0000005 at +0x2215c35) 29 s after its last frame, with 22 indirect dispatches of one list not done
the switch form for that program (memory windows as root UAVs behind the switch; every other program still with heap windows) done in under 5 s (not in the report) 0x887a0006 49 s after the set-up; not done at the reports: 206ed63b96be21a1 (groups 64x64x1), 117 dispatches of d22f746890686a68 on one list, later 18567a5f0145bde9; markers reached #12809
heap windows, NonUniformResourceIndex taken off the window index not done at the report 0x887a0006 14 s after the set-up
heap windows, the range guard taken off not done at the report 0x887a0006 14 s after the set-up
heap windows without globallycoherent done in under 5 s (not in the report) 0x887a0006 53 s after the set-up, other programs not done; markers reached #14557

5. Two synthetic checks on the same card (my own shaders in a local test; I can send them as GPU tests if they are wanted):

  • Wave formation with [WaveSize(32)] for numthreads (64,1,1), (8,8,1), (4,4,4), (8,8,4), (16,16,1), (8,4,2), up to 2,048 groups, three rounds each: every lane was in a full 32-lane wave of consecutive thread indices, xcl_x_thread's numbering gave no thread past the group's, and the waves were the same after divergent work and a GroupMemoryBarrier.
  • The meet through arrival counters as xcl_x_meet does it (the two halves of a 64-thread group, 16 meets each): 4,096 waves in 0.6 ms, 115,200 waves in 15.6 ms; no wave gave up with bounds 2^8, 2^12 or 2^20 (2^20 up to 4,096 waves only), with the add-of-0 poll and the compare-exchange alike, and no wave's polls reached 256 in all.

What I take from it (rewritten). All runs above have heap windows on (XCL_HEAP_WINDOWS=1; it is what makes the pipeline backlog buildable on this card). That program is not slow by itself and its halves do not lose each other: it finishes in the switch form, and it finishes with heap windows as soon as its windows are not globallycoherent. Its own code only reads flat memory (87 + 83 load sites, no store, no atomic). So on this card the dispatch that ends the run is slow because every one of its loads goes around the cache, the heap form's handle per access makes that worse (about 2x in a synthetic test here), and the spin bound of 2^20 then turns slow into a device removal. The rows for the spin bound and the barrier show how the dispatch behaves once it is slow, not why it is.

#1850 limits the flag to the programs that need it; that is the fix for what I found, and I have put the numbers there. With five programs moved to the switch form by hand the device is still removed, each time on other programs still in the coherent heap form, so the whole run needs the change, not one program.

Not tested

  • The whole run in the switch form (XCL_HEAP_WINDOWS=0): its pipelines build about five times slower in the driver here, so that backlog is hours; I am moving programs to the switch form one by one instead.
  • #1850's own code in the title: I am building the tree of #2057 (which has it) and will report on #1850.
  • #1193 and #944 on these programs; the newest main in the title (its emitter changes would cost the pipeline backlog again); AMD.

AI use: Claude Code with Claude Fable 5.2 ran the title and the tests, read the logs and wrote this.

**@⁠imnicho** on GitHub · 2026-11-25 01:41 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7149839317) · edited 2026-11-25 02:27 UTC **RTX 5080: the hang with every pipeline built and nothing skipped - one split-wave64 dispatch, and what eight one-program changes do to it** _Edited 02:09 and 02:27 UTC. The later one-program changes (the last four rows of the table in 4) overturn my first reading: that program finishes in time in the switch form, and also with heap windows once `globallycoherent` is off its windows. That is the change #1850 already proposes; my numbers for it are there: https://git.gtahub.st/github/xcl-dev--xcl/pulls/1850 . Section "What I take from it" is rewritten; the measurements above it are unchanged._ Most runs in this thread use `XCL_PSO_WAIT_MS`, so skipped dispatches are always a suspect. These runs have none. **Setup.** RTX 5080 16 GB (32-lane waves, driver 610.47 / 32.0.16.1047), i7-7700K, 16 GB RAM, Windows 10 22H2. The retail title of this issue (my own copy), `XCL_NETWORK=0`, scripted pad, **no `XCL_PSO_WAIT_MS`** (binds wait for their pipelines), heap windows on. Two local trees on one driver-blob cache: **A** = `main` `c4d37be` + #684 + #266 + #1782 + #1316 / #1448; **B** = `main` `b7aa9f3` + #684 + #266 + #1288 + #1316 / #1448 + #1323 (for `XCL_GPU_CULPRIT`). **1. Getting there.** Without skipping, the world load on this card is first a backlog of big compute pipelines: about 230 driver builds of 10 s or more (40 - 250 s each) over ten back-to-back runs on one cache, 2.3 hours. After that a run needs none: 887 compute pipelines, 0 builds of 10 s or more. **2. Then every run ends in `0x887a0006`**: 3 of 3 on tree A, the last frame or dispatch 7 s, 33 s and 98 s after the world's set-up (`#101`), 0 dispatches skipped; the title follows with `0x80000003` at `+0x2474606`. **3. `XCL_GPU_CULPRIT=1` (tree B) names one dispatch** as started and not done at the watchdog's report: record `50625695d2e6cbe7`, groups 32x32x2. It is `numthreads(4, 4, 4)` in the split form, one console wave per group, `XCL_X_SPIN 1`; its HLSL (358 KB) has 51 `xcl_x_ballot` and 76 `xcl_x_rla_uniform` sites and three nested `[loop]`s. The device was removed 68 s after that report. **4. Changes in that one program only** (a local hook that substitutes text in the HLSL of one record, so no other pipeline changes; tree B, one run each): | change | its dispatch | how the run ends | |---|---|---| | none | not done at the report | `0x887a0006` | | spin bound 2^20 -> 2^8 | done in under 5 s (not in the report) | `0x887a0006` 27 s after the set-up; not done then: `0f7ab64371906bc1` (8x8x1, groups 320x180x1) and `18567a5f0145bde9` (64x1x1, indirect), both split with `XCL_X_SPIN 1`; dispatch markers reached #11567 (#3260 before) | | the poll as in #1244 (`InterlockedCompareExchange(.., 0u, 0u, c)`), bound 2^20 | not done after 5 s, gone from the report 4 s later | `0x887a0006` 16 s after the set-up | | `XCL_X_SPIN 1` -> `0` (a group barrier at each meet) | not done after 5 s, done before 16 s | no device removal; the title's stall check (`0xc0000005` at `+0x2215c35`) 29 s after its last frame, with 22 indirect dispatches of one list not done | | **the switch form for that program** (memory windows as root UAVs behind the `switch`; every other program still with heap windows) | done in under 5 s (not in the report) | `0x887a0006` 49 s after the set-up; not done at the reports: `206ed63b96be21a1` (groups 64x64x1), 117 dispatches of `d22f746890686a68` on one list, later `18567a5f0145bde9`; markers reached #12809 | | heap windows, `NonUniformResourceIndex` taken off the window index | not done at the report | `0x887a0006` 14 s after the set-up | | heap windows, the range guard taken off | not done at the report | `0x887a0006` 14 s after the set-up | | **heap windows without `globallycoherent`** | done in under 5 s (not in the report) | `0x887a0006` 53 s after the set-up, other programs not done; markers reached #14557 | **5. Two synthetic checks on the same card** (my own shaders in a local test; I can send them as GPU tests if they are wanted): - Wave formation with `[WaveSize(32)]` for numthreads (64,1,1), (8,8,1), (4,4,4), (8,8,4), (16,16,1), (8,4,2), up to 2,048 groups, three rounds each: every lane was in a full 32-lane wave of consecutive thread indices, `xcl_x_thread`'s numbering gave no thread past the group's, and the waves were the same after divergent work and a `GroupMemoryBarrier`. - The meet through arrival counters as `xcl_x_meet` does it (the two halves of a 64-thread group, 16 meets each): 4,096 waves in 0.6 ms, 115,200 waves in 15.6 ms; no wave gave up with bounds 2^8, 2^12 or 2^20 (2^20 up to 4,096 waves only), with the add-of-0 poll and the compare-exchange alike, and no wave's polls reached 256 in all. **What I take from it** (rewritten). All runs above have heap windows on (`XCL_HEAP_WINDOWS=1`; it is what makes the pipeline backlog buildable on this card). That program is not slow by itself and its halves do not lose each other: it finishes in the switch form, and it finishes with heap windows as soon as its windows are not `globallycoherent`. Its own code only reads flat memory (87 + 83 load sites, no store, no atomic). So on this card the dispatch that ends the run is slow because every one of its loads goes around the cache, the heap form's handle per access makes that worse (about 2x in a synthetic test here), and the spin bound of 2^20 then turns slow into a device removal. The rows for the spin bound and the barrier show how the dispatch behaves once it is slow, not why it is. #1850 limits the flag to the programs that need it; that is the fix for what I found, and I have put the numbers there. With five programs moved to the switch form by hand the device is still removed, each time on other programs still in the coherent heap form, so the whole run needs the change, not one program. **Not tested** - The whole run in the switch form (`XCL_HEAP_WINDOWS=0`): its pipelines build about five times slower in the driver here, so that backlog is hours; I am moving programs to the switch form one by one instead. - #1850's own code in the title: I am building the tree of #2057 (which has it) and will report on #1850. - #1193 and #944 on these programs; the newest `main` in the title (its emitter changes would cost the pipeline backlog again); AMD. AI use: Claude Code with Claude Fable 5.2 ran the title and the tests, read the logs and wrote this.
Author
Owner

@⁠HKEY-Funk-Machine on GitHub · 2026-11-25 02:33 UTC · original

AMD RX 9070 (RDNA4, native wave64): the world-load hang here is a different program, compute record 39f23deaf6a63310. Refusing it removes the hang at ~115 s (2 of 2 runs). The next hang has b78fa10b425b8e54 in it.

Data for @⁠qcdaark's and @⁠grahamster2's refusal results, from a card that runs these programs as native wave64 (no split form).

Setup: AMD Radeon RX 9070, driver 32.0.32015.7029, Ryzen 9 7945HX3D, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0, release. main bf9eebd plus #751 merged, and local changes, none for upstream:

  • xgameruntime/api.rs: a startup hang on this machine; I run with XCL_NO_PC_RUNTIME=1;
  • XCL_REFUSE_CS=<hex>: refuses those compute records in translated_compute_pso_once (the program then takes the untranslated path, and its dispatches are skipped);
  • with XCL_DRED=1: a SetMarker before each translated Dispatch, and a per-list log of the records marked since the list's last reset, printed for each started-but-unfinished DRED list. (I also turned on DRED breadcrumb contexts, but this driver gave none back, so I match markers by their position in the breadcrumbs.)

Env for every run: XCL_PSO_WAIT_MS=50 XCL_PRESS_A_AT=8,10,…,90 XCL_TRANSLATED_CACHE=0 XCL_PSO_DISK_CACHE=0 XCL_NO_PC_RUNTIME=1 XCL_NETWORK=0, XCL_RUN_SECONDS=300, a new exe name per run (cold driver cache), no direct DXIL, no heap windows.

Naming the program: without a refusal, the device is removed (0x887a0006) 114–122 s in, 5 of 5 runs. DRED has exactly one list started and unfinished, and it is the same list in two runs: 77 of 122 operations done, the same breadcrumbs, with the GPU in a Dispatch. No page fault (VA 0, no allocation). That list has 13 SetMarkers in its breadcrumbs, and its current recording marked 13 records. The dispatch in progress follows the 2nd marker, which is 39f23deaf6a63310 (3 360 B console code).

run refused dispatches (skipped) end
5 runs – ~10 000–10 800 0x887a0006 at 114–122 s; DRED stuck in the dispatch of 39f23deaf6a63310 (2 runs with markers)
2 runs b78fa10b425b8e54 10 030 (1 451), 10 192 (1 859) 0x887a0006 at 115 and 119 s: no change
A 39f23deaf6a63310 80 891 (11 310) 0x887a0007 at 198 s, then the title's null write at +0x23cf683; DRED has no started list. Before it, a bridged queue.Wait timed out with recorded=0x70f, submitted=0x70d, completed=0x70d
B 39f23deaf6a63310 47 952 (8 192) at ~138 s the title's 0x80000003 at +0x1881f, then 0x887a0006; DRED has two lists on two queues, each stuck in the Dispatch after its only marker: b78fa10b425b8e54 and dbf67dce61beac41
  • On native wave64 the first hang is not b78fa10b425b8e54: refusing it changes nothing, and DRED puts the GPU in 39f23deaf6a63310.
  • Past 39f23deaf6a63310, run B hangs with b78fa10b425b8e54 in progress, so it may also fail to finish on this card in the native form. It shares the hang with dbf67dce61beac41 on another queue, and DRED can't tell which of the two is stuck and which is waiting. One run.
  • Run A reaches the +0x23cf683 null write the NVIDIA runs report at story load, after a wait on a value recorded but not submitted (the pattern @⁠STmihan describes on #1269).
  • This fits @⁠grahamster2's result: refusing one program moves you to the next hang.

Not tested: refusing 39f23deaf6a63310 together with b78fa10b425b8e54 and/or dbf67dce61beac41; why 39f23deaf6a63310 does not finish (I have not looked at its code); direct DXIL / heap windows; another driver; repeats of runs A and B as separate outcomes.

AI use: Claude Code (Claude Opus 5.5) wrote the local switches, ran the runs, read the DRED output, and wrote this comment.

**@⁠HKEY-Funk-Machine** on GitHub · 2026-11-25 02:33 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7150865142) **AMD RX 9070 (RDNA4, native wave64): the world-load hang here is a different program, compute record `39f23deaf6a63310`. Refusing it removes the hang at ~115 s (2 of 2 runs). The next hang has `b78fa10b425b8e54` in it.** Data for @⁠qcdaark's and @⁠grahamster2's refusal results, from a card that runs these programs as native wave64 (no split form). **Setup:** AMD Radeon RX 9070, driver 32.0.32015.7029, Ryzen 9 7945HX3D, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0, release. `main` `bf9eebd` plus #751 merged, and local changes, none for upstream: - `xgameruntime/api.rs`: a startup hang on this machine; I run with `XCL_NO_PC_RUNTIME=1`; - `XCL_REFUSE_CS=<hex>`: refuses those compute records in `translated_compute_pso_once` (the program then takes the untranslated path, and its dispatches are skipped); - with `XCL_DRED=1`: a `SetMarker` before each translated `Dispatch`, and a per-list log of the records marked since the list's last reset, printed for each started-but-unfinished DRED list. (I also turned on DRED breadcrumb contexts, but this driver gave none back, so I match markers by their position in the breadcrumbs.) Env for every run: `XCL_PSO_WAIT_MS=50 XCL_PRESS_A_AT=8,10,…,90 XCL_TRANSLATED_CACHE=0 XCL_PSO_DISK_CACHE=0 XCL_NO_PC_RUNTIME=1 XCL_NETWORK=0`, `XCL_RUN_SECONDS=300`, a new exe name per run (cold driver cache), no direct DXIL, no heap windows. **Naming the program:** without a refusal, the device is removed (`0x887a0006`) 114–122 s in, 5 of 5 runs. DRED has exactly one list started and unfinished, and it is the same list in two runs: 77 of 122 operations done, the same breadcrumbs, with the GPU in a `Dispatch`. No page fault (VA 0, no allocation). That list has 13 `SetMarker`s in its breadcrumbs, and its current recording marked 13 records. The dispatch in progress follows the 2nd marker, which is `39f23deaf6a63310` (3 360 B console code). | run | refused | dispatches (skipped) | end | |---|---|---|---| | 5 runs | – | ~10 000–10 800 | `0x887a0006` at 114–122 s; DRED stuck in the dispatch of `39f23deaf6a63310` (2 runs with markers) | | 2 runs | `b78fa10b425b8e54` | 10 030 (1 451), 10 192 (1 859) | `0x887a0006` at 115 and 119 s: no change | | A | `39f23deaf6a63310` | 80 891 (11 310) | `0x887a0007` at 198 s, then the title's null write at `+0x23cf683`; DRED has no started list. Before it, a bridged `queue.Wait` timed out with `recorded=0x70f, submitted=0x70d, completed=0x70d` | | B | `39f23deaf6a63310` | 47 952 (8 192) | at ~138 s the title's `0x80000003` at `+0x1881f`, then `0x887a0006`; DRED has two lists on two queues, each stuck in the `Dispatch` after its only marker: **`b78fa10b425b8e54`** and `dbf67dce61beac41` | - **On native wave64 the first hang is not `b78fa10b425b8e54`:** refusing it changes nothing, and DRED puts the GPU in `39f23deaf6a63310`. - **Past `39f23deaf6a63310`,** run B hangs with `b78fa10b425b8e54` in progress, so it may also fail to finish on this card in the native form. It shares the hang with `dbf67dce61beac41` on another queue, and DRED can't tell which of the two is stuck and which is waiting. One run. - Run A reaches the `+0x23cf683` null write the NVIDIA runs report at story load, after a wait on a value recorded but not submitted (the pattern @⁠STmihan describes on #1269). - This fits @⁠grahamster2's result: refusing one program moves you to the next hang. **Not tested:** refusing `39f23deaf6a63310` together with `b78fa10b425b8e54` and/or `dbf67dce61beac41`; why `39f23deaf6a63310` does not finish (I have not looked at its code); direct DXIL / heap windows; another driver; repeats of runs A and B as separate outcomes. AI use: Claude Code (Claude Opus 5.5) wrote the local switches, ran the runs, read the DRED output, and wrote this comment.
Author
Owner

@⁠grahamster2 on GitHub · 2026-11-25 02:13 UTC · original · edited 2026-11-25 02:53 UTC

RTX 3080: refusing only b78fa10b425b8e54 does not stop the world-load hang here. Refusing every split-wave64 compute program does, but then no compute dispatch runs at all.

Setup: RTX 3080 10 GB (32-lane waves, driver 610.88), Ryzen 5 7600X, 32 GB, Windows 11 26200, release. Retail title 1.0.2.1 (Series X profile). Tree: main e9e94ce plus open PRs #751 #1182 #1248 #1345 #1526 #1798 #759 #758 #1806, the now-merged #1791 and #1809, #1123's commit 517e4df cherry-picked, and local diagnostic switches that are not in main or any PR. The pipeline cache was warm (all pipelines in the run's journal built beforehand). Env: XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_DSTORAGE_PARALLEL_DECOMPRESS=1 XCL_PSO_WAIT_MS=50 XCL_NETWORK=0, scripted A presses. One run each.

run local switch result
1 refuse only b78fa10b425b8e54 (XCL_REFUSE_CS, local; the log confirms it was refused at 5.5 s) still hangs. Presents stop at ~70 s (world start ~68 s); counter Wait64 timeouts (>= 0x5a6, completed=0x0) at 74-79 s; device removed 0x887a0006 at 91 s, then title 0x80000003 at +0x2474606.
2 refuse every compute program in the split-wave64 form (XCL_REFUSE_SPLIT, local; like not-rex's #505 run): 942 programs refused, which on this card is every wave64 CS no GPU wait timeout, no device removal. Presents keep going (1-6 per 2 s) from 70 to 110 s; all six target dumps from 71-78 s read back. The run ends at 110 s on a title 0xc0000005 at +0x8f92a (read at 0xffffffffffffffff, three threads at once).

#1123's chain line in run 1 (3 of them, 74-87 s), e.g.:

GPU wait chain: q0 Wait64(0x70417fe58>=0x5a6) -> q3 end=signal (no tracked wait in front of it: executing, or behind a wait XCL does not track); same_end=4/4 (expired cells this tick), earlier_releases=0, write64_cycle_breaks=0

then twice q2 end=signal. So no wait cycle: the counter waits pile up behind a queue that never finishes what it is executing. That fits a hung dispatch in another program, as in your run F.

What run 2 rendered: the activity lines count 0 dispatches for the whole run, so this is "no compute", not a fix.

  • The G-buffer (2560x1440 formats 28 and 29): every draw ran (34 each, no stand-ins), but 0 of 230,400 sampled texels are non-zero in all six frames.
  • Depth (format 19) is 0 too.
  • The presented frame is the opening title card.
  • The G-buffer's ExecuteIndirect argument records go from 0 of 34 with InstanceCount != 0 to 23 of 40 during 71-78 s.

So on a 3080 at least one split-wave64 program besides HBO hangs, and refusing them all leaves nothing to light the world with. A per-program Aftermath dump from run 1's state would name the next one; I haven't done that yet.

Update, run 3: HBO refused + XCL_DRED=1 with #1592 (c6067a6) cherry-picked, to name the next hung program. It did not get that far: start-up stalled at ~10 s (2 presents in 240 s, no device removal, XCL_RUN_SECONDS ended it). This is the same XCL_DRED=1 start-up stall reported in #1452. So the second hung program is still unnamed on this card.
Update, bisection (15 runs of ~100 s, HBO always refused, same setup, local XCL_REFUSE_LIST switch, not in main): no single second program. I sorted the 938 other split-wave64 compute programs by hash.

  • Refusing half of the candidates each time hung in all 10 steps, ending at fffeb74b2ca33327, the last hash. Refusing HBO plus that one still hangs (chain end=signal, device removed 0x887a0006 at 73 s). So plain halving doesn't converge.
  • Allowing only one half (refusing the other 469 + HBO): both halves hang alone. So there are at least two culprits (one per half), or the hang isn't tied to particular programs, only to enough split-wave64 compute running at world start.
  • Allow-only inside the first half (by hash order): 234 hang, 117 hang, 58 (001714bf..-107d4a0a) no wait timeout. In both of those last runs the world presented only every few seconds, so "hang" vs "slow" is less clear-cut there.

So on a 3080 it looks like more than one program (or the split form in general under load), not a second single culprit. I stopped there.
AI use: Claude Code (Claude Opus 5.5) ran both runs, wrote the local switches, read the logs and wrote this.

**@⁠grahamster2** on GitHub · 2026-11-25 02:13 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7150457477) · edited 2026-11-25 02:53 UTC **RTX 3080: refusing only `b78fa10b425b8e54` does not stop the world-load hang here. Refusing every split-wave64 compute program does, but then no compute dispatch runs at all.** **Setup:** RTX 3080 10 GB (32-lane waves, driver 610.88), Ryzen 5 7600X, 32 GB, Windows 11 26200, release. Retail title 1.0.2.1 (Series X profile). Tree: `main` `e9e94ce` plus open PRs #751 #1182 #1248 #1345 #1526 #1798 #759 #758 #1806, the now-merged #1791 and #1809, #1123's commit `517e4df` cherry-picked, and local diagnostic switches that are **not in `main`** or any PR. The pipeline cache was warm (all pipelines in the run's journal built beforehand). Env: `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_DSTORAGE_PARALLEL_DECOMPRESS=1 XCL_PSO_WAIT_MS=50 XCL_NETWORK=0`, scripted A presses. One run each. | run | local switch | result | |---|---|---| | 1 | refuse only `b78fa10b425b8e54` (`XCL_REFUSE_CS`, local; the log confirms it was refused at 5.5 s) | still hangs. Presents stop at ~70 s (world start ~68 s); counter `Wait64` timeouts (`>= 0x5a6`, `completed=0x0`) at 74-79 s; device removed `0x887a0006` at 91 s, then title `0x80000003` at `+0x2474606`. | | 2 | refuse every compute program in the split-wave64 form (`XCL_REFUSE_SPLIT`, local; like not-rex's #505 run): **942 programs refused**, which on this card is every wave64 CS | **no GPU wait timeout, no device removal.** Presents keep going (1-6 per 2 s) from 70 to 110 s; all six target dumps from 71-78 s read back. The run ends at 110 s on a title `0xc0000005` at `+0x8f92a` (read at `0xffffffffffffffff`, three threads at once). | **#1123's chain line in run 1** (3 of them, 74-87 s), e.g.: ``` GPU wait chain: q0 Wait64(0x70417fe58>=0x5a6) -> q3 end=signal (no tracked wait in front of it: executing, or behind a wait XCL does not track); same_end=4/4 (expired cells this tick), earlier_releases=0, write64_cycle_breaks=0 ``` then twice `q2 end=signal`. So no wait cycle: the counter waits pile up behind a queue that never finishes what it is executing. That fits a hung dispatch in another program, as in your run F. **What run 2 rendered:** the activity lines count 0 dispatches for the whole run, so this is "no compute", not a fix. - The G-buffer (2560x1440 formats 28 and 29): every draw ran (34 each, no stand-ins), but 0 of 230,400 sampled texels are non-zero in all six frames. - Depth (format 19) is 0 too. - The presented frame is the opening title card. - The G-buffer's ExecuteIndirect argument records go from 0 of 34 with `InstanceCount != 0` to 23 of 40 during 71-78 s. So on a 3080 at least one split-wave64 program besides HBO hangs, and refusing them all leaves nothing to light the world with. A per-program Aftermath dump from run 1's state would name the next one; I haven't done that yet. **Update, run 3:** HBO refused + `XCL_DRED=1` with #1592 (`c6067a6`) cherry-picked, to name the next hung program. It did not get that far: start-up stalled at ~10 s (2 presents in 240 s, no device removal, `XCL_RUN_SECONDS` ended it). This is the same `XCL_DRED=1` start-up stall reported in #1452. So the second hung program is still unnamed on this card. **Update, bisection (15 runs of ~100 s, HBO always refused, same setup, local `XCL_REFUSE_LIST` switch, not in `main`):** no single second program. I sorted the 938 other split-wave64 compute programs by hash. - Refusing half of the candidates each time hung in all 10 steps, ending at `fffeb74b2ca33327`, the last hash. Refusing HBO plus that one still hangs (chain `end=signal`, device removed `0x887a0006` at 73 s). So plain halving doesn't converge. - Allowing only one half (refusing the other 469 + HBO): **both halves hang alone.** So there are at least two culprits (one per half), or the hang isn't tied to particular programs, only to enough split-wave64 compute running at world start. - Allow-only inside the first half (by hash order): 234 hang, 117 hang, 58 (`001714bf..`-`107d4a0a`) no wait timeout. In both of those last runs the world presented only every few seconds, so "hang" vs "slow" is less clear-cut there. So on a 3080 it looks like more than one program (or the split form in general under load), not a second single culprit. I stopped there. AI use: Claude Code (Claude Opus 5.5) ran both runs, wrote the local switches, read the logs and wrote this.
Author
Owner

@⁠joeypercia on GitHub · 2026-11-25 02:58 UTC · original

RTX 4070 Ti: d22f746890686a68, the program the RTX 5080 table above lists with 117 dispatches not done, is LoadTriangles from XboxBvhBuilder.dll, and its float atomics cannot spin. On the HLSL path with heap windows and XCL_UMA_SHADOW=1 its list stops with no device removal: the title's Wait64BitValueX waits time out with the memory still 0.

  • Name: its ILDN debug name ends in XboxBvhBuilder\LoadTriangles. That is the same DLL as RefitBVH4 (b6043104de672057, @⁠badoomtch's match above). It is a 41,732-byte console CS (SM 6.5, 2,086 RDNA2 instructions), created 3–6 s into the run, so it is not in shaders.rpf.
  • Its translation: numthreads(32, 1, 1) with [WaveSize(32)], so not the split wave64 form and no xcl_x_meet. Its 12 global_atomic_fmin and 12 global_atomic_fmax each become one integer InterlockedMin / InterlockedMax (the sign trick). The HLSL has no InterlockedCompareExchange; its only loops are its own two [loop]s.
  • The run: RTX 4070 Ti, driver 616.56, release, Windows TdrDelay at its default (2 s). Tree: main 5ce558f + #1464 #1405 #1795 #742 #1323 #1326 #1329 #889 #684 #929, merged locally. Env: XCL_UMA_SHADOW=1 XCL_HEAP_WINDOWS=1 XCL_GPU_CULPRIT=1, scripted A presses, no XCL_PSO_WAIT_MS.
    • Frames stop at 113 s (2,100 frames).
    • At 182 s the culprit report has one list: 36 dispatches of d22f746890686a68 (groups 1 to 165) started and not done. XCL's own waits behind it: q2: sparse readback behind a title queue >= 0x898 (done 0x897, 5048 ms).
    • From 177 s on, the title's Wait64BitValueX at 0x7041801xx >= 0x887 is bridged as wait-before-signal with prod=qNone. At 205 s one times out after 2,000 ms with memory holds Some(0).
    • No device removal through 262 s (the run was stopped there). With a 2 s TDR, a program running for seconds would have removed the device, so this list looks held at a queue wait rather than running.
  • Not checked: which list or queue should write those 64-bit values, and whether its dispatches are themselves behind this list. One run only.

AI use: Claude Code (Claude Opus 5.5) ran this, read the dumped program and wrote this report.

**@⁠joeypercia** on GitHub · 2026-11-25 02:58 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7151456273) **RTX 4070 Ti: `d22f746890686a68`, the program the RTX 5080 table above lists with 117 dispatches not done, is `LoadTriangles` from `XboxBvhBuilder.dll`, and its float atomics cannot spin. On the HLSL path with heap windows and `XCL_UMA_SHADOW=1` its list stops with no device removal: the title's `Wait64BitValueX` waits time out with the memory still 0.** - **Name:** its `ILDN` debug name ends in `XboxBvhBuilder\LoadTriangles`. That is the same DLL as `RefitBVH4` (`b6043104de672057`, @⁠badoomtch's match above). It is a 41,732-byte console CS (SM 6.5, 2,086 RDNA2 instructions), created 3–6 s into the run, so it is not in `shaders.rpf`. - **Its translation:** `numthreads(32, 1, 1)` with `[WaveSize(32)]`, so not the split wave64 form and no `xcl_x_meet`. Its 12 `global_atomic_fmin` and 12 `global_atomic_fmax` each become one integer `InterlockedMin` / `InterlockedMax` (the sign trick). The HLSL has no `InterlockedCompareExchange`; its only loops are its own two `[loop]`s. - **The run:** RTX 4070 Ti, driver 616.56, release, Windows `TdrDelay` at its default (2 s). Tree: `main` `5ce558f` + #1464 #1405 #1795 #742 #1323 #1326 #1329 #889 #684 #929, merged locally. Env: `XCL_UMA_SHADOW=1 XCL_HEAP_WINDOWS=1 XCL_GPU_CULPRIT=1`, scripted A presses, no `XCL_PSO_WAIT_MS`. - Frames stop at 113 s (2,100 frames). - At 182 s the culprit report has one list: 36 dispatches of `d22f746890686a68` (groups 1 to 165) started and not done. XCL's own waits behind it: `q2: sparse readback behind a title queue >= 0x898 (done 0x897, 5048 ms)`. - From 177 s on, the title's `Wait64BitValueX` at `0x7041801xx >= 0x887` is bridged as `wait-before-signal` with `prod=qNone`. At 205 s one times out after 2,000 ms with `memory holds Some(0)`. - No device removal through 262 s (the run was stopped there). With a 2 s TDR, a program running for seconds would have removed the device, so this list looks held at a queue wait rather than running. - **Not checked:** which list or queue should write those 64-bit values, and whether its dispatches are themselves behind this list. One run only. AI use: Claude Code (Claude Opus 5.5) ran this, read the dumped program and wrote this report.
Author
Owner

@⁠JalenTheDev on GitHub · 2026-11-25 03:12 UTC · original

RX 6800S (RDNA2, native wave64): +0x23cf683 still lands at story load on current tip, and an earlier offset is nondeterministic on the same build.

Two consecutive runs, same exe (cbc296a, built fresh), same env (XCL_PIPELINE_THREADS=12 XCL_PSO_WAIT_MS=50 XCL_NETWORK=0, AMD driver 26.11.1, Ryzen 9 7940HS, 32 GB, Windows 11 24H2), warm shader store (the run's own compiles mostly hit the driver's kept blobs — 66 blob hits vs 21 fresh compiles to that point):

  • run A: 0xc0000005 write-at-0 at game_scarlett_master.exe+0x2215c35 at t = 44 s — during the boot splash, long before story load.
  • run B: +0x23cf683 at t = 312 s (write at address 0x0, rbp=0x0) — the familiar story-load offset, after ~310 s of menu/splash with a shader backlog reported at ~57k queued pipelines at t≈120 s.

Same binary crashing at two different offsets at two different stages means the t=44 s variant is a race, not a deterministic wall. The story-load offset is still exactly the one RTX 3070 Ti/3080/4070 Ti and the RDNA4 report are chasing; RDNA2 with native wave64 lands on the same offset as the NVIDIA wave32 splits, which may or may not narrow the per-program refusal table — the three programs named in recent comments (b78fa10b425b8e54, d22f746890686a68, 39f23deaf6a63310) all appear in our container scan at t≈2–6 s, so they exist in this dump; I have not yet tried refusing them individually.

Next on this box: XCL_WAVE64_SPIN/refusal experiments against current tip if they'd add to the table, and a longer run behind the compile backlog so the crash can be observed without the shader queue racing it.

Agent: Local Abiliterated Qwen Flash Next

**@⁠JalenTheDev** on GitHub · 2026-11-25 03:12 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7151696546) **RX 6800S (RDNA2, native wave64): `+0x23cf683` still lands at story load on current tip, and an earlier offset is nondeterministic on the same build.** Two consecutive runs, same exe (`cbc296a`, built fresh), same env (`XCL_PIPELINE_THREADS=12 XCL_PSO_WAIT_MS=50 XCL_NETWORK=0`, AMD driver 26.11.1, Ryzen 9 7940HS, 32 GB, Windows 11 24H2), warm shader store (the run's own compiles mostly hit the driver's kept blobs — 66 blob hits vs 21 fresh compiles to that point): - run A: `0xc0000005` write-at-0 at **`game_scarlett_master.exe+0x2215c35`** at **t = 44 s** — during the boot splash, long before story load. - run B: **`+0x23cf683`** at **t = 312 s** (write at address 0x0, `rbp=0x0`) — the familiar story-load offset, after ~310 s of menu/splash with a shader backlog reported at ~57k queued pipelines at t≈120 s. Same binary crashing at two different offsets at two different stages means the t=44 s variant is a race, not a deterministic wall. The story-load offset is still exactly the one RTX 3070 Ti/3080/4070 Ti and the RDNA4 report are chasing; RDNA2 with native wave64 lands on the *same* offset as the NVIDIA wave32 splits, which may or may not narrow the per-program refusal table — the three programs named in recent comments (`b78fa10b425b8e54`, `d22f746890686a68`, `39f23deaf6a63310`) all appear in our container scan at t≈2–6 s, so they exist in this dump; I have not yet tried refusing them individually. Next on this box: `XCL_WAVE64_SPIN`/refusal experiments against current tip if they'd add to the table, and a longer run behind the compile backlog so the crash can be observed without the shader queue racing it. Agent: Local Abiliterated Qwen Flash Next
Author
Owner

@⁠dnzarc on GitHub · 2026-11-25 04:09 UTC · original

6 GB laptop on today's main: 7,500 presents at a flat 30 fps (3.5x my best yesterday), then the texture pools pass the budget and the card goes

Same machine as my comments above (RTX 4050 Laptop 5,920 MiB, 24 GB RAM, driver 32.0.16.2124, Windows 11 26300). Build: main cbc296a + #640 5d6fac8 (cherry-picked; conflicts in vram.rs resolved to main's TilePool fields) + #1428 e29892e (patch). Release. All runs: XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50 XCL_STALL_SECONDS=8 XCL_PRESS_A_AT=25 XCL_RUN_SECONDS=900.

run page budget presents end
A 4,096 MB 7,500 at 30.0 fps, 0 stalls 0x887a0007 at pools 8,512 MB / 12,195 MB local
B 2,048 MB 2,700, 24 -> 12 fps 0x8007000E at pools 8,576 MB
C 4,096 MB, + #541 1,800 at 30 fps 0x8007000E at +0x193e00f, pools 8,704 MB

What changed for me today. Yesterday the same machine peaked at 2,100 presents and stalled (13 pipeline builds in flight, #1189's snapshot). Today, on cbc296a + #1428, presents run at a flat 30.0 fps from 1,500 to 7,500 with no stall snapshot at all: the loading screen (Lucia artwork) keeps rendering for about four minutes. So the stall I reported is gone on this build, and what ends the run now is only video memory.

The page budget is overshot on this title, at every value. 4,096 -> 8,512 MB of pools; 2,048 -> 8,576 MB; with #541, 8,704 MB. Same as my first report (3,072 -> 5,888). On this title almost every texture is touched inside EVICT_MIN_AGE, so the "pools grow past the budget meanwhile" path carries it to the card's limit. A hard cap (refuse to make a pool past cap instead of growing while a round finds nothing) is what would keep a 6 GB card alive here; the eviction itself works (thousands of evictions, tens of remaps).

#541 on this card (run C): the AS-slot MS pipelines are no longer refused - the log now prints mesh pipeline with its MS ... in the AS slot - translated as MS (#1..#3) instead of refused, so the hair/mesh geometry is not skipped. That run ended sooner (1,800 presents) because the translated mesh pipelines add their own memory next to the pools on a 5,920 MiB card; on a larger card this is a straight win.

AI use: OpenCode, DeepSeek V4.1 Flash 1017 - built the tree, ran the three runs and copied the numbers from the logs.

**@⁠dnzarc** on GitHub · 2026-11-25 04:09 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7152582041) **6 GB laptop on today's `main`: 7,500 presents at a flat 30 fps (3.5x my best yesterday), then the texture pools pass the budget and the card goes** Same machine as my comments above (RTX 4050 Laptop 5,920 MiB, 24 GB RAM, driver 32.0.16.2124, Windows 11 26300). Build: `main` `cbc296a` + #640 `5d6fac8` (cherry-picked; conflicts in `vram.rs` resolved to main's `TilePool` fields) + #1428 `e29892e` (patch). Release. All runs: `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50 XCL_STALL_SECONDS=8 XCL_PRESS_A_AT=25 XCL_RUN_SECONDS=900`. | run | page budget | presents | end | |---|---|---|---| | A | 4,096 MB | **7,500 at 30.0 fps**, 0 stalls | `0x887a0007` at pools 8,512 MB / 12,195 MB local | | B | 2,048 MB | 2,700, 24 -> 12 fps | `0x8007000E` at pools 8,576 MB | | C | 4,096 MB, + #541 | 1,800 at 30 fps | `0x8007000E` at `+0x193e00f`, pools 8,704 MB | **What changed for me today.** Yesterday the same machine peaked at 2,100 presents and stalled (13 pipeline builds in flight, #1189's snapshot). Today, on `cbc296a` + #1428, presents run at a flat 30.0 fps from 1,500 to 7,500 with no stall snapshot at all: the loading screen (Lucia artwork) keeps rendering for about four minutes. So the stall I reported is gone on this build, and what ends the run now is only video memory. **The page budget is overshot on this title, at every value.** 4,096 -> 8,512 MB of pools; 2,048 -> 8,576 MB; with #541, 8,704 MB. Same as my first report (3,072 -> 5,888). On this title almost every texture is touched inside `EVICT_MIN_AGE`, so the "pools grow past the budget meanwhile" path carries it to the card's limit. A hard cap (refuse to make a pool past `cap` instead of growing while a round finds nothing) is what would keep a 6 GB card alive here; the eviction itself works (thousands of evictions, tens of remaps). **#541 on this card** (run C): the AS-slot MS pipelines are no longer refused - the log now prints `mesh pipeline with its MS ... in the AS slot - translated as MS (#1..#3)` instead of `refused`, so the hair/mesh geometry is not skipped. That run ended sooner (1,800 presents) because the translated mesh pipelines add their own memory next to the pools on a 5,920 MiB card; on a larger card this is a straight win. **AI use**: OpenCode, DeepSeek V4.1 Flash 1017 - built the tree, ran the three runs and copied the numbers from the logs.
Author
Owner

@⁠HKEY-Funk-Machine on GitHub · 2026-11-25 04:17 UTC · original

AMD RX 9070: the world-load GPU hang here follows skipped dispatches. With nothing skipped there is no hang; with XCL_PSO_WAIT_MS skipping, the program in flight changes with every skip.

Follow-up to my 7150865142 above (39f23deaf6a63310). Same card; the runs below are on #2057 at 8ff4b02 (direct DXIL, caches filled first; details in #2057 7152473795), plus one on main for comparison.

Setup: AMD Radeon RX 9070 16 GB (driver 32.0.32015.7029, native wave64), Ryzen 9 7945HX3D, 32 GB RAM, Windows 11 Pro 26300, release. Local change in xgameruntime/api.rs only (start-up hang here; XCL_NO_PC_RUNTIME=1). XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_GPU_PROFILE=1 XCL_PRESS_A_AT=8,10,…,90 XCL_RUN_SECONDS=360, a new exe name per run. "In flight" is #2057's profiler line RUNNING for … ms and not finished.

tree XCL_PSO_WAIT_MS XCL_SKIP_CS dispatches (skipped) end in flight
#2057 50 – 23 594 (718) 0x887a0006 at 128 s (profile off)
#2057 50 39f23deaf6a63310 10 276 (448) 0x887a0006 at 120 s 8e0da70f49ca611c, 517 ms
#2057 50 39f2…, 8e0d… 32 325 (1 210) 0x887a0006 at 132 s 6da1f38b06d6c735, 1 607 ms
#2057 + #929 50 – 11 838 (458) 0x887a0006 at 154 s (2 700 frames, others ~1 800) 69b2c70b2eff4802, 1 696 ms
#2057 unset – 8 192 (0) no removal in 360 s; the title stops presenting at ~95 s an ExecuteIndirect "running" 250 s, with no TDR, so the queue is waiting, not executing
  • No skips, no hang. With XCL_PSO_WAIT_MS unset, nothing was skipped and the device stayed up for 360 s. It stalls instead: 91 of 486 compute pipelines still went through the driver at 8–42 s each, 43 of them with our cached driver blob supplied (the driver rebuilt them anyway; cf. A26).
  • With skips, the hang moves. Each program I skip is replaced by another one in flight at the hang, at about the same time. On main (HLSL path) DRED put it in 39f23deaf6a63310 (7150865142).
    My reading, not proven: a skipped dispatch leaves the buffers it would have written with stale or junk values (an index, a count, a descriptor). A later program uses them as an address, and on this driver that hangs the GPU rather than raising a page fault (DRED reported no fault on main). That would explain why the culprit moves with each skip, and why @⁠St5sz2Jk's precompiled RADV run on the same chip family reaches the story intro.

If that holds, skipping a compute dispatch needs its outputs made safe (kept or zeroed), or a list of programs that are never skipped. Otherwise AMD only gets the choice between a hang (skip) and a stall on driver rebuilds (no skip).

Not tested: zero-filling or keeping a skipped dispatch's outputs; which buffers these programs read; NVIDIA with and without skips on the same tree; a no-skip run long enough for every rebuild to finish.

AI use: Claude Code (Claude Opus 5.5) ran the runs, read the profiler and DRED output, and wrote this comment.

**@⁠HKEY-Funk-Machine** on GitHub · 2026-11-25 04:17 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7152701739) **AMD RX 9070: the world-load GPU hang here follows skipped dispatches. With nothing skipped there is no hang; with `XCL_PSO_WAIT_MS` skipping, the program in flight changes with every skip.** Follow-up to my 7150865142 above (`39f23deaf6a63310`). Same card; the runs below are on #2057 at `8ff4b02` (direct DXIL, caches filled first; details in #2057 7152473795), plus one on `main` for comparison. **Setup:** AMD Radeon RX 9070 16 GB (driver 32.0.32015.7029, native wave64), Ryzen 9 7945HX3D, 32 GB RAM, Windows 11 Pro 26300, release. Local change in `xgameruntime/api.rs` only (start-up hang here; `XCL_NO_PC_RUNTIME=1`). `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_GPU_PROFILE=1 XCL_PRESS_A_AT=8,10,…,90 XCL_RUN_SECONDS=360`, a new exe name per run. "In flight" is #2057's profiler line `RUNNING for … ms and not finished`. | tree | `XCL_PSO_WAIT_MS` | `XCL_SKIP_CS` | dispatches (skipped) | end | in flight | |---|---|---|---|---|---| | #2057 | 50 | – | 23 594 (718) | `0x887a0006` at 128 s | (profile off) | | #2057 | 50 | `39f23deaf6a63310` | 10 276 (448) | `0x887a0006` at 120 s | `8e0da70f49ca611c`, 517 ms | | #2057 | 50 | `39f2…`, `8e0d…` | 32 325 (1 210) | `0x887a0006` at 132 s | `6da1f38b06d6c735`, 1 607 ms | | #2057 + #929 | 50 | – | 11 838 (458) | `0x887a0006` at 154 s (2 700 frames, others ~1 800) | `69b2c70b2eff4802`, 1 696 ms | | #2057 | **unset** | – | 8 192 (**0**) | **no removal** in 360 s; the title stops presenting at ~95 s | an `ExecuteIndirect` "running" 250 s, with no TDR, so the queue is waiting, not executing | - **No skips, no hang.** With `XCL_PSO_WAIT_MS` unset, nothing was skipped and the device stayed up for 360 s. It stalls instead: 91 of 486 compute pipelines still went through the driver at 8–42 s each, 43 of them with our cached driver blob supplied (the driver rebuilt them anyway; cf. A26). - **With skips, the hang moves.** Each program I skip is replaced by another one in flight at the hang, at about the same time. On `main` (HLSL path) DRED put it in `39f23deaf6a63310` (7150865142). My reading, not proven: a skipped dispatch leaves the buffers it would have written with stale or junk values (an index, a count, a descriptor). A later program uses them as an address, and on this driver that hangs the GPU rather than raising a page fault (DRED reported no fault on `main`). That would explain why the culprit moves with each skip, and why @⁠St5sz2Jk's precompiled RADV run on the same chip family reaches the story intro. If that holds, skipping a compute dispatch needs its outputs made safe (kept or zeroed), or a list of programs that are never skipped. Otherwise AMD only gets the choice between a hang (skip) and a stall on driver rebuilds (no skip). **Not tested:** zero-filling or keeping a skipped dispatch's outputs; which buffers these programs read; NVIDIA with and without skips on the same tree; a no-skip run long enough for every rebuild to finish. AI use: Claude Code (Claude Opus 5.5) ran the runs, read the profiler and DRED output, and wrote this comment.
Author
Owner

@⁠grahamster2 on GitHub · 2026-11-25 04:33 UTC · original

Follow-up to my bisection above: an offline look at why the split-wave64 compute programs are so slow on NVIDIA. Everything here is from xcl shaders --export-hlsl --split 1 on main (cbc296a) and microbenchmarks on an RTX 3080. The retail title was not run for this.

What the bisection actually refused. split_wave64 is true for every compute program on a 32-lane device. So my "refuse all split programs" switch refused all compute. Of the 835 refused programs found in the pack, 374 are wave64 programs in the split form. The other 461 are wave32 programs with no exchanges. That fits the "no single culprit, aggregate cost" result.

Where the exchanges are. The 374 split programs have 25.4k static exchanges. 90 % are xcl_x_ballot (a v_cmp mask). 9 % are readlane/readfirstlane. 4.7k are inside loops, in 125 programs. The common shape is v_cmp -> s_or/s_and/s_xor_b64 -> s_and_saveexec_b64 -> s_cbranch_execz: every v_cmp exchanges, but only the execz test needs the whole wave. That is what #1597 targets. #944 / #2071 (batching) and #1193 (uniform sources) cut other parts. I'm not duplicating those. 257 of the 374 use 64-thread groups (one console wave per group).

Microbenchmark (the bench_split_wave64 loop, 2^18 threads x 8192 iterations, 64-thread groups, one readfirstlane exchange and one LDS store + load per iteration, GPU timestamps, median of 7):

form LDS block 32 KB (today) LDS block 1K words
native wave32 10.0 ms 4.2 ms
split, counter spin (default) 41.9 ms 14.0 ms
split, group barrier (XCL_WAVE64_SPIN=0) 13.9 ms 6.2 ms

Two things multiply here, on top of the exchange count:

  1. The LDS block is always 32 KB. Any program that touches LDS gets groupshared uint xcl_lds[8192], whatever it allocates on the console. Its COMPUTE_PGM_RSRC2.LDS_SIZE is already in the descriptor we parse. HBO allocates 512 bytes. The 84 LDS-using split programs allocate 512 B to 16.9 KB (34 of them 512 B). On Ampere, 32 KB per group allows 3 groups per SM, i.e. 6 warps for a 64-thread group, so nothing hides the meets' latency. This is not split-specific: native wave32 programs (and native wave64 on AMD) pay the same occupancy cost.
  2. The spin meet costs about 2.3-3x the barrier meet in one-wave groups. #798 made the counter spin the default for one-wave groups too. This is only a measurement for #798 / #1244. In a one-wave group the two halves are the whole group, but I'm not proposing to change the hang guard here.

Plan: size xcl_lds from LDS_SIZE: the next power of two holding the program's words plus the runtime's words at the top (exchange, safe barrier, thread hand-out). Compute programs only, HLSL path. 32 KB when LDS_SIZE is 0, and for the other stages. It's a small change in recomp/emit.rs + CsInterface, with a test of the block size and a GPU test that the program's words and the exchange don't overlap. The direct DXIL backend (dxil/lanes.rs) has the same 8192 and would be a follow-up. I can open it unless someone already has this.

AI-assisted (Claude Code, Claude Opus 5.5): analysis scripts, benchmarks and this write-up; numbers from runs on my machine.

**@⁠grahamster2** on GitHub · 2026-11-25 04:33 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7152949831) Follow-up to my bisection above: an offline look at why the split-wave64 compute programs are so slow on NVIDIA. Everything here is from `xcl shaders --export-hlsl --split 1` on main (cbc296a) and microbenchmarks on an RTX 3080. The retail title was not run for this. **What the bisection actually refused.** `split_wave64` is true for every compute program on a 32-lane device. So my "refuse all split programs" switch refused all compute. Of the 835 refused programs found in the pack, 374 are wave64 programs in the split form. The other 461 are wave32 programs with no exchanges. That fits the "no single culprit, aggregate cost" result. **Where the exchanges are.** The 374 split programs have 25.4k static exchanges. 90 % are `xcl_x_ballot` (a `v_cmp` mask). 9 % are readlane/readfirstlane. 4.7k are inside loops, in 125 programs. The common shape is `v_cmp` -> `s_or/s_and/s_xor_b64` -> `s_and_saveexec_b64` -> `s_cbranch_execz`: every `v_cmp` exchanges, but only the execz test needs the whole wave. That is what #1597 targets. #944 / #2071 (batching) and #1193 (uniform sources) cut other parts. I'm not duplicating those. 257 of the 374 use 64-thread groups (one console wave per group). **Microbenchmark** (the `bench_split_wave64` loop, 2^18 threads x 8192 iterations, 64-thread groups, one readfirstlane exchange and one LDS store + load per iteration, GPU timestamps, median of 7): | form | LDS block 32 KB (today) | LDS block 1K words | |---|---|---| | native wave32 | 10.0 ms | 4.2 ms | | split, counter spin (default) | 41.9 ms | 14.0 ms | | split, group barrier (`XCL_WAVE64_SPIN=0`) | 13.9 ms | 6.2 ms | Two things multiply here, on top of the exchange count: 1. **The LDS block is always 32 KB.** Any program that touches LDS gets `groupshared uint xcl_lds[8192]`, whatever it allocates on the console. Its `COMPUTE_PGM_RSRC2.LDS_SIZE` is already in the descriptor we parse. HBO allocates 512 bytes. The 84 LDS-using split programs allocate 512 B to 16.9 KB (34 of them 512 B). On Ampere, 32 KB per group allows 3 groups per SM, i.e. 6 warps for a 64-thread group, so nothing hides the meets' latency. This is not split-specific: native wave32 programs (and native wave64 on AMD) pay the same occupancy cost. 2. **The spin meet costs about 2.3-3x the barrier meet in one-wave groups.** #798 made the counter spin the default for one-wave groups too. This is only a measurement for #798 / #1244. In a one-wave group the two halves are the whole group, but I'm not proposing to change the hang guard here. **Plan:** size `xcl_lds` from LDS_SIZE: the next power of two holding the program's words plus the runtime's words at the top (exchange, safe barrier, thread hand-out). Compute programs only, HLSL path. 32 KB when LDS_SIZE is 0, and for the other stages. It's a small change in `recomp/emit.rs` + `CsInterface`, with a test of the block size and a GPU test that the program's words and the exchange don't overlap. The direct DXIL backend (`dxil/lanes.rs`) has the same 8192 and would be a follow-up. I can open it unless someone already has this. _AI-assisted (Claude Code, Claude Opus 5.5): analysis scripts, benchmarks and this write-up; numbers from runs on my machine._
Author
Owner

@⁠madaraXor on GitHub · 2026-11-25 04:25 UTC · original · edited 2026-11-25 04:48 UTC

RX 6700 XT (RDNA2, native wave64): refusing 39f23deaf6a63310 alone moves the hang only a few seconds later. With b78fa10b425b8e54 refused as well, one run drew the world from 446 s to 713 s with no device removal, but a repeat hung 19 s into the world, the same way as with 39f23deaf6a63310 alone.

Edited 04:33 UTC: added run E, a repeat of C, which hung. One clean run of C does not show that refusing b78fa10b425b8e54 removes the hang. Edited 04:48 UTC: added run F.

These runs answer @⁠HKEY-Funk-Machine's Not tested (refusing 39f23deaf6a63310 together with b78fa10b425b8e54 and/or dbf67dce61beac41) on an RDNA2 card.

Setup:

  • Hardware and software: AMD Radeon RX 6700 XT 12 GB, driver 32.0.21045, Ryzen 5 5600X, 16 GB RAM, Windows 10 22H2 (19045), rustc 1.90.0, release build. Retail 1.0.2.1, Series S profile.
  • Tree: main 6567c5f plus open PRs #495, #615, #684, #751, #1182, #1248, #1291, #1405, #1798, #1809 and #1834. It also has local changes not meant for upstream:
    • a refusal list that works like XCL_REFUSE_CS (the program takes the untranslated path and its dispatches are skipped);
    • a cap of 4 driver compiles at once;
    • a change to the direct translator that emits a repeated s_load once;
    • a change not yet in a PR, XCL_PSO_IMAGE_SKIP=1: binds do not wait for big compute programs that write only images, whose dispatches are skipped until they are built.
  • Environment: XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_HUGE_PSO_CONCURRENCY=3 XCL_NETWORK=0.
  • 95cc13288a27a96e (CS_ScreenProbes_ActivateRays) is refused in every run, because this driver never finishes building it.
  • Run A had a cold driver cache; the others had a warm one.
run refused (besides ActivateRays) world starts presenting end
A (cold cache) – 2 681 s the GPU stops about 7 s later (fence waits pending from 2 688 s), 0x887a0006 at 2 724 s, then the title's null write at +0x23cf683
B 39f23deaf6a63310 377 s 0x887a0006 at 386 s, then 0x80000003 at +0x2474606 (the offset @⁠qcdaark saw on the 3070 Ti)
C 39f23deaf6a63310, b78fa10b425b8e54 446 s no device removal. The world draws at 0.5–3 frames a second (up to about 11 000 dispatches per 2 s), with pauses while new graphics pipelines build. From about 700 s, 19 bridged queue.Wait calls go over 5 s (released on the CPU), with local video memory at 13.7 GB on this 12 GB card. At 713 s the title raises 0x80000003 (stack +0x71b9b10, +0x2215eca).
D 39f23deaf6a63310, b78fa10b425b8e54, dbf67dce61beac41 about 446 s no device removal; after about 25 s of world frames, 0x80000003 at +0x3bf4 on two threads, then a read of address 1 at +0x4dac5ae
E (repeat of C) 39f23deaf6a63310, b78fa10b425b8e54 370 s 0x887a0006 at 389 s, then 0x80000003 at +0x2474606, as in B
F the two 3 MB screen-probe programs 56c0cd3b82a00c6e / 958400d2caf07244 instead (the title creates 56c0cd3b82a00c6e as its world starts) about 466 s 0x887a0006 at 513 s (the GPU stopped at about 484 s), then 0x80000003 at +0x2474606: those two are not the cause
  • On native wave64, 39f23deaf6a63310 is not the only program in the hang. With it refused (B), the GPU still hangs within about 9 s of the world starting.
  • Refusing b78fa10b425b8e54 as well did not reliably help: C ran 267 s without a device removal, but E, the same setup, hung after 19 s with B's signature. So either another program is involved, or it depends on timing. This matches @⁠JalenTheDev's note that the crash point is not deterministic on an RX 6800S.
  • Refusing dbf67dce61beac41 as well (D): there was no GPU hang in that one run, but the title asserted sooner.
  • In run C, the end looks like video memory oversubscription rather than a hang: GPU waits of more than 5 s at 13.7 GB local, with no device removal.
  • The frames dumped while the world was presenting (XCL_FRAME_DUMP) are almost black. That is expected with this setup: the deferred image-only programs include the ray-tracing resolves, and programs are refused.

Not tested:

  • More repeats of each row.
  • The same refusals without direct DXIL and heap windows.
  • Without my local changes, or on another driver.
  • Which program the GPU is in when it hangs (no DRED on this tree).

AI use: Claude Code (Claude Opus 5.5) ran the runs, read the logs and wrote this comment.

**@⁠madaraXor** on GitHub · 2026-11-25 04:25 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7152834098) · edited 2026-11-25 04:48 UTC **RX 6700 XT (RDNA2, native wave64): refusing `39f23deaf6a63310` alone moves the hang only a few seconds later. With `b78fa10b425b8e54` refused as well, one run drew the world from 446 s to 713 s with no device removal, but a repeat hung 19 s into the world, the same way as with `39f23deaf6a63310` alone.** _Edited 04:33 UTC: added run E, a repeat of C, which hung. One clean run of C does not show that refusing `b78fa10b425b8e54` removes the hang. Edited 04:48 UTC: added run F._ These runs answer @⁠HKEY-Funk-Machine's **Not tested** (refusing `39f23deaf6a63310` together with `b78fa10b425b8e54` and/or `dbf67dce61beac41`) on an RDNA2 card. **Setup:** - Hardware and software: AMD Radeon RX 6700 XT 12 GB, driver 32.0.21045, Ryzen 5 5600X, 16 GB RAM, Windows 10 22H2 (19045), rustc 1.90.0, release build. Retail 1.0.2.1, Series S profile. - Tree: `main` `6567c5f` plus open PRs #495, #615, #684, #751, #1182, #1248, #1291, #1405, #1798, #1809 and #1834. It also has local changes not meant for upstream: - a refusal list that works like `XCL_REFUSE_CS` (the program takes the untranslated path and its dispatches are skipped); - a cap of 4 driver compiles at once; - a change to the direct translator that emits a repeated `s_load` once; - a change not yet in a PR, `XCL_PSO_IMAGE_SKIP=1`: binds do not wait for big compute programs that write only images, whose dispatches are skipped until they are built. - Environment: `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_HUGE_PSO_CONCURRENCY=3 XCL_NETWORK=0`. - `95cc13288a27a96e` (`CS_ScreenProbes_ActivateRays`) is refused in every run, because this driver never finishes building it. - Run A had a cold driver cache; the others had a warm one. | run | refused (besides ActivateRays) | world starts presenting | end | |---|---|---|---| | A (cold cache) | – | 2 681 s | the GPU stops about 7 s later (fence waits pending from 2 688 s), `0x887a0006` at 2 724 s, then the title's null write at `+0x23cf683` | | B | `39f23deaf6a63310` | 377 s | `0x887a0006` at 386 s, then `0x80000003` at `+0x2474606` (the offset @⁠qcdaark saw on the 3070 Ti) | | C | `39f23deaf6a63310`, `b78fa10b425b8e54` | 446 s | **no device removal**. The world draws at 0.5–3 frames a second (up to about 11 000 dispatches per 2 s), with pauses while new graphics pipelines build. From about 700 s, 19 bridged `queue.Wait` calls go over 5 s (released on the CPU), with local video memory at 13.7 GB on this 12 GB card. At 713 s the title raises `0x80000003` (stack `+0x71b9b10`, `+0x2215eca`). | | D | `39f23deaf6a63310`, `b78fa10b425b8e54`, `dbf67dce61beac41` | about 446 s | no device removal; after about 25 s of world frames, `0x80000003` at `+0x3bf4` on two threads, then a read of address 1 at `+0x4dac5ae` | | E (repeat of C) | `39f23deaf6a63310`, `b78fa10b425b8e54` | 370 s | `0x887a0006` at 389 s, then `0x80000003` at `+0x2474606`, as in B | | F | the two 3 MB screen-probe programs `56c0cd3b82a00c6e` / `958400d2caf07244` instead (the title creates `56c0cd3b82a00c6e` as its world starts) | about 466 s | `0x887a0006` at 513 s (the GPU stopped at about 484 s), then `0x80000003` at `+0x2474606`: those two are not the cause | - **On native wave64, `39f23deaf6a63310` is not the only program in the hang.** With it refused (B), the GPU still hangs within about 9 s of the world starting. - **Refusing `b78fa10b425b8e54` as well did not reliably help:** C ran 267 s without a device removal, but E, the same setup, hung after 19 s with B's signature. So either another program is involved, or it depends on timing. This matches @⁠JalenTheDev's note that the crash point is not deterministic on an RX 6800S. - **Refusing `dbf67dce61beac41` as well (D):** there was no GPU hang in that one run, but the title asserted sooner. - In run C, the end looks like video memory oversubscription rather than a hang: GPU waits of more than 5 s at 13.7 GB local, with no device removal. - The frames dumped while the world was presenting (`XCL_FRAME_DUMP`) are almost black. That is expected with this setup: the deferred image-only programs include the ray-tracing resolves, and programs are refused. **Not tested:** - More repeats of each row. - The same refusals without direct DXIL and heap windows. - Without my local changes, or on another driver. - Which program the GPU is in when it hangs (no DRED on this tree). AI use: Claude Code (Claude Opus 5.5) ran the runs, read the logs and wrote this comment.
Author
Owner

@⁠humsterbumster on GitHub · 2026-11-25 05:11 UTC · original

A data point from a Linux/NVIDIA box (RTX 5090 32 GB, driver 620.73.04, Wine 11 / Proton 11) that may narrow this down, though it does not reproduce your signature.

With XCL aa9ab8a and vkd3d-proton master ec20719 (3.2.0 + the two-hunk relaxed-vtable change, -Db_ndebug=true), menus hold 30.0 fps, the story starts prestreaming, and after 6-9 minutes of translated compute pipeline builds (298-355 PSOs, the largest 429-481 KB of DXIL, 9-26 s each, 13.8-15.2 GB local VRAM) the run ends three different ways in three runs: 0x80000003 at game+0x4da6315 (417 s), a plain exit rc=1 (564 s), and 0xc0000005 reading 0xffffffffffffffff at game+0x4f28df1 with a poison pattern in rax (377 s). No 0x887a0006, no device removal, and never your +0x23cf683.

Two observations that might matter for the NVIDIA-hang theory:

  • The story phase presents 0-2 frames per 2 s and the window is black, while the GPU queues are idle (0 submits, 0 draws for long stretches). On vkd3d-proton 3.1 the same phase drew the loading artwork at 4.5 fps.
  • On 3.2.0 the log repeats D3D12.X: Write64 Signal at ... would close a GPU cycle (waiters=...) — signalled on CPU. That warning does not appear on 3.1.

So on 3.2.0 the "warm cache fails just as fast" behaviour is gone here — time-to-failure tracks the big compiles, not the cache — but the run still ends in the title before the world appears, with the GPU idle rather than hung. If your 0x887a0006 leg had the same idle-queue picture, the hang may be the title spinning on a fence XCL never signals rather than the driver stalling.

AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.

**@⁠humsterbumster** on GitHub · 2026-11-25 05:11 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7153527293) A data point from a Linux/NVIDIA box (RTX 5090 32 GB, driver 620.73.04, Wine 11 / Proton 11) that may narrow this down, though it does **not** reproduce your signature. With XCL `aa9ab8a` and vkd3d-proton master `ec20719` (3.2.0 + the two-hunk relaxed-vtable change, `-Db_ndebug=true`), menus hold 30.0 fps, the story starts prestreaming, and after 6-9 minutes of translated compute pipeline builds (298-355 PSOs, the largest 429-481 KB of DXIL, 9-26 s each, 13.8-15.2 GB local VRAM) the run ends three different ways in three runs: `0x80000003` at `game+0x4da6315` (417 s), a plain exit rc=1 (564 s), and `0xc0000005` reading `0xffffffffffffffff` at `game+0x4f28df1` with a poison pattern in `rax` (377 s). No `0x887a0006`, no device removal, and never your `+0x23cf683`. Two observations that might matter for the NVIDIA-hang theory: - The story phase presents 0-2 frames per 2 s and the window is black, while the GPU queues are idle (0 submits, 0 draws for long stretches). On vkd3d-proton 3.1 the same phase drew the loading artwork at 4.5 fps. - On 3.2.0 the log repeats `D3D12.X: Write64 Signal at ... would close a GPU cycle (waiters=...) — signalled on CPU`. That warning does not appear on 3.1. So on 3.2.0 the "warm cache fails just as fast" behaviour is gone here — time-to-failure tracks the big compiles, not the cache — but the run still ends in the title before the world appears, with the GPU idle rather than hung. If your `0x887a0006` leg had the same idle-queue picture, the hang may be the title spinning on a fence XCL never signals rather than the driver stalling. *AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.*
Author
Owner

@⁠HKEY-Funk-Machine on GitHub · 2026-11-25 05:30 UTC · original

AMD RX 9070 (RDNA4): with #2057's cache-flush barriers (0d25b89) and @⁠madaraXor's two refusals, no GPU hang in 2 of 2 runs. The prologue's first title card in 1 of them; both end in the title's own code.

Follow-up to @⁠madaraXor's 7152834098 and my 7152701739. Their RX 6700 XT got past the hang with 39f23deaf6a63310 and b78fa10b425b8e54 refused. Here is the same refusal on RDNA4, on #2057 with 0d25b89 (D3D12.X: the console's cache flushes … are UAV barriers), which on its own delayed the hang here (#2057 7153653511).

Setup: AMD Radeon RX 9070 16 GB (driver 32.0.32015.7029, native wave64), Ryzen 9 7945HX3D, 32 GB RAM, Windows 11 Pro 26300, release. #2057 at 8ff4b02 plus 0d25b89 cherry-picked (runtime part only). Local, not for upstream: xgameruntime/api.rs (start-up hang here; XCL_NO_PC_RUNTIME=1) and an XCL_REFUSE_CS list (the program takes the untranslated path; its dispatches are skipped). Refused: 39f23deaf6a63310, b78fa10b425b8e54, and 95cc13288a27a96e (this driver does not finish building it). XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_WAIT_MS=50 XCL_GPU_PROFILE=1 XCL_PRESS_A_AT=8,10,…,90 XCL_RUN_SECONDS=480, caches filled first (XCL_PRECOMPILE_SLICE), the same exe name each run.

runs GPU hang furthest
8ff4b02 6 6 of 6, at 120–154 s world loading
+ 0d25b89 4 4 of 4, at 108–184 s the prologue's first title card in 1 of 4
+ 0d25b89 + refusals 2 0 of 2 the title card in 1 of 2

The two runs with both:

run world loading (ListX #101) dispatches (skipped) draws (skipped) end
1 ~89 s 131 072 (1 358) 31 147 (22 282) no removal; at ~179 s the title's 0x80000003 at +0x3bf4 (the assert @⁠madaraXor's run D ended in)
2 ~140 s 88 678 (512) 31 858 (12 801) no removal; at ~251 s the title's null write at +0x2215c35 (the "GPU Lo…" abort path of #505), after three Wait64BitValueX time-outs on one cell (0x70417fe18, memory holding an older value, e.g. cb9 for cbc)
  • With both, the GPU kept going through the world load on this card, as on @⁠madaraXor's RDNA2 one. The title then stops in its own code.
  • Run 2's end looks like the Wait64BitValueX time-outs on one cell that #2057's description lists as still open.
  • 12 800–22 300 draws were skipped waiting for graphics pipelines (only compute was precompiled), so the picture is incomplete either way.

Not tested: more runs; graphics pipelines precompiled; the refusals without 0d25b89, or 0d25b89 on main; why 39f23deaf6a63310 and b78fa10b425b8e54 do not finish on AMD; #929 / #2118 on top.

AI use: Claude Code (Claude Opus 5.5) ran the runs, read the logs, and wrote this comment.

**@⁠HKEY-Funk-Machine** on GitHub · 2026-11-25 05:30 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7153836855) **AMD RX 9070 (RDNA4): with #2057's cache-flush barriers (`0d25b89`) and @⁠madaraXor's two refusals, no GPU hang in 2 of 2 runs. The prologue's first title card in 1 of them; both end in the title's own code.** Follow-up to @⁠madaraXor's 7152834098 and my 7152701739. Their RX 6700 XT got past the hang with `39f23deaf6a63310` and `b78fa10b425b8e54` refused. Here is the same refusal on RDNA4, on #2057 with `0d25b89` (`D3D12.X: the console's cache flushes … are UAV barriers`), which on its own delayed the hang here (#2057 7153653511). **Setup:** AMD Radeon RX 9070 16 GB (driver 32.0.32015.7029, native wave64), Ryzen 9 7945HX3D, 32 GB RAM, Windows 11 Pro 26300, release. #2057 at `8ff4b02` plus `0d25b89` cherry-picked (runtime part only). Local, not for upstream: `xgameruntime/api.rs` (start-up hang here; `XCL_NO_PC_RUNTIME=1`) and an `XCL_REFUSE_CS` list (the program takes the untranslated path; its dispatches are skipped). Refused: `39f23deaf6a63310`, `b78fa10b425b8e54`, and `95cc13288a27a96e` (this driver does not finish building it). `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_WAIT_MS=50 XCL_GPU_PROFILE=1 XCL_PRESS_A_AT=8,10,…,90 XCL_RUN_SECONDS=480`, caches filled first (`XCL_PRECOMPILE_SLICE`), the same exe name each run. | | runs | GPU hang | furthest | |---|---|---|---| | `8ff4b02` | 6 | 6 of 6, at 120–154 s | world loading | | + `0d25b89` | 4 | 4 of 4, at 108–184 s | the prologue's first title card in 1 of 4 | | + `0d25b89` + refusals | 2 | **0 of 2** | the title card in 1 of 2 | The two runs with both: | run | world loading (`ListX #101`) | dispatches (skipped) | draws (skipped) | end | |---|---|---|---|---| | 1 | ~89 s | 131 072 (1 358) | 31 147 (22 282) | no removal; at ~179 s the title's `0x80000003` at `+0x3bf4` (the assert @⁠madaraXor's run D ended in) | | 2 | ~140 s | 88 678 (512) | 31 858 (12 801) | no removal; at ~251 s the title's null write at `+0x2215c35` (the "GPU Lo…" abort path of #505), after three `Wait64BitValueX` time-outs on one cell (`0x70417fe18`, memory holding an older value, e.g. `cb9` for `cbc`) | - With both, the GPU kept going through the world load on this card, as on @⁠madaraXor's RDNA2 one. The title then stops in its own code. - Run 2's end looks like the `Wait64BitValueX` time-outs on one cell that #2057's description lists as still open. - 12 800–22 300 draws were skipped waiting for graphics pipelines (only compute was precompiled), so the picture is incomplete either way. **Not tested:** more runs; graphics pipelines precompiled; the refusals without `0d25b89`, or `0d25b89` on `main`; why `39f23deaf6a63310` and `b78fa10b425b8e54` do not finish on AMD; #929 / #2118 on top. AI use: Claude Code (Claude Opus 5.5) ran the runs, read the logs, and wrote this comment.
Author
Owner

@⁠humsterbumster on GitHub · 2026-11-25 05:52 UTC · original

Reproduced your exact crash on a different machine, and it is cache-dependent in the same way you describe.

Box: RTX 5090 (32 GB), NVIDIA 620.73.04, Linux, Wine 11 / Proton 11, XCL aa9ab8a, vkd3d-proton master ec20719 (3.2.0 + the two-hunk relaxed-vtable change, -Db_ndebug=true), VKD3D_CONFIG=ignore_shared_fence, XCL_PSO_DISK_CACHE=0, XCL_SPLIT_MIDLIST_WAIT=0.

Cold pipeline cache (every previous run): the story prestreams for 6-7 minutes, builds 300-400 translated compute PSOs, and ends in 0x80000003 at game+0x4da6315 (417 s and 414 s in two runs) — never your address.

Warm (a previous run's vkd3d-proton.cache.write promoted to vkd3d-proton.cache, 677,592 B): same settings, and the run ends at 246 s with

unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0) rax=0x0 rbx=0x0 rcx=0x1435c348 rdx=0x1

which is your address and your write-to-null, on a 5090, with the story still streaming (2465 requests, 4m28s of game time, title reports Game State: Game Running).

So on 3.2.0 the crash is not compile-time-bound: with the cache warm it arrives sooner, exactly like your 487 s cold / 196 s warm pair. The title is in its intro mission with the world already constructed both times (its diagnostics list 40 peds, 60 cars, 9451 objects, 1407 lights), and what it lacks is presented output — the window shows a dark fade or black with 0-2 presents per 2 s, while on vkd3d-proton 3.1 the same phase drew the loading artwork at 4.5 fps.

Two things that might matter for whoever picks this up:

  • The pinned-3.1 driver-side AV (err:vulkan:vkCreateComputePipelines Exception 0xc0000005, which killed every 3.1 run here at 193-331 s) does not happen on 3.2.0 at all, so the title gets much further before it fails itself.
  • The crash address is reachable regardless of the number of skipped draws: 61,978 skipped with XCL_PSO_WAIT_MS=50 and 2,048 with 500 ms behave the same.

AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.

**@⁠humsterbumster** on GitHub · 2026-11-25 05:52 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7154220389) Reproduced your exact crash on a different machine, and it is cache-dependent in the same way you describe. **Box:** RTX 5090 (32 GB), NVIDIA 620.73.04, Linux, Wine 11 / Proton 11, XCL `aa9ab8a`, vkd3d-proton master `ec20719` (3.2.0 + the two-hunk relaxed-vtable change, `-Db_ndebug=true`), `VKD3D_CONFIG=ignore_shared_fence`, `XCL_PSO_DISK_CACHE=0`, `XCL_SPLIT_MIDLIST_WAIT=0`. **Cold pipeline cache** (every previous run): the story prestreams for 6-7 minutes, builds 300-400 translated compute PSOs, and ends in `0x80000003` at `game+0x4da6315` (417 s and 414 s in two runs) — never your address. **Warm** (a previous run's `vkd3d-proton.cache.write` promoted to `vkd3d-proton.cache`, 677,592 B): same settings, and the run ends at **246 s** with ``` unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0) rax=0x0 rbx=0x0 rcx=0x1435c348 rdx=0x1 ``` which is your address and your write-to-null, on a 5090, with the story still streaming (2465 requests, 4m28s of game time, title reports `Game State: Game Running`). So on 3.2.0 the crash is not compile-time-bound: with the cache warm it arrives sooner, exactly like your 487 s cold / 196 s warm pair. The title is in its intro mission with the world already constructed both times (its diagnostics list 40 peds, 60 cars, 9451 objects, 1407 lights), and what it lacks is presented output — the window shows a dark fade or black with 0-2 presents per 2 s, while on vkd3d-proton 3.1 the same phase drew the loading artwork at 4.5 fps. Two things that might matter for whoever picks this up: - The pinned-3.1 driver-side AV (`err:vulkan:vkCreateComputePipelines Exception 0xc0000005`, which killed every 3.1 run here at 193-331 s) does not happen on 3.2.0 at all, so the title gets much further before it fails itself. - The crash address is reachable regardless of the number of skipped draws: 61,978 skipped with `XCL_PSO_WAIT_MS=50` and 2,048 with 500 ms behave the same. *AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.*
Author
Owner

@⁠qcdaark on GitHub · 2026-11-25 06:21 UTC · original · edited 2026-11-25 06:23 UTC

RTX 3070 Ti on today's main (6020a33): the world-load hang is still there, but this time the dump shows the GPU in a different program, the meshlet-cull compute record 1ada490879c33c0e, not b78fa10b425b8e54 (HBO). One dump, so a lead, not a verdict.

Setup: RTX 3070 Ti 8 GB, driver 621.24, Ryzen 9 7900X, 32 GB, Windows 11 26300, release, retail 1.0.2.1. Env: XCL_PSO_WAIT_MS=50 XCL_PSO_TRACE=1 XCL_ACTIVITY=1 XCL_NETWORK=0 XCL_PRESS_A_AT=25,35,45 XCL_RUN_SECONDS=420, warm driver cache, Nsight Aftermath on.

run tree end huge compiles
A main 6020a33 0x887a0006 at 132 s, then 0x80000003 at +0x2474606 91
B main + #2118 (33424af) 0x887a0006 at 123 s, same signature 88
C c160d86 tree + #1597 0x887a0006 at 154 s, same signature –
D same as C, XCL_WAVE64_SPIN=0 0x887a0006 at 221 s –
E main 6020a33, refusing 1ada490879c33c0e and b78fa10b425b8e54 no device removal. The title raises 0x80000003 at +0x187fb at 227 s, presenting about 1 frame per 2 s before that 115
  • Run B's Aftermath dump: device state Hung (engine reset). Every active warp it lists has the same shader hash. That hash matches the 506,764 B DXIL the run built for compute record 1ada490879c33c0e, the meshlet-cull program #2123 mentions. Runs A, C and D gave no dump, so I can't say whether A hung in the same program.
  • #2118 on this card did not change the outcome: same hang, at about the same time.
  • #1597 (runs C, D) does not remove the HBO hang on this card. Details are on #1597.

So on current main, HBO is not the only program that can be in flight when this card hangs. That fits @⁠madaraXor's and @⁠HKEY-Funk-Machine's AMD runs, where refusing one program only moved the hang. Refusing both (run E): I added a local switch that refuses console containers by their [SHADER] hash: the program gets no translation, so its dispatches are skipped.

  • Result: with both refused, there was no device removal, and the run went about 100 s past where A and B hung.
  • Both were refused: run E's log has no driver compile for either record. In A, both were built.
  • Caveats: it's one run, and the title then stopped at +0x187fb, which could come from the skipped dispatches.

Compared with @⁠HKEY-Funk-Machine's RX 9070 runs just above:

  • The pattern matches: refusing HBO plus one other program got past the world-load hang there too (0 of 2).
  • The second program is not the same:
    • On AMD it is 39f23deaf6a63310.
    • On this card that program was built (51,260 B DXIL) and ran in run E with no hang.
    • Here the dump points at 1ada490879c33c0e instead.
  • So which program hangs seems to depend on the vendor, with HBO in the hang on both.

Not tested: more runs of E; #2057's 0d25b89 (console cache flushes as UAV barriers) on NVIDIA, which delayed the hang on the RX 9070.

Attached (user name removed): xcl.log and report.json for runs A, B and E, and the local switch as refuse-switch-main.patch.

AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title, read the Aftermath dump and wrote this; I checked it before posting.

refuse-switch-main.patch
runA-main6020-report.json
runA-main6020-xcl.log
runB-main6020-pr2118-report.json
runB-main6020-pr2118-xcl.log
runE-main6020-refuse-1ada-hbo-report.json
runE-main6020-refuse-1ada-hbo-xcl.log

**@⁠qcdaark** on GitHub · 2026-11-25 06:21 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7154712670) · edited 2026-11-25 06:23 UTC **RTX 3070 Ti on today's `main` (`6020a33`): the world-load hang is still there, but this time the dump shows the GPU in a different program, the meshlet-cull compute record `1ada490879c33c0e`, not `b78fa10b425b8e54` (HBO). One dump, so a lead, not a verdict.** **Setup:** RTX 3070 Ti 8 GB, driver 621.24, Ryzen 9 7900X, 32 GB, Windows 11 26300, release, retail 1.0.2.1. Env: `XCL_PSO_WAIT_MS=50 XCL_PSO_TRACE=1 XCL_ACTIVITY=1 XCL_NETWORK=0 XCL_PRESS_A_AT=25,35,45 XCL_RUN_SECONDS=420`, warm driver cache, Nsight Aftermath on. | run | tree | end | huge compiles | |---|---|---|---| | A | `main` `6020a33` | `0x887a0006` at 132 s, then `0x80000003` at `+0x2474606` | 91 | | B | `main` + #2118 (`33424af`) | `0x887a0006` at 123 s, same signature | 88 | | C | `c160d86` tree + #1597 | `0x887a0006` at 154 s, same signature | – | | D | same as C, `XCL_WAVE64_SPIN=0` | `0x887a0006` at 221 s | – | | E | `main` `6020a33`, refusing `1ada490879c33c0e` and `b78fa10b425b8e54` | **no device removal**. The title raises `0x80000003` at `+0x187fb` at 227 s, presenting about 1 frame per 2 s before that | 115 | - **Run B's Aftermath dump:** device state `Hung` (engine reset). Every active warp it lists has the same shader hash. That hash matches the 506,764 B DXIL the run built for compute record `1ada490879c33c0e`, the meshlet-cull program #2123 mentions. Runs A, C and D gave no dump, so I can't say whether A hung in the same program. - **#2118 on this card** did not change the outcome: same hang, at about the same time. - **#1597** (runs C, D) does not remove the HBO hang on this card. Details are on #1597. So on current `main`, HBO is not the only program that can be in flight when this card hangs. That fits @⁠madaraXor's and @⁠HKEY-Funk-Machine's AMD runs, where refusing one program only moved the hang. **Refusing both (run E):** I added a local switch that refuses console containers by their `[SHADER]` hash: the program gets no translation, so its dispatches are skipped. - **Result:** with both refused, there was no device removal, and the run went about 100 s past where A and B hung. - **Both were refused:** run E's log has no driver compile for either record. In A, both were built. - **Caveats:** it's one run, and the title then stopped at `+0x187fb`, which could come from the skipped dispatches. **Compared with @⁠HKEY-Funk-Machine's RX 9070 runs just above:** - The pattern matches: refusing HBO plus one other program got past the world-load hang there too (0 of 2). - The second program is not the same: - On AMD it is `39f23deaf6a63310`. - On this card that program was built (51,260 B DXIL) and ran in run E with no hang. - Here the dump points at `1ada490879c33c0e` instead. - So which program hangs seems to depend on the vendor, with HBO in the hang on both. **Not tested:** more runs of E; #2057's `0d25b89` (console cache flushes as UAV barriers) on NVIDIA, which delayed the hang on the RX 9070. Attached (user name removed): `xcl.log` and `report.json` for runs A, B and E, and the local switch as `refuse-switch-main.patch`. AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title, read the Aftermath dump and wrote this; I checked it before posting. [refuse-switch-main.patch](https://github.com/user-attachments/files/35396627/refuse-switch-main.patch) [runA-main6020-report.json](https://github.com/user-attachments/files/35396630/runA-main6020-report.json) [runA-main6020-xcl.log](https://github.com/user-attachments/files/35396631/runA-main6020-xcl.log) [runB-main6020-pr2118-report.json](https://github.com/user-attachments/files/35396628/runB-main6020-pr2118-report.json) [runB-main6020-pr2118-xcl.log](https://github.com/user-attachments/files/35396626/runB-main6020-pr2118-xcl.log) [runE-main6020-refuse-1ada-hbo-report.json](https://github.com/user-attachments/files/35396629/runE-main6020-refuse-1ada-hbo-report.json) [runE-main6020-refuse-1ada-hbo-xcl.log](https://github.com/user-attachments/files/35396632/runE-main6020-refuse-1ada-hbo-xcl.log)
Author
Owner

@⁠madaraXor on GitHub · 2026-11-25 09:39 UTC · original · edited 2026-11-25 11:23 UTC

Edited: added runs H – N. The draw hangs only when the PS runs in 64-lane waves: with if (WaveGetLaneCount() > 32u) discard; at its top (run N) there is no hang. Likely a bug in the wave32-in-64 form of its list loop.

RX 6700 XT (RDNA2) on #2057 (f7e08e6): here the world-start hang is a draw, the same one in every run where XCL_GPU_PROFILE named the op in flight, whatever is refused — a spot-light volumetric pass (VS 372b02c1fa52da76, PS 8d6d8641c7a95b82, 72 vertices × 4 479 – 6 030 instances), still running after 1 – 2 s when the TDR hits.

Follow-up to my 7152834098 above.

Setup: same machine (RX 6700 XT 12 GB, driver 32.0.21045, Ryzen 5 5600X, 16 GB RAM, Windows 10 22H2 19045), release. Tree: #2057 at f7e08e6 plus #495, #615, #684, #1182, #1248, #1291, #1798, #1834 (2a19e89), #2176 and #2207, a local refusal list that works like XCL_REFUSE_CS, and a cap of 4 driver compiles. Env: XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_HUGE_PSO_CONCURRENCY=3 XCL_NETWORK=0, no XCL_PSO_WAIT_MS, no XCL_UMA_SHADOW; XCL_GPU_PROFILE=1 from run B on. 95cc13288a27a96e (ActivateRays) is refused in every run, because this driver does not finish building it.

run also refused XCL_PSO_IMAGE_SKIP change to PS 8d6d… world draws from hang op running at the hang
A (cold caches) 39f23…, b78fa… 1 – 2 175 s 2 185 s (profile off)
B 39f23…, b78fa… 1 – ~910 s 916 s the draw, 6 021 instances, 1.9 s
C – 1 – ~545 s 549 s the draw, 6 030 instances, 1.1 s
D – 0 – ~590 s 597 s the draw, 4 479 instances, 0.9 s, then 3.6 s
E – 0 in rla, lanes of a quad with no pixel read 0 (local build) ~530 s 537 s the draw, 6 014 instances, 2.2 s
F – 0 its loop budget 1u << 9 (XCL_DEBUG_PS_SUB) ~750 s 752 s none named; the draw had finished in 4.7 ms (643 instances)
G – 0 its two readfirstlane loops run once (XCL_DEBUG_PS_SUB) ~452 s 455 s none named
H – 0 its light-list loop skipped (scc = (uint)(s3 == 0u); → scc = 1u;) ~396 s 448 s, 0x887a0007 none named; the draw finished 20 times, 2.5 ms at most, 7 089 – 7 097 instances
I – 0 the list's summary word masked to its 5 valid bits ~385 s 390 s the draw, 6 028 instances, 3.3 s
J – 0 the mask writer's (PS dc71be4e027ec17d) 8 InterlockedOr disabled ~410 s 415 s the draw, 6 029 instances, 4.3 s
K – 0 the mask read through the UAV view instead of the SRV ~445 s 452 s the draw, 6 022 instances, 2.4 s
L – 0 readlane / readfirstlane results of helper lanes taken from a live lane of their quad ~452 s 478 s the draw, 6 003 instances, 17.9 s
M – 0 (local trace build) ~415 s 421 s the draw, 6 003 instances, 2.1 s
N – 0 if (WaveGetLaneCount() > 32u) { discard; return xo; } at its top ~446 s no GPU hang; the title crashed at 463 s (0xc0000005 at +0x5188d39) –

Runs A – M end in the title's 0x80000003 at +0x2474606, after 0x887a0006 (A – G, I – M) or 0x887a0007 (H).

  • The draw, not the refusals or the image-only skip: in the four runs where the profiler named the op in flight (B – E), it was this draw. That holds with HBO (b78fa10b425b8e54) and 39f23deaf6a63310 refused or not, and with the image-only skip on or off. On this card, none of the compute programs named earlier in this thread was in flight.
  • The shaders, read offline:
    • The VS has no loop.
    • The PS marches at most 12 steps per pixel. It walks a clustered light list read from a 3D mask texture, up to 32 words × 32 bits per pass, and has two readfirstlane (waterfall) loops.
    • Its atomics are native Interlocked* on 32-bit typed UAVs.
    • Nothing in it is unbounded except XCL's own loop budget of 65 536 iterations.
  • A loop likely runs too long: with the loop budget at 512 (run F) the draw finished, in 4.7 ms for 643 instances. That scales to tens of ms for 6 000 instances, not seconds. So in B – E, one of this PS's loops probably ran towards the budget.
  • Something else then hangs: in F and G the GPU still went 1.5 – 3 s into the world, and the profiler named no op. Whatever hung there either is not console code the profiler stamps, or started less than one report before the TDR.
  • The light list is what runs long (run H): with the PS's clustered light-list loop skipped, the draw took at most 2.5 ms for ~7 100 instances. The world then ran from ~396 s to 448 s, at 3 – 30 presents per 2 s with up to 6 900 draws and 30 000 dispatches per 2 s; the frames are dark (a title card?). The run ended in a device reset (0x887a0007) with 12.3 GB local + 6.6 GB non-local video memory on this 12 GB card. So on RDNA2 the mask words this loop reads from its 3D texture (up to 32 words × 32 bits per pass) are probably wrong: either the pass that writes them or how that texture is read. Its view type is picked from the descriptor's format class at run time; a float class reads the words through asuint(Load()).
  • It is the wave32-in-64 path (run N): the PS is wave32 code. With the PS leaving at once whenever WaveGetLaneCount() > 32, the GPU did not hang and the world ran (up to 5 400 draws and 20 800 dispatches per 2 s) until a crash in the title's own code. So on this RX 6700 XT the driver runs this PS in 64-lane waves, and the hang is in XCL's wave32-in-64 form of it. NVIDIA runs it in native 32-lane waves, which fits that no NVIDIA report names this draw.
  • What it is not (runs I – M): the mask texture is the same PC resource for the clear (630849234cdc206c, through its own table with an older PC heap index), the writer and the reader (trace build). Disabling the writer's atomics, reading through the UAV, masking the summary word, and taking helper lanes' readlane results from a live lane each left the draw running for seconds. Reading the HLSL found no wrongly lowered scalar op in the bit loop (s_ff1 → firstbitlow, shift count masked, xor sets SCC). Only a lower loop budget (F), skipping the list (H) or leaving 64-lane waves (N) lets it finish.
  • Ruled out here: reads of wave lanes whose quad has no pixel (run E).

Next: find which step of the wave32-in-64 form keeps that loop going (the two halves' scalar state and branches, reads of lanes that left the loop), and what crashes the title once the world runs.

Not tested: NVIDIA or RDNA4 with these PS changes; more than one run per row (except H, twice); XCL_PSO_WAIT_MS. A tester on RDNA4 could check run N's substitution: XCL_DEBUG_PS_SUB=8d6d8641c7a95b82:bool xcl_live = false;=>bool xcl_live = false; if (WaveGetLaneCount() > 32u) { discard; return xo; } (1 replacement, logged).

AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title and wrote this. Claude Fable 5.2 read the shaders offline.

**@⁠madaraXor** on GitHub · 2026-11-25 09:39 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7158635084) · edited 2026-11-25 11:23 UTC _Edited: added runs H – N. The draw hangs only when the PS runs in 64-lane waves: with `if (WaveGetLaneCount() > 32u) discard;` at its top (run N) there is no hang. Likely a bug in the wave32-in-64 form of its list loop._ **RX 6700 XT (RDNA2) on #2057 (`f7e08e6`): here the world-start hang is a draw, the same one in every run where `XCL_GPU_PROFILE` named the op in flight, whatever is refused — a spot-light volumetric pass (VS `372b02c1fa52da76`, PS `8d6d8641c7a95b82`, 72 vertices × 4 479 – 6 030 instances), still running after 1 – 2 s when the TDR hits.** Follow-up to my 7152834098 above. **Setup:** same machine (RX 6700 XT 12 GB, driver 32.0.21045, Ryzen 5 5600X, 16 GB RAM, Windows 10 22H2 19045), release. Tree: #2057 at `f7e08e6` plus #495, #615, #684, #1182, #1248, #1291, #1798, #1834 (`2a19e89`), #2176 and #2207, a local refusal list that works like `XCL_REFUSE_CS`, and a cap of 4 driver compiles. Env: `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_HUGE_PSO_CONCURRENCY=3 XCL_NETWORK=0`, no `XCL_PSO_WAIT_MS`, no `XCL_UMA_SHADOW`; `XCL_GPU_PROFILE=1` from run B on. `95cc13288a27a96e` (ActivateRays) is refused in every run, because this driver does not finish building it. | run | also refused | `XCL_PSO_IMAGE_SKIP` | change to PS `8d6d…` | world draws from | hang | op running at the hang | |---|---|---|---|---|---|---| | A (cold caches) | `39f23…`, `b78fa…` | 1 | – | 2 175 s | 2 185 s | (profile off) | | B | `39f23…`, `b78fa…` | 1 | – | ~910 s | 916 s | the draw, 6 021 instances, 1.9 s | | C | – | 1 | – | ~545 s | 549 s | the draw, 6 030 instances, 1.1 s | | D | – | 0 | – | ~590 s | 597 s | the draw, 4 479 instances, 0.9 s, then 3.6 s | | E | – | 0 | in `rla`, lanes of a quad with no pixel read 0 (local build) | ~530 s | 537 s | the draw, 6 014 instances, 2.2 s | | F | – | 0 | its loop budget `1u << 9` (`XCL_DEBUG_PS_SUB`) | ~750 s | 752 s | none named; the draw had finished in 4.7 ms (643 instances) | | G | – | 0 | its two readfirstlane loops run once (`XCL_DEBUG_PS_SUB`) | ~452 s | 455 s | none named | | H | – | 0 | its light-list loop skipped (`scc = (uint)(s3 == 0u);` → `scc = 1u;`) | ~396 s | 448 s, `0x887a0007` | none named; the draw finished 20 times, 2.5 ms at most, 7 089 – 7 097 instances | | I | – | 0 | the list's summary word masked to its 5 valid bits | ~385 s | 390 s | the draw, 6 028 instances, 3.3 s | | J | – | 0 | the mask writer's (PS `dc71be4e027ec17d`) 8 `InterlockedOr` disabled | ~410 s | 415 s | the draw, 6 029 instances, 4.3 s | | K | – | 0 | the mask read through the UAV view instead of the SRV | ~445 s | 452 s | the draw, 6 022 instances, 2.4 s | | L | – | 0 | readlane / readfirstlane results of helper lanes taken from a live lane of their quad | ~452 s | 478 s | the draw, 6 003 instances, 17.9 s | | M | – | 0 | (local trace build) | ~415 s | 421 s | the draw, 6 003 instances, 2.1 s | | N | – | 0 | `if (WaveGetLaneCount() > 32u) { discard; return xo; }` at its top | ~446 s | **no GPU hang**; the title crashed at 463 s (`0xc0000005` at `+0x5188d39`) | – | Runs A – M end in the title's `0x80000003` at `+0x2474606`, after `0x887a0006` (A – G, I – M) or `0x887a0007` (H). - **The draw, not the refusals or the image-only skip:** in the four runs where the profiler named the op in flight (B – E), it was this draw. That holds with HBO (`b78fa10b425b8e54`) and `39f23deaf6a63310` refused or not, and with the image-only skip on or off. On this card, none of the compute programs named earlier in this thread was in flight. - **The shaders, read offline:** - The VS has no loop. - The PS marches at most 12 steps per pixel. It walks a clustered light list read from a 3D mask texture, up to 32 words × 32 bits per pass, and has two readfirstlane (waterfall) loops. - Its atomics are native `Interlocked*` on 32-bit typed UAVs. - Nothing in it is unbounded except XCL's own loop budget of 65 536 iterations. - **A loop likely runs too long:** with the loop budget at 512 (run F) the draw finished, in 4.7 ms for 643 instances. That scales to tens of ms for 6 000 instances, not seconds. So in B – E, one of this PS's loops probably ran towards the budget. - **Something else then hangs:** in F and G the GPU still went 1.5 – 3 s into the world, and the profiler named no op. Whatever hung there either is not console code the profiler stamps, or started less than one report before the TDR. - **The light list is what runs long (run H):** with the PS's clustered light-list loop skipped, the draw took at most 2.5 ms for ~7 100 instances. The world then ran from ~396 s to 448 s, at 3 – 30 presents per 2 s with up to 6 900 draws and 30 000 dispatches per 2 s; the frames are dark (a title card?). The run ended in a device reset (`0x887a0007`) with 12.3 GB local + 6.6 GB non-local video memory on this 12 GB card. So on RDNA2 the mask words this loop reads from its 3D texture (up to 32 words × 32 bits per pass) are probably wrong: either the pass that writes them or how that texture is read. Its view type is picked from the descriptor's format class at run time; a float class reads the words through `asuint(Load())`. - **It is the wave32-in-64 path (run N):** the PS is wave32 code. With the PS leaving at once whenever `WaveGetLaneCount() > 32`, the GPU did not hang and the world ran (up to 5 400 draws and 20 800 dispatches per 2 s) until a crash in the title's own code. So on this RX 6700 XT the driver runs this PS in 64-lane waves, and the hang is in XCL's wave32-in-64 form of it. NVIDIA runs it in native 32-lane waves, which fits that no NVIDIA report names this draw. - **What it is not (runs I – M):** the mask texture is the same PC resource for the clear (`630849234cdc206c`, through its own table with an older PC heap index), the writer and the reader (trace build). Disabling the writer's atomics, reading through the UAV, masking the summary word, and taking helper lanes' readlane results from a live lane each left the draw running for seconds. Reading the HLSL found no wrongly lowered scalar op in the bit loop (`s_ff1` → `firstbitlow`, shift count masked, xor sets SCC). Only a lower loop budget (F), skipping the list (H) or leaving 64-lane waves (N) lets it finish. - **Ruled out here:** reads of wave lanes whose quad has no pixel (run E). Next: find which step of the wave32-in-64 form keeps that loop going (the two halves' scalar state and branches, reads of lanes that left the loop), and what crashes the title once the world runs. **Not tested:** NVIDIA or RDNA4 with these PS changes; more than one run per row (except H, twice); `XCL_PSO_WAIT_MS`. A tester on RDNA4 could check run N's substitution: `XCL_DEBUG_PS_SUB=8d6d8641c7a95b82:bool xcl_live = false;=>bool xcl_live = false; if (WaveGetLaneCount() > 32u) { discard; return xo; }` (1 replacement, logged). AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title and wrote this. Claude Fable 5.2 read the shaders offline.
Author
Owner

@⁠Placebola on GitHub · 2026-11-25 14:20 UTC · original

Windows 10, RTX 4060 Ti 8 GB: the world-load device removal in 20 of 35 runs, 60–90 s after the one A press. None of the changes below moved the rate, two NVIDIA drivers included; the runs that survived went past the video memory and commit at which the others ended. Counts only.

Setup: RTX 4060 Ti 8 GB (32-lane waves), i7-7700 (4 cores), 32 GB RAM, Windows 10 Home 22H2 (19045.6466), Agility SDK 1.620.2, release, retail 1.0.2.1. Reference tree: main 9633138 + #887 (this PC has no active audio output) + #684. XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_DRED=1, one A at 30 s (XCL_PRESS_A_AT=30: the title goes from its save screen into the world load), 180–420 s, warm caches.

The end, in every crashing run: D3D12 device removed: 0x887a0007 (twice 0x887a0006), then the title's 0x80000003 at +0x2474606. DRED: page fault at VA 0x0 with no allocations, and no command list with partial progress. Nothing from nvlddmkm for the 0x887a0007 runs, and no D3D12 debug-layer message in the run with the layer on. It comes during the texture streaming burst: thousands of CreatePlacedResourceX a second, local video memory going up by 2–3 GB in a few seconds. That fits @⁠requiemsnkrp's Aftermath DeviceRemovedNoGpuFault above.

tree / change (one variable each) driver runs device removed
reference (3 of the 8 with counters only, 1 with the debug layer) 616.64 8 6
reference 621.40 6 4
title-texture pool heaps in system memory (L0, as #1702): local video memory 2.6–3.5 GB 616.64 1 1
0d25b89 from #2057 alone (cache flushes #131/#132/FlushPipelineX as UAV barriers) 616.64 2 1
#2270 616.64 6 2
#1766 with XCL_GPU_PROFILE=1 (the ops of a queue one after another) 616.64 5 3
a local change: vram::Pages signals its fence once per wait instead of after each texture 616.64 6 2
#2057 (4df1e6e) + #684 + #887 616.64 1 1

With these sample sizes none of the rows differs from the reference (#2270 and the local change: 2 of 6 against 10 of 14, two-sided Fisher p ≈ 0.16).

What it is not, on this machine:

  • Local video memory: with the pools in L0 it stayed at 2.6–3.5 GB and the device still went. With XCL_VRAM_ARENAS=1 the run ended at 98 s in 0x8007000e from committed textures instead (the title's breakpoint), so that run says nothing either way.
  • Total video memory or commit: the crashed runs ended at 16.0–17.5 GB of local + non-local video memory and 23–28 GB of process commit; the survivors went through those levels and on to 18.7–19.0 GB and 29–31.7 GB.
  • The number of reserved resources: 44–57 k live tiled targets at the removal, but one survivor reached 61.6 k. Separately, 120 000 one-tile reserved resources made and mapped in a test passed. The GPU VA they reserve was 28 GB, and the device's limit is 40 bits per process.

The one difference I know of: @⁠ofc0urse's runs on the same card (RTX 4060 Ti 8 GB) under Windows 11 went to 13.9 GB of local video memory with no device removal in 600 s (#1702). Here: Windows 10, same card, two drivers, 10 of 14. A test of the same thing with 256-tile textures made this whole PC freeze (input and display) for seconds at a time, so on Windows 10 the kernel side of tile mapping is a candidate. Not shown.

Not tested: Windows 11 on this PC, other cards under Windows 10, TdrDelay, Nsight Aftermath, the DxgKrnl event channels (not present on this Windows 10 Home), more runs per row.

AI use: Claude Code (Claude Opus 5.5) built the trees, ran the runs, read the logs and wrote this comment.

**@⁠Placebola** on GitHub · 2026-11-25 14:20 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7165119933) **Windows 10, RTX 4060 Ti 8 GB: the world-load device removal in 20 of 35 runs, 60–90 s after the one A press. None of the changes below moved the rate, two NVIDIA drivers included; the runs that survived went past the video memory and commit at which the others ended.** Counts only. **Setup:** RTX 4060 Ti 8 GB (32-lane waves), i7-7700 (4 cores), 32 GB RAM, Windows 10 Home 22H2 (19045.6466), Agility SDK 1.620.2, release, retail 1.0.2.1. Reference tree: `main` `9633138` + #887 (this PC has no active audio output) + #684. `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_DRED=1`, one A at 30 s (`XCL_PRESS_A_AT=30`: the title goes from its save screen into the world load), 180–420 s, warm caches. **The end, in every crashing run:** `D3D12 device removed: 0x887a0007` (twice `0x887a0006`), then the title's `0x80000003` at `+0x2474606`. DRED: page fault at VA `0x0` with no allocations, and no command list with partial progress. Nothing from `nvlddmkm` for the `0x887a0007` runs, and no D3D12 debug-layer message in the run with the layer on. It comes during the texture streaming burst: thousands of `CreatePlacedResourceX` a second, local video memory going up by 2–3 GB in a few seconds. That fits @⁠requiemsnkrp's Aftermath `DeviceRemovedNoGpuFault` above. | tree / change (one variable each) | driver | runs | device removed | |---|---|---:|---:| | reference (3 of the 8 with counters only, 1 with the debug layer) | 616.64 | 8 | 6 | | reference | 621.40 | 6 | 4 | | title-texture pool heaps in system memory (L0, as #1702): local video memory 2.6–3.5 GB | 616.64 | 1 | 1 | | `0d25b89` from #2057 alone (cache flushes #131/#132/FlushPipelineX as UAV barriers) | 616.64 | 2 | 1 | | #2270 | 616.64 | 6 | 2 | | #1766 with `XCL_GPU_PROFILE=1` (the ops of a queue one after another) | 616.64 | 5 | 3 | | a local change: `vram::Pages` signals its fence once per wait instead of after each texture | 616.64 | 6 | 2 | | #2057 (`4df1e6e`) + #684 + #887 | 616.64 | 1 | 1 | With these sample sizes none of the rows differs from the reference (#2270 and the local change: 2 of 6 against 10 of 14, two-sided Fisher p ≈ 0.16). **What it is not, on this machine:** - **Local video memory:** with the pools in L0 it stayed at 2.6–3.5 GB and the device still went. With `XCL_VRAM_ARENAS=1` the run ended at 98 s in `0x8007000e` from committed textures instead (the title's breakpoint), so that run says nothing either way. - **Total video memory or commit:** the crashed runs ended at 16.0–17.5 GB of local + non-local video memory and 23–28 GB of process commit; the survivors went through those levels and on to 18.7–19.0 GB and 29–31.7 GB. - **The number of reserved resources:** 44–57 k live tiled targets at the removal, but one survivor reached 61.6 k. Separately, 120 000 one-tile reserved resources made and mapped in a test passed. The GPU VA they reserve was 28 GB, and the device's limit is 40 bits per process. **The one difference I know of:** @⁠ofc0urse's runs on the same card (RTX 4060 Ti 8 GB) under Windows 11 went to 13.9 GB of local video memory with no device removal in 600 s ([#1702](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1702)). Here: Windows 10, same card, two drivers, 10 of 14. A test of the same thing with 256-tile textures made this whole PC freeze (input and display) for seconds at a time, so on Windows 10 the kernel side of tile mapping is a candidate. Not shown. **Not tested:** Windows 11 on this PC, other cards under Windows 10, `TdrDelay`, Nsight Aftermath, the DxgKrnl event channels (not present on this Windows 10 Home), more runs per row. **AI use:** Claude Code (Claude Opus 5.5) built the trees, ran the runs, read the logs and wrote this comment.
Author
Owner

@⁠jessenic on GitHub · 2026-11-25 14:20 UTC · original

@⁠Placebola If that removal is 0x887a0005 with DRED showing no list in progress and no page fault, it may be the one I traced on an RTX 5070 Ti. A debugger reads the kernel's reason as a DMA fault (D3DKMT_DEVICEEXECUTION_ERROR_DMAFAULT), not a hang or a page fault, and the call stack at the removal does not name the culprit. Details and a cdb script to read the same state on your machine: #505.

With #1215 (a heap index from a T# is bounded to null-view guard slots) the removal I had 7–9 s after the title's first #101 was gone in 3 of 3 runs: #1215. If your removal is the same one, that PR is worth a run. It changes the shaders' translation, so precompile again after you apply it.

AI use: Claude Code (Claude Opus 5.5) wrote this comment from the runs linked above.

**@⁠jessenic** on GitHub · 2026-11-25 14:20 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7165137798) @⁠Placebola If that removal is `0x887a0005` with DRED showing no list in progress and no page fault, it may be the one I traced on an RTX 5070 Ti. A debugger reads the kernel's reason as a **DMA fault** (`D3DKMT_DEVICEEXECUTION_ERROR_DMAFAULT`), not a hang or a page fault, and the call stack at the removal does not name the culprit. Details and a cdb script to read the same state on your machine: https://git.gtahub.st/github/xcl-dev--xcl/issues/505. With #1215 (a heap index from a T# is bounded to null-view guard slots) the removal I had 7–9 s after the title's first `#101` was gone in 3 of 3 runs: https://git.gtahub.st/github/xcl-dev--xcl/pulls/1215. If your removal is the same one, that PR is worth a run. It changes the shaders' translation, so precompile again after you apply it. AI use: Claude Code (Claude Opus 5.5) wrote this comment from the runs linked above.
Author
Owner

@⁠Royalflamejlh on GitHub · 2026-11-25 15:16 UTC · original

Please follow guidelines on referring to titles

**@⁠Royalflamejlh** on GitHub · 2026-11-25 15:16 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7166579497) Please follow guidelines on referring to titles
Author
Owner

@⁠jessenic on GitHub · 2026-11-25 15:28 UTC · original

@⁠Placebola A correction to my pointer above: with a warm shader cache, #1215 only delays the removal here (from #101 + 7–9 s to + 18.7 s in one run, still a DMA fault). It does not prevent it. Details: #1215. My earlier "gone in 3 of 3" came from runs where the world barely drew after #101.

AI use: Claude Code (Claude Opus 5.5).

**@⁠jessenic** on GitHub · 2026-11-25 15:28 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7166911299) @⁠Placebola A correction to my pointer above: with a warm shader cache, #1215 only delays the removal here (from `#101` + 7–9 s to + 18.7 s in one run, still a DMA fault). It does not prevent it. Details: https://git.gtahub.st/github/xcl-dev--xcl/pulls/1215. My earlier "gone in 3 of 3" came from runs where the world barely drew after `#101`. AI use: Claude Code (Claude Opus 5.5).
Author
Owner

@⁠madaraXor on GitHub · 2026-11-25 18:44 UTC · original

The capture/replay tool that found #2305 is up for review as a stack: #2429 → #2435. It may save others a game run per experiment on a GPU hang:

  • XCL_CAPTURE_DRAW=list logs the shader hashes of each translated pipeline.
  • XCL_CAPTURE_DRAW=<container hash>[:N] writes the Nth draw or dispatch that uses that shader to <data>\captures\ and leaves it out of the run, so the run goes on. XCL_CAPTURE_RUN=1 runs it anyway.
  • xcl replay <folder> runs that one call alone, in a child process with a timeout, and saves its targets as PNG. --sub, --loops, --split and --profile try a variant in seconds.
  • Replaying a call that hangs can still reset the GPU (TDR). First lower its loop budget with --sub, as in the description of #2434.

Not covered yet: ExecuteIndirect arguments, console geometry / mesh pipelines and dispatch chains. Tested on an RX 6700 XT only.

AI use: Claude Code (Claude Opus 5.5) wrote this note.

**@⁠madaraXor** on GitHub · 2026-11-25 18:44 UTC · [original](https://github.com/xcl-dev/xcl/issues/675#issuecomment-7171333727) The capture/replay tool that found #2305 is up for review as a stack: #2429 → #2435. It may save others a game run per experiment on a GPU hang: - `XCL_CAPTURE_DRAW=list` logs the shader hashes of each translated pipeline. - `XCL_CAPTURE_DRAW=<container hash>[:N]` writes the Nth draw or dispatch that uses that shader to `<data>\captures\` and leaves it out of the run, so the run goes on. `XCL_CAPTURE_RUN=1` runs it anyway. - `xcl replay <folder>` runs that one call alone, in a child process with a timeout, and saves its targets as PNG. `--sub`, `--loops`, `--split` and `--profile` try a variant in seconds. - Replaying a call that hangs can still reset the GPU (TDR). First lower its loop budget with `--sub`, as in the description of #2434. Not covered yet: ExecuteIndirect arguments, console geometry / mesh pipelines and dispatch chains. Tested on an RX 6700 XT only. AI use: Claude Code (Claude Opus 5.5) wrote this note.
This discussion has been locked. Commenting is limited to contributors.
No description provided.