Skip to content

UMA: a learned Series S coherent-window size makes later Series S runs crash at ~37 s #3568

Backlog

Description

@throny

On an RTX 4080 16 GB (621.40), main 9dfbe3ea (and 9dfbe3ea + #3156), retail title, XCL_DEVICE_TYPE=lockhart with the run settings we use for NVIDIA (XCL_UMA_WINDOWS=16 XCL_UMA_DRIVER=mixed:1536:1792, …):

  • The first Series S run had no cache\uma_coherent_lockhart.txt, got a 512 MB coherent window and ran 2,630 s without a crash (run 367).
  • That run stored a size in uma_coherent_lockhart.txt; every later Series S run opened a 3407 MB coherent window (mixed heaps: 1536 MB CUSTOM + 1792 MB GPU_UPLOAD + 79 MB CUSTOM) and ended with an access violation (0xc0000005) about 37 s in, before the first game frame — four runs out of four (368, 373, 374, 375).
  • Moving only uma_coherent_lockhart.txt aside brought the 512 MB window back and the run went through 900 s again (run 376: 3.66 presents/s with XCL_RESIDENCY_PRIORITY=1).

So either the stored Series S size is wrong for this title, or a 3407 MB window with the mixed ranges is the problem (the GPU_UPLOAD range ends 79 MB before the window's end; a range that leaves only a small CUSTOM tail was also reported to lose the device on #505). Not tested: Series S with the stored size but without XCL_UMA_DRIVER=mixed, and AMD.

Workaround: delete <data>\cache\uma_coherent_lockhart.txt before a Series S run.

AI use: Claude Code (Claude Opus 5.5) made the runs and wrote this.

Activity

  1. throny commented on Dec 1, 2026

    @throny
    CollaboratorAuthor

    Follow-up, the other half of this: without the stored size (the workaround above) the Series S window is 512 MB, and then the title's three GPU heaps (1162 + 1277 + 258 MB here) do not fit, become plain memory outside unified memory, and translated shaders read zeros from them: ~90 % of draws skipped, black frames, and one compute program loops to XCL's pass budget because its element count reads 0 (37.6 ms per dispatch instead of 0.017 ms). So neither size works for Series S: 3407 MB crashes at ~37 s, 512 MB renders nothing.

    A local prototype (XCL_COHERENT_SPILL=sparse, default off, ~40 lines in hle/kernelx.rs) sends a GPU heap that does not fit the coherent window to the sparse windows instead: with it a Series S run drew normally (1.6 % of draws skipped instead of 90 %, acceleration structures built, a lit scene in the last frame), at ~2 GB more video memory (14.9 of 15.1 GB on an RTX 4080). One caveat: 2 of 4 launches of that build lost the device 130–150 s in (a page fault on a BC7 texture), one with the switch off and one with it on, so it's not clear yet whether the switch is involved. I can open it as a PR once that is understood.

    AI use: Claude Code (Claude Opus 5.5); found and prototyped by a Claude Fable 5.2 sub-agent.

  2. throny commented on Dec 1, 2026

    @throny
    CollaboratorAuthor

    Stability of the XCL_COHERENT_SPILL=sparse prototype: two more Series S runs with it on both drew normally (≈6 % of draws skipped at that point) and then lost the device (0x887a0006, hung) at 179 and 191 s after the first frame, at 15.0 of 15.1 GB video memory. With the earlier attempt that makes 3 of 4 launches lost once Series S actually renders. That looks like the in-world hang others report around 140–190 s (#505, #3528/#3516) rather than the spill itself, but it means Series S on this card does not run stably yet with or without it, so I'm not opening the prototype as a PR for now. Series X runs (4.8 GB coherent window, the heaps inside it) are unaffected: 900 s runs without removal.

    AI use: Claude Code (Claude Opus 5.5).

  3. throny commented on Dec 2, 2026

    @throny
    CollaboratorAuthor

    Same pattern outside Series S: with #3619's XCL_COHERENT_HEAPS=sparse-wc (Series X), the first run had no stored size, got a 512 MB coherent window and played; it stored 2,498,887,680 bytes in uma_coherent_sparse-wc.txt, and the next two runs opened a 2,895 MB window and both ended with an access violation at 36.8 s, before the first frame (runs 420, 421) — the same time and signature as the Series S runs above. Common factor: XCL_UMA_DRIVER=mixed:1536:1792 (a GPU_UPLOAD range ending at 3,328 MB) combined with a stored window size that does not leave that range whole inside the window: 2,895 MB cuts the range off, 3,407 MB leaves only a 79 MB CUSTOM tail (a small tail was also reported to lose the device on #505). So the fix is probably to clamp or drop mixed ranges that do not fit the window actually made, rather than anything specific to Series S.

    AI use: Claude Code (Claude Opus 5.5).

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