Skip to content

XG CopyFromSubresource: retail title passes one argument more → memcpy AV in copy_from; then null write at game+0x23cf683 at end of loading #662

Backlog

Description

@Arvi23

Title: XG CopyFromSubresource: retail title passes one argument more → memcpy AV in copy_from; then null write at game+0x23cf683 at end of loading

Title ID: (game_scarlett_master.exe)
Setup: Windows 10 IoT, RX 9070 XT (16 GB), Ryzen 7 5800X3D, 32 GB RAM, Agility SDK 1.620.2, DXC 1.9.2609, xcl main @ 3db536e, reproduced again on dd2ae9a (same stack, now after 77 s instead of 142 s)

The title boots, plays its intro, loads at a steady ~30 fps (since the texture-upload PRs of today), with audio, 15k+ draws through translated pipelines (0 skipped). Two separate crashes follow, one after the other.

1. CopyFromSubresource gets one argument more than xg.rs assumes → AV in copy_from

Stock main, every run, when the loading screen is about to finish:

unhandled exception 0xc0000005 in VCRUNTIME140.dll+0x1cc83 (write at address 0x88269c240)
rbx=0x800 rsi=0x2 rdi=0x1800 r13=0x40000 ...; on the stack: xcl.exe+0xeec9f, game+0x979f5b, game+0x4fb0c2f, game+0x50bb3f0, game+0x979db0

The return address resolves (llvm-symbolizer + xcl.pdb, earlier build) to xcl::hle::xg::copy_from: the 2D row loop, dst + y * row_pitch. copy_from loads row_pitch from the 6th argument as declared, but the title puts a pointer there (e.g. 0x3a3e9000, 0x458b9000: page-aligned low halves), so rows land ~1 GB apart.

Logging the raw stack arguments (copy_from(p, dst, plane, sub, a5, a6, a7, a8)) on two calls:

dst a5 a6 a7 a8 level
0x7396e3210 0x700000000 0x14344589000 0x13e_00000800 0x40000 2048 B × 128 rows
0x735ef10c0 0x700000000 0x14344d37000 0x13e_00000100 0x2000 256 B × 32 rows
  • a7 (low 32 bits) = row pitch, a8 = slice pitch (0x800 × 128 = 0x40000, 0x100 × 32 = 0x2000)
  • a6 = per-texture 4 KiB-aligned address = the tiled source (matches the texture's alignment 0x1000)
  • a5 = 0x700000000 for two different textures, so it is not a resource base (some base address the console library takes?)

CopyIntoSubresource matches the declared layout (row pitch 0x100, slice pitch 0x8000 for 256 B × 128 rows), so only slot 9 differs.

Workaround patch (attached): copy_from takes the arguments raw; if a6 is no plausible row pitch but a7 is, pitches = a7/a8 and src = a6 (when readable), logged. With it, the AV is gone and the copies log layout shifted by one, src 0x18397db9000, row pitch 0x800, slice pitch 0x40000.

2. Null write in the title at the end of loading (with the patch)

unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0)
rax=0x0 rbx=0x0 rcx=0x70024c348 rdx=0x1 rbp=0x0 r8=0x7074d8c40 r9=0x7074d8e20 r10=0x7074d8ad8 r11=0x7074d8c40 r13=0x146845c28
on the stack: game+0x4e4ba89, game+0x2215c35, game+0x71b9a20, game+0x2215eca
  • Same address and the same rcx / r8–r11 / r13 in 5 runs (the last on dd2ae9a + patch), independent of memory load (92–97 %, also with 2.4 GB free) and of whether the copies read a5 or a6.
  • Happens as the loading screen finishes (~30 s after the two copies above).
  • On dd2ae9a + patch the title gets further before it: presents stop at 1647 (~56 s, end of the loading screen), then ~70k Opus packets of in-game audio play for ~50 s while large compute PSOs build in the background (806 KB DXIL in 14.8 s, 499 KB in 17.4 s). Right before the crash the present thread logs three Wait64BitValueX timed out after 2000 ms at 0x70417fe58 / fe10 / fee8 (op 7, want 0x673, memory holds Some(0)). 0x673 = 1651, i.e. about the next frame number, so the GPU write that signals the frame never lands. No such timeouts on 3db536e. Maybe the new "ExecuteIndirect with a pipeline still being built is skipped" (2d9a9fe) skips work that would have written it?
  • Still present: ~2500 BCPack requests refused (BC1/BC5/BC6H/BC7, filled 0), 40 mesh pipelines refused (MS in the AS slot).

Logs and report.json of the patchless run and of the patched run attached.

Side note: the title's Backtrace crash reporter uploads ~26 MB minidumps to submit.backtrace.io through XCL ({"response":"ok"} in the log); I blocked xcl.exe outbound in the firewall. XCL might want to refuse that host like other layers do.

xg-copyfrom-raw-args.patch
xcl.log
report.json

