Skip to content

Retail title: null write at +0x2215c35 (#159) still hits on NVIDIA RTX 4070 Ti, with and without XCL_NETWORK=0 #232

Backlog

Description

@Alexbeav

The null write at +0x2215c35 from #159 still happens here on NVIDIA with a build newer than 956a476, with and without XCL_NETWORK=0.

Setup

What happens

Two runs, the same crash, about 73-84 s in:

unhandled exception 0xc0000005 in game_scarlett_master.exe+0x2215c35 (write at address 0x0) rax=0x140004380 rbx=0x0 rcx=0x4189374bc6a7f0 rdx=0x359ff96583 rsi=0x62acfff828 rdi=0x2183f25594e rbp=0x0 r8=0x83 r9=0x7ffef000 r12=0x2181dbe55ca r13=0x146845c28 r14=0x7ffcca51b220 r15=0x2182db51edf rsp=0x62acfff800; on the stack: game_scarlett_master.exe+0x71b9a20, game_scarlett_master.exe+0x2215eca
  • Run 1: without XCL_NETWORK=0; outbound traffic blocked by a firewall rule. Run 2: XCL_NETWORK=0 (hle:xcl-netoff.dll: 6 imports). Same address and same registers apart from stack and heap addresses.
  • PresentX starts at ~17.7 s (swap chain 3840x2160). The report counts 4 presents and 4 frame boundaries.
  • background_pipelines: [4, 0, 57819] and translated_pipelines: 4: almost nothing got built before the crash. At the crash, every xcl-pso-N worker sits in the same wait (ntdll+0x16a054 < ntdll+0x88fd3 < KERNELBASE+0xddce8 < xcl.exe+0x480664 …). This looks like NVIDIA (RTX 5070): graphics pipelines never finish – nvgpucomp64 stalls on large translated shaders (+ 2 fixes: chad.dll XDsp, XMemMapPhysicalPagesScatter) #156 (NVIDIA PSO builds that never finish). I have not confirmed a link to the crash.
  • 40 mesh pipeline with its MS … in the AS slot – refused translation errors (minimap), and one DispatchMesh slot called … without a console mesh pipeline bound – dropped at 54.6 s.
  • Stubs called: ID3D12CommandQueue::#31 (newer layout) 20×, ID3D12CommandAllocator::#9 4×, ID3D12GraphicsCommandList10::#131/#132 6×/5×, #142 3×, #75 3×.

#159 was closed after ryosen0's run on an RTX 3060 Ti at 956a476 got past this address, so it may depend on timing or the pipeline-build state rather than being fixed. I can run plain main or add XCL_THREAD_DUMP_AT / other diagnostics if that helps. No game files are attached.

Activity

  1. mariuslozo-boop commented on Nov 23, 2026

    @mariuslozo-boop

    A data point from a run that does not hit +0x2215c35, on current main without local merges.

    • GPU: RTX 5070 Ti (16 GB), driver 616.92, 32-lane waves. Windows 11 26300, DXC from SDK 10.0.26100.
    • XCL: plain main d4f17ca, release build, lazy pipelines on (default).
    • Title: RockstarGamesInc.28872443D20A7 1.0.2.1 (exe SHA-256 e95020b2…d08993). XCL_NETWORK=0 plus a firewall block on xcl.exe.

    Result:

    Since your build is af20b4b plus #203/#211/#215, a rerun on plain current main (with lazy pipelines) would show whether the watchdog still fires once pipeline builds are no longer queued up front.

    On privacy, in case it is useful to others: at the crash the title's crash reporter (Breakpad/Backtrace) tried to POST a 28 MB minidump to submit.backtrace.io. XCL_NETWORK=0 stopped it (WinHttpSendRequest error 12007).

    AI-assisted (Claude Code). No game files attached.

  2. Kalmarv commented on Nov 23, 2026

    @Kalmarv
    Contributor

    From the code at af20b4b / d4f17ca and the #159 thread. No new run.

    1. The parked xcl-pso-N workers are most likely idle. I don't think this is #156.

    • Each worker loops on rx.lock().unwrap().recv() (pso_async::queue). With lazy pipelines, a pipeline goes to the workers only at its first bind. A worker with nothing queued waits in std's futex wait: ntdll < ntdll < KERNELBASE (WaitOnAddress) < xcl.exe, called from xcl.exe itself. That is the stack you saw, and the same stack on every worker is what idle looks like.
    • A worker building a pipeline calls the driver on its own thread (finish_pso), so during a driver build (NVIDIA (RTX 5070): graphics pipelines never finish – nvgpucomp64 stalls on large translated shaders (+ 2 fixes: chad.dll XDsp, XMemMapPhysicalPagesScatter) #156's slow case) the driver's frames sit between xcl.exe and any wait.
    • The same stack shape also fits a worker waiting on DXC's pool or on the one-at-a-time slot for big compiles, so the stack alone cannot rule those out.
    • background_pipelines = (built, failed, not done), and "not done" includes stand-ins that were never bound. Your [4, 0, 57819] and mariuslozo-boop's [13, 0, 57810] on a run that reached the menu are the same picture.

    2. What #159 showed about +0x2215c35:

    • The same null write on an RX 6600 and an RTX 3060 Ti, with identical rax, rbx, rcx, r13 and return addresses. Both runs had 2 presents.
    • It went away on 956a476 (6,557 presents at 30 fps). That commit made every frame event due at a deadline fire. Before it, the title's present thread waited on an event that never fired (HANDOFF.md).
    • Your run: 4 presents in the ~60 s after PresentX started. Across the reports, the crash has come only in runs whose frames stalled (2, 2 and 4 presents), and in none whose frames kept coming (6,557 on 956a476, 3,599 on d4f17ca). So I'd look for what stalls frames, not at the write itself.
    • Nothing ties the faulting code to a watchdog.

    3. What in your build could stall frames:

    4. The rest of your report:

    What would separate the causes:

    1. Look in your existing log for BitValueX timed out. If it is there, D3D12.X: Wait64BitValueX compares the whole value (retail title stood still after its first cinematic) #218 is the first suspect.
    2. Run plain main (d4f17ca or newer), no local merges, on the same card. If it runs like mariuslozo-boop's, the cause is in the difference: D3D12.X: Wait64BitValueX compares the whole value (retail title stood still after its first cinematic) #218 missing, or D3D12.X: pipelines in two passes are drawn (console MS via DispatchMesh, VS+GS via Draw*) #215 / Retail title reaches its title screen and menus: GPU title memory in large pages, to_zero pruned once #203 merged.
    3. If it still stalls, run with XCL_ACTIVITY=1 (presents, draws and frame events every 2 s show when frames stop) and XCL_THREAD_DUMP_AT=40,65. That is two dumps before the crash at ~73 s: the third dump in mariuslozo-boop's run crashed in RtlVirtualUnwind2 (Runtime / Loader / Platform: static TLS alignment & attach races, eh::dump_threads deadlock & VEH bounds, C-unwind FFI boundaries, AVX2 check, and hybrid CPU affinity / PLS quota #106). They show what the present thread waits on.
    4. To isolate D3D12.X: pipelines in two passes are drawn (console MS via DispatchMesh, VS+GS via Draw*) #215: main + D3D12.X: pipelines in two passes are drawn (console MS via DispatchMesh, VS+GS via Draw*) #215 against main, with resolve_wait before pso_user_sgprs in bind_abi.

    Tested:

    Not tested:

    🤖 Claude Opus 5.5

  3. MKS2508 commented on Nov 23, 2026

    @MKS2508

    The faulting code is a stall watchdog — here is the decode

    Re the open point in the thread ("nothing ties the faulting code to a watchdog"): it does. I dumped game_scarlett_master.exe 1.0.2.1 (image base 0x140000000) and the function containing +0x2215c35 is a self-contained watchdog, not a generic crash path.

    FUN_0x142215a60, 0x2215A60..0x2215E09, 937 bytes:

    QueryPerformanceCounter(&a); Sleep(1000); QueryPerformanceCounter(&b);
    elapsed = (b - a) * ticks_to_ms;
    if (elapsed > 2.0f) { /* sample discarded: this thread was descheduled */ }
    
    for (i = 0; i < 30; i++)
      for (slot = 0; slot < 0x40; slot++) {
        if (watched_index[slot] == 0) continue;   /* slot not registered */
        if (watched_ts[slot] == 0)    continue;   /* nothing posted yet */
        if (now - watched_ts[slot] >= 300.0f && rand_gate(0x89aee1d6))
            goto ABORT;
      }
    ABORT:
      FUN_0x144e4ba80();
      if (report_hook) report_hook();   /* DAT_0x1471b6348 — NULL, so skipped */
      *(int *)0 = 0;                    /* +0x2215c35 */
      int3;

    Constants in the image: 2.0f (0x40000000) at RVA 0x6159BD4, 300.0f (0x43960000) at RVA 0x6159E20.

    Timer table: 0x146844A20, stride 72 bytes per slot — +0x00 u32 slot index (a healthy run shows 1..0x39 registered), +0x08..+0x48 eight u64 QPC timestamps.

    Live check. I attached x64dbg to a non-crashing run (RX 5700, initial menu, 4,800 presents, ~27 fps) and read the table: every timestamp is 0. So a healthy run has the watchdog armed but unable to fire — the abort needs a registered slot whose non-zero timestamp is ≥300 ms old.

    That fits this thread's own data: the crash appears only in runs whose frames stalled (2, 2, 4 presents) and never in runs that kept presenting (6,557 / 3,599). Stalled frames ⇒ some watched subsystem stops posting ⇒ ≥300 ms ⇒ abort. The rand_gate is why it is not deterministic, and why #159 looked fixed.

    Diagnostic recipe for whoever reproduces it: break at 0x142215C35, and at the hit dump 4 KiB at 0x146844A20 (57 slots × 72 B). The slot with a non-zero index and the oldest non-zero timestamp names the subsystem that stopped posting. That turns "it stalled somewhere" into a specific component.

  4. Digit4w commented on Nov 24, 2026

    @Digit4w

    Data point on current main (2997c9a, no local merges): an RTX 4070 SUPER (same driver as the original report) reaches world loading, shows a black screen for ~2 minutes and then ends with a null write whose stack list includes +0x2215c35.

    Setup: RTX 4070 SUPER 12 GB, driver 32.0.16.2101, 32-lane waves; Ryzen 5 7600, 32 GB RAM; Windows 11 26200; release build; DXC 1.9.2602 (SDK 10.0.26100). Title 1.0.2.1, unpacked; first-run screens done by hand once before.

    Run: scripts/smoke.ps1 -Seconds 420 with XCL_NETWORK=0, XCL_TRACE_FAULTS=1, XCL_PRESS_AT A at 14/17/21 s and every 6 s from 125 to 200 s.

    xcl-smoke v1
    commit: 2997c9aca6ebf4577fed34ebdb3cb0a77dd9ec21
    gpu: NVIDIA GeForce RTX 4070 SUPER
    title: GTA6
    seconds: 420
    exit: 0xc0000005
    frames shown: none logged (the run did not reach its end)
    presents per 2 s (last 3): 0 0 0
    device removals: 0
    crashes: 2
    peak commit: 40205 MB
    
    access violation (write at 0x0) in game_scarlett_master.exe+0x23cf683; rax=0x0 rcx=0x70024c348 rdx=0x1 r8=0x7074d8c40
    on the stack: game_scarlett_master.exe+0x4e4ba89, game_scarlett_master.exe+0x2215c35, game_scarlett_master.exe+0x71b9a20, game_scarlett_master.exe+0x2215eca
    

    The faulting instruction is +0x23cf683, not +0x2215c35; I have not checked whether that list is a real call chain or a stack scan, so the link to the watchdog decoded above is a guess. The fault comes after ~120 s with almost no frames, which fits a stall watchdog.

    Not tested: #267 (next, on this main), #292 (conflicts with main).

    AI use: Claude Code with Claude Opus 5.5 ran the build and the run on my machine, read the log and wrote this comment; posted at my request.

  5. S1m0ne1997 commented on Nov 24, 2026

    @S1m0ne1997

    Same null write on an RTX 4090 (24 GB), reproducible, main 2997c9a

    Setup: NVIDIA GeForce RTX 4090 (22,608 MiB VRAM reported), driver 621.24 (32.0.16.2124), 32-lane waves; Ryzen 9 9950X3D, Windows 11 build 26300; DXC 1.9.2602.17; retail 1.0.2.1 package. XCL release build of main 2997c9a, plus one local change to the window style only (a borderless fullscreen window; nothing in D3D12, memory or the recompiler).

    What happens, twice in a row: menus and loading screens are fine, the world starts loading, a moment of ambient sound over a black screen, then:

    unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0), with +0x2215c35 on the stack — the stall-watchdog path decoded above.

    report.json, both runs:

    run 1 (a6f5f7a) run 2 (2997c9a, warm DXIL cache)
    background_pipelines (built, failed, still building) 116, 0, 58,648 153, 0, 58,610
    failed_pipelines 0 0
    dxil_cache hits / misses / compilation_failures 86 / 64 / 0 150 / 40 / 0
    presents before the crash 1,831 2,906

    Correction (edited): I first read the third number as a queue that does not drain. It isn't: with XCL_LAZY_PSO on (the default), pso_async.rs keeps a pipeline whose shaders are not compiled as a stand-in and only sends it to the workers on its first use, so ~58,600 "still building" are mostly pipelines the title made but has not bound yet. What the counts do show: nothing fails to compile (0 failed, 0 compilation failures), and the watchdog fires anyway. They don't say what the title waits on.

    For #333 / #320: with 24 GB there is no E_OUTOFMEMORY at this point; this machine stops on the watchdog instead, so the 8 GB out-of-memory stop and this one look like two separate problems.

    Also in report.json: dstorage.bcpack_refused has 2,169 BC1 requests (~152 MB, 0 bytes filled), plus BC5/BC6H/BC7 ones, in case the black screen is related. No game data here (counts, codes and the RVAs already in this thread).

    AI use: I ran XCL and played up to the crash on this hardware; Claude Code (Claude Opus 5.5) read report.json and the log and wrote this comment.

  6. JRamos1993 commented on Nov 24, 2026

    @JRamos1993

    Measured on the retail title for #232 / #267: on NVIDIA the stall before the watchdog comes from compute pipelines built at their first bind on the title's own threads. #267 bounds the draw waits for graphics pipelines and leaves compute ones to resolve_wait (filter(|_| !p.compute)), so it would not change these runs.

    Setup: RTX 5090 (driver 621.24), i9-14900KF, 64 GB, Windows 11 26200. main 2b4bb43, cargo +stable-x86_64-pc-windows-msvc build --release with CARGO_PROFILE_RELEASE_DEBUG=line-tables-only (for symbols in the dumps), DXC 1.9.2602.17. XCL_NETWORK=0, XCL_ACTIVITY=1, the learned coherent window (second run on), lazy pipelines (default), XCL_THREAD_DUMP_AT=180,220,260,290. Package 1.0.2.1, own copy. No input was sent to the title.

    What happens (3 runs of 240–300 s):

    XCL_THREAD_DUMP_AT during the stall (260 s), XCL frames named from the PDB:

    • 4 title threads: bind::set_pipeline_state → pso_async::resolve_for_bind → resolve_wait → Condvar::wait.
    • 1 more title thread inside nvgpucomp64.dll. In the dumps at 180 / 220 s the same thread was in the title's own code, waiting. With the 14-frame unwind its XCL frames are cut off, but the log line compute PSO with the translated console CS (… B DXIL) comes from that thread id.
    • All 31 xcl-pso-N and 31 xcl-dxc-N workers idle: one in recv, the others in Mutex::lock_contended on the shared receiver.
    • Of the four D3D Background Threads, one was in nvgpucomp64.dll.

    Counts from the log: between 240 and 280 s, 5 title threads built 65 compute pipelines (3.2 MB of DXIL, the largest 390 KB), each at its first bind. Before 240 s there were 9. At the end, background_pipelines was [101, 0, 58662]: 101 built, 58,662 stand-ins never bound.

    So the DXIL is cached and DXC is not involved. The time goes to the driver building compute pipelines synchronously on title threads, one after another, while the title loads.

    Not tested: #267 itself (from the diff, the compute path still calls resolve_wait), AMD, and whether a filled driver cache (xcl shaders --precompile --only cs --pipelines) removes the stall. That run is in progress here; I'll edit this comment with the result.

    AI use: Claude Code (Claude Opus 5.5) ran the builds and runs, symbolized the dumps and wrote this report. The numbers come from those runs.

  7. MonkeyPython commented on Nov 24, 2026

    @MonkeyPython

    Reproduced on a second NVIDIA GPU — plain main, no local merges — with the same call
    chain and the same pipeline-stall shape.

    Setup: Windows 11 Pro 26300, Ryzen 7 7800X3D, 32 GB, RTX 3080 Ti 12 GB (driver
    621.24), Rust 1.100.0 stable MSVC, DXC 1.8.2502.11 (SDK 10.0.26100). Release build of
    main at a6f5f7a (no local merges). XCL_NETWORK=0 plus an OS firewall outbound block
    on xcl.exe. Series package 1.0.2.1, 3840×2160. A 600 s run with a gamepad: profile
    confirmed, settings/legal/consent menus navigated, then the loading screen.

    The crash (~390 s in, after PresentX #1200):

    unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0)
    rax=0x0 rbx=0x0 rcx=0x70024c348 rdx=0x1 ... r13=0x146845c28 r14=0x7ff810d9b220 ...
    on the stack: game_scarlett_master.exe+0x4e4ba89, game_scarlett_master.exe+0x2215c35,
    game_scarlett_master.exe+0x71b9a20, game_scarlett_master.exe+0x2215eca
    

    The faulting IP is one frame deeper than this issue's (+0x23cf683), but +0x2215c35,
    +0x71b9a20 and +0x2215eca are the same callers as the report above, and r13
    (0x146845c28) matches exactly. Same null-write family.

    The #156 shape is here too: the whole run sat at 3–7 fps, and the window's shader
    counter never progressed — 0 running, 43 done, 58756 pipelines queued near the end
    (also 57871 queued, 0 done in a shorter run). Almost nothing built before the crash,
    as in this issue's background_pipelines: [4, 0, 57819]. Audio did work: 13551 Opus
    packets decoded, 0 errors.

    A second failure mode on the same commit: a 300 s run reached the consent screen,
    and on confirming it hung the device during a title-texture upload —
    title texture: upload failed: texture copy: D3D12 device removed (0x887a0006), with
    fps degrading 30 → 20.6 → 19.2 first. Different code (DXGI_ERROR_DEVICE_HUNG, not the
    null write), same loading phase on NVIDIA.

    Stubs called match this issue's list (allocator #9, list #126/#142/#75, queue #31,
    #131/#132). No game files attached.

    Not tested: plain-main isolation of the pipeline stall vs the crash; other NVIDIA
    GPUs; whether the stall and the null write share a cause.

    AI use: Gentle Shell (Pi coding agent), model qwen4-max: ran the title and wrote this
    report from the logs; a human reviewed it before posting. No code changes.

  8. qinrxx commented on Nov 24, 2026

    @qinrxx

    For #232, how a compute change would sit beside #267 (asking before any code, so we don't duplicate it):

    One question on the watchdog decode: Sleep(1000) followed by elapsed > 2.0 reads as seconds, which would make 300.0 300 s, not 300 ms. Has anyone checked the unit of ticks_to_ms?

    AI use: Claude Code (Claude Opus 5.5) read the code and #267's diff and wrote this comment. No new runs.

  9. qinrxx commented on Nov 24, 2026

    @qinrxx

    Follow-up to the comment above, for @heretic1321: our change sends compute builds to the shared xcl-pso queue when the title creates them, and that queue runs jobs first come, first served. So a graphics build sent at its first draw could wait behind them, and under #267's limit that means more dropped draws than today. Our PR therefore splits the queue so the workers always take graphics builds before compute ones, with a test that a flood of compute builds doesn't delay a graphics build.

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

  10. Rednaxeh commented on Nov 24, 2026

    @Rednaxeh
    Contributor

    AMD RDNA3 reproduces it on plain main 2997c9a, twice in a row (288 s and 291 s): the same null write after ~2 minutes of world loading with almost no presents – and here the stall is not pipeline builds. First AMD data point in this thread (JRamos1993 lists AMD under Not tested).

    Setup: AMD Radeon RX 7800 XT 16 GB (RDNA3), driver 32.0.32029.2010, 64-lane waves; Ryzen 7 7800X3D; 32 GB RAM, 12 GB page file (commit limit 44.6 GB); Windows 11 Pro 26300; release build of main 2997c9a, no local changes; DXC 1.9.2602.17. Package 1.0.2.1, own copy. Warm DXIL cache (second run of this stage). XCL_NETWORK=0 XCL_RUN_SECONDS=300 XCL_ACTIVITY=1 XCL_TRACE_FAULTS=1 XCL_FRAME_DUMP=120, one A press at ~15 s (the account picker), nothing else.

    What happens: intro movie (4 fps on this card, #283's known cost) until ~140 s, menus at 60 presents / 2 s for a few seconds, then the loading art screens; from 162 s presents are 0–2 per 2 s for most windows, the loading art fades to black, and at 288.5 s:

    access violation (write at 0x0) in game_scarlett_master.exe+0x23cf683; rax=0x0 rcx=0x70024c348 rdx=0x1 r8=0x7074d8c40; on the stack: game_scarlett_master.exe+0x4e4ba89, game_scarlett_master.exe+0x2215c35, game_scarlett_master.exe+0x71b9a20, game_scarlett_master.exe+0x2215eca
    unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0) … r13=0x146845c28 …
    

    Same faulting IP, same callers and the same r13 as the RTX 4070 SUPER, RTX 4090 and RTX 3080 Ti runs above. No device removal, no earlier fault (XCL_TRACE_FAULTS logged nothing before it). The second run (same command, A at 16 s) is the same to the second: presents collapse from 162 s, commit 16.7 GB at 140 s → 40.5 GB at 280 s, 2,048 BCPack refusals by 239 s, the fault at 291.5 s with the same registers. A first run of this stage on a cold DXIL cache ended at the 300 s limit without the fault, with ~60 s of DXC compiles in the same window.

    Presents per 2 s, 140–288 s (from the activity lines):
    142:60 144:57 146:21 … 154:5 … 162:0 164:2 … 172–178: 0 180:2 182:1 184–198: 0 200:2 202–210: 0 212:15 214:4 … 226:10 … 232:12 234:11 236:9 238:0 … 246:9 248:11 … 258:11 260:2 262–288: 0

    What the stall is not, on this card: between 162 and 212 s (the first ~50 s at 0 presents) the log has one compute PSO with the translated console CS line; the whole run builds 29 compute pipelines, 17 of them between 240 and 260 s on 4 title threads (7 + 7 + 2 + 1), none in the final 28 s before the watchdog (second run: 33 builds, 5 before 240 s, 23 between 260 and 290 s). AMD's driver compiler builds them in milliseconds here, so the ~110 s of near-zero presents cannot be the synchronous compute builds that the RTX 5090 dumps show. Whatever the title waits on here is something else.

    What grows in that time: process commit and local video memory, exactly as in the RTX 4070 SUPER run:

    s commit local VRAM
    120 15.3 GB 6.4 GB
    160 21.4 GB 8.7 GB
    200 30.1 GB 11.5 GB
    240 37.3 GB 13.0 GB
    260 40.2 GB 13.6 GB
    288 (crash) 40.5 GB (peak 41.3) 13.6 GB

    41 GB of commit on a 32 GB machine with a 44.6 GB commit limit: the last 60 s run with the page file carrying 9+ GB, 3 GB from the limit. DirectStorage in the same window: 1,679 requests / 64 MB at 222 s, 1,892 / 131 MB at 242 s; BCPack refusals reach 2,048 at 234 s (BC1 1,762 = 108 MB, BC7 178, BC5 107, BC6H 1), none filled.

    So on RDNA3 the shape is the same as on NVIDIA (loading → black → 40 GB → watchdog), but the thing that costs the time is not the pipeline builds. I have not measured what it is; the candidates visible in the log are paging at 40 GB of commit and the loading waiting on the refused BCPack assets. A run with XCL_THREAD_DUMP_AT during the stall is next if that helps; say which seconds.

    Not tested: #267 (from JRamos1993's reading it would not change the compute path, and here compute is not the stall anyway); a larger page file; NVIDIA on this machine (none).

    AI use: Claude Code (Claude Fable 5.1) read XCL's log and wrote this comment from it; the run and the input were mine, on the hardware above. Counts, times and RVAs only; no game data.

  11. qinrxx commented on Nov 24, 2026

    @qinrxx

    @Rednaxeh thanks, that's the data point this thread was missing. It also means the compute-build stall from the RTX 5090 dumps can't be the whole story.

    Yes, a thread dump during the stall would help most. Could you rerun the same command with XCL_THREAD_DUMP_AT=165,200,240,270? Those fall in your zero-present windows (162–210 s and 262–288 s), one at the start of each and two in between. What we want to see is what the title's threads wait on there: DirectStorage requests (the refused BCPack ones), paging, a fence or event, or something else.

    If one of the dumps ends the run (#106, RtlVirtualUnwind2), the earlier ones are still in xcl.log. Then please say which second it stopped at.

    Meanwhile, our change for the NVIDIA compute-bind stall stays scoped to that: it is "Part of #232" and lists your AMD stall and the commit growth as not covered.

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

  12. tiagonleal commented on Nov 24, 2026

    @tiagonleal
    Contributor

    RTX 5070 Ti (16 GB): the same watchdog write at 168.9 s, with #451 to get past the intro

    On this machine main 2997c9a plays the intro video at 4–6 fps (the detiling that #440 / #451 / #458 fix), so it does not get to the loading within a short run. With #451 (1f282c7, on a6f5f7a) it does, and ends in this issue's write.

    Setup: NVIDIA GeForce RTX 5070 Ti 16 GB (driver 32.0.16.1742, 32-lane waves), Ryzen 7 9800X3D, 31 GB RAM (commit limit 39 GB, system-managed page file), Windows 11 Pro build 26300, rustc 1.100.0 MSVC, release, DXC 1.8.2502.11. Title 1.0.2.1, unpacked; learned coherent window, warm DXIL cache.

    Run: xcl run for 300 s, XCL_NETWORK=0, XCL_ACTIVITY=1, XCL_TRACE_FAULTS=1, XCL_FRAME_DUMP=60, XCL_PRESS_AT A at 30 s and every 10 s from 150 to 290 s.

    • 0–56 s: account picker, then the intro video at 30 fps.
    • 66–138 s: presents fall to 0–26 per 2 s; the loading screen art shows (frame dumps at 103 and 123 s).
    • From 140 s: 0 presents in every 2 s window. Commit 39–40 GB, local video memory 13.9 GB (flat from 140 s).
    • 168.9 s:
      access violation (write at 0x0) in game_scarlett_master.exe+0x23cf683; rax=0x0 rcx=0x70024c348 rdx=0x1 r8=0x7074d8c40; on the stack: game_scarlett_master.exe+0x4e4ba89, game_scarlett_master.exe+0x2215c35, game_scarlett_master.exe+0x71b9a20, game_scarlett_master.exe+0x2215ec
      
      Same RVA, rcx and r8 as the RTX 4070 SUPER run above; same RVA as the 4090.
    • Compute pipelines built from the log line compute PSO with the translated console CS: 3 before 100 s, then 5 (100–120 s), 8 (120–140 s), 9 (140–160 s), 8 (160–180 s), from 6 thread ids; the largest after 100 s are 390 288, 316 420 and 153 064 B of DXIL. That matches the RTX 5090 measurement above (compute pipelines built at their first bind on title threads during the stall); I did not take thread dumps in this run.
    • report.json: background_pipelines [55, 0, 58707], failed_pipelines 0; dstorage.bcpack_refused BC1 2 087 requests.

    Experiment for the NVIDIA compute-bind change (@qinrxx): the same run with one local line changed in go_background (real.rs): compute pipelines go to the xcl-pso workers when they are made (submit), graphics ones stay lazy (submit_lazy). Everything else as above (#451 head + nothing but that line, and #570, which only touches bind).

    lazy (as above) compute sent to the workers when made
    compute PSO with the translated console CS lines 33 265 (133 in the first 20 s)
    background_pipelines [55, 0, 58707] [289, 0, 58472]
    0 presents in every window from 140 s 144 s
    commit / local VRAM when the presents stop 39–40 GB / 13.9 GB 40 GB / 14.0 GB
    watchdog write (+0x23cf683, same registers) 168.9 s 170.9 s

    So building compute pipelines ahead on the workers does not move the stall or the write on this machine. It does not rule the compute builds out either: the title keeps making compute pipelines while it loads, and this build still built 37 of them between 140 and 160 s and 13 between 160 and 180 s, so a bind can still wait for one a worker has not finished. Side note on the experiment only: after the write, that process did not exit (no process ends line; it held ~40 GB until I killed it), which the lazy build did not do.

    Commit on this machine: 31 GB of RAM, commit limit 39 GB growing to 42 GB (system-managed page file). Here both runs stop presenting altogether once the process is at ~40 GB of commit, close to that limit, so paging is a candidate here too (on @Rednaxeh's RDNA3 runs the presents collapsed earlier, at ~21 GB, and the write came at 40.5 GB). A third run on current main (9ce2070, with #451) with XCL_THREAD_DUMP_AT=120,145,152,160,166 did not get to its dumps: it was stopped at 114 s (33.8 GB committed) because the machine ran low on memory.

    Not tested: plain main for 300 s (its intro is too slow to get here before #451), thread dumps during the stall, #267, a filled driver cache, a larger page file.

    AI use: Claude Code (Claude Opus 5.5) ran the build and the run on my machine, read the log, report and frame dumps, and wrote this comment.

  13. WillyboPeep commented on Nov 24, 2026

    @WillyboPeep

    Where the commit goes while the world loads, measured. The largest XCL-side share is per-texture tiling tables (~1.8 GB by 120 s, fixed by the tiling.rs part of #539), and video memory costs process commit 1:1 on NVIDIA.

    Setup: RTX 4090 (24 GB), 31.6 GB RAM, commit limit ~46 GB, Windows 11 26300. main 508a0c7, release build, DXC 1.9.2602.17. Title 1.0.2.1. XCL_NETWORK=0 plus a firewall block, XCL_ACTIVITY=1, XCL_PRESS_AT A every 4 s from 15 to 150 s. An external guard stops each run when free system commit falls under 3 GB. That happens at ~125–135 s, ~25 s into the world loading; the climb starts at 95–105 s.

    1. The memory map of the process during the climb

    I snapshotted the game process's committed private regions (VirtualQueryEx) every 6 s and diffed them. Over 96 → 126 s (+6.6 GB):

    growth what it is
    +2.40 GB 156 new ~16 MB regions, each split into read-write runs with one 4 KB PAGE_NOACCESS page after each. Every one starts with 0xffeeffee at +0x10: these are NT heap segments.
    +2.19 GB 35 new 64 MB PAGE_READWRITE | PAGE_WRITECOMBINE regions, one per vram::Pages pool heap made in that time (see 3)
    +1.57 GB the title-memory reservations committing (lazy pages, expected)

    In the earlier crash minidump (the watchdog write at +0x23cf683), the 40 GB of private commit was 16.6 GB write-combined (191 × 64 MB + 37 × 32 MB + one 2.2 GB block), 13.0 GB in 843 of those heap segments, and ~11 GB of large title / UMA / sparse windows.

    2. The heap segments: mostly XCL's own, and mostly tiling tables

    • Whose heap: with a local build that puts XCL's Rust allocations on a private HeapCreate heap, 30 of 40 sampled segments name that heap at +0x28, and 10 name the process heap.
    • Which code: a tracking global allocator (live bytes per call stack for blocks of 16 KB and up, symbolized from xcl.pdb) shows XCL's heap at 2,380 MB live at 120 s, up from 414 MB at 10 s. About 1,780 MB of it is gpu::tiling::Layout::from_bits ← Layout::new / new_3d ← xg::Texture::alignment / with_pipes ← title_textures::register / device_x::create_placed_resource_x. The top site averages 250 KB a block, which is a 2D layout's hz table: 65,536 u32s, of which only hz[0] is read. Every kept texture builds its own copies of the same few dozen tables.
    • Fix measured: sharing the tables (Arc<[u32]>, memoized on the from_bits inputs) took XCL's heap to 594 MB live at 125 s. At the same point of the climb (~20 s into it) the process was ~1.8 GB lower in commit: 17.1 against 18.9 GB. All 640 xcl lib tests pass with it. The same change is part of D3D12.X / XG: async texture upload, detiling, VRAM, XG ABI, and PSO scheduling improvements #539 (tiling.rs: Arc tables, a layout cache, trimmed high tables). This argues for splitting it out and landing it first. It also removes the CPU time Title textures: what the CPU spends per texture before the GPU copy (numbers, and who does what) #449 measured (~0.3 ms per xg::Texture); thread dumps during the stall caught title threads in from_bits under CreatePlacedResourceX.

    3. Video memory is process commit on this driver

    A standalone probe on the same machine (D3D12 heaps and resources created, no GPU work):

    8 × 64 MiB of… private commit write-combined regions
    DEFAULT heap, FLAG_NONE +513 MB +512 MB
    DEFAULT heap, CREATE_NOT_ZEROED / CREATE_NOT_RESIDENT / both +513 MB +512 MB
    DEFAULT heap, DENY_BUFFERS | DENY_RT_DS_TEXTURES +513 MB +512 MB
    committed 4096² RGBA8 textures +513 MB +512 MB
    reserved textures, no tiles mapped 0 0

    The GPU reports GPUUploadHeapSupported (ReBAR). I have not checked AMD or a machine without ReBAR. So every pool heap, arena and sparse pool XCL makes in video memory also takes its size from the system commit limit. That is why local video memory and commit rise together in the XCL_ACTIVITY lines (here local 6.3 → 10.0 GB and target pages 3.6 → 6.0 GB in ~30 s), and why a larger page file postpones the stop. #248 / #288 bound the kept textures' video memory, and each GB they save counts twice: once in VRAM, once in commit.

    Not covered

    • What makes the title's threads stall in the first place (the watchdog's trigger). Compute PSO builds at first bind (JRamos1993) and BCPack refusals (1,024+ per run here) are both present.
    • AMD, other NVIDIA drivers, ReBAR off.
    • The remaining ~440 MB of XCL heap in blocks under 16 KB.

    AI use: Claude Code (Claude Opus 5.5) ran the builds, runs and probes on this machine, analysed them and wrote this comment. No game files or personal paths are included.

  14. 44 remaining items

  15. grahamster2 commented on Nov 24, 2026

    @grahamster2
    Collaborator

    @qinrxx thanks for the A/B. First a correction to what I wrote before, then the three questions.

    Correction: I overstated the split's part in this. In my overnight A/B (ab8c9df plus local logging and a 10 s watchdog, the full window, 2 runs with XCL_SPLIT_WAITS=1 and 2 with =0), each counter list at world start was [wait][write], with the wait first. A list split at waits that follow other commands has nothing to do there. The #539 bridge alone turns those waits into GPU waits, split on or off:

    • Warm-up, split on: 4 waits armed at 71.1 s.
    • s0b, split off: 22 waits armed at 64.2 s, on the …ff68 block you saw on main.

    In both, there were 0 CPU timeouts, 0 cycle skips and 0 watchdog releases at 10 s. Every run that got past 63 s then ended the same way with the split on and off: presents at 0 from 62–72 s, back-to-back 3–5 s compute driver builds, and the write at +0x23cf683 at 94–100 s. (One split-off run hit a device hang at 63.1 s before any wait was armed, too few runs to read anything into.) So the split's only evidence is still the unit test for the mid-list case. It is not what changes the outcome on this title.

    1. After a release: late producers, or late execution?

    • The 1 s run (3080, f4ce27c plus the same 3 commits, no submit/signal logging in that build):
      • 84.103–84.338: five waits bridged (…fe38, fe20, fe58, fe10, fee8 >= 0x551, compute waiting on direct, wait-before-signal).
      • 84.805: a direct-queue wait on …fe40 skipped as a cycle.
      • 85.144 and 85.347: six releases, all recorded=0x551, submitted=0x551, completed=0x0.
      • 86.0: the read at -1.
      • So the producers' signals had been queued by 85.1 s, and their lists had not executed 0.8–1.2 s after the waits were armed. That build didn't log signal times, so I can't say how long after their signals.
    • The overnight runs log each signal and submit (10 s watchdog). In the warm-up:
      • 71.086: compute queue A arms fe58 >= 0x553 (producer: a direct list, not yet submitted).
      • 71.104 / 71.105: queue A's list then signals fe60 and fe68.
      • 71.116–71.117: compute queue B arms fe10, fee8 (direct producers, not submitted) and fe68. Its producer is queue A's list, already submitted, but held behind A's wait on fe58.
      • 71.338 / 71.345: the direct queue submits the producers and signals fe58, fe10, fee8.
      • This is exactly your one-level-deeper chain: B waits on fe68, whose producer on A waits on fe58, whose producer is the direct list. Here it is all GPU waits on fences that do get signalled, so it resolves without the CPU. Nothing reached 10 s.
      • s0b looks the same: 22 waits from 64.23 s, and the direct producers' signals at 64.36–64.48 s.
    • What I can't give you: when each wait completed. The build doesn't log completion, only that none took 10 s. So on this card the answer to your question is "the producers' lists executed late". In the 1 s run that was over 0.8 s after their waits, with the direct queue's own execution as the slow part (14 GB of video memory on a 10 GB card). The submit side was 0.01–0.25 s overnight.

    2. An in-flight fence vs a longer watchdog

    • The bridge already has your in-flight fence, per counter instead of per list. signal_write64_pairs queues Signal(cell.fence, value) on the producer's queue right after the list that recorded the Write64BitValue*, and sets submitted_max. A later wait on that counter, by any list on any queue, goes through try_gpu_wait:

      • submitted_max >= value on another queue: a GPU queue.Wait(cell.fence, value);
      • on the same queue: nothing, FIFO covers it;
      • armed waits are pruned once the fence completes.
    • Chains (a producer waiting on another consumer) need no special handling: each hop is a GPU wait on a fence that will be signalled, and the GPU resolves them in order, as the warm-up above shows. Your local build put only not-yet-submitted producers on the GPU. The "producer submitted but still held on the GPU" case is the one the bridge covers through submitted_max.

    • What the bridge does not cover, and a per-list fence would: waits it isn't eligible for. These fall back to the CPU, and they are where your 7.8 s hold could come from:

      • Wait32BitValueX;
      • comparisons other than GREATER_EQUAL or a partial mask;
      • a counter seen going backwards (non_monotonic);
      • a counter written by something other than Write64BitValue*.

      The rule would be: wait for the GPU on the fence of the last submitted list that wrote the address, then compare. I'd guess about 100–150 lines on top of the bridge: an address → (fence, value) map filled at submit, used when the per-counter path isn't eligible, and pruned on completion. It has a limit: a GPU wait proves the list ran, not that the compare holds. For GREATER_EQUAL on a monotonic counter that is the same thing; for EQUAL or masked waits it is only right if the last writer was the one meant.

    • The watchdog is the part that does harm now. In the bridge it releases any armed wait after 1 s, including waits whose producer has been submitted, so a slow GPU turns into a consumer running unready (your 77.9 s release, my 85.1 s ones). With the split there is no reason left for a GPU wait whose producer is submitted to need breaking: the cycles came from hoisting waits ahead of their own list's writes. My suggestion, about 10 lines:

      • release only waits whose producer was never submitted (submitted_max < value at timeout);
      • for submitted producers, only log;
      • keep a much longer limit (say 30 s) as a last resort against device hangs.

      That is a smaller and more direct step than the per-list fence, and both could go in.

    3. 0x704180158 in the bridge list vs 0x704180168 in the release list: not a mapping bug, it's the logging.

    • The bridge log (list_x.rs:1439) prints bridged to GPU queue.Wait … wait-before-signal only for waits whose producer was not yet submitted, and only for the first 8 per run.
    • The watchdog (list_x.rs:1110) prints every armed wait it releases.
    • So: 0x704180168 was armed on a producer already submitted (prod_ty=Some(2), a compute list), so it never got a "bridged" line. 0x704180158 was bridged and completed within 1 s, so it isn't in the release list.
    • My 1 s run has the same pattern: fe68 is released with prod_ty=Some(2) and was never in the bridged list. My overnight log shows its arm line: arm 0x70417fe68 >= 0x553 … recorded 0x553 ty Some(2), submitted 0x553 on q <compute queue A>.
    • The 16-byte steps: each list waits on one counter and writes the next one 8 bytes up (arm …fe58 / signal …fe60). Cells are keyed by the exact address in both paths (SYNC_CELLS). I found no base+index arithmetic in the bridge or the split, so I didn't write a test for a bug I couldn't find.

    Not tested: the watchdog change and a per-list fence (neither is written), completion times of GPU waits (not logged), AMD, and a card that executes the direct list within 1 s at world start.

    Written with Claude Code (Claude Opus 5.5) from my own runs' logs; the logging patch is local only.

  16. pickles976 commented on Nov 24, 2026

    @pickles976

    One elimination from the static side for the "CPU-side completion never arrives" hunt: XTaskQueueRegisterWaiter is genuinely implemented (not a stub): crates/xcl/src/hle/xgameruntime/taskqueue.rs:671 bridges to RegisterWaitForSingleObject with a real callback dispatch (waiter_fired), validates the port, refuses terminated queues with E_ABORT. The sibling runtime had to add this API today (Marvisak/VIctory#888) — this repo does not have that failure mode. So a title thread parked on its own count-0 semaphore is waiting on something behind the task queue: whichever async producer is supposed to release it (DirectStorage completion delivery, storage task queue work, or the title's own internal scheduler). Narrowing which semaphore map you get with cdb (!handle on the waiters) would tell whoever picks this up exactly which producer owns the lost completion.

  17. pickles976 commented on Nov 24, 2026

    @pickles976

    Map update from the sibling project (byte-verified by me against the same-hash copy, cross-posted from Marvisak/VIctory#630 — where the fuller picture lives): two more deliberate stops in the title, both single-occurrence, each a specific check — (1) +0x247af2d: hard 2 MiB cap on a range (end − start + [title global +0x75e6ff2] reaching 0x1FFFFF → int3, execution continues past it, so it surfaces as a record, not a death — a candidate behind "mystery record" stops in run logs); (2) +0x19f4f58: bring-up gate — a byte-returning routine +0x2478440 whose failure int3s everything after it (same routine reaches device-table slots 0x1c8/0x218). And a refinement for the 8 GB crowd: the +0x193e00f fatal is specifically a failed call [rax+0x428] through the device table (disassembled: +0x193dff8) into the reporting routine at +0x4e9b660 — so the question is which call sits at device-table slot 0x428 in our wrapper, and whether that single site could degrade instead of killing the process. Shared-site map: VIctory#630.

  18. pickles976 commented on Nov 24, 2026

    @pickles976

    Tooling note for everyone in this thread who has been hand-patching builds (the modified-build A/Bs): the sibling runtime just opened a first-class knob for exactly this — Marvisak/VIctory#917, VICTORY_PATCH=<module>:<rva>:<bytes>, runtime byte-patch into the loaded title, no rebuild. I posted the bypass table for the five-site kill-map there (full version with cautions in that thread); the short form for our hunters: +0x23cf683 NOP×11 = past-the-watchdog (distinguishes transient stall from truly-lost completion — the question this thread exists to answer); +0x193e00f NOP = past-the-OOM-fatal, the first trip after it names the real dependency of the placed resource (8 GB cohort gold); +0x247af2d NOP = past-the-2 MiB-cap as a clean continuation (separates "record noise" from walls). Same image hash both sides, so any reading a sibling run produces is directly transferable — worth a cross-post when someone gets one.

  19. Rednaxeh commented on Nov 24, 2026

    @Rednaxeh
    Contributor

    RDNA3 on main 930e8b4 (with 25c6f7e "a big pipeline build the title waits for does not wait for its turn" and 9a272d4 "a DXC compile the title waits for does not queue for memory"): the stop is the same here. RX 7800 XT, driver 32.0.32029.2010, release, same command as my runs above (XCL_NETWORK=0 XCL_RUN_SECONDS=300 XCL_ACTIVITY=1 XCL_TRACE_FAULTS=1 XCL_THREAD_DUMP_AT=90,110,150,200, A at ~13 s), warm DXIL cache.

    So removing the queueing does not change the picture on AMD: the bind still waits for the driver's own compile of that program, and AMD's compiler takes 14–23 s for the biggest ones. Logs and dumps kept.

    AI use: Claude Code (Claude Fable 5.1) read the log and the dumps; the run was mine.

  20. pickles976 commented on Nov 24, 2026

    @pickles976

    One-liner for the stall-hunters with a concrete address, from the shared map (details on Marvisak/VIctory#630): the title keeps a 17-subsystem bring-up ready bitmap at image-relative +0x75E74EE (plus pointer globals +0x75E74E0/E8, slot counter +0x75E74F0; the 2 MiB-cap parameter sits at +0x75E6FF0). Any stalled run answers "did everything come up?" with one 16-byte read at base+0x75E74E0 — worth putting in the same snapshot as the XCL_STALL_SECONDS=8 dumps in #675, since a short bitmap at the stop would reframe the stall from "lost completion" to "subsystem never marked ready".

  21. Linox-IDK commented on Nov 24, 2026

    @Linox-IDK

    Another data point for this crash, on an RTX 5060 Ti, plain main (930e8b4), no local merges.

    Setup

    • GPU: NVIDIA GeForce RTX 5060 Ti (about 7.9 GB VRAM), driver 32.0.16.2124
    • CPU: Ryzen 5 9600X, 31 GB RAM, Windows 11 (build 26300)
    • XCL: release build of 930e8b4 (main), no local patches
    • Title: RockstarGamesInc.28872443D20A7, Series package 1.0.2.1
    • Env: XCL_NETWORK=0, XCL_ACTIVITY=1; lazy pipelines (default)

    What happens

    The title reaches gameplay, runs about 2 minutes (30 fps, intro and audio fine, about 17,000 Opus packets decoded, 0 errors) and then crashes:

    unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0) rax=0x0 rbx=0x0 rcx=0x70024c348 rdx=0x1 ...
    Game exited with code 0xc0000005
    
    • Last lines before the crash: console code so far: 16374 draws with translated pipelines (0 skipped), 4096 dispatches, then split command list (type 2) around mid-list Wait after Write64 (#1).
    • Same 40 mesh pipeline with its MS ... in the AS slot - refused errors (minimap) as in Retail title: null write at +0x2215c35 (#159) still hits on NVIDIA RTX 4070 Ti, with and without XCL_NETWORK=0 #232.
    • 10 [STUB] calls (e.g. ID3D12GraphicsCommandList10::#132).
    • After the crash the process hangs holding about 29 GB committed (about 14.3 GB local and 4.6 GB non-local video memory), so I have to kill it.
    • Reproduced in 3 runs at the same address. A 4th run did not hit it. It ended earlier with memory allocation of 2293760 bytes failed (XCL's own allocator) at about 19 GB committed.

    Questions

    Logs available: run_20261124_164501.err.log and .out.log. I can run with XCL_TRACE_MEM or other diagnostics if that helps. No game files attached.

  22. pickles976 commented on Nov 24, 2026

    @pickles976

    Answering both questions from the static side (hash-matched copy, and I have mapped this exact fault):

    1. Same cause, yes — and your 4th run is the tell, not a contradiction. exe+0x23cf683 is a deliberate title watchdog, not a wild pointer: an 11-byte mov qword [0], imm32 designed to fault (map + byte-verification in Marvisak/VIctory#630; same site now confirmed on NVIDIA, RDNA2, RDNA3 and RDNA4 across both sibling runtimes). It fires after a present stall ~2 min in — the shared wall, not your hardware. The run-4 allocator OOM at the same elapsed time is the same memory pressure exiting through a different door: on a 7.9 GB card it's a coin flip whether the watchdog or the allocator dies first, and 3/4 vs 1/4 is exactly that coin.

    2. Memory: the recommended setting for 8 GB cards is the opposite direction of the knob you found. Read from source: XCL_VRAM_ARENAS disables placement of title textures on the title's own pages and forces every texture into per-address arenas (vram.rs:678/693) — that increases physical VRAM demand on a tight card. Leave it unset; your 4.6 GB non-local video memory shows the spillover path working as designed. The actual over-planning is upstream: xcl hands the title the console's texture budget by default — config.rs:117: title_memory_mb = 0 means 13,824 MiB on a Series X profile — 1.7× your card. Set title_memory_mb = 6144 (host minus desktop headroom) as the one-variable A/B; this is the same trap #1337 documented on a 5060 Laptop, and run-4's 2,293,760 bytes failed is what over-planning looks like when it wins the race. Then expect a residual: #549 is still open (enqueue-time page-array snapshot), so check whether anything left in your logs is the 0x89240009 signature before filing whatever remains as new.

    Post-crash the process holding ~29 GB committed until killed: noted, and consistent with teardown after a mid-frame stall — but log it on whichever thread ends up owning the stall itself; the number is useful evidence there, not its own bug.

  23. added
    goal:world-load
    on Nov 24, 2026
  24. Rednaxeh commented on Nov 24, 2026

    @Rednaxeh
    Contributor

    RDNA3 measurements on today's main (#1288, #1524, #1321, #1426/#1748 in), with what the driver-blob cache does on AMD. RX 7800 XT 16 GB (driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB RAM, Windows 11 26300, release builds, retail title, XCL_NETWORK=0, A at ~13 s, XCL_PSO_TRACE=1, the process under a 43 GB job commit limit so the machine survives. Tree for the 600 s runs: main b9b6ea6 + #1321's commit (then unmerged); the two 300 s runs at the end: main 689f2db.

    1. With #1288 the watchdog is gone; the load is bound by the driver's compiles of the title's own binds. No run ended before its time; all of them show a black screen from ~60 s to the end, with the title's binding threads building compute programs in the driver 10–30 s each, 1–4 threads at a time.

    run (600 s) last second with frames compiles ≥ 1 s: preload workers / title threads driver time (≥ 1 s compiles) peak commit
    defaults, preload off (XCL_PSO_PRELOAD=0) 84 s 0 / 110 546 s 42.0 GB
    defaults, preload on 182 s 34 / 24 889 s 42.4 GB
    XCL_HUGE_PSO_CONCURRENCY=4 80 s 35 / 10 1146 s 43.0 GB
    the two runs after it, defaults 84 s 15 / 12, 13 / 8 992 s, 959 s 42.9 GB
    • The preload of D3D12.X: pipelines an earlier run used are built ahead of their first use #690 is what keeps the title rendering during the first minutes (60 fps to 182 s against 84 s), as long as its workers stay ahead of the binds.
    • More lanes do not help here: four huge compiles at once make each one slower (mean 25.5 s against 15.3 s, longest 119 s against 39 s), so the binds wait longer and the frames stop earlier.
    • A second run reuses the blobs of the first (257 "the driver's blob of an earlier build" in ms) and still meets 78 new programs taking ≥ 1 s: the title's set is not exhausted in 10 minutes.

    2. The two giant programs are refused by this driver in both forms, in every run. CS_ScreenProbes_ActivateRays (record 95cc13288a27a96e) and ActivateProbes (56c0cd3b82a00c6e): 13.8 MB and 22.8 MB of DXIL on the HLSL path (#1321), 3.9 MB each with XCL_DIRECT_DXIL=1 (#1748). The driver takes 15–33 s and ~15 GB of commit on each and answers E_OUTOFMEMORY (confirmed alone with xcl shaders --measure-pso 95cc13288a27a96e: 0x8007000E); their dispatches are skipped, and nothing was logged about it – #1918 adds the line. On 32 GB that compile also decides whether the process lives: started in the background at 4 s by the giant lane of #1524, it ran the process into the commit limit at 28–34 s in three runs (XCL_HUGE_PSO_CONCURRENCY=4 twice, defaults once; a title thread's page could not be committed) – #1924 holds such a compile back until a game thread binds it.

    3. The coherent-window cliff of #505 is not what stalls this card. On main 689f2db with the defaults, 300 s: 0 GPU queue.Wait … did not complete in the whole run (the RTX 5080 in #505 had 326). With XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512: on 689f2db XCL itself ends at 44 s in title_textures::refresh reading a GPU-heap page that is now outside the window (the fault #751 fixes; with #751's commit on 20cf130 the run goes on); with #751, 300 s, coherent 64/512 MB: frames stop at 80 s as with the defaults, 0 GPU timeouts, 10 compiles ≥ 1 s taking 461 s of driver time (the longest 135 s), the title's threads in the driver at the dumps. So the window changes nothing here: what the binds wait for is the compiler.

    4. The driver-blob cache does not carry an AMD compile across processes. xcl shaders … --precompile --only cs --pipelines left 999 .pso files of 954 bytes each: on this driver the blob is a key into the driver's own per-application cache (%LOCALAPPDATA%\AMD\DxcCache\<a>.<app>.*.parc), and xcl shaders and xcl run get different <app> files. In the next run every big program was "the driver's blob of an earlier build" and still took 5–62 s. Only blobs kept by an earlier xcl run come back in ms, so the README line for --pipelines does not hold on AMD, and the only cache that warms up is the one a run fills itself.

    What this leaves on this card: no crash any more, a load that outlasts a 10-minute run, two programs the driver cannot build at all, and a compiler that takes 10–135 s per large program where the RTX 5080 in #505 takes 0.22 s for the longest of all 2 689. Fewer or smaller programs (#1269, #1901) is the lever that is left; the preload is worth keeping ahead of the binds. Logs of every run kept; I can post any of them.

    AI use: Claude Code (Claude Fable 5.1) read the logs and the cache folders and wrote this comment; the runs were mine.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    goal:world-load

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions