Skip to content

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

Backlog

Description

@enykyu

Game and package version

Grand Theft Auto VI – RockstarGamesInc.28872443D20A7 1.0.2.1

What happens

Tested nvidia-dev @ c044dc6 on an NVIDIA GeForce RTX 3070 (8 GB), Intel i9-10920X, 96 GB RAM, Windows 11 Pro 26H2 (26300.9974), NVIDIA driver 32.0.16.2140 (GeForce 621.40), DXC 1.9.2602.17.

Ran ~286 s (window closed by me, exit code 0, no crash). 2261 presents, black window, 0 FPS.
The 40 "mesh pipeline with its MS … in the AS slot – refused" errors from the main branch are gone (translation_errors empty, 3268 translated pipelines).
Ran xcl shaders … --precompile --only cs --used-only first: DXIL cache 111,662 hits / 267 misses.
Bottleneck is now driver PSO compilation: 80,974 background pipelines queued, 75 title-thread waits on graphics pipelines (max 59 s), NGG compute-pass PSOs of ~293 KB DXIL take ~9.4 s each, the slowest driver compile took ~4 min. GPU stays at 1–3% while waiting.
Dedicated VRAM sits at 7.6–7.7 / 8.0 GB.
Still stubbed: ID3D12GraphicsCommandList10 #142 / #126 / #75, ID3D12CommandAllocator #9 (~2.3k calls each). XGameRuntime is missing required dependencies warning appears.

Sanitized report.json and xcl.log attached.

XCL version

c044dc6 (branch nvidia-dev)

GPU and driver version

NVIDIA GeForce RTX 3070 (8 GB), 32.0.16.2140 (GeForce 621.40)

Windows version

Windows 11 Pro 26H2 (26300.9974)

report.json and xcl.log

xcl (1).log

report (1).json

Console output


Activity

  1. added
    bug
    on Nov 26, 2026
  2. imnicho commented on Nov 26, 2026

    @imnicho
    Contributor

    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 XG: fix CopyFromSubresource 7-argument ABI and guard destination span #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.

  3. joeypercia commented on Nov 26, 2026

    @joeypercia
    Contributor

    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 D3D12.X: integration branch that reaches the in-world HUD on NVIDIA (reference, not for merge) #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.

  4. PACDevX commented on Nov 26, 2026

    @PACDevX

    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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions