Skip to content

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

Backlog

Description

@joeypercia

On nvidia-dev eae01502, 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):

tree end
eae01502 + #2794 0xc0000005 at 188.4 s in game_scarlett_master.exe+0xf58d66, read at 0x1200000024 (rdi=0x11fffffff0)
same 0xc0000005 at 181.8 s in +0x4dd64ec, read at 0xffffffffffffffff
same 0xc0000005 at 233.6 s in +0xa5db1e, read at 0x2be45a (rax=rcx=0x11000011dd), on 2 threads at once
same, 3292b096 and 206469e3 reverted no crash, XCL_RUN_SECONDS=900 reached (3,193 frames)
same, only 3292b096 reverted (added later) no crash, 900 s cap (3,661 frames, 1.8–1.9 fps at the end)
af2cecc4 + my earlier stack (#2697, #2750, #2776, #2762, the #2815–#2817 stack as of this morning, #2794) no crash, 900 s cap (3,216 frames)
  • 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.

Activity

  1. 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
  2. Placebola commented on Nov 26, 2026

    @Placebola

    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-dev eae01502 + #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.
    • r16 shows it without my D3D12.X: bound target-page pools by title and adapter VRAM budgets #2357 port, so that port is not the cause.
    • 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.

  3. Decodere commented on Nov 26, 2026

    @Decodere
    Contributor

    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):

    1. 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 GiB MEM_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.
    2. kernelx::map_pages home-contiguity check (crates/xcl/src/hle/kernelx.rs:2420-2421): On va.is_null() || home == Some(va), map_pages only checks page_home(pages[0]) and page_home(pages[n - 1]).is_some() without verifying contiguous homes across 0..n (so interleaved Window 1 blocks can commit across neighbors); already addressed on main by kernelx: require contiguous physical pages to share one allocation #1143 / KernelX: reject cross-allocation boundary overruns in map_pages (#1488) #1635 (and sparse VirtualFree away-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) 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.

  4. grahamster2 commented on Nov 26, 2026

    @grahamster2
    Collaborator

    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

  5. joeypercia commented on Nov 26, 2026

    @joeypercia
    ContributorAuthor

    @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
    + #2886 237b7181, run 1 device removed 0x887a0006 at 203.8 s, DRED state 7 (page fault), NVIDIA event 13 × 24
    + #2886, run 2 the title reads 0xffffffffffffffff at 167.5 s in +0x4dd64da (as crash 2 above)
    + grahamster2's 06376122 442f9d09 2eeb9506, run 1 device removed 0x887a0006 at 185.0 s, DRED state 7
    + grahamster2's three commits, run 2 no crash, 900 s cap (4,089 frames, 1.4 presents/s at the end)
    + grahamster2's three commits, run 3 (added later) device removed 0x887a0006 at 241.5 s, DRED state 3 (hung)
    + grahamster2's three commits, run 4 (added later) no crash, 900 s cap (3,801 frames, 2.3 presents/s at the end)
    3292b096 reverted instead (1 run) no crash, 900 s cap

    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.

  6. LocranKing commented on Nov 27, 2026

    @LocranKing

    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.
    • Env: 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_AT sequence (18:A..74:A).
    • PR build note: pr-2905-head (d900644d) merged cleanly with origin/nvidia-dev (ecc0bb57; only a test change over eae01502).

    Results (250 s paired runs)

    tree result frames shown peak commit local / non-local VRAM peak
    nvidia-dev (ecc0bb57) crash at 181.5 s (0xc0000005 read at 0xffffffffffffffff in game_scarlett_master.exe+0x51822b3; ended 186.1 s) none logged (1,732 presents in report.json before crash) 25,994 MB 9,022 / 4,708 MB
    PR #2905 (d900644d + ecc0bb57) exit 0x0 (no crash, no device removal) 1,977 (presents per 2 s: 1 0 1) 29,327 MB 12,333 / 5,055 MB
    xcl-smoke v1
    commit: ecc0bb57976b1bc94854199ddf4f915fd00e0a59
    gpu: NVIDIA GeForce RTX 3060 Ti
    title: 9cc6a39e
    seconds: 250
    exit: 0xc0000005
    frames shown: none logged (the run did not reach its end)
    presents per 2 s (last 3): 0 0 0
    device removals: 0
    crashes: 2
    peak commit: 25994 MB
    
    xcl-smoke v1
    commit: d900644d90006e08a3fcde630515e339a550f4d5
    gpu: NVIDIA GeForce RTX 3060 Ti
    title: 9cc6a39e
    seconds: 250
    exit: 0x0
    frames shown: 1977 (PresentX 1977)
    presents per 2 s (last 3): 1 0 1
    device removals: 0
    crashes: 0
    peak commit: 29327 MB
    

    Not tested: XCL_COHERENT_HEAPS=sparse:1024, Series X (anaconda) profile, multiple runs per arm.

  7. tiagonleal commented on Nov 27, 2026

    @tiagonleal
    Contributor

    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-dev ea0698d4 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. pr1sm-dev commented on Nov 27, 2026

    @pr1sm-dev

    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-dev e0821b12, 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).
    • kernelx: physical page homes in window 0 first, from the top, keeping 64 MB free (#2867) #2905 on this card (on 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.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions