Skip to content

Retail title 1.0.2.1 on RTX 3060 12 GB: world loading never presents, commit 36 GB, local video memory 12.9 GB, then 0xc0000005 in VCRUNTIME140 (memcpy) #646

Backlog

Description

@chazi123

Game and package version

The retail title

What happens

Game and package version

Retail title, <package id> 1.0.2.1, unpacked (Xbox build), on XCL via XCL_DATA_ROOT.

What happens

Three runs on the same machine. The title reaches its language screen (30 FPS) and the loading art renders in full colour, then during world loading it stops presenting and the process commit and local video memory keep growing until it crashes in a CRT memcpy:

run title_memory_mb extra setting peak commit peak local VRAM end
1 8192 local view-target page budget 3000 MB 35.4 GB 11.6 GB 234 s, 0xc0000005
2 4096 – 36.6 GB 12.9 GB 251 s, same stack
3 8192 XCL_COMPUTE_FALLBACK_KB=768 (local) 36.7 GB 12.9 GB 268 s, same stack

The three crashes have the same stack, so they are not caused by the local patches:

unhandled exception 0xc0000005 in VCRUNTIME140.dll+0x1dcf3 (write at address 0x8211b86c0)
rax=0x8211b86a0 rbx=0x40000 rcx=0x8211b86c0 rdx=0x1a03456b890 rsi=0x8211b86a0 rdi=0x800
rbp=0x7f9280f950 r8=0x7e0 r9=0xffffffffffffffe0 r10=0x7ffe801d0000 r11=0x7ffe801edd99
r12=0xe78d9000 r13=0x1a03456b070 r14=0x800 r15=0x7f rsp=0x7f9280f8f8 (vtable xcl.exe+0x256f38)
stack: xcl.exe+0x256f38, xcl.exe+0x1fd5e2, game_scarlett_master.exe+0x979f5b,
game_scarlett_master.exe+0x4fb0c2f, game_scarlett_master.exe+0x50bb3f0, game_scarlett_master.exe+0x979db0

Timeline of run 3 (from the memory: and activity (2 s) lines):

t commit local VRAM target pages presents / 2 s
14 s 9.8 GB 1.6 GB 274 MB 40
74 s 16.7 GB 7.3 GB 4.5 GB 60
134 s 26.4 GB 10.9 GB 7.3 GB 2
194 s 32.9 GB 12.1 GB 8.5 GB 1
224 s 36.7 GB 12.9 GB 9.1 GB 20

Free physical memory was 1.0 GB at that point. The target pages figure exceeds the title budget in every run (see below). A DirectStorage request fails with 0x89240030 / 0x89240009 during the load in all three runs, and about 100 s later the crash happens in memcpy, which is the shape described in #477.

What I tried locally (all in my own tree, nothing from a PR)

  • title_memory_mb does not cap target pages. Run 2 had title_memory_mb = 4096 and target pages still reached 9,521 MB. I would like to know what is supposed to cap this number.
  • A page budget for view-made targets does not free anything. I added XCL_TARGET_PAGES_MB to vram.rs/real.rs: past the budget the oldest targets made by resource_at get UpdateTileMappings with D3D12_TILE_RANGE_FLAG_NULL. It fires (the log shows view targets over 48000 pages: N unmapped, 19565 held) but local video memory does not move, which fits the module comment that a page exists once however many targets cover it.
  • Large compute programs are not the source here. With XCL_COMPUTE_FALLBACK_KB=768 the switch never fired: the whole run built only 15 compute PSO with the translated console CS, the largest 105,272 B. The background queue stayed at 58,732 queued, so the 0.9–1.3 MB compute programs of Video memory jumps 5–7 GB in two seconds when a retail title starts its world – not XCL's resources; it coincides with the first wave of world compute pipelines #560 never got built on this card either.
  • Environment: 32 GB fixed page file on an SSD next to 2 GB on the system drive (commit limit 65.8 GB), XCL_DXC_THREADS=4, TdrDelay=60, shader cache on another SSD.

Environment

CPU Intel Xeon W-1250 (6C / 12T)
GPU NVIDIA GeForce RTX 3060 Laptop, 12,288 MiB, driver 617.14
OS Windows 10 22H2 (19045)
RAM 32 GB + 32 GB page file
DXC 1.8.2502.11 (Windows SDK 10.0.26100)
Agility D3D12Core 1.620 (bundled)
XCL main a6f5f7a + #486 + #516 + #451 (files pulled individually; git fetch cannot reach github.com:443 here)
Title <package id> 1.0.2.1, unpacked

