Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#2867
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@joeypercia on GitHub · 2026-11-26 19:59 UTC · original
On
nvidia-deveae01502, the newer retail title on the Series S profile with its GPU heaps in the sparse windows crashed in its own code 3 to 4 minutes in, in 3 of 3 runs, each time at a different place reading a bad address. With3292b096and206469e3reverted, the same build and settings ran to the 900 s cap. cc @theaustinayers (author of both).Runs (RTX 4070 Ti 12 GB, driver 621.40, Ryzen 7 7800X3D, 32 GB RAM, Windows 11 26200, release, warm caches, one run each):
eae01502+ #27940xc0000005at 188.4 s ingame_scarlett_master.exe+0xf58d66, read at0x1200000024(rdi=0x11fffffff0)0xc0000005at 181.8 s in+0x4dd64ec, read at0xffffffffffffffff0xc0000005at 233.6 s in+0xa5db1e, read at0x2be45a(rax=rcx=0x11000011dd), on 2 threads at once3292b096and206469e3revertedXCL_RUN_SECONDS=900reached (3,193 frames)3292b096reverted (added later)af2cecc4+ my earlier stack (#2697, #2750, #2776, #2762, the #2815–#2817 stack as of this morning, #2794)0x11000011dd) or across the window 1 / window 2 boundary (0x11fffffff0 + 0x34). The UMA line in every run:3 sparse VRAM window(s) (12 GiB VA) + 1 coherent window(s) (968 MB) + 6 view window(s) for GPU views at 0x1000000000.3292b096reverted also reached the cap, so it is that commit (one run).Settings:
XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=16 XCL_COHERENT_HEAPS=sparse:1024 XCL_TWO_PASS_MB=3072 XCL_DEVICE_TYPE=lockhart XCL_TEXTURE_LEVEL_PAGES=1 XCL_DRED=1 XCL_GFX_PSO_WAIT_MS=200 XCL_PREPARE_GRAPHICS=0 XCL_ACTIVITY=1 XCL_FRAME_DUMP=300, NVIDIA shader heap 2 GiB (xcl nvprofile install --mb 2048, #2590), A presses from 42 s after the title's first pad read. That is @grahamster2's 10 GB recipe from #2688.Not tested: the Series X profile; the default
XCL_COHERENT_HEAPS; more than one run without the commits; AMD.AI use: Claude Code (Claude Opus 5.5) ran the runs on the hardware above, read the logs and wrote this.
nvidia-dev eae01502: title reads bad addresses 3-4 min in on the Series S profile with sparse GPU heaps; gone with 3292b096 + 206469e3 revertedto nvidia-dev eae01502: title reads bad addresses 3-4 min in on the Series S profile with sparse GPU heaps; gone with 3292b096 revertedgithub-bot referenced this issue2026-11-27 01:14:44 +00:00
github-bot referenced this issue2026-11-27 01:15:34 +00:00
@Placebola on GitHub · 2026-11-26 21:25 UTC · original
A second card with the same result: on an 8 GB card, two runs on the Series S profile crashed in the title's own code once the world load had started, and the run with
3292b096reverted did not crash. My settings differ from yours: noXCL_COHERENT_HEAPS, default 4-window layout.Setup: RTX 4060 Ti 8 GB (driver 621.40), i7-7700, 32 GB RAM, Windows 10 19045, release, warm caches. Tree:
nvidia-deveae01502+ #1435 + #887 + #2794 + the #2815–#2817 stack (rebased oneae01502).XCL_DEVICE_TYPE=lockhart XCL_HEAP_WINDOWS=1 XCL_DIRECT_DXIL=1 XCL_TEXTURE_LEVEL_PAGES=1 XCL_SKIP_BINK=1 XCL_GFX_PSO_WAIT_MS=200. UMA line in every run:3 sparse VRAM window(s) (12 GiB VA) + 1 coherent window(s) (3407 MB) + 0 view window(s) for GPU views at 0x400000000.0xc0000005at 533.6 s ingame_scarlett_master.exe+0x4f2b3bb, read at0xffffffff2ea118a5(rdx=0xffffffff2ea11870)vram.rs(XCL_TARGET_PAGES_MB=3500)0xc0000005at 390.4 s in+0x4dd77de, read at0xffffffff06cd6a543292b096reverted3292b096reverted, the sparse pools grew from 3.3 GB (r17) to 4.4 GB (r18, of them 3.4 GB mapped), with the same cap on target pages. On an 8 GB card that is what ends the run now.AI use: Claude Code (Claude Opus 5.5) ran the runs, read the logs and wrote this comment.
@Decodere on GitHub · 2026-11-26 21:26 UTC · original
Source findings on
nvidia-dev(eae01502) around the two behaviors exposed when3292b096movedalloc_physical_home(crates/xcl/src/hle/kernelx.rs) toUma::sparse_alloc_above(Window 1+first):0x12_0000_0000) boundary straddling inUma::sparse_reserve(crates/xcl/src/gpu/uma.rs:550-562): Previously Window 1 started empty, so a~3.4 GiBMEM_64K_PAGES | MEM_RESERVEallocation fit inside Window 1. With3292b096placing664+ MiBof physical page homes at the start of Window 1 (0x11_0000_0000),sparse_reserve(single_window = false) now causes a~3.4 GiBreservation to straddle0x12_0000_0000into Window 2 (matching Crash #1'srdi=0x11fffffff0-> read at0x1200000024), wherereal::title_buffer_window,real::uma_window_buffer*, andlist_x::bytes_in_windowreject or clamp cross-window ranges.kernelx::map_pageshome-contiguity check (crates/xcl/src/hle/kernelx.rs:2420-2421): Onva.is_null() || home == Some(va),map_pagesonly checkspage_home(pages[0])andpage_home(pages[n - 1]).is_some()without verifying contiguous homes across0..n(so interleaved Window 1 blocks can commit across neighbors); already addressed onmainby #1143 / #1635 (and sparseVirtualFreeaway-range cleanup by #2544).Opened #2886 (
Memory: keep single-window sparse_reserve allocations inside one window) onnvidia-devto handle #1 cleanly (sparse_reservetriessingle_window = trueacross windows1+first forsize <= WINDOWso~3.4 GiBlands wholly in Window 2 instead of straddling0x12_0000_0000). Note: verified via unit tests (eae01502baseline straddled0x12_0000_0000vs Window 2 with fix) and paired 60 s default-flags RTX 4060 (8 GB) smoke; did not reproduce the 180–240 s automated world gameplay crash on 12 GB VRAM.@grahamster2 on GitHub · 2026-11-26 21:48 UTC · original
Same crash here on a 10 GB card, plus a fix that keeps
3292b096. Tested on Build 16 (v0.1.0-mod.16) on an RTX 3080 10 GB, 31 GB RAM, with the Series S profile,XCL_UMA_WINDOWS=16,XCL_HEAP_WINDOWS=1,XCL_COHERENT_MB=1024, and the GPU heaps (1162 + 1277 MB) in the sparse windows.What I see: the title's 64 KiB-page reservation of 63632 pages (3977 MB), the pool
CopyPageMappingsBatchXmaps from, no longer fits any sparse window. On Build 15 it sat at0x11f9d00000, in windows 1 and 2. On Build 16 it lands in plain write-watched memory (0xa4a690000,0x94b290000,0x98cd70000in three runs). Title threads then fault on bad pointers about 45 s after world load. One run read inside the GPU-only view at0x14089cb400. 4 of 4 runs crashed. Build 15 with the same settings ran 11+ minutes clean.Why:
3292b096moves about 600 MB of physical-page homes out of window 0 and into windows 1 and 2. That is exactly the room the pool needs. With homes taken top-down from windows 1+, I logged3977 MB found no room (4367 MB free, 3911 MB at most in one run; window 0: 357 MB, window 1: 99 MB, window 2: 3911 MB). So it isn't only fragmentation, it's capacity, which I think is also why #2886's single-window attempt wouldn't be enough here (window 2 has 3911 MB, the pool needs 3977).Fix: physical-page homes go to the top of window 0 first, as long as at least 64 MB of window 0 stays free, which covers the 38 MB view heap
3292b096protects. After that they go to the top of windows 1+, top-down. The pool lands at0x1101400000again, and a 15-minute world run on Build 16 had no fault: 2.1M draws, 0 skipped.XCL_HOME_W0_KEEP_MBoverrides the margin. There's also a one-time WARN when a GPU-visible reservation of 256 MB or more falls back to plain memory, so this shows up in a log without tracing.Commits on my fork, branch
b16-aftron top of Build 16:06376122(homes top-down + the WARN),442f9d09(window 0 first, with margin),2eeb9506(64 MB default). Happy to open a PR against nvidia-dev if that's useful. @theaustinayers@joeypercia on GitHub · 2026-11-26 22:14 UTC · original · edited 2026-11-26 23:16 UTC
@grahamster2 @Decodere results of both fixes on the 12 GB card, same tree and settings as the opening post (
eae01502+ #2794, Series S profile,XCL_UMA_WINDOWS=16,XCL_COHERENT_HEAPS=sparse:1024), one run per row:237b7181, run 10x887a0006at 203.8 s, DRED state 7 (page fault), NVIDIA event 13 × 240xffffffffffffffffat 167.5 s in+0x4dd64da(as crash 2 above)06376122442f9d092eeb9506, run 10x887a0006at 185.0 s, DRED state 70x887a0006at 241.5 s, DRED state 3 (hung)3292b096reverted instead (1 run)3292b096reverted had one too, in 1 of 5 runs at other settings (a run with a local port of #2844, so not a clean control). I have not traced them.So on this card grahamster2's change is the one that keeps
3292b096and loses the crash. Four runs, two of them ended by the GPU before the crash would have come.AI use: Claude Code (Claude Opus 5.5) ran the runs on the hardware above, read the logs and wrote this.
@LocranKing on GitHub · 2026-11-27 03:56 UTC · original
Independent paired verification on an 8 GB RTX 3060 Ti (
Series S/lockhartprofile): reproduces #2867 onnvidia-dev(ecc0bb57) and confirms #2905 fixes it.Setup
621.40,nvprofileshader heap 2048 MB), DXC1.9.2602.17.9cc6a39e, release builds, both runs starting from identical copies of a warmlockhartcache snapshot (1,296used pipelines,3,206driver blobs),250 seach.XCL_DEVICE_TYPE=lockhart XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_TEXTURE_LEVEL_PAGES=1 XCL_PSO_WAIT_MS=50 XCL_GFX_PSO_WAIT_MS=200 XCL_CS_PSO_WAIT_MS=50 XCL_PREPARE_GRAPHICS=0 XCL_DRED=1+XCL_PRESS_ATsequence (18:A..74:A).pr-2905-head(d900644d) merged cleanly withorigin/nvidia-dev(ecc0bb57; only a test change overeae01502).Results (250 s paired runs)
nvidia-dev(ecc0bb57)181.5 s(0xc0000005read at0xffffffffffffffffingame_scarlett_master.exe+0x51822b3; ended186.1 s)1,732presents inreport.jsonbefore crash)#2905(d900644d+ecc0bb57)0x0(no crash, no device removal)presents per 2 s: 1 0 1)Not tested:
XCL_COHERENT_HEAPS=sparse:1024, Series X (anaconda) profile, multiple runs per arm.@tiagonleal on GitHub · 2026-11-27 06:24 UTC · original
Two things from a night on the crash I get with the default
XCL_COHERENT_HEAPS(the row this issue lists as not tested): what the damaged memory looks like, and a source of data that I have not seen used here.Setup: retail title of #505, Series S profile, RTX 5070 Ti 16 GB (driver 617.42), Ryzen 7 9800X3D, 32 GB RAM, Windows 11 Pro 26300, release. Trees from
nvidia-devea0698d4toeff3bcab+ #2590 + #684 + #2551, plus a local 13 GB working-set cap. EnvXCL_DEVICE_TYPE=lockhart XCL_HEAP_WINDOWS=1 XCL_DIRECT_DXIL=1 XCL_GFX_PSO_WAIT_MS=200 XCL_PREPARE=0 XCL_NETWORK=0, noXCL_UMA_WINDOWS, noXCL_COHERENT_HEAPS: 3 sparse windows, one 3407 MB coherent window that holds all the title's GPU heaps, no view windows.1. With that layout the title crashes in every warm-cache run, with or without
3292b096. 22 of 22 runs with at most onedriver blob absentcompile ended with the title faulting between 85 and 221 s, at a different place each time (at least one of them on the title's own heap consistency check). The three runs I reported on #2905 as surviving the revert were cold-cache runs that spent most of their 300 s compiling; I corrected that there. So this is a different crash from the one in the opening post, or the same one reached by another road.2. The title writes its own crash report, and it shows the damage. At each crash the title's crash handler writes a small text log and a minidump (28 to 30 MB) into its temp drive, which XCL maps to
tempunder the data folder.cdb -z <dump>opens it; the title's frames unwind after.reload /i /f <image>=140000000,<size>. The dump holds every thread's stack and about 1 KiB around each stack and register pointer. Please do not post these files or text from them: they carry proprietary names.In 7 crashes (6 minidumps and one in-process dump of the memory around the registers) the faulting value sits inside the same foreign pattern, written over live objects:
0x7fffffff, three zero dwords, or left alone; bytes 0x08 to 0x17 are never written;Where a field edge cuts an 8-byte pointer you get the values these crashes read: a pointer with the right low half and a zero or
0x7fffffffhigh half, a zero qword, or0x7fffffff7fffffff. The victims are allocations the title makes at start-up and never frees, all inside one band of about 250 MB of the coherent window (its small-object arena), so this is not the heap reusing freed memory. In the 7 minidumps I walked, no thread was inside the title's allocator and no thread other than the faulting reader held a pointer into the damaged area (the dumps are written 0.06 to 1 s after the fault).3. What I could rule out as the writer, offline.
VirtualFree): counted, zero events inside the coherent window in 3 of 3 crashing runs, about 300,000 outside it per run.0x7fffffff,cvt_i32).So the writer is not found. What is left is a store I could not see statically (an address built from computed values, an image store) or a GPU memory operation landing late.
4. Not tested, and next. I have no runs of this on
mainafter #2844, which changes how the coherent window is backed; that is the first thing I will run. I also have a lab build that scans that band every 300 ms and logs when the first record appears, where the run starts, every thread's position at that moment and the page's write-watch state. If someone with the sparse-heaps layout of this issue wants to look for the same pattern in their own minidumps, the signature above is all that is needed.AI use: Claude Code. Claude Fable 5.2 and Claude Opus 5.5 read the dumps, the disassembly and the code, and wrote this; I checked it.
@pr1sm-dev on GitHub · 2026-11-27 08:19 UTC · original
8 GB card (RTX 3070): reverting
3292b096fixes the pool's placement here too. With the GPU heaps in the sparse windows the title then stayed in the world for 13 minutes; with the defaultXCL_COHERENT_HEAPSit still crashed with the pool inside the windows.Setup: RTX 3070 8 GB, driver 621.40, 64 GB RAM, Windows 11 26300, release builds. Tree:
nvidia-deve0821b12, plain or withgit revert 3292b096and nothing else. Series S profile,XCL_UMA_WINDOWS=16 XCL_HEAP_WINDOWS=1 XCL_TWO_PASS_MB=3072 XCL_GFX_PSO_WAIT_MS=100 XCL_PREPARE_GRAPHICS=0 XCL_NETWORK=0, NVIDIA shader heap 2048 MB (#2590), warm caches (every compute pipeline of the pack built ahead), A pressed every 10 s. Time limit 420 s for the first two rows, 900 s for the last two. "In the world" counts from the first 2 s window with more than 1,000 draws.XCL_COHERENT_HEAPSe0821b120x80000003,0xc0000005,0xc0000005), no device removal before it0xc0000005), 1 runsparse:10240x887a0006(XCL logs DRED state 7) after 607 s of title time, at 22.0 GB local video memory on a 7.25 GB budget, 1 runsparse:1024, plusXCL_TEXTURE_LEVEL_PAGES=10x0, no removal, no crash, 1 runXCL_UMA_WINDOWS=16(6 view windows), not the default layout. I ran a crude scan of the title's minidumps of these runs for 12-byte runs of0x7fffffffdwords 0x40 apart and found none in 8 dumps; a minidump holds little memory, so that says nothing either way.3292b096was written for did not come in either run. Target pages at the end were 8.9 GB withoutXCL_TEXTURE_LEVEL_PAGES=1and 4.6 GB with it (136,677 textures with pages by level).eae01502): the pool is inside the windows, but both runs lost the device on the loading screen; details on the PR.Not tested: more than one run per row, except the first;
main; the Series X profile; a run with DRED really on.AI use: Claude Code (Claude Fable 5.2) ran the runs, read the logs and wrote this under my direction; I reviewed it.