RTX 3070: no crash, black window, 80k graphics pipelines queued, long driver PSO waits (nvidia-dev) #2585

Open
opened 2026-11-26 01:09:29 +00:00 by enykyu · 4 comments
enykyu commented 2026-11-26 01:09:29 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by enykyu on 2026-11-26T01:09:29Z.


s

<!-- greyfinch-sync:ivall/xcl:issue:6617180540 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2595). Originally posted by [enykyu](https://github.com/enykyu) on 2026-11-26T01:09:29Z. --- s
imnicho commented 2026-11-26 02:08:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by imnicho on 2026-11-26T01:44:44Z.


RTX 5080 16 GB on a PC with 16 GB of RAM, nvidia-dev c044dc6d: the same pipeline waits, two things that end a run earlier on this branch, and where the memory is when RAM is short.

Setup

  • NVIDIA GeForce RTX 5080 16 GB (driver 610.47, 32-lane waves), Intel Core i7-7700K (4 cores), 16 GB RAM, Windows 10 22H2 (19045), release build.
  • The same retail title, Series S profile (device_type = "lockhart"), XCL_NETWORK=0.
  • XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_HUGE_PSO_CONCURRENCY=2 XCL_UMA_SHADOW=1 XCL_TEXTURE_LEVEL_PAGES=1 XCL_DRED=1, after xcl shaders … --precompile --only cs --pipelines --used-only (88 min here, 2 slices).

1. Without #684 the world load ends in xg::copy_from. One run of one on c044dc6d: access violation in VCRUNTIME140.dll under xcl::hle::xg::copy_from (xg.rs:713), 64 s after the world's set-up. With #684's commit e56dbc3 cherry-picked (it applies cleanly) two runs of two pass that point. So this branch needs #684 as main does.

2. XCL_COHERENT_HEAPS=sparse:16 stops the title 5 s in, four runs of four (with XCL_COHERENT_MB=1024). The last lines are console descriptor heap: the title's memory … not used (window Some(1), committed true) and then the title's own breakpoint (0x80000003). With heaps that small in the sparse windows, the memory the title hands over for its descriptor heap lies in window 1, and console_heap.rs title_memory only takes window 0. I did not try sparse:512 or more.

3. The waits, as in the report above. With #684 and the default heaps:

run time after the set-up draws presents driver compiles of 5 s or more in that time
first on this branch, 900 s 705 s 188 0 10 compute PSOs of 432 – 846 KB DXIL, 57 – 168 s each (906 s in all)
second, with XCL_PSO_AHEAD=0, 1200 s 954 s 6,615 0 5 "NGG compute pass" PSOs of 384 – 427 KB, 61 – 85 s each; 8 compute PSOs of 692 – 887 KB, 55 – 403 s each; 9 "passthrough mesh graphics pass" PSOs of 281 – 408 KB, 8 – 13 s each

One such compile at a time holds the title's thread, so a 20-minute run gets about 20 of them done here. The report above has ~9.4 s for a ~293 KB one; RAM is short here while they compile (next point), so I cannot say how much of the 60 – 90 s is this CPU.

4. Memory with 16 GB of RAM (the first run of the table; Windows' counters sampled once a second beside it)

at 34 s at 278 s at 899 s
process commit 20.0 GB 27.0 GB 28.0 GB
local video memory (budget 15.0 – 15.2 GB) 9.3 GB 13.5 GB 13.5 GB
sparse pools (mapped) 4,352 (4,140) MB 4,736 (3,298) MB 4,736 (3,298) MB
target pages 326 MB 3,569 MB 3,569 MB
  • The working set stays at 8 – 10 GB while the commit is 25 – 28 GB. RAM available to Windows was under 500 MB in 85 of 518 samples (in 91 of 137 in the run without #684), and up to 103,000 pages a second were read back in.
  • So local video memory is at 13.5 GB of 15 GB before any 3D frame, in the Series S profile: 4,095 MB of it is the coherent window's copy (XCL_UMA_SHADOW=1), and 1.4 GB of the sparse pools is not mapped.
  • A map of the process at 460 s (VirtualQueryEx + QueryWorkingSetEx): 39.8 GB committed, 8.2 GB resident. Of the resident bytes about 2.7 GB are some 190 private allocations of 15.8 MB each (the size of a full Windows heap segment), 1.7 GB is the driver's own shader cache file (DXCache\*.nvph, 12.3 GB of it mapped into the process), and the coherent window has 0.4 GB resident of its 4,096 MB.
  • XCL_PSO_AHEAD=0 made no visible difference to commit in the first 190 s (24.8 against 24.9 GB at 120 s, 25.6 against 26.0 GB at 190 s).

Not tested: the Series X profile, sparse:512 or more, and anything behind the waits (no 3D frame here yet; the runs go on, each keeps what the driver compiled).

A question for the maintainers: where should a fix go for code that exists only on nvidia-dev (the build-ahead gate, the shadowed window): as a PR against nvidia-dev, or held until that code is on main?

AI use: Claude Code with Claude Fable 5.2 ran the runs and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7180081790 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2595#issuecomment-7180081790). Originally posted by [imnicho](https://github.com/imnicho) on 2026-11-26T01:44:44Z. --- **RTX 5080 16 GB on a PC with 16 GB of RAM, `nvidia-dev` `c044dc6d`: the same pipeline waits, two things that end a run earlier on this branch, and where the memory is when RAM is short.** **Setup** - NVIDIA GeForce RTX 5080 16 GB (driver 610.47, 32-lane waves), Intel Core i7-7700K (4 cores), 16 GB RAM, Windows 10 22H2 (19045), release build. - The same retail title, Series S profile (`device_type = "lockhart"`), `XCL_NETWORK=0`. - `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_HUGE_PSO_CONCURRENCY=2 XCL_UMA_SHADOW=1 XCL_TEXTURE_LEVEL_PAGES=1 XCL_DRED=1`, after `xcl shaders … --precompile --only cs --pipelines --used-only` (88 min here, 2 slices). **1. Without #684 the world load ends in `xg::copy_from`.** One run of one on `c044dc6d`: access violation in `VCRUNTIME140.dll` under `xcl::hle::xg::copy_from` (`xg.rs:713`), 64 s after the world's set-up. With #684's commit `e56dbc3` cherry-picked (it applies cleanly) two runs of two pass that point. So this branch needs #684 as `main` does. **2. `XCL_COHERENT_HEAPS=sparse:16` stops the title 5 s in, four runs of four** (with `XCL_COHERENT_MB=1024`). The last lines are `console descriptor heap: the title's memory … not used (window Some(1), committed true)` and then the title's own breakpoint (`0x80000003`). With heaps that small in the sparse windows, the memory the title hands over for its descriptor heap lies in window 1, and `console_heap.rs` `title_memory` only takes window 0. I did not try `sparse:512` or more. **3. The waits, as in the report above.** With #684 and the default heaps: | run | time after the set-up | draws | presents | driver compiles of 5 s or more in that time | |---|---:|---:|---:|---| | first on this branch, 900 s | 705 s | 188 | 0 | 10 compute PSOs of 432 – 846 KB DXIL, 57 – 168 s each (906 s in all) | | second, with `XCL_PSO_AHEAD=0`, 1200 s | 954 s | 6,615 | 0 | 5 "NGG compute pass" PSOs of 384 – 427 KB, 61 – 85 s each; 8 compute PSOs of 692 – 887 KB, 55 – 403 s each; 9 "passthrough mesh graphics pass" PSOs of 281 – 408 KB, 8 – 13 s each | One such compile at a time holds the title's thread, so a 20-minute run gets about 20 of them done here. The report above has ~9.4 s for a ~293 KB one; RAM is short here while they compile (next point), so I cannot say how much of the 60 – 90 s is this CPU. **4. Memory with 16 GB of RAM** (the first run of the table; Windows' counters sampled once a second beside it) | | at 34 s | at 278 s | at 899 s | |---|---:|---:|---:| | process commit | 20.0 GB | 27.0 GB | 28.0 GB | | local video memory (budget 15.0 – 15.2 GB) | 9.3 GB | 13.5 GB | 13.5 GB | | sparse pools (mapped) | 4,352 (4,140) MB | 4,736 (3,298) MB | 4,736 (3,298) MB | | target pages | 326 MB | 3,569 MB | 3,569 MB | - The working set stays at 8 – 10 GB while the commit is 25 – 28 GB. RAM available to Windows was under 500 MB in 85 of 518 samples (in 91 of 137 in the run without #684), and up to 103,000 pages a second were read back in. - So local video memory is at 13.5 GB of 15 GB before any 3D frame, in the Series S profile: 4,095 MB of it is the coherent window's copy (`XCL_UMA_SHADOW=1`), and 1.4 GB of the sparse pools is not mapped. - A map of the process at 460 s (`VirtualQueryEx` + `QueryWorkingSetEx`): 39.8 GB committed, 8.2 GB resident. Of the resident bytes about 2.7 GB are some 190 private allocations of 15.8 MB each (the size of a full Windows heap segment), 1.7 GB is the driver's own shader cache file (`DXCache\*.nvph`, 12.3 GB of it mapped into the process), and the coherent window has 0.4 GB resident of its 4,096 MB. - `XCL_PSO_AHEAD=0` made no visible difference to commit in the first 190 s (24.8 against 24.9 GB at 120 s, 25.6 against 26.0 GB at 190 s). **Not tested:** the Series X profile, `sparse:512` or more, and anything behind the waits (no 3D frame here yet; the runs go on, each keeps what the driver compiled). A question for the maintainers: where should a fix go for code that exists only on `nvidia-dev` (the build-ahead gate, the shadowed window): as a PR against `nvidia-dev`, or held until that code is on `main`? AI use: Claude Code with Claude Fable 5.2 ran the runs and wrote this.
joeypercia commented 2026-11-26 06:06:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by joeypercia on 2026-11-26T05:20:10Z.


Why nvidia-dev c044dc6d stops presenting at about 115 s in the world on NVIDIA, and two commits from main that end it. A game thread blocks in ExecuteIndirect. The block is behind the whole-form build of a split compute program, which the offline precompile on this branch doesn't produce.

Setup: RTX 4070 Ti 12 GB (621.40), Ryzen 7 7800X3D, Windows 11 Pro 26200, release. Retail title 1.0.2.1, Series X profile. XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_TEXTURE_LEVEL_PAGES=1, scripted A presses. Compute pipelines precompiled first with xcl shaders … --precompile --only cs --pipelines from the same build.

What happens on c044dc6d (two runs): about 2,700 frames at 30 fps, then from about 115 s no presents and no submits. One run went on like that for 43 minutes until my script ended it, with no device removal. Binds waited 0 ms (lazy pipelines: 84243 made … binds waited 0 ms).

Where the title is, from XCL_THREAD_DUMP_AT=180,300, symbolized with the build's xcl.pdb. The same stack is in both dumps:

thread 28268: ntdll … < KERNELBASE … < std::sys::sync::mutex::futex::Mutex::lock_contended
  < xcl::hle::d3d12x::real::dispatch_chain::Chain::whole      dispatch_chain.rs:82   (self.build_whole.lock())
  < xcl::hle::d3d12x::real::dispatch_chain::whole              dispatch_chain.rs:128
  < xcl::hle::d3d12x::bind::execute_indirect                   bind.rs:1364
  < game_scarlett_master.exe+0x248cbc1 < …

An ExecuteIndirect of a split program needs its whole form (Chain::whole). Another thread holds build_whole while the driver builds that whole program on a title thread. Its stack is cut off in the driver, so the dump doesn't show its XCL frames.

These programs are the title's largest, and on this branch nothing builds their whole form ahead:

  • 2228be78 ("prebuild split compute dispatch-chain pieces under --pipelines"): without it, the offline pass builds only the unsplit whole under abi_root_signature_with, a blob that neither the split path nor Chain::whole() loads.
  • ec80c071 ("reuse offline whole compute pipelines before splitting").

Both are on main, and neither is in nvidia-dev.

With both cherry-picked onto c044dc6d (local, 25d74490):

  • The cherry-pick: 2228be78 applies cleanly. ec80c071 conflicts in dispatch_chain.rs, where I kept this branch's refused-PSO warning and passed ComputeBuild::Chain. It builds.
  • The precompile again: 805 split programs (8,085 pieces) built as .chain.pso, 234 s.
  • The same run: the title no longer stops at about 115 s. It goes on recording world work (3,950 draws and 2,817 dispatches in the 2 s before 120 s), and no thread waits in Chain::whole. It then hits the next blocker: 0x887a0005 at 122.5 s, DRED page fault at VA 0x0, no allocations, no list in flight, while CS 1b5466f261a70cde (160×90 groups, split wave64) had been running for over 500 ms. That is the same removal as on #2057 on this card, so it isn't caused by these two commits.

So nvidia-dev needs 2228be78 and ec80c071 from main for an offline precompile to help on NVIDIA. #2624 (@theaustinayers) already brings both (it merges main through #2371), so this explains why the stall should end with it; no separate change is needed.

Not tested: more than one run with the two commits, other GPUs, and the Series S profile.

AI use: Claude Code (Claude Opus 5.5) ran the runs on my machine, symbolized the dumps, cherry-picked the commits and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7183393952 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2595#issuecomment-7183393952). Originally posted by [joeypercia](https://github.com/joeypercia) on 2026-11-26T05:20:10Z. --- **Why `nvidia-dev` `c044dc6d` stops presenting at about 115 s in the world on NVIDIA, and two commits from `main` that end it.** A game thread blocks in `ExecuteIndirect`. The block is behind the whole-form build of a split compute program, which the offline precompile on this branch doesn't produce. **Setup:** RTX 4070 Ti 12 GB (621.40), Ryzen 7 7800X3D, Windows 11 Pro 26200, release. Retail title 1.0.2.1, Series X profile. `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_TEXTURE_LEVEL_PAGES=1`, scripted A presses. Compute pipelines precompiled first with `xcl shaders … --precompile --only cs --pipelines` from the same build. **What happens on `c044dc6d`** (two runs): about 2,700 frames at 30 fps, then from about 115 s no presents and no submits. One run went on like that for 43 minutes until my script ended it, with no device removal. Binds waited 0 ms (`lazy pipelines: 84243 made … binds waited 0 ms`). **Where the title is**, from `XCL_THREAD_DUMP_AT=180,300`, symbolized with the build's `xcl.pdb`. The same stack is in both dumps: ``` thread 28268: ntdll … < KERNELBASE … < std::sys::sync::mutex::futex::Mutex::lock_contended < xcl::hle::d3d12x::real::dispatch_chain::Chain::whole dispatch_chain.rs:82 (self.build_whole.lock()) < xcl::hle::d3d12x::real::dispatch_chain::whole dispatch_chain.rs:128 < xcl::hle::d3d12x::bind::execute_indirect bind.rs:1364 < game_scarlett_master.exe+0x248cbc1 < … ``` An `ExecuteIndirect` of a split program needs its whole form (`Chain::whole`). Another thread holds `build_whole` while the driver builds that whole program on a title thread. Its stack is cut off in the driver, so the dump doesn't show its XCL frames. These programs are the title's largest, and on this branch nothing builds their whole form ahead: - **`2228be78`** ("prebuild split compute dispatch-chain pieces under --pipelines"): without it, the offline pass builds only the unsplit whole under `abi_root_signature_with`, a blob that neither the split path nor `Chain::whole()` loads. - **`ec80c071`** ("reuse offline whole compute pipelines before splitting"). Both are on `main`, and neither is in `nvidia-dev`. **With both cherry-picked onto `c044dc6d`** (local, `25d74490`): - **The cherry-pick:** `2228be78` applies cleanly. `ec80c071` conflicts in `dispatch_chain.rs`, where I kept this branch's refused-PSO warning and passed `ComputeBuild::Chain`. It builds. - **The precompile again:** 805 split programs (8,085 pieces) built as `.chain.pso`, 234 s. - **The same run:** the title no longer stops at about 115 s. It goes on recording world work (3,950 draws and 2,817 dispatches in the 2 s before 120 s), and no thread waits in `Chain::whole`. It then hits the next blocker: `0x887a0005` at 122.5 s, DRED page fault at VA `0x0`, no allocations, no list in flight, while `CS 1b5466f261a70cde` (160×90 groups, split wave64) had been running for over 500 ms. That is the same removal as on #2057 on this card, so it isn't caused by these two commits. So `nvidia-dev` needs `2228be78` and `ec80c071` from `main` for an offline precompile to help on NVIDIA. **#2624 (@theaustinayers) already brings both** (it merges `main` through #2371), so this explains why the stall should end with it; no separate change is needed. **Not tested:** more than one run with the two commits, other GPUs, and the Series S profile. **AI use:** Claude Code (Claude Opus 5.5) ran the runs on my machine, symbolized the dumps, cherry-picked the commits and wrote this.
PACDevX commented 2026-11-26 12:07:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by PACDevX on 2026-11-26T11:45:56Z.


Additional NVIDIA data for the device-removal case in this thread. RTX 3090 24 GiB, driver 621.24, Windows Sandbox with 40 GiB, Series S profile, local XCL release c3572b3 and XCL_DRED=pagefault.

  • World-loading activity continued for 681.8 s after the first 2 s window with at least 1,000 dispatches, with 396 presents and 897,702 dispatches in that phase. A 128 s stretch without presents recovered. DirectStorage reported zero failures.
  • CreateReservedResource first reported 0x887A0005. The next D3D12 calls also reported removal. DRED returned GPU VA 0 with empty allocation lists and unknown state. There were no 5 s Wait64 releases in this run. The last DXGI sample was 23,363 MiB local usage against a 23,193 MiB budget.
  • A separate native D3D12 check on the host RTX 3090 successfully created the same 4×4 BC1_UNORM reserved-texture descriptor on a fresh device. That only validates descriptor support on the host. The removed Sandbox device and its workload were outside that check.

The same executable with full DRED and automated menu input had 10 presents in the first 51 critical windows versus 46 with page-fault DRED and manual input. Both the mode and the menu timing changed. The removal trace lacked an ETW event, so the WDDM reason and any relation to the compute shader mentioned above remain unverified.

AI use: Codex (GPT-6) collected the logs, ran the native descriptor check and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7191137657 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2595#issuecomment-7191137657). Originally posted by [PACDevX](https://github.com/PACDevX) on 2026-11-26T11:45:56Z. --- Additional NVIDIA data for the device-removal case in this thread. RTX 3090 24 GiB, driver 621.24, Windows Sandbox with 40 GiB, Series S profile, local XCL release `c3572b3` and `XCL_DRED=pagefault`. - World-loading activity continued for 681.8 s after the first 2 s window with at least 1,000 dispatches, with 396 presents and 897,702 dispatches in that phase. A 128 s stretch without presents recovered. DirectStorage reported zero failures. - `CreateReservedResource` first reported `0x887A0005`. The next D3D12 calls also reported removal. DRED returned GPU VA 0 with empty allocation lists and unknown state. There were no 5 s Wait64 releases in this run. The last DXGI sample was 23,363 MiB local usage against a 23,193 MiB budget. - A separate native D3D12 check on the host RTX 3090 successfully created the same 4×4 BC1_UNORM reserved-texture descriptor on a fresh device. That only validates descriptor support on the host. The removed Sandbox device and its workload were outside that check. The same executable with full DRED and automated menu input had 10 presents in the first 51 critical windows versus 46 with page-fault DRED and manual input. Both the mode and the menu timing changed. The removal trace lacked an ETW event, so the WDDM reason and any relation to the compute shader mentioned above remain unverified. AI use: Codex (GPT-6) collected the logs, ran the native descriptor check and drafted this report.
Anon64 commented 2026-11-27 18:12:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-27T18:12:44Z.


RTX 3060 12 GB, main 6089122a: the stop in the first run is the driver compiles. The same build run again, with the driver's blobs on disk, presents to the end.

Two 300 s runs of the same release build, one after the other. XCL_ACTIVITY=1, A pressed every 4 s from 20 s, warm DXIL cache, no other switches.

run 1 run 2
last 2 s window with work 188.8 s 336.0 s (the end)
frames 1 748 2 152
driver compiles after the stop 28, all huge (440–640 KB DXIL), 3.9–7.2 s each, one after another on one title thread (ungated here (a title thread's …)) none after 180 s
peak commit / local / non-local 37 768 / 18 036 / 5 668 MB 38 211 / 18 857 / 5 753 MB

In run 1, at 190 s submits, draws and dispatches all go to 0 together and stay there. Run 1 then compiles those 28 pipelines with driver blob absent until the run ends, and says the blobs are kept on disk for the next run. Run 2 doesn't need them again, and the title keeps going. No device removals or crashes in either run.

So on this card, at this point of loading, frames stop because a title thread builds huge graphics pipelines one at a time, with nothing in the offline preparation covering them. Video memory is about 6 GB over the card at the same time in both runs, and that doesn't stop it. That matches the waits described above. I haven't tried XCL_HUGE_PSO_CONCURRENCY here.

RTX 3060 12 GB (driver 581.80), i9-14900KF, 64 GB RAM, Windows 11 26200.

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

<!-- greyfinch-sync:ivall/xcl:comment:7225247492 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2595#issuecomment-7225247492). Originally posted by [Anon64](https://github.com/Anon64) on 2026-11-27T18:12:44Z. --- **RTX 3060 12 GB, `main` `6089122a`: the stop in the first run is the driver compiles. The same build run again, with the driver's blobs on disk, presents to the end.** Two 300 s runs of the same release build, one after the other. `XCL_ACTIVITY=1`, A pressed every 4 s from 20 s, warm DXIL cache, no other switches. | | run 1 | run 2 | |---|---|---| | last 2 s window with work | 188.8 s | 336.0 s (the end) | | frames | 1 748 | 2 152 | | driver compiles after the stop | 28, all `huge` (440–640 KB DXIL), 3.9–7.2 s each, one after another on one title thread (`ungated here (a title thread's …)`) | none after 180 s | | peak commit / local / non-local | 37 768 / 18 036 / 5 668 MB | 38 211 / 18 857 / 5 753 MB | In run 1, at 190 s submits, draws and dispatches all go to 0 together and stay there. Run 1 then compiles those 28 pipelines with `driver blob absent` until the run ends, and says the blobs are kept on disk for the next run. Run 2 doesn't need them again, and the title keeps going. No device removals or crashes in either run. So on this card, at this point of loading, frames stop because a title thread builds huge graphics pipelines one at a time, with nothing in the offline preparation covering them. Video memory is about 6 GB over the card at the same time in both runs, and that doesn't stop it. That matches the waits described above. I haven't tried `XCL_HUGE_PSO_CONCURRENCY` here. RTX 3060 12 GB (driver 581.80), i9-14900KF, 64 GB RAM, Windows 11 26200. **AI use:** Claude Code (Claude Opus 5.5) ran the title and read the logs, and wrote this report.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl#2585
No description provided.