Questions

  1. Is title_memory_mb meant to cap target pages? If not, is there any supported knob that does?
  2. Is this crash the 0xc0000005 in ucrtbase.dll+0x171eb #477 "failed DirectStorage request leaves a permanent hole, the title copies it later" bug? The stack is a memcpy in both cases; here it is a write, there a read.
  3. Is there a supported way to run on a 12 GB card at this stage (smaller coherent window, smaller sparse pool, anything), or is 12 GB simply below what world loading needs until D3D12.X: scope resource_at by device and clean up on release (#248) #292 lands?

Logs attached: report.json, and a 335-line extract of xcl.log (environment, memory/activity curve, DirectStorage failures, the crash). The full xcl.log (2.5 MB) is available on request.

AI assistance: an AI assistant (Doubao) ran the builds, collected the numbers from my logs and wrote this report; I reviewed it.

XCL version

a6f5f7a (main) + the files of #486, #516 and #451 pulled individually from the API (git fetch cannot reach github.com:443 here)

GPU and driver version

NVIDIA GeForce RTX 3060 Laptop GPU, 12288 MiB, driver 617.14 (nvidia-smi) — running in 32-lane wave split mode

Windows version

Windows 10 22H2 (build 19045, Professional for Workstations); D3D12 Agility SDK 1.620.2.0.20261106.5 (D3D12Core.dll, 4,874,024 bytes) sits next to xcl.exe in \xcl-target-new\release\D3D12

report.json and xcl.log

report.json
xcl_完整.log
xcl_摘录.log

Console output

XCL 0.1.0 – starting '<package id>'
  exe:   <game folder>\game_scarlett_master.exe
  data:  <game folder>\_work\xcldata14\<package id>
  MicrosoftGame.Config: title memory Advanced, PLS 2048 MB, TitleId 7952987A
  console: imports d3d12_xs.dll
  GPU: NVIDIA GeForce RTX 3060 (12115 MiB VRAM)
  NOTE: waves of 32–32 lanes: the console's 64-lane programs run as two 32-lane halves (slower; vertex / pixel shaders that read lanes 32–63 can differ)
  DXC 1.8.2502.11 (23992152): C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64
  WARNING: no System32\xgameruntime.dll: dialogs, text entry, game invites and game streaming are missing (XCL's own task queues, async and networking are used)
           → install Gaming Services (Microsoft Store)

Game exited with code 0xc0000005 (3221225477)
Missing on this PC (see the start of the run):
  WARNING: no System32\xgameruntime.dll: dialogs, text entry, game invites and game streaming are missing (XCL's own task queues, async and networking are used)
           → install Gaming Services (Microsoft Store)
CRASH: unhandled exception 0xc0000005 in VCRUNTIME140.dll+0x1dcf3 (write at address 0xc44bdd020) rax=0xc44bdd010 rbx=0x40000 rcx=0xc44bdd020 rsi=0xc44bdd010 rdi=0x800 rbp=0x633cffa00 r8=0x7f0 r9=0xfffffffffffffff0 r14=0x1800 r15=0x7d; on the stack: xcl.exe+0x256f38, xcl.exe+0x1fd5e2, game_scarlett_master.exe+0x979f5b, game_scarlett_master.exe+0x4fb0c2f, game_scarlett_master.exe+0x50bb3f0, game_scarlett_master.exe+0x979db0
Imports: 1186 (game-dll:amd_fidelityfx_loader_xbox.dll: 4, game-dll:bink2scarlett.dll: 23, game-dll:libhttpclient.gdk.dll: 38, game-dll:msvcp140.dll: 157, game-dll:vcruntime140.dll: 82, game-dll:vcruntime140_1.dll: 4, game-dll:xboxbvhbuilder.dll: 7, hle-cross:kernelx.dll: 14, hle:acphal.dll: 19, hle:d3d12_xs.dll: 4, hle:gameinput.dll: 1, hle:kernelx.dll: 56, hle:minuserx.dll: 2, hle:xaudio2_9.dll: 1, hle:xcl-netoff.dll: 6, hle:xcrdapi.dll: 1, hle:xg_xs.dll: 2, stub: 1, system: 764)
Unimplemented functions called (8):
      3940×  d3d12_xs.dll!ID3D12CommandAllocator::#9 (not on PC)   (first call: game_scarlett_master.exe+0x188501)
      3871×  d3d12_xs.dll!ID3D12GraphicsCommandList12::#126 (not on PC)   (first call: game_scarlett_master.exe+0x3263e)
      3871×  d3d12_xs.dll!ID3D12GraphicsCommandList12::#142 (not on PC)   (first call: game_scarlett_master.exe+0x329e9)
      3871×  d3d12_xs.dll!ID3D12GraphicsCommandList12::#75 (console extension)   (first call: game_scarlett_master.exe+0x32820)
       309×  d3d12_xs.dll!ID3D12CommandQueue::#31 (newer layout)   (first call: 0x0)
         8×  d3d12_xs.dll!ID3D12GraphicsCommandList12::#131 (not on PC)   (first call: game_scarlett_master.exe+0x2478bc5)
         5×  d3d12_xs.dll!ID3D12GraphicsCommandList12::#132 (not on PC)   (first call: game_scarlett_master.exe+0x2478ba4)
         2×  d3d12_xs.dll!ID3D12GraphicsCommandList12::#101 (not on PC)   (first call: game_scarlett_master.exe+0x50a6657)
Report: <game folder>\_work\xcldata14\<package id>\logs\report.json
Log:    <game folder>\_work\xcldata14\<package id>\logs\xcl.log

Activity

  1. added
    bug
    on Nov 24, 2026
  2. MonkeyPython commented on Nov 24, 2026

    @MonkeyPython

    12 GB data point from an RTX 3080 Ti (same VRAM class as this issue): on this title, 12 GB of VRAM is not the blocker — system RAM and the #232 null write are.

    Setup: Windows 11 Pro 26300, Ryzen 7 7800X3D, 32 GB system RAM, RTX 3080 Ti 12 GB (driver 621.01), GTA VI Series 1.0.2.1, 3840×2160, XCL_NETWORK=0 + firewall, scripted menu walk into loading. Measured at main 508a0c7 (15 DXC threads) and with XCL_DXC_THREADS=4, release builds.

    What the logs show:

    • Video memory: coherent 3998/4095 MB, sparse 7445 MB — the sparse 7445 MB fits in 12 GB. Zero 0x8007000e, zero refused CreateHeap/CreatePlacedResourceX, zero no video memory lines across all runs.
    • System memory is where it blows up: xcl private commit 14.8 GB at t=122 s → 39.5 GB at t=274 s (39.9 GB with 4 threads — the growth is thread-count-independent); free physical RAM 10.3 → 0.09 GB; the window hits 0.0 FPS while 58646 pipelines queued, 2 done.
    • Every run ends at ~266–298 s in the Retail title: null write at +0x2215c35 (#159) still hits on NVIDIA RTX 4070 Ti, with and without XCL_NETWORK=0 #232 null write (game_scarlett_master.exe+0x23cf683), on both 621.01 and 621.24 — not a memory refusal.

    So on a 12 GB card with 32 GB system RAM the title reaches loading and dies on #232 / system-RAM exhaustion (#542), not on VRAM. A 12 GB card with less system RAM would likely hit the system-RAM wall sooner. Whether title_memory_mb should cap target pages is a code question I can't answer; the measurements above are what this host shows.

    Not tested: 12 GB cards with <32 GB system RAM, other titles, the title_memory_mb knob itself.

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

  3. changed the title [-]GTA VI 1.0.2.1 (retail) on RTX 3060 12 GB: world loading never presents, commit 36 GB, local video memory 12.9 GB, then 0xc0000005 in VCRUNTIME140 (memcpy)[/-] [+]Retail title 1.0.2.1 on RTX 3060 12 GB: world loading never presents, commit 36 GB, local video memory 12.9 GB, then 0xc0000005 in VCRUNTIME140 (memcpy)[/+] on Nov 24, 2026
  4. OussamaToumirt commented on Nov 24, 2026

    @OussamaToumirt

    Same crash on AMD with an 8 GB card: same faulting instruction and the same title frames, in three runs.

    Setup

    • AMD Radeon RX 6600 LE 8 GB (RDNA2, 64-lane waves), driver 32.0.21045.29003; Ryzen 5 5600X; 32 GB RAM; Windows 10 Pro 22H2 (19045).
    • Page file 48 GB fixed on a second drive plus system-managed on C: (commit limit 95.9 GB), so the 4095 MB coherent window is active in every run below.
    • Agility D3D12Core 1.618; DXC 1.9.2607 / dxil 1.9.2602; rustc 1.100.0, release build.
    • XCL_NETWORK=0, XCL_ACTIVITY=1; device_type anaconda. In the game's settings.xml (PLS): fsrQuality 3, rtDynamicShadows false.
    • Not plain main. Local changes on top: an XCL_FPS frame-clock override (unset in these runs), and title_textures::read_committed copying through ReadProcessMemory instead of copy_nonoverlapping. That second change was for an earlier crash: a memcpy in read_committed on the title's submit thread, right after the EULA. It changes only how texture bytes are read.

    Runs

    run build title_memory_mb other crash at peak commit peak local VRAM target pages
    A 9ce2070 + local 0 (13824) – 723 s 36.4 GB 12.6 GB 8.9 GB
    B dd2ae9a + local 8192 texLodScale_Global 2, lodScale 0.75 424 s 23.7 GB 11.9 GB 8.0 GB
    C dd2ae9a + local + #531 + #532 8192 as B 415 s 25.5 GB 12.6 GB 8.7 GB

    All three have the same crash:

    unhandled exception 0xc0000005 in VCRUNTIME140.dll+0x1dcf3 (write at address 0x8c104e780)
    rbx=0x800 rdi=0x1800 r13=0x40000 r14=0x1000
    on the stack: xcl.exe+…, game_scarlett_master.exe+0x979f5b, +0x4fb0c2f, +0x50bb3f0, +0x979db0, +0x56e1962
    

    The write addresses were 0x827d35120 (A), 0x85bd2c7e0 (B) and 0x8c104e780 (C). All three lie above the UMA windows, which here are 0x400000000 to 0x800000000.

    Run C timeline (memory: lines; menus walked with XCL_PRESS_A_AT=70,80,90,165,180,195,210,225)

    t commit local VRAM non-local target pages
    159 s (EULA screen) 17.1 GB 7.5 GB 4.8 GB 4.6 GB
    221 s (world load starts) 18.0 GB 7.9 GB 4.8 GB 4.7 GB
    313 s 22.4 GB 10.9 GB 4.8 GB 7.1 GB
    405–413 s 25.5 GB 12.6 GB 4.8 GB 8.7 GB

    The 313 s line is the big load: 0 presents and 1,183 DirectStorage requests per 2 s. Frames came back after it (12–14 fps). Over the whole run there were 9,245 presents and 69,491 DirectStorage requests (4.0 GB), 1,192 of them failed. BCPack refusals: BC1 789, BC5 108, BC7 126, BC6H 1. The log shows 40 MS in the AS slot – refused.

    Observations

    Not tested

    • Plain main without the local read_committed change, through world load.
    • XCL_DXC_THREADS lower than the default.
    • Any GPU other than this one.

    AI use: Claude Code (Claude Opus 5.5) ran the builds and the game, read the logs and wrote this report. The runs are from the owner's machine.


    Update: run D on current main 930e8b4, which has the BCPack unpacker (8cad517), #532, f1e2113 and 27c3571. Same machine, same settings, title_memory_mb back to 0 (13824). The only local changes left are the XCL_FPS override (unset) and title_bytes always going through read_committed, never the in-place borrow. This was not a plain main run.

    The crash comes later but it is the same one: 568 s (against 415 to 723 s before), VCRUNTIME140.dll+0x1dcf3, write at 0x80883f560, with the same title frames (+0x979f5b, +0x4fb0c2f, +0x50bb3f0, +0x979db0, +0x56e1962).

    t commit local VRAM target pages run C at the same t (VRAM / targets)
    222 s (world load starts) 18.0 GB 7.9 GB 4.7 GB 7.9 / 4.7 GB
    312 s 19.7 GB 8.7 GB 4.9 GB 10.9 / 7.1 GB
    404 s 21.6 GB 9.8 GB 6.2 GB 12.6 / 8.7 GB (crash at 415 s)
    436 s 23.8 GB 11.7 GB 7.9 GB –
    558–564 s 25.4 GB 12.6 GB 8.7 GB –
    • DirectStorage: 71,338 requests (3.8 GB), 0 failed. BCPack was 1,024 refusals in run C, so the unpacker covers everything this title asked for before the crash.
    • Target pages grow more slowly, but they end at the same ~8.7 GB, and the crash follows once they get there. Non-local video memory stays at 4.85 GB from the start of the world load to the crash.
    • ID3D12GraphicsCommandList10::#101 was not called at all in this run. So, here, the crash does not depend on Runtime: fix ANSI CP_ACP path encoding, HLE alias stubs/handles, forwarders, and stub creation race #101.
    • At 500 s there was a second big load: 1 present and 833 DirectStorage requests per 2 s. Frames came back to 5–10 fps before the crash.
    • Commit headroom at the crash was about 70 GB.

    Edited to add run D; runs A–C above are unchanged.

  5. sazuzin commented on Nov 24, 2026

    @sazuzin

    Reproduced the VCRUNTIME140.dll+0x1dcf3 write access violation on RTX 2060 SUPER 8 GB / Xeon E5-2640 v3. Follow-up: it also occurs with #705 applied alone to the same base.

    Setup

    • Hardware: Xeon E5-2640 v3, 32 GB RAM (32,669 MiB usable), RTX 2060 SUPER 8 GB, driver 610.88, 32-lane waves.
    • Software: Windows 10 22H2 (19045.6466), Rust 1.100.0 MSVC, DXC 1.9.2609.5, Agility SDK 1.619.4, Series package 1.0.2.1.
    • Baseline: unmodified f4ce27ceb6d1b0576d0c659b713b674778bf1968. Patched: that base plus only the patch from DirectStorage: a virtual destination is written without faulting #705 head d09f285014c6262b35f6b412d46eb4cfd70b7b2c, applied locally without committing. The patch IDs matched. Both were release builds (cargo build --locked --release -p xcl).

    Matched comparison

    The two comparison runs started from independent copies of the same title settings, profile and shader cache. Both used XCL_NETWORK=0, XCL_ACTIVITY=1, XCL_RUN_SECONDS=270, XCL_PRESS_A_AT=80 and XCL_FRAME_DUMP=180. PSO preload stayed enabled. The 270 s timer was not reached in either run.

    Run Fault at Presents Process commit before fault (MB) Target pages before fault (MB) BCPack refusals
    Earlier baseline, reported initially 206.962 s 3,526 27,508 9,641 2,384
    Repeated baseline 182.493 s 3,558 27,394 9,664 2,482
    Baseline + #705 176.086 s 3,535 27,093 9,645 2,439

    The memory rows are the last activity samples before each fault (206.2 s, 182.3 s and 174.1 s). Both matched runs reached loading artwork after the account prompt. No gameplay was verified.

    Crash and memory observations

    • All three runs faulted on a write in VCRUNTIME140.dll+0x1dcf3 (0xC0000005), with title-side stack offsets +0x979f5b, +0x4fb0c2f, +0x50bb3f0, +0x979db0, +0x56e1962. Write addresses in the matched runs were 0x80b596d00 and 0x88a730020.
    • Last pre-fault system sample for the repeated baseline (180.6 s): 852 MiB physical RAM available, system commit 42,257 / 47,903 MiB. For DirectStorage: a virtual destination is written without faulting #705 (176.0 s): 1,269 MiB available, commit 42,813 / 47,895 MiB. RAM pressure was high while commit headroom remained.
    • BCPack refusals with DirectStorage: a virtual destination is written without faulting #705 were BC1 2,130 / BC5 108 / BC6H 2 / BC7 199. The baseline had BC1 2,169 / BC5 107 / BC6H 1 / BC7 205. These counts and the matching stacks are observations; the cause was not isolated.

    Tests on the patched build

    • DirectStorage test group: 14 passed, 0 failed, including a_destination_unmapped_under_the_worker_fails_the_request.
    • scripts/test.ps1 stopped after the library tests: 658 passed, 3 failed, 21 ignored. Two GPU tests were skipped internally for no wave64.
    • Failures were placed_title_textures_share_vram_and_preserve_pixels (cubemap page-reuse assertion), transitions_apply_when_their_list_is_submitted, and d32s8_targets_take_their_own_size_of_video_memory (the latter two reported a poisoned lock). Each passed when rerun individually in a fresh test process. Integration tests were not reached in this suite invocation.

    Not tested

    Whether #705 changes another failure path, preload disabled, repeated patched game runs, or the source of the full-suite failure. One matched pair was run; #705 alone did not remove this crash on this host.

    AI use: Initial report: OpenAI Codex (GPT-6). Follow-up comparison and test analysis: OpenAI Codex (GPT-6.1-sol). The reported runs were executed locally.

  6. lucaseddd commented on Nov 24, 2026

    @lucaseddd

    Another data point for the same retail 1.0.2.1 package on an RTX 3060, but with 6 GB VRAM, 32-lane waves, Windows 10 22H2 and a SATA HDD. This is a comparison across builds, not a reproduction of your world-loading memcpy crash.

    • XCL: local build of a6f5f7a74cc620c1f88a9e3669a633d10c3c8212. On this Win10 host, probing for app-local Agility inside the game host after VFS hook installation fell back to inbox D3D12; the shader root signatures were rejected. Calling gpu::agility::state() in the host immediately before the VFS hooks, with Microsoft Agility SDK 1.620.2 in D3D12 next to xcl.exe, made the SDK load and got translated draws running. 1,970 presents in a 100-second bounded run; sampled frames remained black. An empty non-UMA buffer view and refusals for mesh shaders in the AS slot were also reported.
    • Palmwave: 9aeb434ea43a984f6ac309843c3c5d8c6ba3b487 with XCL D3D12.X: a placement on title pages sweeps the idle ones, not every page #490 and D3D12.X: a full write-watch buffer goes on after its last page #347 adapted locally and the same Agility ordering. Both focused upstream tests passed on the integration. On this GPU the title presented 917 frames (all sampled frames black), then at ~46 s the device reported 0x887A0006 and the title stopped. This was before the language screen, so the run does not measure the benefit of those two patches during world streaming.
    • Cross-check: The same package and machine showed actual account/settings screens and then loading art at ~26–30 fps under VIctory. Its first screen took about 100 seconds on the HDD, so 30 presents/s on a black screen was not by itself a hang. It eventually hit its own D3D12 device hang in mesh work. Enabling a page file also resolved a separate Windows commit-limit failure in that runtime.

    All runs used separate writable data locations and an outbound firewall block; the XCL-derived runs also used XCL_NETWORK=0. I haven't confirmed a visible XCL menu or gameplay on this 6 GB card. The confirmed Agility load is the reproducible change that moved this particular XCL setup from rejected root signatures to translated draws.

  7. liloler commented on Nov 24, 2026

    @liloler

    Has anyone tried XCL on a Strix Halo machine yet? Thinking specifically of the Ryzen AI Max+ 395 with 128GB unified memory.

    With all this talk about memory pressure, running it on a beefy UMA setup might be a good way to see if it’s a pure hardware cap or just bad memory mapping/resource handling in XCL.

    Just thinking out loud though, haven't verified it myself!

  8. chazi123 commented on Nov 24, 2026

    @chazi123
    Author

    Another 12 GB data point (RTX 3060 Laptop, 32 GB RAM, Win10 19045) — and it is not a regression of today's main

    Machine: Xeon W-1250 (6C/12T), 32 GB RAM, RTX 3060 Laptop 12,288 MiB (driver 617.x / 621.x), Windows 10 19045, retail 1.0.2.1 (CYBERLEEK dump, ~150 GB on a WD1002FAEX mechanical HDD), page file 32 GB fixed on a separate SSD (commit limit 65.8 GB), device_type = "anaconda", title_memory_mb = 8192, 1280×720, XCL_DXC_THREADS = 4, XCL_NETWORK = 0, XCL_ACTIVITY = 1.

    Two builds, same xcl.toml values, driven by the same synthetic-keyboard script (language screen → loading):

    build what it is
    old local tree at a6f5f7a + our two Win10 patches, built 10:28
    new main snapshot 07:12Z (incl. #690, #866, #797, #795, #798, #792, #873), built locally, 0 errors

    1. The language screen is 30 FPS on both builds

    Three launches of the new build: 30.0 / 29.9 / 29.5 FPS; the old build the same. So the "0–4 FPS with the spinner in the corner" is the loading-art stage, not a menu-performance regression, and it does not come from today's PRs.

    2. A/B on the two most suspicious PRs made no difference at the menu

    XCL_SPLIT_MIDLIST_WAIT=0 (#797) and XCL_LATE_RELEASE=0 (#866): 30 / 29.5 FPS, identical to the default.

    3. Where it actually dies (identical on both builds)

    After the language selection, the loading art + spinner stage sits at 0.0–4.6 FPS, with one title thread at ~90% of one core, GPU at 210–570 MHz / 19–31% / 13 W (idle), activity (2 s): 1–6 presents, 21 dispatches, and process disk read ≈0 MB/s (so not I/O bound on our HDD). The stage prints ~572 [SHADER] cs … format xbox-native lines and creates ~40 command lists.

    4. Two different endings, one wall

    • 540 s run: memory: 37317 MB committed by the process; video memory 12958 MB local, 4892 MB non-local; target pages 9176 MB → memory allocation of 262144 bytes failed → Rust abort, 0xc0000409 / 0x80000003.
    • other runs: CRASH: unhandled exception 0xc0000005 in VCRUNTIME140.dll+0x1dcf3 (write at 0x84957c9a0, size 0x40000), xcl.exe+0x84b98 on the stack, then game_scarlett_master.exe+0x979f5b / +0x4fb0c2f / +0x50bb3f0 — the signature sazuzin and the others report.

    5. A local experiment — negative result, not a fix

    I added a write guard to xg::CopyFromSubresource: lazy::ensure(dst, span) followed by a VirtualQuery walk over the destination span, skipping the copy and logging if a page is not committed+writable (the "DirectStorage failure leaves a hole, the title memcpy's into it" theory from #477). Result:

    • the xg: CopyFromSubresource … not writable warning never fired, so the destination span was writable in every call;
    • the crash moved: from the VCRUNTIME140+0x1dcf3 AV to 0x80000003 with rsi = 0x887a0005 (DXGI_ERROR_DEVICE_REMOVED) at game_scarlett_master.exe+0x2474606;
    • the System event log shows no TDR (4101/13/14) in that window.

    So on this box the AV is not "memcpy into an unbacked page of xg"; the run that survives a bit longer ends in device removal instead. I can post the patch if it is useful as a diagnostic.

    6. DirectStorage

    One run reported DirectStorage 869 requests, 118 MB, 8 failed; in another run the DirectStorage: a request failed (hr) warning never appeared even though the run still ended in the #477 signature. If the DS side is where you want data, tell me which counters or log lines to capture and I will.

    7. Win10 needs the Agility ordering lucaseddd describes

    Without it we got Unsupported bit-flag set from D3D12SerializeVersionedRootSignature. Our local patch: agility::own_dirs() (XCL_D3D12_DIR / LOCALAPPDATA candidates) + own_folder per directory in host.rs before the VFS hooks, and on serialization failure re-serialize the root signature with the heap-direct bits cleared and patch the RTS0 blob flags. Worth folding into main if Win10 stays supported.

    8. Question

    Would an XCL_LIST_TRACE capture of the loading stage help #795? The stage looks like the title waits on something that never arrives — GPU idle, no disk traffic, one thread pegged — and #795 (cross-queue Wait64 → GPU fence bridging) was validated on Linux/Proton only, with the lost-wakeup concern raised in review. Happy to run it and post a filtered trace if you tell me what to keep.

    One practical note: I stopped repeating full runs, because each one pushes commit to ~37 GB and can take the whole 32 GB machine down; the numbers above are from runs where nothing else was loaded.

  9. lucaseddd commented on Nov 24, 2026

    @lucaseddd

    On the XCL_LIST_TRACE question, the useful comparison for #795 would be the queue and fence identity, the value requested by the first outstanding wait, and the last signal value on its producer queue. An unmatched wait and a signaled fence whose waiter never resumes point to different problems. If your existing capture has those fields, a short summary would help without another high-commit run.

  10. chazi123 commented on Nov 24, 2026

    @chazi123
    Author

    Retail 1.0.2.1 on RTX 3060 Laptop 12 GB / Win10 19045: the loading wall is a GPU counter that never lands, not VRAM capacity

    Follow-up to my earlier comment. New evidence from instrumented local builds of main + #759 (pipeline journal) + the #539 CopyFromSubresource 7-arg ABI fix + #208/#273 (BCPack BC1). Everything below is from my own runs on the retail dump; happy to share full logs / XCL_LIST_TRACE.

    1. The ABI fix moved the crash, it did not remove the wall

    With xg::CopyFromSubresource corrected to the 7-arg console ABI (the extra u32 before src; our tree had the 6-arg PC form, so src was read as row_pitch), the earlier VCRUNTIME140.dll+0x1dcf3 write-overrun disappears. The crash migrates to the same place everyone else reports:

    unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0)
    Breakpad: GPU Loc Sig
    memory: ~28,600 MB committed; video ~13,969 MB local / 4,903 MB non-local; target pages ~9,707 MB
    

    So the VCRUNTIME death was our own ABI bug; the +0x23cf683 / GPU Loc Sig abort is upstream's, and it is not fixed by BCPack (#208+#273 applied clean, three runs: two still +0x23cf683, one early nvwgf2umx+0x76a457 read-at-0x3c that never reproduced).

    2. The smoking gun: a GPU-written counter the CPU never sees

    Immediately before every +0x23cf683 abort, the log repeats this, with the address stepping by 0x10 (a counter / fence array):

    D3D12.X: Wait64BitValueX timed out after 2000 ms at 0x7041802e8 (op 7, want 0x60c, mask 0xffffffffffffffff; memory holds Some(0))
    ... 0x7041802f8, 0x704180308, 0x704180318, 0x704180328, 0x704180338, 0x704180348 ...
    

    and a burst of compute work in the same 2 s window (activity: 0 presents, 1 submits, 0 draws, 3325 dispatches). The title is waiting for a compute pass to raise a counter to 0x60c; the value stays 0; the title then proceeds on an empty / null table and writes through 0x0. This is the same family as VIctory #336 ("descriptors read out of slots that hold something else, because a table could not be made") and #293 / #294 (root-UAV stores whose address the tracer lost, root views with no extent).

    3. It is not a sparse-window write-back gap (tested)

    I first suspected the GPU→CPU readback: list_x.rs only records sparse_writes for explicit memory ops (Write32/64, Fill*, CopyMemoryToMemoryX, timestamps), not for translated compute-shader UAV stores, so readback_after_execute would never copy a shader-written counter back. I added a coarse sparse::readback_now(va, width) inside PendingWait::wait_until_satisfied for sparse-window addresses and re-ran.

    Result: the readback path never fired and the timeouts / crash were unchanged. Correlating the waited VA against the UMA windows shows 0x704180xxx / 0x70417ffxx is in the coherent / CPU-visible pool (window 3), not a sparse window. On coherent memory a GPU store is immediately CPU-visible, so "memory holds 0" means the compute shader never wrote that address at all, not a stale CPU view.

    A second probe logged every SetComputeRoot{CBV,SRV,UAV}View binding and correlated it with each timed-out wait: the waited counter address is never present among the compute root-descriptor bindings (recent compute root-descriptor binding None, while the actual root binds sit at unrelated addresses). So the store that should raise the counter reaches its target through a descriptor table / bindless index or a constant- / pointer-derived address, not a root view — exactly the class VIctory #293 calls "an address in an SGPR that is no root parameter / loaded from memory / passed as two root constants", and #336's "a table could not be made". XCL's translation is not resolving that address, the store is lost, the counter stays 0, and the title null-derefs at +0x23cf683. The fix direction is therefore table/constant-derived UAV address resolution (VIctory #294 / #710 / #336) or the flat address space of #407, not copy-back and not VRAM capacity.

    4. Why 16 GB cards die here too, and why copy-reduction PRs don't help

    The loading-stage profile on this 12 GB Laptop is one title thread at ~90% of a single core, GPU at 210–570 MHz, ~0 MB/s disk: CPU-bound preparation, not VRAM bandwidth. VIctory #407's in-game profiling measures the same shape (world frame 1,842 ms = 927 ms copy-in + 330 ms copy-back + 214 ms other prep; GPU only 233 ms; ~2.3 M page faults/frame), and shows that stacking the copy-reduction PRs (#322+#464+#393+#402) halves bytes copied but leaves frame time essentially unchanged (1,242–1,578 → 1,240–1,463 ms). That is consistent with #505's RTX 5060 Ti 16 GB dying at the same +0x23cf683: the wall is the two-address-space shadow model plus lost compute stores, not capacity. The zero-copy arena (#407, with public step-1 / opt-in forks) looks like the real direction; small copy optimisations are not.

    5. A local fix that removes the Wait64 wall (loading now renders and streams)

    Two defects combine to produce the stuck counter, and fixing both removes the wall on this machine:

    1. Wait ordering. execute_with_waits CPU-polled a list's Wait64BitValueX before submitting that same list, and KickoffX waited before ExecuteCommandLists. The signalling WriteBufferImmediate is usually earlier in the same list, so the poll always read the pre-write value (0) and timed out. Fix: submit through the waiting list first, then poll; in KickoffX, wait after execute + readback + CPU-write apply.
    2. Coherent-window write coherency. Even submitted first, a WriteBufferImmediate into the coherent window's OpenExistingHeapFromAddress imported heap is not guaranteed CPU-visible on NVIDIA (the import check only exercises CPU→GPU). Fix: for immediate writes targeting a committed/coherent window, also queue a CPU-side Write::Immediate with the known value, applied after the queue fence.

    Measured, same driver script and data root:

    • before: loading stage 0 presents, a Wait64 … memory holds Some(0) timeout every 2 s, crash at +0x23cf683 in 70–130 s;
    • ordering fix alone: unchanged (15 timeouts, same crash) — proving coherency is the second cause;
    • ordering + coherency: 0 Wait64 timeouts, loading stage now presents (8–14 per 2 s) and streams via DirectStorage (6,135 requests / 240 MB), survives to ~200 s.

    A later +0x23cf683 still occurs at the world transition (~200 s), but with no preceding Wait64 timeouts and video at 14,182 MB local (over the 12,288 MiB physical): that is a separate, later wall (world-stage memory / shaders), not the counter wall. I can share the patch (three small edits in list_x.rs) as a PR if useful; it is independent of the ABI fix and of BCPack.

    6. Offer

    I can provide: full xcl logs for the ABI-fixed and BCPack builds, the Wait64 timeout series with the dispatch burst, the sparse-readback negative result, and the root-descriptor correlation once it lands. If a maintainer wants the CopyFromSubresource ABI correction as a standalone patch (it is independent of the wall and removes a real write-overrun), I can open it as a PR.

    Environment: Win10 19045, Xeon W-1250 (6C/12T), 32 GB RAM, RTX 3060 Laptop 12,288 MiB, Agility SDK 1.620.2, retail GTA6.Xbox.v1.0.2.1.

  11. oeirughrepuiohg commented on Nov 24, 2026

    @oeirughrepuiohg

    @chazi123 a scoping datapoint for your defect (2), from Linux: under Wine + vkd3d-proton on NVIDIA (RTX 4070 Ti, 620.x), the waited counters in the coherent window do land; they are only late.

    So on this stack the CPU-visibility part may be specific to the Windows driver's handling of the OpenExistingHeapFromAddress heap; your defect (1) we cannot tell apart from here. Happy to run your patch under Wine once it is up.

    AI use: Claude Code, Claude Opus 5.5 read our logs and wrote this comment; the runs are ours.

  12. chazi123 commented on Nov 24, 2026

    @chazi123
    Author

    @lucaseddd re the #795 fields, from our existing capture (no new high-commit run needed):

    • First outstanding wait: Wait64BitValueX at 0x7041802e8 (counter array, step 0x10), op 7, want 0x60c, mask ~0; memory holds Some(0) for the full 2000 ms, repeating every ~2 s across the array during loading.
    • Producer: the signalling WriteBufferImmediate targets the same coherent UMA window (window 3, non-sparse) and is recorded in the SAME command list as the wait. Pre-fix, the CPU poll for that list's Wait ran before the list was submitted, so this is the "unmatched wait" class, not "signaled fence whose waiter never resumes": the producer had not been submitted yet at poll time.
    • Second, independent defect: even after ordering the submit before the wait, a WriteBufferImmediate into the OpenExistingHeapFromAddress-imported coherent heap does not become CPU-visible on NVIDIA; the CPU still reads 0. Queueing a CPU-side immediate write with the known value after the queue fence removes the timeouts (15+ -> 0).
    • Queue/fence identity: our current trace logs the wait VA/value, the root-descriptor binding and the UMA window index, but not fence handle/seq or the producer queue's last signaled value. Happy to add those fields if useful for the D3D12.X: bridge Wait64BitValueX to GPU fences with exact cycle breaking #795 cycle graph.

    Separately, applying #531 + #532 on top of the above fix removes the loading tile-churn wall: the present thread stops spending ~96% of its time in UpdateTileMappings; loading now shows real draws/dispatches (120 draws / 24 dispatches per 2 s), DirectStorage ~6.2k requests / 253 MB per 2 s, and audio decode. The crash then moves off the title's +0x23cf683 null write into nvwgf2umx.dll+0x7e1324 (read 0x8c), immediately after a BCPack BC1 "unknown history entry" E_DECOMPRESSION — so the next wall looks like BC1 history handling or parked-tile resource lifetime, not VRAM capacity. Full logs available.

  13. chazi123 commented on Nov 24, 2026

    @chazi123
    Author

    @chazi123 a scoping datapoint for your defect (2), from Linux: under Wine + vkd3d-proton on NVIDIA (RTX 4070 Ti, 620.x), the waited counters in the coherent window do land; they are only late.

    So on this stack the CPU-visibility part may be specific to the Windows driver's handling of the heap; your defect (1) we cannot tell apart from here. Happy to run your patch under Wine once it is up.OpenExistingHeapFromAddress

    AI use: Claude Code, Claude Opus 5.5 read our logs and wrote this comment; the runs are ours.

    @oeirughrepuiohg thank you — that Wine cross-check is exactly what we needed, and we would love a Wine run. Here is the patch (list_x.rs + bind.rs, ~90 lines; the fix is 3 edits, the rest is diagnostics):
    https://aka.doubaocdn.com/s/VpJ6z5JGTT
    Apply with: git apply xcl_wait64_fix.patch
    What it does: (1) execute_with_waits submits through the waiting list before CPU-polling its Wait; (2) KickoffX waits after execute + sparse readback + CPU-write apply; (3) write() also queues a CPU-side Write::Immediate with the known value for committed/coherent-window targets, applied after the queue fence. On our Win10 + RTX 3060 Laptop this takes Wait64 timeouts from 15+ to 0 and loading from 0 presents to presenting + DirectStorage streaming. Your holds = want-1..4 (never 0) suggests defect (2) is Windows-driver-specific, so a Wine run would confirm whether (1) alone suffices there. Thanks again for offering to run it.

  14. oeirughrepuiohg commented on Nov 24, 2026

    @oeirughrepuiohg

    @chazi123 thanks for the patch. Before running it: it does not apply to current main (here 9aec53d + open PRs), and the reason may matter for your defect (1).

    • The patch's context is the older execute_with_waits / wait_all(waits). On main, D3D12.X: bridge Wait64BitValueX to GPU fences with exact cycle breaking #795 (merged) replaced that with execute_with_waits_on(queue, …) → wait_all_on(queue, waits, list_writes) → try_gpu_wait: a monotonic 64-bit wait whose value is backed by a recorded Write64BitValue* is turned into a GPU-side queue.Wait and the submitter does not CPU-poll at all (that is why our timeouts read GPU queue.Wait … did not complete within 5000 ms). The CPU poll your fix (1) moves only remains on the FallbackCpu path there, and kickoff_x calls wait_all_on the same way.
    • So on main, (1) and (2) only matter for waits that fall back to the CPU (not 64-bit-monotonic, or no recorded write) - and your memory holds Some(0) counters may be exactly those, or may already be bridged on a newer base.
    • git apply -3 left 4 conflict regions in list_x.rs (the bridge, the write trace ring), so I did not want to hand-merge (1)/(2) into the bridge code and test my guess instead of your fix.

    If your tree predates #795, it may be worth re-running on current main first: if the timeouts are gone there, your (1) is already covered; if they remain, a rebased patch would show which path they take (the bridge logs GPU queue.Wait …, the CPU path Wait64BitValueX timed out …). I'll run a rebased version under Wine as soon as it is up.

    AI use: Claude Code, Claude Opus 5.5 read the patch against our tree and wrote this comment.

  15. upipibi commented on Nov 24, 2026

    @upipibi
    Contributor

    @chazi123 I checked your defect 1 ("the CPU poll for a list's Wait ran before that same list was submitted") against main 930e8b4's source. For a counter in a unified-memory window like yours (window 3), main should not poll a wait on a write made earlier in the same list:

    • wait_memory (list_x.rs) drops a Wait32/64BitValueX outright when the same list already wrote that address (has_prior_write; it has been there since 3dfbcfb). That covers Write32/64BitValueX and WriteBufferImmediate (write), fills, CopyMemoryToMemoryX and timestamps.
    • A wait recorded after any Write64BitValue* in the list splits the list (try_split_for_wait). execute_with_waits_on then submits the first segment and its signals before it waits for the second.

    So if your timed-out wait on 0x7041802e8 is in the same list as the write that raises it, your tree differs from main there. Which commit did you see it on? If the writer is a compute store, as your section 3 found, the wait is not the one at fault: XCL records nothing for shader stores.

    There is one path on main where your description does hold: a Write32/64BitValueX or a timestamp into the title's own memory, outside the windows. That goes to the CPU after the submit and was not recorded, so a wait on it later in the list was polled first and ran out its timeout. #1256 fixes that, with a unit test. It is probably not your case (your counter is in a window), so I have not tied it to the +0x23cf683 stop.

    AI-assisted (Claude Code).

  16. hyperland956-lgtm commented on Nov 24, 2026

    @hyperland956-lgtm

    A related data point from the XCL #534 thread is worth correlating with this report, but it should not be treated as the same root cause without tracing the allocations.

    A 7900 XTX run reported XCL private bytes rising to approximately 40 GB while the title advanced at about 30 FPS. The log's mirrored-title-texture count rose to 32,768 (kept in step with ...), while an earlier slower run only reached 512.

    A separate RTX 3080 Ti report in #646 reaches roughly 39.5 GB commit with 12 GB VRAM and 32 GB RAM, without CreateHeap/PlacedResource OOM before the title watchdog.

    This suggests that at least some observed growth may be host-side mirrored title-memory/texture bookkeeping that scales with streaming throughput, rather than simply a fixed VRAM budget or a single pathological PSO compile.

    Could the next diagnostic capture correlate, per resource/page:

    • Live mirror count and retained bytes.
    • Unique physical pages and alias/placement count.
    • CPU backing bytes.
    • Last GPU-use fence.
    • Retirement status and pending uploads.

    A bounded high-water metric would help distinguish an actual retention leak from legitimate streaming churn.

    Please keep the #1035 compute-preload/RADV memory pathology separate; its reports have a different trigger and memory signature.

    This is an observation request, not a proven root cause.

    (AI-assisted)

  17. chazi123 commented on Nov 24, 2026

    @chazi123
    Author

    @chazi123 I checked your defect 1 ("the CPU poll for a list's Wait ran before that same list was submitted") against main 930e8b4's source. For a counter in a unified-memory window like yours (window 3), main should not poll a wait on a write made earlier in the same list:

    • wait_memory (list_x.rs) drops a Wait32/64BitValueX outright when the same list already wrote that address (has_prior_write; it has been there since 3dfbcfb). That covers Write32/64BitValueX and WriteBufferImmediate (write), fills, CopyMemoryToMemoryX and timestamps.
    • A wait recorded after any Write64BitValue* in the list splits the list (try_split_for_wait). execute_with_waits_on then submits the first segment and its signals before it waits for the second.

    So if your timed-out wait on 0x7041802e8 is in the same list as the write that raises it, your tree differs from main there. Which commit did you see it on? If the writer is a compute store, as your section 3 found, the wait is not the one at fault: XCL records nothing for shader stores.

    There is one path on main where your description does hold: a Write32/64BitValueX or a timestamp into the title's own memory, outside the windows. That goes to the CPU after the submit and was not recorded, so a wait on it later in the list was polled first and ran out its timeout. #1256 fixes that, with a unit test. It is probably not your case (your counter is in a window), so I have not tied it to the +0x23cf683 stop.

    AI-assisted (Claude Code).

    @upipibi answered by rebase: our tree was #759 head 788e366 — it has
    has_prior_write (3dfbcfb) but no try_split_for_wait / execute_with_waits_on /
    #795 bridge, so a wait whose raising write sits later in the same list was
    CPU-polled before submit. We rebuilt on main 077ce40 (with #795) plus our
    Win10/ABI patches, #531+#532, BCPack and the coherent-write mirror, and re-ran:
    zero Wait64BitValueX CPU timeouts AND zero GPU queue.Wait timeouts, i.e. the
    bridge covers defect (1) on main. Caveat: on that main base our loading stalls
    earlier (0 presents / 0 submits) than on #759+#531+#532, so we keep the latter
    as our working config; the stall is separate from the counter wall. Rebased
    coherency-only patch against main-with-#795:
    https://aka.doubaocdn.com/s/LWcjVTOmpC
    Thanks for checking against 930e8b4 — your has_prior_write / split reading was
    exactly right.

  18. chazi123 commented on Nov 24, 2026

    @chazi123
    Author

    @chazi123 thanks for the patch. Before running it: it does not apply to current main (here 9aec53d + open PRs), and the reason may matter for your defect (1).

    • The patch's context is the older execute_with_waits / wait_all(waits). On main, D3D12.X: bridge Wait64BitValueX to GPU fences with exact cycle breaking #795 (merged) replaced that with execute_with_waits_on(queue, …) → wait_all_on(queue, waits, list_writes) → try_gpu_wait: a monotonic 64-bit wait whose value is backed by a recorded Write64BitValue* is turned into a GPU-side queue.Wait and the submitter does not CPU-poll at all (that is why our timeouts read GPU queue.Wait … did not complete within 5000 ms). The CPU poll your fix (1) moves only remains on the FallbackCpu path there, and kickoff_x calls wait_all_on the same way.
    • So on main, (1) and (2) only matter for waits that fall back to the CPU (not 64-bit-monotonic, or no recorded write) - and your memory holds Some(0) counters may be exactly those, or may already be bridged on a newer base.
    • git apply -3 left 4 conflict regions in list_x.rs (the bridge, the write trace ring), so I did not want to hand-merge (1)/(2) into the bridge code and test my guess instead of your fix.

    If your tree predates #795, it may be worth re-running on current main first: if the timeouts are gone there, your (1) is already covered; if they remain, a rebased patch would show which path they take (the bridge logs GPU queue.Wait …, the CPU path Wait64BitValueX timed out …). I'll run a rebased version under Wine as soon as it is up.

    AI use: Claude Code, Claude Opus 5.5 read the patch against our tree and wrote this comment.

    @oeirughrepuiohg done as you suggested: we rebased and re-ran on main 077ce40
    (with #795). Result: zero Wait64BitValueX CPU timeouts and zero GPU queue.Wait
    timeouts — the bridge covers defect (1); our Some(0) counters were the pre-#795
    CPU path. Here is the rebased coherency-only patch (mirrors WriteBufferImmediate
    into committed/coherent windows on the CPU after the queue fence), which applies
    to main-with-#795: https://aka.doubaocdn.com/s/LWcjVTOmpC
    A Wine run of exactly this would tell us whether defect (2) is live on your
    stack or already masked by the bridge. Note our main-base run stalls earlier
    (0 presents) than our #759+#531+#532 config, so please report presents/counts
    too, not just timeouts. Thanks again for offering.

  19. chazi123 commented on Nov 24, 2026

    @chazi123
    Author

    A related data point from the XCL #534 thread is worth correlating with this report, but it should not be treated as the same root cause without tracing the allocations.

    A 7900 XTX run reported XCL private bytes rising to approximately 40 GB while the title advanced at about 30 FPS. The log's mirrored-title-texture count rose to 32,768 (kept in step with ...), while an earlier slower run only reached 512.

    A separate RTX 3080 Ti report in #646 reaches roughly 39.5 GB commit with 12 GB VRAM and 32 GB RAM, without CreateHeap/PlacedResource OOM before the title watchdog.

    This suggests that at least some observed growth may be host-side mirrored title-memory/texture bookkeeping that scales with streaming throughput, rather than simply a fixed VRAM budget or a single pathological PSO compile.

    Could the next diagnostic capture correlate, per resource/page:

    • Live mirror count and retained bytes.
    • Unique physical pages and alias/placement count.
    • CPU backing bytes.
    • Last GPU-use fence.
    • Retirement status and pending uploads.

    A bounded high-water metric would help distinguish an actual retention leak from legitimate streaming churn.

    Please keep the #1035 compute-preload/RADV memory pathology separate; its reports have a different trigger and memory signature.

    This is an observation request, not a proven root cause.

    (AI-assisted)

    @hyperland956-lgtm agreed this is an observation, not a root cause, and we will
    keep #1035 separate. Our per-run counters (committed / video local+non-local /
    target pages / sparse pools mapped / arenas) already show growth tracking
    streaming throughput rather than a fixed budget. We can add the per-resource
    high-water set you list (live mirror count + retained bytes, unique physical
    pages + alias count, CPU backing bytes, last GPU-use fence, retirement / pending
    uploads) as a bounded diagnostic and post a capture; a retained-vs-churn split
    is exactly what we need to tell a leak from legitimate streaming. Thanks for
    the concrete metric list.

  20. oeirughrepuiohg commented on Nov 24, 2026

    @oeirughrepuiohg

    @chazi123 Wine run of exactly your rebased coherency-only patch, as asked. On this stack it does not change the stop.

    That matches the earlier datapoint that the coherent-window counters do land on vkd3d-proton: your (2) looks Windows-driver-specific, and the stop here is the one in #505 (it only appears with skipped binds).

    AI use: Claude Code, Claude Opus 5.5 applied the patch, ran both runs and wrote this comment.

  21. Shaydera commented on Nov 24, 2026

    @Shaydera

    @chazi123's two Wait64 fixes from the comment above, reproduced on NVIDIA wave32 (a newer retail game, 240 s per run).

    Setup: RTX 5090, driver 621.24, Ryzen 9 9950X3D, 64 GB, Windows 11 26300, release build. XCL_PSO_WAIT_MS=50, same warm DXIL cache for both runs, 4095 MB coherent window in both runs, input pressed in both runs. scripts/smoke.ps1 -Seconds 240.
    I rebuilt the patch from the description (no code was posted), so it may differ from yours:

    • execute_with_waits_on submits through the waiting list, then waits; kickoff_x waits after execute, signal_write64_pairs, sparse readback and cpu_writes::after.
    • write: a WriteBufferImmediate into the committed (coherent) window also queues a cpu_writes::Write::Immediate with the same value.
    main b8b1f49 b8b1f49 + both fixes
    Wait64BitValueX timed out 0 0
    GPU waits released by the watchdog after 5 s 9 (first at 86 s) 143 (first at 107 s)
    sparse: the queue has not reached fence value 5 49
    presents per 2 s ~60 until 38 s, 0 from 60 s ~60 until 38 s, 0 from 60 s (0–1 to the end)
    crash at the title's +0x23cf683 yes, at 111.5 s no, ran to 240 s

    What this shows on this card:

    • On current main the CPU-side Wait64BitValueX timeouts are already gone (0 without the patch; an earlier run on 47efa2e, with only a 512 MB coherent window, had 3).
    • The patch removes the +0x23cf683 stop, but not the hang: presents stop at ~60 s in both runs. With the patch the title keeps running on watchdog releases; a waiting queue stays one value behind (main: waiter at >= 0x476, completed 0x475; sparse queue one fence behind).
    • So on NVIDIA the wall at ~60 s is not the Wait64 ordering or the coherent-window visibility; the producer on the other queue does not finish.

    Follow-up: with XCL_PSO_WAIT_MS unset there are no skipped draws or dispatches and no stalled waits, and presents still stop at ~58 s while title threads sit in first-time compute PSO driver compiles. Numbers: #1269 (comment)

    Not tested: AMD, other titles, the ordering fix alone, newer main than b8b1f49.
    Test run and this report: Claude Code (Claude Opus 5.5); I checked the counts in the logs.

  22. lucaseddd commented on Nov 24, 2026

    @lucaseddd

    Thanks for the Wine and Windows comparisons. For any follow-up, please keep the coherency-only case separate from the two Wait64 changes. Matching the first outstanding wait to its producer signal is more informative here than counting the extra presents before the stop.

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

    @chazi123
    Author

    Cross-post from #505: on current main (6020a33) + #488 + #929 + XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512 XCL_HEAP_WINDOWS=1 XCL_DIRECT_DXIL=1, the ~49 GB commit OOM we reported on 17216a14 is gone (commit ~16 GB at menu, 0 Wait64/queue.Wait/cycle timeouts), and the world begins streaming after A. Remaining stop on our RTX 3060 Laptop 12 GB is VRAM oversubscription (14.5 GB local) plus cold CS builds; details and the static proof that +0x23cf683 is the title's 30 s "GPU Loc Sig" watchdog are in the #505 comment. Keeping this coherency/heap case separate from the two Wait64 changes, per @lucaseddd.

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

    buggoal:world-load

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions