You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
nvidia-dev eae01502: title reads bad addresses 3-4 min in on the Series S profile with sparse GPU heaps; gone with 3292b096 reverted #2867
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. With 3292b096 and 206469e3 reverted, 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):
All three crashes came 30–80 s into the world load, while the title was still presenting 8–29 fps. XCL logged nothing unusual before them: no warning, no device removal, no failed allocation.
Two of the three involve addresses at the start of window 1 (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.
My reading, not verified: with physical page homes now taken from windows 1+ first, they share windows 1+ with the title's own reservations, and something there (a home, or the title's memory next to one) is read or written by the other. A later run with only 3292b096 reverted 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.
changed the title [-]nvidia-dev eae01502: title reads bad addresses 3-4 min in on the Series S profile with sparse GPU heaps; gone with 3292b096 + 206469e3 reverted[/-][+]nvidia-dev eae01502: title reads bad addresses 3-4 min in on the Series S profile with sparse GPU heaps; gone with 3292b096 reverted[/+]on Nov 26, 2026
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 3292b096 reverted did not crash. My settings differ from yours: no XCL_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 on eae01502). 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.
run
tree
world load from
end
r16
above
292 s
0xc0000005 at 533.6 s in game_scarlett_master.exe+0x4f2b3bb, read at 0xffffffff2ea118a5 (rdx=0xffffffff2ea11870)
r17
above + a local test port of #2357's vram.rs (XCL_TARGET_PAGES_MB=3500)
291 s
0xc0000005 at 390.4 s in +0x4dd77de, read at 0xffffffff06cd6a54
r18
r17's tree with 3292b096 reverted
240 s
no crash; ended by my video-memory guard at 508 s (11.0 GB local), in a cutscene with subtitles, 4,000–5,000 draws a frame
Both reads are at an address whose high half is all ones, i.e. a 32-bit value sign-extended into a pointer, not one near a window boundary as in your runs. Different places in the title each time, as you saw.
With 3292b096 reverted, 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.
One run each, so this is two crashes vs. one clean run, not a rate.
AI use: Claude Code (Claude Opus 5.5) ran the runs, read the logs and wrote this comment.
Source findings on nvidia-dev (eae01502) around the two behaviors exposed when 3292b096 moved alloc_physical_home (crates/xcl/src/hle/kernelx.rs) to Uma::sparse_alloc_above (Window 1+ first):
Window 1 / Window 2 (0x12_0000_0000) boundary straddling in Uma::sparse_reserve (crates/xcl/src/gpu/uma.rs:550-562): Previously Window 1 started empty, so a ~3.4 GiBMEM_64K_PAGES | MEM_RESERVE allocation fit inside Window 1. With 3292b096 placing 664+ MiB of physical page homes at the start of Window 1 (0x11_0000_0000), sparse_reserve (single_window = false) now causes a ~3.4 GiB reservation to straddle 0x12_0000_0000 into Window 2 (matching Crash Implement XSystemGetDeviceType/PLS thunks and Opus audio carrier parsing #1's rdi=0x11fffffff0 -> read at 0x1200000024), where real::title_buffer_window, real::uma_window_buffer*, and list_x::bytes_in_window reject or clamp cross-window ranges.
Opened #2886 (Memory: keep single-window sparse_reserve allocations inside one window) on nvidia-dev to handle #1 cleanly (sparse_reserve tries single_window = true across windows 1+ first for size <= WINDOW so ~3.4 GiB lands wholly in Window 2 instead of straddling 0x12_0000_0000). Note: verified via unit tests (eae01502 baseline straddled 0x12_0000_0000 vs 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.
Same crash here on a 10 GB card, plus a fix that keeps 3292b09. 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 CopyPageMappingsBatchX maps from, no longer fits any sparse window. On Build 15 it sat at 0x11f9d00000, in windows 1 and 2. On Build 16 it lands in plain write-watched memory (0xa4a690000, 0x94b290000, 0x98cd70000 in three runs). Title threads then fault on bad pointers about 45 s after world load. One run read inside the GPU-only view at 0x14089cb400. 4 of 4 runs crashed. Build 15 with the same settings ran 11+ minutes clean.
Why:3292b09 moves 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 logged 3977 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 3292b09 protects. After that they go to the top of windows 1+, top-down. The pool lands at 0x1101400000 again, and a 15-minute world run on Build 16 had no fault: 2.1M draws, 0 skipped. XCL_HOME_W0_KEEP_MB overrides 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-aftr on 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
@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:
tree
end
as in the opening post (3 runs)
the title reads a bad address at 182–234 s, 3 of 3
The GPU page faults (DRED state 7, about 185–205 s) are probably a second problem, not this one: the same base with 3292b096 reverted had one too, in 1 of 5 runs at other settings (a run with a local port of D3D12.X: UMA windows in a driver heap on NVIDIA, 4.9x FPS (0.62 -> 3.03) #2844, so not a clean control). I have not traced them.
So on this card grahamster2's change is the one that keeps 3292b096 and 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.
Independent paired verification on an 8 GB RTX 3060 Ti (Series S / lockhart profile): reproduces #2867 on nvidia-dev (ecc0bb57) and confirms #2905 fixes it.
Setup
Machine: Windows 11 Home build 26300, AMD Ryzen 5 5500 (6C/12T), 31.8 GB RAM, NVIDIA GeForce RTX 3060 Ti (8 GB, driver 621.40, nvprofile shader heap 2048 MB), DXC 1.9.2602.17.
Title & cache: Retail title 9cc6a39e, release builds, both runs starting from identical copies of a warm lockhart cache snapshot (1,296 used pipelines, 3,206 driver blobs), 250 s each.
Two things from a night on the crash I get with the defaultXCL_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-devea0698d4 to eff3bcab + #2590 + #684 + #2551, plus a local 13 GB working-set cap. Env XCL_DEVICE_TYPE=lockhart XCL_HEAP_WINDOWS=1 XCL_DIRECT_DXIL=1 XCL_GFX_PSO_WAIT_MS=200 XCL_PREPARE=0 XCL_NETWORK=0, no XCL_UMA_WINDOWS, no XCL_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 one driver blob absent compile 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 temp under 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:
records at a 0x40-byte stride;
in each record, four 12-byte fields at byte phases 0x18, 0x24, 0x30 and 0x3c (mod 64), each one independently three dwords 0x7fffffff, three zero dwords, or left alone; bytes 0x08 to 0x17 are never written;
the run crosses block boundaries: in one crash it covers 10 consecutive slots over the end of one block, two heap headers and two elements of another pool.
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 0x7fffffff high half, a zero qword, or 0x7fffffff7fffffff. 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.
XCL's page-mapping paths (map, unmap, move, release, VirtualFree): counted, zero events inside the coherent window in 3 of 3 crashing runs, about 300,000 outside it per run.
The title's console shaders: decoded all 26,503 records of the pack, every stage. No program stores at that spacing, with plain or format stores, and no store takes its value from a float-to-int conversion (the one place the translator produces 0x7fffffff, cvt_i32).
The title's CPU code, for the store forms I could search (immediate, register, vector constant, 12-byte groups).
XCL's own GPU writes (two-pass buffers, descriptor slots, clamps): none has that layout or value.
Window selection in the translated shaders: read through, sound.
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 main after #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.
8 GB card (RTX 3070): reverting 3292b096 fixes 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 default XCL_COHERENT_HEAPS it 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 with git revert 3292b096 and 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.
tree
XCL_COHERENT_HEAPS
pool (63632 pages)
end
in the world
e0821b12
not set
outside the sparse windows
the title's own crash, 3 of 3 runs (0x80000003, 0xc0000005, 0xc0000005), no device removal before it
2 s, 19 s, 6 s
+ revert
not set
inside
the title's own crash (0xc0000005), 1 run
5 s
+ revert
sparse:1024
inside
0x887a0006 (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 run
523 s: 589 presents, 1.01 M draws (4.3 % of the translated ones skipped)
+ revert
sparse:1024, plus XCL_TEXTURE_LEVEL_PAGES=1
inside
the 900 s limit, exit 0x0, no removal, no crash, 1 run
801 s: 604 presents, 1.47 M draws (12 % skipped); local video memory flat at 17.4 GB for the last 7 minutes
Row 2 agrees with @tiagonleal's report above: with the GPU heaps in the coherent window the title crashes whether the pool is inside the windows or not. Here that is with XCL_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 of 0x7fffffff dwords 0x40 apart and found none in 8 dumps; a minidump holds little memory, so that says nothing either way.
Rows 3 and 4: the start-up breakpoint 3292b096 was written for did not come in either run. Target pages at the end were 8.9 GB without XCL_TEXTURE_LEVEL_PAGES=1 and 4.6 GB with it (136,677 textures with pages by level).
Activity
[-]nvidia-dev eae01502: title reads bad addresses 3-4 min in on the Series S profile with sparse GPU heaps; gone with 3292b096 + 206469e3 reverted[/-][+]nvidia-dev eae01502: title reads bad addresses 3-4 min in on the Series S profile with sparse GPU heaps; gone with 3292b096 reverted[/+]Placebola commentedon Nov 26, 2026
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 commentedon Nov 26, 2026
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 Implement XSystemGetDeviceType/PLS thunks and Opus audio carrier parsing #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 kernelx: require contiguous physical pages to share one allocation #1143 / KernelX: reject cross-allocation boundary overruns in map_pages (#1488) #1635 (and sparseVirtualFreeaway-range cleanup by kernelx: handle self-home/reused-home mappings in map_pages and unmap away pages on VirtualFree #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 commentedon Nov 26, 2026
Same crash here on a 10 GB card, plus a fix that keeps 3292b09. 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: 3292b09 moves 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 logged
3977 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 3292b09 protects. After that they go to the top of windows 1+, top-down. The pool lands at
0x1101400000again, 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. @theaustinayersjoeypercia commentedon Nov 26, 2026
@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 D3D12.X: UMA windows in a driver heap on NVIDIA, 4.9x FPS (0.62 -> 3.03) #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 commentedon Nov 27, 2026
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 commentedon Nov 27, 2026
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 commentedon Nov 27, 2026
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.