Repository navigation
Description
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_mbdoes not captarget pages. Run 2 hadtitle_memory_mb = 4096andtarget pagesstill 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_MBtovram.rs/real.rs: past the budget the oldest targets made byresource_atgetUpdateTileMappingswithD3D12_TILE_RANGE_FLAG_NULL. It fires (the log showsview 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=768the switch never fired: the whole run built only 15compute 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
- Is
title_memory_mbmeant to captarget pages? If not, is there any supported knob that does? - 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
memcpyin both cases; here it is a write, there a read. - 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
MonkeyPython commentedon Nov 24, 2026
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 main508a0c7(15 DXC threads) and withXCL_DXC_THREADS=4, release builds.What the logs show:
coherent 3998/4095 MB, sparse 7445 MB— the sparse 7445 MB fits in 12 GB. Zero0x8007000e, zero refusedCreateHeap/CreatePlacedResourceX, zerono video memorylines across all runs.58646 pipelines queued, 2 done.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_mbshould 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_mbknob 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.
[-]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)[/+]OussamaToumirt commentedon Nov 24, 2026
Same crash on AMD with an 8 GB card: same faulting instruction and the same title frames, in three runs.
Setup
XCL_NETWORK=0,XCL_ACTIVITY=1; device_typeanaconda. In the game'ssettings.xml(PLS):fsrQuality3,rtDynamicShadowsfalse.main. Local changes on top: anXCL_FPSframe-clock override (unset in these runs), andtitle_textures::read_committedcopying throughReadProcessMemoryinstead ofcopy_nonoverlapping. That second change was for an earlier crash: a memcpy inread_committedon the title's submit thread, right after the EULA. It changes only how texture bytes are read.Runs
title_memory_mb9ce2070+ localdd2ae9a+ localtexLodScale_Global2,lodScale0.75dd2ae9a+ local + #531 + #532All three have the same crash:
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 withXCL_PRESS_A_AT=70,80,90,165,180,195,210,225)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
title_memory_mb = 8192changes nothing measurable. Run C at 97 s had 6.3 GB local VRAM and 15.3 GB commit; a run with the default 13824 had 6.2 GB / 15.3 GB at 92 s. Target pages kept growing through the world load all the same.ID3D12GraphicsCommandList10::#101was first called at 401 s in run B (23 s before the crash) and not at all in run C.device_type = "lockhart"crashes at+0x2215c35(null write, Retail title: null write at +0x2215c35 (#159) still hits on NVIDIA RTX 4070 Ti, with and without XCL_NETWORK=0 #232) at about 161 s in both runs I tried, before any input.Not tested
mainwithout the localread_committedchange, through world load.XCL_DXC_THREADSlower than the default.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
main930e8b4, which has the BCPack unpacker (8cad517), #532, f1e2113 and 27c3571. Same machine, same settings,title_memory_mbback to 0 (13824). The only local changes left are theXCL_FPSoverride (unset) andtitle_bytesalways going throughread_committed, never the in-place borrow. This was not a plainmainrun.The crash comes later but it is the same one: 568 s (against 415 to 723 s before),
VCRUNTIME140.dll+0x1dcf3, write at0x80883f560, with the same title frames (+0x979f5b,+0x4fb0c2f,+0x50bb3f0,+0x979db0,+0x56e1962).ID3D12GraphicsCommandList10::#101was 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.Edited to add run D; runs A–C above are unchanged.
sazuzin commentedon Nov 24, 2026
Reproduced the
VCRUNTIME140.dll+0x1dcf3write 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
610.88, 32-lane waves.19045.6466), Rust1.100.0MSVC, DXC1.9.2609.5, Agility SDK1.619.4, Series package1.0.2.1.f4ce27ceb6d1b0576d0c659b713b674778bf1968. Patched: that base plus only the patch from DirectStorage: a virtual destination is written without faulting #705 headd09f285014c6262b35f6b412d46eb4cfd70b7b2c, 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=80andXCL_FRAME_DUMP=180. PSO preload stayed enabled. The 270 s timer was not reached in either run.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
VCRUNTIME140.dll+0x1dcf3(0xC0000005), with title-side stack offsets+0x979f5b,+0x4fb0c2f,+0x50bb3f0,+0x979db0,+0x56e1962. Write addresses in the matched runs were0x80b596d00and0x88a730020.Tests on the patched build
a_destination_unmapped_under_the_worker_fails_the_request.scripts/test.ps1stopped after the library tests: 658 passed, 3 failed, 21 ignored. Two GPU tests were skipped internally forno wave64.placed_title_textures_share_vram_and_preserve_pixels(cubemap page-reuse assertion),transitions_apply_when_their_list_is_submitted, andd32s8_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.
lucaseddd commentedon Nov 24, 2026
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.
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. Callinggpu::agility::state()in the host immediately before the VFS hooks, with Microsoft Agility SDK 1.620.2 inD3D12next toxcl.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.9aeb434ea43a984f6ac309843c3c5d8c6ba3b487with 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 reported0x887A0006and the title stopped. This was before the language screen, so the run does not measure the benefit of those two patches during world streaming.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.liloler commentedon Nov 24, 2026
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!
chazi123 commentedon Nov 24, 2026
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.tomlvalues, driven by the same synthetic-keyboard script (language screen → loading):a6f5f7a+ our two Win10 patches, built 10:281. 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) andXCL_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-nativelines and creates ~40 command lists.4. Two different endings, one wall
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.CRASH: unhandled exception 0xc0000005 in VCRUNTIME140.dll+0x1dcf3 (write at 0x84957c9a0, size 0x40000),xcl.exe+0x84b98on the stack, thengame_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 aVirtualQuerywalk 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:xg: CopyFromSubresource … not writablewarning never fired, so the destination span was writable in every call;VCRUNTIME140+0x1dcf3AV to0x80000003withrsi = 0x887a0005(DXGI_ERROR_DEVICE_REMOVED) atgame_scarlett_master.exe+0x2474606;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 theDirectStorage: 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 setfromD3D12SerializeVersionedRootSignature. Our local patch:agility::own_dirs()(XCL_D3D12_DIR/LOCALAPPDATAcandidates) +own_folderper directory inhost.rsbefore the VFS hooks, and on serialization failure re-serialize the root signature with the heap-direct bits cleared and patch theRTS0blob flags. Worth folding into main if Win10 stays supported.8. Question
Would an
XCL_LIST_TRACEcapture 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-queueWait64→ 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.
lucaseddd commentedon Nov 24, 2026
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.
chazi123 commentedon Nov 24, 2026
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 #539CopyFromSubresource7-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::CopyFromSubresourcecorrected to the 7-arg console ABI (the extrau32beforesrc; our tree had the 6-arg PC form, sosrcwas read asrow_pitch), the earlierVCRUNTIME140.dll+0x1dcf3write-overrun disappears. The crash migrates to the same place everyone else reports: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 earlynvwgf2umx+0x76a457read-at-0x3c that never reproduced).2. The smoking gun: a GPU-written counter the CPU never sees
Immediately before every
+0x23cf683abort, the log repeats this, with the address stepping by 0x10 (a counter / fence array):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.rsonly recordssparse_writesfor explicit memory ops (Write32/64,Fill*,CopyMemoryToMemoryX, timestamps), not for translated compute-shader UAV stores, soreadback_after_executewould never copy a shader-written counter back. I added a coarsesparse::readback_now(va, width)insidePendingWait::wait_until_satisfiedfor 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/0x70417ffxxis 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}Viewbinding 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:
execute_with_waitsCPU-polled a list'sWait64BitValueXbefore submitting that same list, andKickoffXwaited beforeExecuteCommandLists. The signallingWriteBufferImmediateis 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; inKickoffX, wait after execute + readback + CPU-write apply.WriteBufferImmediateinto the coherent window'sOpenExistingHeapFromAddressimported 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-sideWrite::Immediatewith the known value, applied after the queue fence.Measured, same driver script and data root:
Wait64 … memory holds Some(0)timeout every 2 s, crash at+0x23cf683in 70–130 s;A later
+0x23cf683still 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 inlist_x.rs) as a PR if useful; it is independent of the ABI fix and of BCPack.6. Offer
I can provide: full
xcllogs for the ABI-fixed and BCPack builds, theWait64timeout series with the dispatch burst, the sparse-readback negative result, and the root-descriptor correlation once it lands. If a maintainer wants theCopyFromSubresourceABI 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.oeirughrepuiohg commentedon Nov 24, 2026
@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.
Wait64BitValueX timed out after 2000 ms … op 7message in 3 of our runs (main9aec53d + open PRs incl. XG: fix CopyFromSubresource 7-argument ABI and guard destination span #684 D3D12.X: execute two-pass mesh shaders on DispatchMesh and ExecuteIndirect #724 Recompiler: keep the split wave64 halves' scalar state wave-uniform #900), butmemory holdsis always one to four belowwant(want 0x6ac, holds 6ab;want 0x694, holds 691;want 0x6ce, holds 6ca), neverSome(0).XCL_PSO_WAIT_MS) we see noWait64timeouts at all (3 runs).So on this stack the CPU-visibility part may be specific to the Windows driver's handling of the
OpenExistingHeapFromAddressheap; 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.
chazi123 commentedon Nov 24, 2026
@lucaseddd re the #795 fields, from our existing capture (no new high-commit run needed):
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.
chazi123 commentedon Nov 24, 2026
@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.
oeirughrepuiohg commentedon Nov 24, 2026
@chazi123 thanks for the patch. Before running it: it does not apply to current
main(here9aec53d+ open PRs), and the reason may matter for your defect (1).execute_with_waits/wait_all(waits). Onmain, D3D12.X: bridge Wait64BitValueX to GPU fences with exact cycle breaking #795 (merged) replaced that withexecute_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 recordedWrite64BitValue*is turned into a GPU-sidequeue.Waitand the submitter does not CPU-poll at all (that is why our timeouts readGPU queue.Wait … did not complete within 5000 ms). The CPU poll your fix (1) moves only remains on theFallbackCpupath there, andkickoff_xcallswait_all_onthe same way.main, (1) and (2) only matter for waits that fall back to the CPU (not 64-bit-monotonic, or no recorded write) - and yourmemory holds Some(0)counters may be exactly those, or may already be bridged on a newer base.git apply -3left 4 conflict regions inlist_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
mainfirst: 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 logsGPU queue.Wait …, the CPU pathWait64BitValueX 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.
upipibi commentedon Nov 24, 2026
@chazi123 I checked your defect 1 ("the CPU poll for a list's Wait ran before that same list was submitted") against
main930e8b4's source. For a counter in a unified-memory window like yours (window 3),mainshould not poll a wait on a write made earlier in the same list:wait_memory(list_x.rs) drops aWait32/64BitValueXoutright when the same list already wrote that address (has_prior_write; it has been there since3dfbcfb). That coversWrite32/64BitValueXand WriteBufferImmediate (write), fills,CopyMemoryToMemoryXand timestamps.Write64BitValue*in the list splits the list (try_split_for_wait).execute_with_waits_onthen submits the first segment and its signals before it waits for the second.So if your timed-out wait on
0x7041802e8is in the same list as the write that raises it, your tree differs frommainthere. 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
mainwhere your description does hold: aWrite32/64BitValueXor 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+0x23cf683stop.AI-assisted (Claude Code).
hyperland956-lgtm commentedon Nov 24, 2026
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:
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)
chazi123 commentedon Nov 24, 2026
@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.
chazi123 commentedon Nov 24, 2026
@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.
chazi123 commentedon Nov 24, 2026
@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.
oeirughrepuiohg commentedon Nov 24, 2026
@chazi123 Wine run of exactly your rebased coherency-only patch, as asked. On this stack it does not change the stop.
main9aec53d+ D3D12.X: use dedicated PC direct queue for PresentX under Wine (#175) #793 D3D12.X: XCL_BIG_COMPILES sets how many big compute pipelines the driver builds at once #820 Shaders: xcl pipelines compiles a run's queued pipelines outside the title #759 D3D12.X: an optional page budget evicts CPU-filled title textures LRU #640 D3D12.X: compute pipelines are built ahead of their first bind #889 D3D12.X: XCL_PSO_WAIT_MS bounds how long a bind waits for a pipeline being built (retail world renders) #891 D3D12.X: charge the compute-blob budget once per cache entry #826 D3D12.X: a console MS in the AS slot is translated as the mesh shader it is #541 XG: fix CopyFromSubresource 7-argument ABI and guard destination span #684 D3D12.X: execute two-pass mesh shaders on DispatchMesh and ExecuteIndirect #724 Recompiler: the FSSM header's wave32 flag decides a program's wave size #573 Recompiler: keep the split wave64 halves' scalar state wave-uniform #900 + your patch (applies cleanly), releasex86_64-pc-windows-gnu. RTX 4070 Ti 12 GB, NVIDIA 620.x, Linux, GE-Proton 11 + vkd3d-proton with XCL's patch.XCL_PSO_WAIT_MS=50, warm caches, same settings as the control.queue.Wait … did not completefrom the same second; 6 CPUWait64BitValueX timed out; 19Write64 Signal … would close a GPU cycle – signalled on CPU; stopped while still at 100 % 138 s later.queue.Waittimeouts from the same second (24); 0 CPUWait64BitValueX timed out; 0 cycle breaks; device lost 6 s after the first timeout. Skipped binds before the stop: 2048 draws, 172 dispatches.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.
Shaydera commentedon Nov 24, 2026
@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_onsubmits through the waiting list, then waits;kickoff_xwaits after execute,signal_write64_pairs, sparse readback andcpu_writes::after.write: aWriteBufferImmediateinto the committed (coherent) window also queues acpu_writes::Write::Immediatewith the same value.b8b1f49b8b1f49+ both fixesWait64BitValueX timed outsparse: the queue has not reached fence value+0x23cf683What this shows on this card:
Wait64BitValueXtimeouts are already gone (0 without the patch; an earlier run on47efa2e, with only a 512 MB coherent window, had 3).+0x23cf683stop, 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, completed0x475; sparse queue one fence behind).Follow-up: with
XCL_PSO_WAIT_MSunset 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.
lucaseddd commentedon Nov 24, 2026
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.
kernelx: harden lazy physical-page commit, protections, and queries
kernelx: harden lazy physical-page commit, protections, and queries
chazi123 commentedon Nov 25, 2026
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 on17216a14is 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+0x23cf683is 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.kernelx: harden lazy physical-page commit, protections, and queries
kernelx: harden lazy physical-page commit, protections, and queries