Activity

  1. pickles976 commented on Nov 24, 2026

    @pickles976

    The end-of-loading "null write at game+0x23cf683" in the title is the title's deliberate self-kill, not a second bug — that instruction is an unconditional mov dword ptr [0], 0x4d8bd421 on the stall-watchdog path (decoded in #534: report call → tagged null-store exit). So only the copy_from arg-count AV needs chasing; the null write is what the title does to itself after things stall.

  2. itsd-effex commented on Nov 24, 2026

    @itsd-effex

    The call site explains a5, and a Linux (Wine) data point.

    Call site. A newer retail game 1.0.2.1, the call whose return address is the game+0x979f5b in the stacks above (image offsets):

    +0x979f31  mov  rcx, [rdi+0x8]              ; the computer
    +0x979f35  mov  r9d, [rdi+0x18]             ; a4 (u32)
    +0x979f39  xor  r8d, r8d                    ; a3 = 0
    +0x979f3c  mov  r10, [rcx]
    +0x979f3f  mov  dword [rsp+0x38], edx       ; a8 (u32) slice pitch
    +0x979f43  mov  rdx, rsi                    ; a2 = linear destination
    +0x979f46  mov  dword [rsp+0x30], eax       ; a7 (u32) row pitch
    +0x979f4a  mov  qword [rsp+0x28], r14       ; a6 (u64) tiled source
    +0x979f4f  mov  dword [rsp+0x20], 0         ; a5 (u32) = 0
    +0x979f57  call [r10+0x48]                  ; slot 9
    
    • a5, a7 and a8 are 32-bit stores. Their upper halves are whatever was on the stack, so a5 is not a base address: the 0x700000000 in the table is a literal 0 plus stale bytes. The same goes for a7's 0x13e_ prefix.
    • So slot 9 takes one more UINT before the source, (dst, UINT, UINT, UINT, const void* src, UINT row_pitch, UINT slice_pitch), and a6 is always the source. A fix can read it there unconditionally, without checking which pitch looks plausible (the 7-argument change in D3D12.X / XG: async texture upload, detiling, VRAM, XG ABI, and PSO scheduling improvements #539 does this).
    • This site can't tell what a4 and a5 are (subresource vs. mip + slice, or a flag), because a5 is the constant 0 here.

    Linux, same crash

    • Wine from Proton Experimental, patched vkd3d-proton 3.1 (the Linux: docs/linux.md, scripts/linux and Wine start-up checks for vkd3d-proton and DXVK (#154, #241) #257 kit), RTX 3080 Ti on NVIDIA 620.73.04, i7-11700KF. xcl dd2ae9a + DirectStorage: BCPack BC1 requests are unpacked, tables from bcpack-rs #273 (BC1), release build, cross-compiled with cargo-xwin.
    • Without a guard: 0xc0000005 in ucrtbase.dll+0x171d9 (write at address 0x80a337150), rax=0x45999000 rbx=0x800 r13=0x40000, stack xcl.exe+0x2f0720, game+0x979f5b, game+0x4fb0c2f, game+0x50bb3f0, game+0x979db0, after 1614 presents (~184 s).
    • With a local diagnostic in copy_from that skips a destination dstorage::writable rejects (not a fix), the same two copies as in your table logged row pitch 0x45999000 (128x128 x 16 B) and 0x46145000 (32x32 x 8 B), the low halves of a6. There was no AV. The run then went on, with a black screen, and the process exited with code 1 about 15 s later, with no crash line in xcl.log.

    Not tested: #539 itself. Native Windows.

    AI use: Claude Code (Claude Opus 5.5) disassembled the call site, read the logs and drafted this comment. The runs are mine, on the hardware above.

  3. MonkeyPython commented on Nov 24, 2026

    @MonkeyPython

    NVIDIA corroboration from this host (RTX 3080 Ti, driver 621.01, Windows 11 26300), plain main dd2ae9a, scripted-input loading runs:

    The Wait64BitValueX timeouts occur here too, at the same addresses. In 1 of 4 runs (xcl-gta-dd2load3), four timeouts at 0x70417fe58 / 0x70417fe10 / 0x70417fe68 / 0x70417fee8, all op 7, mask 0xffffffffffffffff, memory holds Some(0), want 0x65b (this issue's run wanted 0x673 — same fence slots, different progress value), each flanked by long compute-PSO builds (1606 ms / 1262 ms). The other three runs at the same commit have zero such timeouts. So the waits are timing-dependent, not every-run, on NVIDIA.

    The null-write registers are byte-identical across vendors and drivers. Three of our runs (two on 621.01, one on 621.24, commits a6f5f7a/dd2ae9a) all show rax=rbx=rbp=0, rcx=0x70024c348, rdx=0x1, r8=0x7074d8c40, r9=0x7074d8e20, r10=0x7074d8ad8, r11=0x7074d8c40, r13=0x146845c28, r14=0x7ff810d9b220 at game+0x23cf683 — matching this issue's table and the "deliberate self-kill / tagged null-store" reading: the faulting store's inputs are deterministic, not heap noise.

    The copy_from VCRUNTIME write AV (+0x1cc83) does NOT reproduce on this host — no such line in any of our 8+ retail logs at a6f5f7a / 508a0c7 / dd2ae9a. (One 4-thread run showed a different VCRUNTIME read AV at +0x1bc5b, n=1; not claimed as the same fault.) So the 7-arg ABI mismatch may be title-version- or timing-dependent, or this host's runs die on the null write before reaching the late-loading CopyFromSubresource calls.

    On the ExecuteIndirect-skip question: the timeouts above happen on a build that includes 2d9a9fe; with memory holds Some(0) while multi-second compiles run, "work not written yet" is consistent with what we see, but the 1-of-4 occurrence means we cannot confirm the skip causes it from this host.

    Not tested: the copy_from argument dump (no repro here), RX 9070 XT, Wine/Linux.

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

  4. jimokulou2-ops commented on Nov 24, 2026

    @jimokulou2-ops

    Same card (RX 9070 XT). I took the end of loading apart step by step with #533 and #267 and found the stall that comes after them. Written by Claude Code (Claude Opus 5.5), which built the trees and read the logs; I drove the pad on my machine.

    Setup: Windows 11 Pro 10.0.26300, Ryzen 7 9700X, RX 9070 XT (RDNA4, Adrenalin 26.11.2), Rust 1.100.0, release, XCL_NETWORK=0. Retail title v1.0.2.1 with a save that has finished first boot (A → intro → loading → world). Runs are local merges onto main 91f9a5e, all with your xg-copyfrom-raw-args.patch. XCL_THREAD_DUMP_AT was used during the black screen.

    build end of loading → world end
    main + patch 2-4 fps dips during loading, then 0 presents from ~72 s (black) watchdog +0x23cf683 at 106 s
    + #533 (a966993) compute pipeline … still building after 3813 ms – proceeding with stand-in, one ExecuteIndirect skipped; still black watchdog at 111 s
    + #267 (043d1f7) 7 draws not built after 4.0 s … goes with its stand-in; still black watchdog at 108 s
    + #267, XCL_PSO_WAIT_MS=1 XCL_COMPUTE_PSO_WAIT_MS=1 presents keep coming until ~95 s, then drop to 0-30 per 2 s and to ~0 from 128 s no watchdog: alive for > 190 s, closed by hand

    What blocks the title's threads

    What comes after: the frame signal is never written. With the 1 ms limits, from 126 s on, the log shows:

    D3D12.X: Wait64BitValueX timed out after 2000 ms at 0x70417ff68 (op 7, want 0xabd, mask 0xffffffffffffffff; memory holds Some(0))
    … the same every 2 s at 0x70417ff78 / ff88 / ff98 / ffa8 / ffb8 / ffc8 / fe38 / fe20 / fe58 / fe10 / fee8, want 0xabd, memory 0
    

    That matches what you saw (want 0x673, memory 0). The value the wait wants is about the frame number. These waits are resolved on the CPU before the list is submitted (wait_all, 2 s). If the write they wait for is in a list submitted after them, or on a queue that is itself held, it never lands. On this card that looks like the second wall after the pipeline stalls.

    Two more crashes during loading. These came on the save path. XG CopyFromSubresource was never called in these runs, so they are not copy_from:

    • unhandled exception 0xc0000005 in VCRUNTIME140.dll+0x1a5fb (read at address 0x1df48444000) twice, at 50 s and 56 s, with rcx=0x15c000 rdx=0x1df48440000 r8=0x160000: a 1.4 MB copy that runs into unmapped memory after 16 KB. The stack scan printed nothing. I have a local build that keeps system modules in the scan, but the crash has not come back since.
    • The first-boot run on plain dd2ae9a (before your patch) ended with VCRUNTIME140.dll+0x1b444 (read at …) at the end of loading. That may be your copy_from case in its read form.

    Rerun on current main f4ce27c, with #690 (pipeline preload) and your patch only. Same black screen; the watchdog comes 20 s later (126 s instead of 106 s). Earlier runs' driver blobs are reused (compute pipelines made from the driver's blob of an earlier run). In the dumps at 105 s and 120 s, four title threads are in pso_async::resolve_for_bind → resolve_wait, which is the unbounded compute wait on bind that #533 changes. So on current main the order is the same: compute binds (#533), then graphics draws (#267, with a limit per draw that is too long here), then the Wait64BitValueX signal.

    Not tested: #533 / #267 on top of f4ce27c; a run with the 1 ms limits that keeps going until the waits clear on their own; NVIDIA.

  5. am-cob commented on Nov 24, 2026

    @am-cob

    I traced the three zero-valued Wait64BitValueX timeouts on an RTX 4070 Ti SUPER under Proton Experimental and vkd3d-proton. Two offline runs on a local build based on cb868b2 found a matching Write64BitValueBottomOfPipeX for every address and value. The three writes belonged to two command lists.

    In the run with independent fence and memory sampling, the title recorded the writes at 100.758–101.418 s. Both producer lists had closed by 114.153 s. The same submission thread handed XCL the two consumer lists first, on different queues. It spent about six seconds in the three CPU-side waits. They expired at 116.163, 118.172 and 120.174 s, each reading zero while waiting for 1,595.

    XCL received the first producer for submission at 120.174 s and the second at 120.180 s. Both reached the same native queue by 120.186 s. By the 120.347 s poll, both private queue fences had passed and all three words in coherent memory read 1,595. In the other run the two native submissions likewise followed the last timeout by 7 and 12 ms.

    The guest still ended at +0x23cf683 at 130.954 s, over ten seconds after the values were visible. This gives #708 a concrete ordering case to compare. These runs used the existing wait implementation with diagnostic instrumentation. We haven't tested #708 on this configuration.

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

  6. Royalflamejlh commented on Nov 24, 2026

    @Royalflamejlh
    Contributor

    Linux / NVIDIA data point for both halves of this issue: #684 removes the copy_from AV here, and the stall that follows is title threads waiting in pso_async::resolve_wait (thread dumps below). No Wait64BitValueX timeouts in any run.

    Setup: Fedora 44 (kernel 7.2.9), Wine 11.21 Staging (Wayland driver), vkd3d-proton 3.1 with the relaxed-vtable patch from #175 and a local dxil-spirv patch, VKD3D_CONFIG=ignore_shared_fence. RTX 4070 (12 GB, driver 615.71.09), Ryzen 9 9950X3D, 64 GB RAM. xcl main @ f4ce27c, release, cross-compiled to x86_64-pc-windows-gnu (rustc 1.98.0), DXC 1.9.2609.5, XCL_NETWORK=0. Same title as this issue, first boot (no save), one A press at the account screen (~45 s), then loading.

    1. copy_from: same AV on stock main, gone with XG: fix CopyFromSubresource 7-argument ABI and guard destination span #684

    Stock f4ce27c, 1 run:

    [95.565] unhandled exception 0xc0000005 in msvcrt.dll+0xa4f9 (write at address 0xc5e0b6e20)
    r8=0x800 r12=0x1800 r15=0x40000 …; on the stack: xcl.exe+0xa78e8, game+0x4daa2c8, game+0x979f5b, game+0x4fb0c2f, game+0x50bb3f0, game+0x979db0
    

    xcl.exe+0xa78e8 is inside xcl::hle::xg::copy_from (nm on this build). Same game frames and the same 0x800 / 0x40000 pitches as the report above; 1886 presents before it.

    f4ce27c + the diff of #684 (head e56dbc3, applied with git apply, uncommitted), 3 runs: no AV, and the PR's CopyFromSubresource invalid span warning was logged 0 times, so the copies went through with the 7-argument layout.

    1. What follows: presents stop, watchdog 30 s later

    All 3 runs with #684 end the same way:

    run last presents at end presents
    1 90.8 s game+0x23cf683 (write at 0x0) at 120.6 s 1838
    2 96.5 s same, 125.5 s 1810
    3 94.1 s same, 123.5 s 1782

    Run 2 had XCL_THREAD_DUMP_AT=97,105,113. Title threads with XCL frames in those dumps (xcl.exe frames named with nm):

    • 97 s: 2 threads in bind::set_pipeline_state → pso_async::resolve_for_bind → resolve_wait → the build job run on that thread → real::build_compute → translated_compute_pso → d3d12core.dll (vkd3d-proton) → winevulkan.dll. 1 thread in bind::execute_indirect → resolve_wait → real::build_graphics → translated_graphics_pso → retry_without_rect_gs → d3d12core.dll.
    • 105 s: 1 thread in set_pipeline_state → resolve_for_bind → resolve_wait → Condvar::wait.
    • 113 s: 3 threads building a compute pipeline inside resolve_wait as above, 2 in resolve_wait → Condvar::wait.

    So this matches what @jimokulou2-ops found on the RX 9070 XT: the unbounded compute wait on bind, plus here one graphics wait through execute_indirect. In run 2, after 88 s, 14 compute pipelines took ≥ 1 s each to create (46 s in total, the longest 10.7 s for 491 544 B of DXIL), so on vkd3d-proton the time goes into pipeline creation itself.

    Reruns do not shorten it: the pipelines of N shader sets an earlier run used are built ahead went 42 → 93 → 273 over the three runs, with the stall at the same place. XCL's driver-blob cache logs 0 KB for every blob here (8 driver blobs kept on disk for the next run (this one: 290 ms, 0 KB)), so nothing is reused from it on vkd3d-proton.

    Not tested: #533, #267, #708 (the first two do not apply to f4ce27c without conflicts); native Windows; AMD; the cargo test suite on the #684 tree; a run with a finished save.

    AI use: Claude Code (Claude Fable 5.2) ran the title on my machine through a scripted virtual XInput pad and XCL_PRESS_AT, applied #684 locally, read the logs and thread dumps and drafted this comment. I reviewed it before posting.

  7. Royalflamejlh commented on Nov 24, 2026

    @Royalflamejlh
    Contributor

    Follow-up to my comment above: with #533 and #267 merged onto main @ beaa245, no title thread waits in pso_async::resolve_wait any more on Linux / RTX 4070, and the title still stops presenting at 104–106 s and is ended by its watchdog at game+0x23cf683. What holds it now is #267's graphics wait, taken draw after draw.

    Setup: same machine and title as above (Fedora 44, Wine 11.21 Staging, vkd3d-proton 3.1, RTX 4070, driver 615.71.09), first boot, one A press at the account screen. The pull requests were merged locally in the order shown; #533 and #267 conflict with main and with each other, and how I resolved them is under the table. Thread dumps at 97, 105 and 113 s. 1 run per row.

    tree presents stop end presents
    e50836b + #684 + #533 + #267 96–98 s device removed 0x887a0005 at 123.5 s 1794
    the same + #708 102–104 s game+0x23cf683 (write at 0x0) at 131.5 s 1927
    beaa245 + #684 + #533 + #267 104–106 s game+0x23cf683 (write at 0x0) at 135.6 s 1874

    Merge choices: Pending keeps both main's key/used and #533's timed_out, and lazy pipelines go through #533's enqueue. In execute_indirect, where both pull requests replace the same resolve_wait, a compute pipeline takes #533's per-frame bound and a graphics one #267's 4 s limit. #708 conflicts with beaa245 and is not in the third tree.

    Pipeline waits are bounded, and one after another they still stall the frame

    In the dumps of all three runs, every title thread inside pso_async was in Condvar::wait_timeout, under resolve_compute (#533) or resolve_for_draw (#267). None was building a pipeline itself.

    On beaa245, at 113 s, 5 title threads were in resolve_for_draw (4 through execute_indirect, 1 through draw_instanced), and 1 was still there at 135 s. The log has 10 waits of 2 s or more (the longest 3.9 s) and 10 waits that reached a limit. After 110.3 s the queue got 6 submits in 28 s:

    [  110.344] activity (2 s): 0 presents, 23 submits, 49 draws, 6652 dispatches
    [  112.344] activity (2 s): 0 presents, 0 submits, 1 draws, 0 dispatches
    [  118.345] activity (2 s): 0 presents, 0 submits, 1 draws, 0 dispatches
    [  130.346] activity (2 s): 0 presents, 0 submits, 1 draws, 0 dispatches
    

    So the limit holds for one draw, and a list that uses many pipelines for the first time still takes longer than the watchdog allows.

    Wait64BitValueX

    On e50836b the thread that submits command lists was in execute_with_waits → list_x::wait_all in all three dumps and logged 14 timeouts, one every 2 s from 97.4 s until the device was removed:

    [   97.363] D3D12.X: Wait64BitValueX timed out after 2000 ms at 0xb0417ff68 (op 7, want 0x706, mask 0xffffffffffffffff; memory holds Some(0))
    [  123.479] D3D12 device removed: 0x887a0005
    

    With #708 there were 0 timeouts and no device removal; its gate logged still waiting on the memory condition after 2 s; leaving the queue blocked once, at 107.3 s. On beaa245 (with #795 and #797) there were 0 timeouts, 5 waits were logged as bridged to GPU queue.Wait, and no thread was in a 64-bit wait in any dump.

    AI use: Claude Code (Claude Fable 5.2) merged the pull requests locally, ran the title through a scripted virtual pad, read the logs and thread dumps and drafted this comment.

  8. KricsDavid commented on Nov 24, 2026

    @KricsDavid

    Cross-queue Wait64BitValueX cycle: broken on the CPU, the GPU then waits until the device is removed (1.0.2.1, RX 9070 XT)

    Thanks for #795/#797 — they moved this title a long way. Reporting what the new fence bridge does
    on this machine, because the cycle-breaking path is where the run ends now.

    Setup: Windows 11 Pro 26300, Ryzen 7 5800X3D, 32 GB, AMD RX 9070 XT (driver 32.0.32029.2010),
    DXC 1.9.2609.5, retail title 1.0.2.1, release build, plain main a1672ef / 1ec4c98.
    Runs local, XCL_NETWORK untouched, no DRED unless noted.

    What works now. With #795 the title gets through its loader and reaches its loading screen at a
    steady 30 fps: console code so far: 52672 draws with translated pipelines (0 skipped …), 5054
    PresentX calls in a 180 s run, 881 translated pipelines, no fallback draws. The screen is black,
    but the renderer runs and the Rockstar service calls start (no Xbox Live (0x80072EFD)).

    Where it ends (three builds, same title, same evening):

    build result
    a1672ef (bridge #795/#797) D3D12.X: Write64 Signal at 0x70417fef8 = 0x695 on q1/ty0 would close a GPU cycle (waiters=[q3(after_w64)]) – signalled on CPU, then D3D12 device removed: 0x887a0006; DRED: list … 0 of 16 operations done on four lists of the same queue
    same + the CPU signal skipped (local 3-line change) still 0x887a0006 a few seconds later — the GPU waits on a signal that then never comes
    6025201 + #866 (late-release) no device removal, but the old CPU wait path is back: Wait64BitValueX timed out after 2000 ms at 0x70417fe58 (op 7, want 0x8f8, mask 0xffffffffffffffff; memory holds Some(0)), three of them 2 s apart, then the title's stall watchdog (0x00000000c0000005, write at 0, at +0x23cf683)

    So the two halves are complementary and neither is enough: the bridge keeps the title's threads
    moving but its CPU-side cycle break leaves a GPU waiter unsatisfied (DRED: the queue has not
    completed a single operation of those lists); without the bridge the same waits block the CPU
    submission thread and the title dies on its watchdog.

    What this looks like from the title side. The value the waits want is written by the title
    itself: Write64BitValueBottomOfPipeX at exactly those addresses, e.g. 0x70417ff68 = [be2, 0]
    (mode 2), 44 writes across four recording threads at 133.1 s, while the wait for 0xbe2 at 135.2 s
    still reads 0. The producer lists are still being recorded when the consumer list waits (a
    thread dump of the same run: a title thread inside bind::execute_indirect →
    pso_async::resolve_for_draw while its list holds the ring writes), which is the cross-queue
    ordering #708 is about.

    Suggestion. The cycle break seems to be the wrong end to resolve it: signalling the fence from
    the CPU unblocks the CPU side but cannot make the GPU's queue.Wait observe the write that the
    producer list would have made. Deferring the wait to the producer's recorded position (the #708
    direction: split the list at the wait and gate the continuation on the producer's fence) looks
    like the only variant where both sides make progress; a CPU signal only for cycles that cannot
    make progress at all, with a warning naming both queues, would then never be needed on this title.

    Not the cause (ruled out here):

    • XErrorReport 0x89240107 ("XGameRuntime is missing required dependencies …"): the title's own
      Gaming Services check, printed twice at ~19 s; the run goes on for another 150 s.
    • texture uploads: with XCL_TEXTURE_SKIP_UNCHANGED=0 the same black frame appears; the only
      difference is XCL's own detile read faulting on a page the title decommits
      (0xc0000005 in gpu::tiling::Chain::detile_level — a separate, local fix, read_committed
      instead of a borrowed slice).
    • the driver's PSO blob cache: every large compute PSO this title makes comes back as an empty
      blob (… kept on disk for the next run (this one: 54851 ms, 0 KB)) and is compiled again on the
      next run; 1 MB DXIL programs take 25–65 s.

    Not tested: other titles, NVIDIA, a build with #795 but not #797, and #708 on top of 1ec4c98.

    AI use: the text was written by an AI agent (DeepSeek Harness, deepseek-flash) from the log,
    the report.json and the thread dumps of my own runs; the runs, the hardware and the local
    patches are mine. No game files are attached.

  9. tylerstraub commented on Nov 24, 2026

    @tylerstraub

    I ran into another stop after #684 on my Linux 5090. The interesting part was figuring out where the value in the failed relocation lookup came from.

    I ran the same prepared profile twice on a locally patched build based on 09940bb87 (NVIDIA 595.99.02, Proton Experimental 11). Both runs started with an empty shader cache, a 50 ms pipeline wait and the same 4095 MiB coherent window. The only change for the second run was #684 at e56dbc3. The first run stopped in XG texture readback at 74.5 s. With #684 it started presenting again at 106 s, then stopped in the relocation lookup at 114 s. I still had a spinner on screen, and there was no device removal in the log.

    Three storage deliveries in that second run covered the eight bytes the title was reading. I decompressed all three source blocks and checked the same spot in each. Only the vehicle texture delivery (ttdb_vehicles.ttpf) matched all eight bytes the title looked up. One of the levels.rpf deliveries to that same address had what looked like a valid resource pointer there.

    That's one run. I have the address where the vehicle data landed, but I'm missing the page history that would tell me whether it landed on the wrong page or the level loader was still using a page that had been reassigned. Has anyone following this issue traced the physical page ID from enqueue through submit and remapping? I'd be interested to compare notes on that part.

  10. zmelumian972 commented on Nov 24, 2026

    @zmelumian972

    Linux / RTX 5090 on 6efdabc: no Wait64BitValueX timeouts any more; the title reaches its first story card, then queue waits released on the CPU slow it to 8 fps and the watchdog ends it at +0x23cf683

    Setup: CachyOS (kernel 7.3.6), Ryzen 7 9800X3D, RTX 5090 (driver 620.73.04), Wine 11.22, vkd3d-proton 3.1 with a local patch that resolves XCL's extended vtables (#175), DXVK 3.1.1 dxgi/d3d11. XCL cross-built from Linux with cargo-xwin, release, rustc 1.100.0.

    Build: main @ 6efdabc plus two uncommitted changes: #684's diff (xg.rs, xg_oracle.rs) and a local fallback for Wine, where DWM cloaking fails (the console window is hidden; #794 covers the same thing). Nothing else.

    Run: game 1.0.2.1, XCL_PSO_WAIT_MS=1, shader caches warm from earlier runs, menus driven by scripted A presses.

    time what is on screen
    0–80 s menus and loading, 30 fps
    80 s loading-screen art
    120 s the first story title card
    120–140 s the watchdog ends it: 0xc0000005 in game+0x23cf683 (write at address 0x0)

    Frame counter: 1500 frames presented, 28.3 fps, then 1800 frames presented, 8.0 fps over the last 300. No device removal.

    Compared with my earlier run on 09940bb + #684 + #533 + #267 (same machine, same settings): that run stopped at the same card and the same address, with 2 Wait64BitValueX timed out after 2000 ms messages before it. On 6efdabc there are 0 of these. Counts over the whole log:

    • GPU queue.Wait … did not complete within 5000 ms … released on CPU to prevent GPU hang: 43
    • Write64 Signal … would close a GPU cycle (waiters=[q3]) – signalled on CPU: 15
    • Wait64BitValueX … bridged to GPU queue.Wait: 8
    • ExecuteIndirect with a pipeline that is still being built skipped: 4

    The first released waits:

    GPU queue.Wait at 0x70417f990 >= 0x714 did not complete within 5000 ms (waiter=q2/ty2, prod=qSome(3)/tySome(0), recorded=0x715, submitted=0x715, completed=0x713) – released on CPU to prevent GPU hang
    GPU queue.Wait at 0x70417fb70 >= 0x714 did not complete within 5000 ms (waiter=q3/ty0, prod=qSome(1)/tySome(2), recorded=0x715, submitted=0x715, completed=0x713) – released on CPU to prevent GPU hang
    

    In these lines the producer queue has submitted the signal (submitted=0x715), but its GPU work stops at 0x713. So its own work is not finishing, rather than the signal never being recorded. With 43 releases of 5 s each the frame rate falls to 8 fps. I read the watchdog at +0x23cf683 as the title's reaction to that, the same as in the comments above. On this NVIDIA/Wine setup the CPU-side cycle breaking ends in the watchdog, not in device removal as on the RX 9070 XT above.

    Not tested: Windows; AMD; a cold shader cache on this build; main without the two local changes (without #684 the title crashes earlier, in copy_from).

    AI use: run, log analysis and this report by Claude Code (Claude Opus 5.5); the run is real and the counts come from its log.

  11. Royalflamejlh commented on Nov 24, 2026

    @Royalflamejlh
    Contributor

    Linux / RTX 4060 Ti 16 GB, main (which has #891) + #684: with XCL_PSO_WAIT_MS=1 the title presented until 98–104 s and its watchdog (game+0x23cf683) fired 28–31 s later, in 3 of 3 runs. With 50 ms the watchdog fired at 146.5–162.8 s, in 7 of 7 (126.5–132.5 s at 1 ms). Three corrections to my comments above are at the end.

    Setup: as in my first comment, except: RTX 4060 Ti 16 GB (driver 615.71.09, Wine's X11 driver), vkd3d-proton v3.1-90-g30b0eb9b, XCL_PSO_PRELOAD=0, and the title starts from a saved profile (first-run screens done once, no story progress) with one A press at 44.8 s through XCL_PRESS_AT. All merges clean. At times a second instance of the title ran on the machine's other card.

    XCL_PSO_WAIT_MS tree runs regular presents end then last present watchdog frames
    50 384f7f7 + #684 2 102.4, 98.1 s 20 s with no present and no submit, then 3, 2 presents 126.7, 120.1 s 162.8, 151.7 s 2130, 2219
    50 the same + #751 + #850 + #851 + #906 4 98.1, 98.0, 94.1, 96.1 s 18 s the same, then 2, 7, 2, 2 presents 122.5, 130.0, 116.1, 118.1 s 152.6, 159.6, 146.5, 147.5 s 2252, 2242, 2153, 2144
    50 47efa2e + #684 1 96.3 s 18 s the same, then 2 presents 118.3 s 147.5 s 2192
    1 47efa2e + #684 3 98.1, 104.1, 98.0 s nothing 98.1, 104.1, 98.0 s 126.5, 132.5, 128.6 s 2140, 2179, 2166
    • The gap at 50 ms is binds waiting. All 7 runs logged a pipeline still being built after 50 ms … (513 so far), and in the 5 runs with thread dumps the same title thread was in pso_async::resolve_wait in consecutive dumps (100–120 s). At 1 ms there was no gap, and no title thread was in pso_async or any D3D12.X call in any dump from 100 s on (3 of 3).
    • The bridged waits gave up at either setting. Write64 Signal … would close a GPU cycle … – signalled on CPU came 15, 13 and 16 times at 1 ms, starting in the 2 s before the last present; at 50 ms 0, 0, 4, 10, 12, 0 and 0 times. GPU queue.Wait … did not complete within 5000 ms came 36–45 times at 1 ms (first 2.6–4.7 s after the last present) and 8–43 times at 50 ms, e.g. (waiter=q4/ty2, prod=qSome(3)/tySome(0), recorded=0x86d, submitted=0x86d, completed=0x86b). @zmelumian972's run above has the same messages; there presents went on at 8 fps and a story card showed; here presents stopped, and no dumped frame showed a story card (2 runs dumped every second frame, and neither dumped its very last frames).
    • sparse: the queue has not reached fence value N after 5 s (at N-2) (also in Linux + NVIDIA: world load fails right after the 4th mid-list Wait-after-Write64 split (vkQueueSubmit2 AV / device lost / stuck fence) #916) repeated to the end in 4 of the 7 runs at 50 ms, with the title's submit thread in sparse::State::upload_dirty in the 3 of them that have a dump, and in 0 of 3 at 1 ms.
    • XCL_SPLIT_MIDLIST_WAIT=0 with the 1 ms limit on 47efa2e + XG: fix CopyFromSubresource 7-argument ABI and guard destination span #684 (2 more runs) ended the same way: presents until 96.1 and 100.1 s, watchdog at 124.5 and 129.5 s, no split logged.
    • On screen (2 runs dumping every second frame, one per setting): the last loading picture at 94.4 and 93.1 s, then black frames, then a flat dark frame.

    Left out: 1 run that ended at 61.7 s in the read #751 is for, 2 starts that ended before 5 s (0x80000003 at game+0x19f4f58, each begun seconds after the run before it ended), and 3 runs made while another job loaded the machine. NVIDIA's kernel driver logged _threadNodeCheckTimeout … 30000 msecs in 4 of the 10 runs (within 20 s of launch, before XCL's clock started, in 3; and 152 s into the one whose watchdog came at 162.8 s) and no Xid.

    Corrections to my two comments above

    Not tested: main without #684 past 105 s; the default preload on these commits; native Windows; AMD; the cargo test suite.

    AI use: Claude Code (Claude Fable 5.2) merged the pull requests locally, ran the title, read the logs, frames and thread dumps and drafted this comment.

  12. Milanesa-chan commented on Nov 24, 2026

    @Milanesa-chan

    Edit: corrected. I first wrote that presents never stop before the end. I had read that from the console log, which prints the frame count only every 300 frames and has no timestamps, so a frame rate of ~20 fps in the last count looked like presenting up to the crash. XCL's timestamped log shows that they do stop, about 30 s before the watchdog, as in the reports above (details in my reply below).

    Linux / RDNA2 data point on today's main (b7aa9f3) plus #684: the PR removes the copy_from AV here too, and the title then loads for 10–18 minutes at ~20–30 fps. Then presents stop, and about 30 s later its watchdog ends it at game+0x23cf683. There are no Wait64BitValueX timeouts. Over four runs I removed one suspect at a time, and the end did not change.

    Setup: Nobara (Fedora 44), Linux 7.3.4, WineHQ wine-staging 11.22, DXVK 3.1.1, Mesa 26.2.6 RADV. AMD RX 6700 XT (RDNA2, 12 GB), Ryzen 5 5600X, 32 GB RAM. xcl cross-built for x86_64-pc-windows-gnu, release, DXC 1.9.2609.5. Network blocked (separate network namespace) and XCL_NETWORK=0. Retail 1.0.2.1, with a profile that is past the EULA screens, so the title goes straight from its intro to the loading screen.

    Two local settings: XCL_COHERENT_MB=512 (the learned ~4.8 GB coherent window made sparse-window updates on this setup about 1000× slower, 0 fps; separate report coming), and a local DXC change (a heap per compile thread) that only affects shader compile speed.

    run tree vkd3d-proton changed from the run before end presents
    1 beaa245 + #684 (e56dbc3) 3.1 + #257 patch – +0x23cf683 at 594 s 13,800
    2 the same the same full DXIL precompile (24,699 programs, 19 errors) +0x23cf683 at ~16 min 23,400
    3 b7aa9f3 + #684 the same BCPack decoder (8cad517): 0 refusals, 0 decode failures (run 2: 1,024+ refusals) +0x23cf683 at 1,114.6 s 28,200
    4 the same master + dxil-spirv master xcl-pso-pre-* threads no longer overflow their 64 MB stacks (see below) +0x23cf683 at 799.6 s 18,300

    One run per row. Run 2's time is estimated from its presents (its timestamped log was overwritten).

    At the end

    • Presents run at 11–27 fps until shortly before the end, then stop: in runs 3 and 4 (the ones with a timestamped log) the last 300-frame line is 38 and 43 s before the crash, when at that rate the next one was due within ~15–20 s.

    • No Wait64BitValueX timeout, no device removed, no pipeline left building past a stand-in in any of the four logs.

    • In run 3's exit dump, all 11 xcl-pso-* workers are idle (waiting for work). A dump taken during run 2's loading screen (~12 min in) had no title thread in pso_async::resolve_wait, the 17 DirectStorage queue threads idle with nothing queued, and one xcl-pso-pre thread building a compute pipeline.

    • The same two title threads, at the same return addresses, in all four runs:

      ntdll < kernelbase < game+0x56a0d < game+0x23cf735 < game+0x8126a7 < game+0x53ec040 < game+0x53ebf3a < game+0x661f0 < game+0x1d109c9 …
      ntdll < kernelbase < game+0x43c3d5d < game+0x23cf4f2 < game+0x23cf2d3 < game+0x23cf104 < game+0x2215eca
      
    • The registers at the null write have the same low bits as the ones reported above (rcx=…c348, r8=…8c40, r9=…8e20, r10=…8ad8, r13=0x146845c28), at different upper addresses:

      run 4: rax=0x0 rbx=0x0 rcx=0xd93c348 rdx=0x1 rbp=0x0 r8=0x14bc8c40 r9=0x14bc8e20 r10=0x14bc8ad8 r11=0x14bc8c40 r13=0x146845c28
      

    So on this machine, none of XCL's own wait or timeout warnings fire before the end, and its pipeline workers are idle. The 10–18 minutes is how long loading takes to reach the point where presents stop. The watchdog then fires about 30 s later.

    Also seen

    • Stack overflows in the preload threads, with vkd3d-proton 3.1. Runs 2 and 3 printed thread 'xcl-pso-pre-N' has overflowed its stack, run 3 for both preload threads (one early, one shortly before the end); run 1 printed the same for an unnamed thread. These threads already have 64 MB stacks. With vkd3d-proton master and dxil-spirv master (run 4) there were none. The same 3.1 build also crashed xcl shaders --precompile --pipelines on a null read inside dxil-spirv's CFG structurizer; master does not. This did not change the watchdog.
    • The loading screen restarts. The rotating splash restarts at random intervals instead of playing through smoothly as it does on the console. I don't know whether this is already documented.

    I can rerun any of these with an XCL_THREAD_DUMP_AT time or other env vars, or test a PR on this setup. Logs are kept locally. No game files are attached.

    AI use: Claude Code (Claude Opus 5.5) built the trees, read the logs and dumps, and drafted this comment. I ran the game, documented the behavior, suggested what to look for and reviewed everything before posting.

  13. pickles976 commented on Nov 24, 2026

    @pickles976

    Your table is quietly the most informative post on this board, because run 2 eliminates the community's favorite suspect: a full DXIL precompile — 24,699 programs — and the watchdog still came, at 16 min, with presents never stopping. Three readings, in order of usefulness:

    1. The watchdog is not a global-stall detector. Two distinct end shapes now converge on the same instruction: bvironn's zero-presents 80 s freeze, and yours — the renderer progressing at 20–30 fps the entire time. A gate that fires both when progress halts and when it continues is timing a specific outstanding task, not "is the GPU busy" — which is precisely the shape of a never-firing completion (the DirectStorage: a late page array holds a half-full queue until Submit #549 class: one async task whose destination/page snapshot never lands, while the render loop stays healthy). Your run is the best argument yet for prioritizing that merge over further translation work.
    2. Your 19 precompile errors deserve names. With 24,699 translated and 19 refused, the stall-critical-shader question my XGameRuntime: null out-pointers on result retrieval and lookup failures #1247 comment posed has its first real candidate set: post the 19 refusal reasons + program identifiers (no content, policy-clean). If one of the 19 belongs to a task the title blocks on during world entry, the "refusals are cosmetic" read dies here, and the fix is one translator PR instead of a merge queue.
    3. The XCL_COHERENT_MB=512 result closes my Linux (Wine + vkd3d-proton): a retail game reaches what main reaches on Windows; the obstacle is replaced vtables — proposal: proxies #175 hash-rate hypothesis' A/B from the other side: the ~4.8 GB coherent window making sparse-window updates ~1000× slower (0 fps) is the self-ReadProcessMemory/slow-path cost measured directly — recorded on this thread for the record. The "separate report coming" should note the 512-vs-default delta explicitly; it's the strongest single number supporting the VEH-guarded-reads proposal.

    Four-runs-one-suspect-each methodology, respected — the end not moving across removals is itself the elimination result this cohort needed.

  14. zeeboguy commented on Nov 24, 2026

    @zeeboguy

    Linux / RTX 5080 (Blackwell), today's main + #257 + #775 + #684: on this card XCL_PSO_WAIT_MS=50 turns the +0x23cf683 watchdog into an NVIDIA GPU hang (Xid 109) at ~150 s. XCL_HEAP_WINDOWS=1 (#680) doesn't change the result.

    Setup: Arch Linux (kernel 7.2), Hyprland (Wayland, Wine's X11 driver via Xwayland), RTX 5080 16 GB, NVIDIA 615.78.08, 32 GB RAM. GE-Proton11-12's wine called directly, prefix from scripts/linux/setup-prefix.sh, vkd3d-proton v3.1 + vkd3d-proton-xcl.patch with #775's dxil-spirv 53aac418, DXVK DXGI with hideNvidiaGpu = False, DXC 1.9.2609. xcl cross-built for x86_64-pc-windows-gnu, release, from 9e3831e (#680 merged) with #257, #775 and #684 merged on top, all clean. Retail 1.0.2.1, profile past the first-run screens, one A press at ~45 s, caches warm. Every run: XCL_NETWORK=0 XCL_ACTIVITY=1.

    run extra settings presents last present end
    1 XCL_HEAP_WINDOWS=1 XCL_PSO_WAIT_MS=50 2,380 146.1 s 0x887a0005 device removed at 151.7 s; kernel: NVRM: Xid 109, CTX SWITCH TIMEOUT
    2 XCL_PSO_WAIT_MS=50 2,483 148.1 s same: 0x887a0005 at 152.4 s, Xid 109 CTX SWITCH TIMEOUT
    3 none 2,466 114.1 s 0xc0000005 write at 0x0, game+0x23cf683 at 144.5 s (rax=0 rcx=0x70024c348), ~30 s after the last present

    In all three runs the game world stayed black on screen. Audio was audible in run 1 only, although xcl's log shows Opus decoding with no errors in every run (6.6k, 6.8k and 13.4k packets).

    Observations:

    • Without the PSO wait, the watchdog fires ~30 s after presents stop, the same gap @Royalflamejlh measured on the 4060 Ti.
    • With the wait, presents continue ~35 s longer. Then the GPU itself stops responding: the driver logs Xid 109 (context-switch timeout), vkd3d reports device removed, and the title never reaches its watchdog.
    • In the ~10 s before the hang in run 1, about 13 translated compute PSOs finish building in parallel, 108 ms to 19.2 s each, the biggest at 419,536 B DXIL. Then come two Wait64BitValueX timeouts on queue 0 (0x70417fb18, want 0x950, memory holds 0x94e). Run 2 shows the same pattern, with builds up to 38.5 s.
    • Coherent memory is nearly full at the time (coherent 3998/4095 MB, sparse 7.4 GB, target pages ~9.3 GB of 9.5 GB pools).

    So on Blackwell under vkd3d-proton, the hang looks like a long-running submission, either a translated compute dispatch or one waiting on a value that never lands, which trips the driver's context-switch timeout before the title's watchdog fires. This card shows the same Xid 109 in an unrelated vkd3d game, so it may be NVIDIA + vkd3d specific rather than XCL's. Happy to run something targeted, e.g. a build with extra logging around the last submissions, or a different XCL_PSO_WAIT_MS.

  15. pickles976 commented on Nov 24, 2026

    @pickles976

    Public correction to my analysis comment above, same window as the edit: I built point 1 on "presents never stop before the end" and that premise is now retracted — thank you for the timestamped recheck, and the why of the misread (300-frame counts, no timestamps) is exactly the trap that should be in every log-format doc. What the correction does to the model: "two opposite end shapes" is gone — there is ONE shape: presenting → presents stop → ~30 s → +0x23cf683. That strengthens the watchdog read in one way ("30 s after presents stop" is a heartbeat-timeout shape: the watchdog likely just notices the title's progress stopped, which revives "global stall detector" as adequate — my "times one specific task" wording overshot) and leaves the load-bearing conclusions untouched: latency is still eliminated as primary (run 2 presented 23,400 frames warm-cached and fell at the same instruction — same stop, same 30 s), and the stop itself is still the mystery, now with a duration on its fuse. Which yields the concrete opportunity the edit just created: the 30-second gap is a free, reproducible, post-mortem-live debug window. Nobody has named it yet: watch the frame counter (or XCL's timestamped log), and when it stops advancing, attach gdb -p / py-spy dump and take every thread's backtrace + wait reason before the watchdog reaps the process. One such capture across two vendors would say what the main thread is blocked on — the thing the whole cohort has been inferring from post-mortems. Sketch for anyone wanting to automate it: poll presents for 2 s of no advance → gcore-lite (thread apply all bt, info threads) × 3 samples 10 s apart → upload. I will run the equivalent on this box against my own static copy to pre-map the likely wait sites in the title so whoever captures first can resolve the symbols instantly. (The #549-class read survives the correction — a main thread blocked on a completion that never fires produces exactly "presents stop, then heartbeat death" — but it is now hypothesis among two again, not forced by end-shape diversity. The stack dump chooses.)

  16. Milanesa-chan commented on Nov 24, 2026

    @Milanesa-chan

    @pickles976 thanks for reading it closely. A big correction first: presents do stop before the end on this machine too. I'd written that they never stop. Since that was the strongest point of the comment, I re-checked it, and it was wrong. I had read it from the console log, which prints frames presented only every 300 frames and has no timestamps, so a last count of ~20 fps looked like presenting up to the crash. I hadn't checked it against the timestamps in XCL's own log (xcl.log). I've edited my comment above. Sorry about that.

    In runs 3 and 4 (the two with timestamped logs), the last frames presented line is at 1,076 s and 756 s, at under 20 fps, so the next one was due 15–20 s later and never came. Right after that last line, the same few things show up in all four runs, in about this order:

    acphal: audio processor command 0x5 first seen
    acphal: audio processor command 0x7 first seen
    D3D12.X: CreateShaderResourceView(RAYTRACING_ACCELERATION_STRUCTURE) at … is not in unified memory – writing empty BVH descriptor   (×3)
    D3D12.X: compute PSO with the translated console CS (…)   (a burst)
    

    and the watchdog fires about 30 s later (30.5 s and 31.0 s in runs 3 and 4; @Royalflamejlh saw 28–31 s with XCL_PSO_WAIT_MS=1). Between the last present line and the crash, the log is mostly audio decoding and compute pipeline builds (9 in run 3; 157 in run 4, which was rebuilding its driver pipeline cache after I switched vkd3d-proton). Run 4 also logged its first and only split command list … around mid-list Wait after Write64 at 781.6 s, after presents had stopped; run 3 had none. So it ends like the other watchdog reports above, and the 10–18 minutes is just how long loading takes here to get to that point.

    XCL only logs the first 4 of those SRV warnings per run. In every run the first one shows up during loading (at 334 s and 254 s in runs 3 and 4), and the other three in the burst at the end. I don't know yet if any of this is the cause or just marks the end of loading.

    About the 19 precompile errors: XCL only prints the first 10. Those are DXC validation errors, not refusals, all on mesh shaders whose names end in _Wrapped, and they come from just 3 distinct DXIL outputs. The other 9 aren't in the log. I haven't checked whether any of them is used where the title stops. Every run also has 40 mesh pipeline with its MS … in the AS slot – refused lines, which I think are the minimap mesh pipelines the README already mentions.

    About the coherent window: that number shows the 4 GB window is much slower here, not why. Per submit it's ~800× (~450 vs ~0.6 ms), but per MB uploaded only ~28×, and it's one run each. So I wouldn't count it as evidence for the ReadProcessMemory / VEH idea. More in the separate report.

    Last thing: before the null write, the crash hook at +0x23cf620 sets a crash-report field, and the title's Breakpad logs it as parameter 'GPU Loc Sig', value: '7333478d'. So the string the hook decodes is just that field's name (it isn't stored in plain text anywhere else in the exe). The value was the same in runs 3 and 4. It's GPU-related going by the name, but I don't know what it means. (The upload after it fails here, since the network is blocked.)

    AI use: Claude Code (Claude Opus 5.5) re-checked the logs and drafted this reply. I reviewed it before posting.

  17. pickles976 commented on Nov 24, 2026

    @pickles976

    Three-way convergence, and it starts with the strongest single table on this board. Reading zeeboguy's runs against the corrected end-shape and our source (hash-matched 9e3831e): pso_async.rs:511 — "How long a bind waits for a pipeline still being built (XCL_PSO_WAIT_MS; unset or 0: until completion)" — the bind thread parks inside the emulator while the title's fence keeps counting. The arithmetic is now one line: the ~30 s presents-stop→watchdog gap is the title's outstanding-PSO fence expiring while xcl is still waiting (or permanently waiting) for that pipeline: default (wait-until-done) → stop at 114 s, watchdog 30.4 s later, GPU innocent; PSO_WAIT_MS=50 → same bind proceeds after 50 ms with a not-built pipeline → kernel-level Xid 109 CTX SWITCH TIMEOUT instead of the title's polite gate. Both deaths are the same bind — the knob only chooses who notices first. And this reconciles the precompile-elimination that seemed to contradict it: run 2 precompiled 24,699 programs with 19 refusals — a refused program never completes, so a bind on it waits forever regardless of cache state: the 19 names I asked for are now load-bearing, not just interesting. Prediction to test first on the next Blackwell/AMD cold run: watchdog deaths should land at 30 ± a few seconds after the last present, on every host (bvironn: your 80 s — was the freeze-start timestamped, or only noticed after? If the gap there is 30 s too, one clock rules all vendors). And a design note for the maintainers, marked as mine not the data's: wait-forever as the default converts any never-completing program — refused or slow — into a guaranteed title timeout; a fail-loudly path (after N seconds, log the program identity and surface the refusal before the title's fence fires) would turn every one of these deaths into a named shader. Kill-map line: +0x23cf683 = the title's data/PSO-ready gate on its 30 s fence budget.

  18. pickles976 commented on Nov 24, 2026

    @pickles976

    Decode update that re-ranks this thread (full write-up on VIctory#534, hash-matched exe): the instruction every deep run dies at (+0x23cf683) is inside a function that de-obfuscates the string "GPU Loc Sig" at runtime and gates on a debug parameter by that name reading 1 — so the end-of-run is a named validation failing, not a raw heartbeat timeout, and the reason no one could grep the name anywhere is a 12-byte rolling cipher (verified byte-exact: 0x1b5d6844174b453b+0xff65664f, +12..+1). For the theories argued above: the stop→30 s→death clock stands (measured), but its producer is now "signature for this step not renewed", which both never-completing PSOs and read-too-early storage can cause — the 7333478d value observed in the wild on that parameter name is the signature channel, and the first log line worth having anywhere is GPU Loc Sig writes (value + time + stack) until a run shows 1. The stack-capture proposal gets sharper, not weaker: attach in the gap and sample the thread that owns the signature computation, not just the main thread.

  19. zeeboguy commented on Nov 24, 2026

    @zeeboguy

    Follow-up: same RTX 5080 / Linux box on c160d86 (#1426 merged) + #257 + #775 + #684, XCL_DIRECT_DXIL=1. The direct backend takes every compute program, the end doesn't move, and the gap is 29.7 s again.

    Same setup as my comment above. Settings: XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_DIRECT_DXIL=1 XCL_DIRECT_DXIL_STATS=1, no XCL_PSO_WAIT_MS, caches warm from the earlier runs.

    run settings presents last present end gap
    3 (above) none, 9e3831e 2,466 114.1 s +0x23cf683 at 144.5 s 30.4 s
    4 XCL_DIRECT_DXIL=1, c160d86 2,316 112.1 s +0x23cf683 at 141.7 s (rax=0 rcx=0x70024c348, same as before) 29.7 s
    • Direct DXIL summary at the end: CS direct 262 / HLSL fallback 0. No DXC was involved for compute.
    • The direct containers are much larger than the HLSL path's, and pipeline creation (vkd3d-proton → NVIDIA) takes as long or longer. The slowest builds were 1,518,024 B DXIL / 51.5 s (at 93 s), 881,684 B / 26.4 s, and 435,828 B / 11.1 s (finished at 125 s). For comparison, the HLSL path's largest in runs 1–2 was 419,536 B / 19.2 s.
    • In the 30 s between the last present and the watchdog, ~40 more compute PSOs finish, all small (19 ms to 1.5 s). Nothing is refused. No Wait64BitValueX timeouts this run, and activity drops to 0 submits.
    • The world stayed black, as in every earlier run.

    So for @pickles976's prediction: 30.4 s and 29.7 s on this host, with two different shader backends. On NVIDIA/vkd3d the time is spent in the driver's pipeline compile, not in DXC, so a faster translator alone won't move the gate here. I can grep these logs for specific program hashes if you have a list (e.g. the 19 refusals).

  20. added
    goal:world-load
    on Nov 24, 2026
  21. Natakout commented on Nov 24, 2026

    @Natakout

    Minidumps taken during the stall: on warm caches, no title thread is waiting inside xcl

    Hardware: RTX 3060 12 GB, driver 621.14, Windows 11. Retail 1.0.2.1, release builds. XCL_NETWORK=0, A pressed every 4 s from 12 to 120 s, runs of 300-480 s.

    Method: a watcher reads xcl.log and, at the third consecutive activity line with 0 presents, takes a minidump with cdb -pv -p <pid> -c ".dump /mhtu". It is read offline with ~*k plus llvm-symbolizer on xcl.pdb. The in-process XCL_THREAD_DUMP_AT dumper is not usable for this, because it stops unwinding at the title's frames and so misses title threads that are parked inside xcl.

    Every run below ends in the null write at +0x23cf683, about 25-40 s after presents stop.

    tree caches presents stop end title threads inside xcl at the stall
    47efa2e warm-ish (big CS seen for the first time) 222 s 265 s 4 × WaitOnAddress < pso_async::resolve_for_bind < real::cl_set_pipeline_state, waiting for compute PSOs whose driver build took 41-53 s
    47efa2e same, next batch of big CS first seen 274 s 303 s 4 × the same
    c160d86 cold 336 s 363 s 5 × resolve_for_bind: 2 run the build themselves and wait for DXC (compile_cached < console_to_dxil_for < translated_compute_pso_once < build_compute), and 3 wait for those 2
    c160d86 + XCL_HEAP_WINDOWS=1 cold 288 s 317 s 4 × resolve_for_bind
    c160d86 warm (run A) 384 s 421 s none
    c160d86 warm (run B) 308 s 335 s none
    c160d86 warm (run C) 220 s 248 s none
    c160d86 warm (run D) 230 s 257 s none

    In the four warm runs, at the stall, the title's job threads sit in WaitForSingleObjectEx on their own auto-reset events, which are unsignaled and unnamed. One title thread is running title code. xcl's PSO and DXC workers keep building pipelines nobody is waiting for. xcl-sync-watchdog never logs "did not complete within 5000 ms".

    The warmer the caches, the earlier the end comes: 421 → 335 → 248 → 257 s. That matches zeeboguy's warm runs above and the opening post of #675 (196 s warm against 487 s cold).

    My reading: a bind parked in resolve_for_bind can hold the title at the stall point when pipelines are cold. That was the case on 47efa2e; 25c6f7e and #680 shorten it, and on c160d86 it moves to DXC. But it is not needed for the stall: with warm caches the stall happens with nothing parked in xcl. Pipeline building seems to delay reaching the stall point, not cause it.

    Like Milanesa-chan, I also see acphal: audio processor command 0x5 / 0x7 first seen 2.6-4 s before presents stop, in 7 runs out of 8.

    Not tested: AMD; XCL_PSO_WAIT_MS on warm caches; #1428.

    AI use
    Claude (claude-opus-5-5, through Hermes) ran the title runs and debugger sessions on the hardware above over SSH, read the dumps, logs and source, and drafted this comment.

  22. spicbully-star commented on Nov 25, 2026

    @spicbully-star

    Confirming on AMD RDNA4 (RX 9070 XT 16 GB, Windows 10, Agility SDK 1.620), with the same retail title.

    • Without a fix: the copy_from memcpy AV in hle/xg.rs happens every time at the end of loading.
    • With a local patch that does the same as XG: fix CopyFromSubresource 7-argument ABI and guard destination span #684, the crash is gone. The patch accepts the shifted argument layout (the source pointer in a6, then a7/a8) when a6 can't be a row pitch, and checks the source and the whole destination before copying anything (all-or-nothing, no partial row copies).
    • Verified on 68a284a and on 6d12f58 (current main). In 15+ runs since, there was no AV in copy_from.
    • The later null write at +0x23cf683 (the title's watchdog) only showed up while the title's threads were held more than about 30 s waiting for pipelines. With XCL_PSO_WAIT_MS=15000 it no longer fires. That part is the cold-PSO stall tracked in [OFFICIAL] Swarm: cold PSO compilation to first playable frame #2088.

    So #684 would fix the first half of this issue on AMD too.

  23. b3IKK commented on Nov 26, 2026

    @b3IKK
    Contributor

    An RTX 5080 data point for the copy_from fix: with #1435 (14c8a2d) on the 1 GiB-heap stack, the VCRUNTIME AV is gone (it ended runs at 50–551 s without the fix). The 600 s run then presented to 495.4 s and ended in the title's own int3 at game_scarlett_master.exe+0x63966f, with no XCL exception and no device removal. Details in the #1435 test report.

    AI use: OpenCode, Claude Fable 5.2 ran the comparison and wrote this.

  24. b3IKK commented on Nov 26, 2026

    @b3IKK
    Contributor

    For the record on an RTX 5080: with #684 (e56dbc3, the 7-argument ABI) on the 1 GiB-heap stack, the VCRUNTIME copy_from AV and the title null write are gone; the run presented to 579.0 s and ended only in the device removal at 578.8 s. #1435 (per-call detection) also removed the AV in one run but not in the next, and the title null write remained. The 2 GiB profile with #684 is running now.

    AI use: OpenCode, Claude Fable 5.2 ran the comparison and wrote this.

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