Newer retail game: E_OUTOFMEMORY from video memory (CreateHeap 64 MB refused) at ~210 s on 6 GB VRAM #345

Open
opened 2026-11-26 04:20:44 +00:00 by github-bot · 2 comments
Owner

@⁠josetrindade1 on GitHub · 2026-11-24 00:05 UTC · original

Game and package version

Newer retail game (game_scarlett_master.exe), Identity Name , version 930.048.020

What happens

The game starts, reaches its menus and runs at about 30 fps. Around 140-217 s
into the run (212-217 s in the last three runs) allocations start failing with
E_OUTOFMEMORY, apparently video memory:

  • CreatePlacedResourceX starts returning 0x8007000e (E_OUTOFMEMORY) for
    sampled textures ("a resource of its own"), 1243-1434 times per run.
  • Then the game hits its own assert (int3, 0x80000003) in game_scarlett_master.exe.
    In the first run rax/rcx/rsi were exactly 0x8007000e at the crash.

Run with XCL_VRAM_ARENAS=1 (same timing, ~212 s):

D3D12.X: CreateHeap(0x4000000 bytes, type 1, alignment 0x0, flags 0xc0)
refused (0x8007000e)
sparse windows: no video memory for more tiles (0x8007000E)

and the process then crashes inside the NVIDIA driver:
unhandled exception 0xc0000005 in nvwgf2umx.dll+0x85b227 (read at address 0x3c)

Without XCL_VRAM_ARENAS the logs only show the CreatePlacedResourceX failures;
I did not see the "sparse windows: no video memory" line there.

Context from the log: "console code so far: ... coherent 3998/4095 MB,
sparse 7445 MB, 214 blocks held for 214 allocators". The GPU has 5966 MiB of
VRAM, so the sparse windows plus the coherent window seem to ask for more than
the card can give.

What I ruled out: the Windows commit limit. Breakpad reported
swap.total 173851612 KB with 147994436 KB free at the crash (page files set to
~150 GB). Physical RAM was 16 GB at 96 % load, so I cannot rule out that it
contributes (shared GPU memory). Shader translation is fine:
failed_pipelines 0, fallback_pipelines 0.

What I expected: either that the memory fits, or that XCL fails the call in a
way the game survives. The game itself cannot recover from a failed texture.

Attached: reports and logs of one normal run and one run with XCL_VRAM_ARENAS=1
(user name removed from the paths).

XCL version

0.1.0, commit db1ddb2

GPU and driver version

NVIDIA GeForce GTX 1660 SUPER, 32.0.16.2124

Windows version

Windows 11 26H2 (26300.9974)

report.json and xcl.log

report.json
xcl.log

Console output


**@⁠josetrindade1** on GitHub · 2026-11-24 00:05 UTC · [original](https://github.com/xcl-dev/xcl/issues/345) ### Game and package version Newer retail game (game_scarlett_master.exe), Identity Name <package id>, version 930.048.020 ### What happens The game starts, reaches its menus and runs at about 30 fps. Around 140-217 s into the run (212-217 s in the last three runs) allocations start failing with E_OUTOFMEMORY, apparently video memory: - CreatePlacedResourceX starts returning 0x8007000e (E_OUTOFMEMORY) for sampled textures ("a resource of its own"), 1243-1434 times per run. - Then the game hits its own assert (int3, 0x80000003) in game_scarlett_master.exe. In the first run rax/rcx/rsi were exactly 0x8007000e at the crash. Run with XCL_VRAM_ARENAS=1 (same timing, ~212 s): D3D12.X: CreateHeap(0x4000000 bytes, type 1, alignment 0x0, flags 0xc0) refused (0x8007000e) sparse windows: no video memory for more tiles (0x8007000E) and the process then crashes inside the NVIDIA driver: unhandled exception 0xc0000005 in nvwgf2umx.dll+0x85b227 (read at address 0x3c) Without XCL_VRAM_ARENAS the logs only show the CreatePlacedResourceX failures; I did not see the "sparse windows: no video memory" line there. Context from the log: "console code so far: ... coherent 3998/4095 MB, sparse 7445 MB, 214 blocks held for 214 allocators". The GPU has 5966 MiB of VRAM, so the sparse windows plus the coherent window seem to ask for more than the card can give. What I ruled out: the Windows commit limit. Breakpad reported swap.total 173851612 KB with 147994436 KB free at the crash (page files set to ~150 GB). Physical RAM was 16 GB at 96 % load, so I cannot rule out that it contributes (shared GPU memory). Shader translation is fine: failed_pipelines 0, fallback_pipelines 0. What I expected: either that the memory fits, or that XCL fails the call in a way the game survives. The game itself cannot recover from a failed texture. Attached: reports and logs of one normal run and one run with XCL_VRAM_ARENAS=1 (user name removed from the paths). ### XCL version 0.1.0, commit db1ddb2 ### GPU and driver version NVIDIA GeForce GTX 1660 SUPER, 32.0.16.2124 ### Windows version Windows 11 26H2 (26300.9974) ### report.json and xcl.log [report.json](https://github.com/user-attachments/files/35304415/report.json) [xcl.log](https://github.com/user-attachments/files/35304416/xcl.log) ### Console output ```text ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:20:44 +00:00
Author
Owner

@⁠MonkeyPython on GitHub · 2026-11-24 02:33 UTC · original

Non-6 GB data point past 210 s: on a 12 GB card the video-memory OOM does not happen — the loading phase runs past the point where this issue's 6 GB card died, with no E_OUTOFMEMORY from video memory.

Setup: Windows 11 Pro 26300, Ryzen 7 7800X3D, 32 GB, RTX 3080 Ti 12 GB (driver 621.01), main 508a0c7 (post-#288), release, XCL_NETWORK=0 + firewall, GTA VI Series 1.0.2.1, 3840×2160. Scripted menu walk (XCL_PRESS_AT) into loading; the run lasted 266 s (past this issue's ~210 s failure point) and ended in the #232 null write, not a memory failure.

Result: zero CreatePlacedResourceX … 0x8007000e, zero CreateHeap(0x4000000 …) refused, zero sparse windows: no video memory in the whole log. The title's video-memory shape is coherent 3998/4095 MB, sparse 7445 MB, 99 blocks held for 98 allocators — the sparse 7445 MB fits in 12 GB (it does not fit in 6 GB: 7445 MB > 5966 MiB, this issue's own arithmetic). BCPack refusals reached 2048 (BC1 1764 / BC5 107 / BC6H 1 / BC7 176) as loading progressed.

What did run out was system RAM, not VRAM: xcl private commit grew 14.8 → 39.5 GB between t=122 and t=274 on this 32 GB machine, free physical RAM fell to ~0.1 GB, and the window showed 0.0 FPS before the crash — the #542 shape. So on this host the binding memory constraint in loading is system RAM (DXC compile pressure), while video memory stays within the 12 GB budget.

Not tested: 8 GB cards, other titles, whether the null write is related to the system-RAM pressure.

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.

**@⁠MonkeyPython** on GitHub · 2026-11-24 02:33 UTC · [original](https://github.com/xcl-dev/xcl/issues/345#issuecomment-7120266326) Non-6 GB data point past 210 s: on a 12 GB card the video-memory OOM does not happen — the loading phase runs past the point where this issue's 6 GB card died, with no `E_OUTOFMEMORY` from video memory. **Setup:** Windows 11 Pro 26300, Ryzen 7 7800X3D, 32 GB, RTX 3080 Ti **12 GB** (driver 621.01), main `508a0c7` (post-#288), release, `XCL_NETWORK=0` + firewall, GTA VI Series 1.0.2.1, 3840×2160. Scripted menu walk (`XCL_PRESS_AT`) into loading; the run lasted 266 s (past this issue's ~210 s failure point) and ended in the #232 null write, not a memory failure. **Result:** zero `CreatePlacedResourceX … 0x8007000e`, zero `CreateHeap(0x4000000 …) refused`, zero `sparse windows: no video memory` in the whole log. The title's video-memory shape is `coherent 3998/4095 MB, sparse 7445 MB, 99 blocks held for 98 allocators` — the sparse 7445 MB fits in 12 GB (it does not fit in 6 GB: 7445 MB > 5966 MiB, this issue's own arithmetic). BCPack refusals reached 2048 (BC1 1764 / BC5 107 / BC6H 1 / BC7 176) as loading progressed. **What did run out was system RAM, not VRAM:** xcl private commit grew 14.8 → 39.5 GB between t=122 and t=274 on this 32 GB machine, free physical RAM fell to ~0.1 GB, and the window showed 0.0 FPS before the crash — the #542 shape. So on this host the binding memory constraint in loading is system RAM (DXC compile pressure), while video memory stays within the 12 GB budget. **Not tested:** 8 GB cards, other titles, whether the null write is related to the system-RAM pressure. **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.
Author
Owner

@⁠iNaxxs on GitHub · 2026-11-25 09:49 UTC · original

Where XCL stands on a machine below the one the project is developed on: 6 GB
of video memory and 16 GB of system RAM. HANDOFF.md measures 15 to 19 GB of
commit in the menus on a 32 GB machine, so this is under that by design, and I
thought the failure points might be worth having.

Menus are fine: 30.0 fps at 1920x1080, steady. Everything below is the load.

Machine

CPU AMD Ryzen 5 8645HS (Zen 4, 6 cores / 12 threads)
GPU NVIDIA GeForce RTX 4050 Laptop GPU, 6 GB (5,920 MiB), driver 616.56
WaveLaneCountMax 32
RAM 16 GB (15.3 usable), page file 42 GiB
OS Windows 11, High performance, on AC
Branch integration-main of #2057, f7e08e6

What happens

As Series X the title initialises and reaches the loading screens, then takes
an exception 0x80000003 at game_scarlett_master.exe+0x193e00f with
rax=rcx=rsi=0x8007000e (E_OUTOFMEMORY). It happens right after XCL refuses
a resource, so the title is reacting to the failure rather than failing on its
own:

D3D12.X: CreateHeap(0x4000000 bytes, type 1, alignment 0x0, flags 0xc0) refused (0x8007000e)
sparse windows: no video memory for more tiles (0x8007000E)              x4815
D3D12.X: no video memory for more pages of title textures (0x8007000E)   x80
D3D12.X: CreatePlacedResourceX at 0x125ade0000: dimension 3 1024x1024 format 99 flags 0x300000 - a resource of its own (0x8007000e)

The title reports TileHeap: used (1174Mb) - total (6236Mb) and 5,013
streaming requests at that point, with the player at a fixed position and no
mission or script sequence loaded.

What the knobs did

Each run is the same save and the same way in, one variable at a time, with
uma_coherent.txt deleted before each so the coherent window starts at its
512 MB floor. None of them lasted five minutes: each ended at the exception
below, between 82 and 131 seconds in.

Run Duration Title's frame "no video memory" CreateHeap refused fps by segment
Series X, default budget 102 s 1,902 4,895 yes 25-30
title_memory_mb = 10500 82 s 570 21 yes 30.0 / 25.9 / 29.0
+ XCL_VRAM_ARENAS=1 131 s 1,499 0 0 30.0 / 28.9 / 23.2 / 20.4 / 16.8 / 20.4
+ XCL_LATE_RELEASE=0 117 s 1,328 0 0 30.0 / 25.7 / 23.2 / 22.5 / 20.7 / 22.5

Every one of them ends at the same +0x193e00f.

  • XCL_VRAM_ARENAS=1 is the one that helps. 512 arenas, 1.94 GB, and the
    video-memory complaints go to zero. It also costs: submissions went from
    0.18 ms to 6.94 ms and the frame rate from 30 to 17-20.
  • title_memory_mb does not move the tile heap. At 10,500 MiB instead of
    13,824 the title still reports total (6236Mb), so it sizes that by console
    type rather than by the budget. It did cut "no video memory" from 4,895 to
    21, so it changes something else.
  • XCL_LATE_RELEASE=0 makes it worse. RAM goes to 99% with 140 MB free,
    fewer frames than with it on, and at the end a 133-element buffer could not
    be created.
  • XCL_COHERENT_MB: not tested. With uma_coherent.txt deleted the
    window already starts at its 512 MB floor, so from reading uma.rs I
    expected raising it to take more commit rather than less and did not run it.
    Say the word if that reasoning is wrong and I will measure it.
  • XCL_FRAME_INTERVAL_US cannot slow the clock. I tried 66,666 to spread
    the load over twice the wall time, and the log says
    33333 us requested -> 33333 us effective: in frame.rs the effective
    interval is min(requested, override), so the override only raises the rate.
    Worth a line in the docs, or the clamp loosened, if slowing it is ever
    useful for a machine like this.

With arenas on, the title's crash report says memory.load_percent 96 and
system.memory.free 486520 (about 475 MB). So on this machine the video
memory that does not fit in 6 GB goes to shared RAM, and 16 GB is not enough
for the load. I do not think any setting fixes that here; I am reporting where
it breaks and which knob moved what.

Also in these runs

40 mesh pipelines refused and 5 stubbed d3d12_xs entries called about once a
frame; I filed those separately.

Happy to run anything else on this configuration.


🤖 Generated with Claude Code

https://claude.ai/code/session_013pnbLtdoTFoEWJQyG7rozM

**@⁠iNaxxs** on GitHub · 2026-11-25 09:49 UTC · [original](https://github.com/xcl-dev/xcl/issues/345#issuecomment-7158852114) Where XCL stands on a machine below the one the project is developed on: 6 GB of video memory and 16 GB of system RAM. `HANDOFF.md` measures 15 to 19 GB of commit in the menus on a 32 GB machine, so this is under that by design, and I thought the failure points might be worth having. Menus are fine: 30.0 fps at 1920x1080, steady. Everything below is the load. ## Machine | | | |---|---| | CPU | AMD Ryzen 5 8645HS (Zen 4, 6 cores / 12 threads) | | GPU | NVIDIA GeForce RTX 4050 Laptop GPU, 6 GB (5,920 MiB), driver 616.56 | | | `WaveLaneCountMax` 32 | | RAM | 16 GB (15.3 usable), page file 42 GiB | | OS | Windows 11, High performance, on AC | | Branch | `integration-main` of #2057, `f7e08e6` | ## What happens As Series X the title initialises and reaches the loading screens, then takes an exception 0x80000003 at `game_scarlett_master.exe+0x193e00f` with `rax=rcx=rsi=0x8007000e` (`E_OUTOFMEMORY`). It happens right after XCL refuses a resource, so the title is reacting to the failure rather than failing on its own: ``` D3D12.X: CreateHeap(0x4000000 bytes, type 1, alignment 0x0, flags 0xc0) refused (0x8007000e) sparse windows: no video memory for more tiles (0x8007000E) x4815 D3D12.X: no video memory for more pages of title textures (0x8007000E) x80 D3D12.X: CreatePlacedResourceX at 0x125ade0000: dimension 3 1024x1024 format 99 flags 0x300000 - a resource of its own (0x8007000e) ``` The title reports `TileHeap: used (1174Mb) - total (6236Mb)` and 5,013 streaming requests at that point, with the player at a fixed position and no mission or script sequence loaded. ## What the knobs did Each run is the same save and the same way in, one variable at a time, with `uma_coherent.txt` deleted before each so the coherent window starts at its 512 MB floor. None of them lasted five minutes: each ended at the exception below, between 82 and 131 seconds in. | Run | Duration | Title's frame | "no video memory" | `CreateHeap` refused | fps by segment | |---|---|---|---|---|---| | Series X, default budget | 102 s | 1,902 | 4,895 | yes | 25-30 | | `title_memory_mb = 10500` | 82 s | 570 | 21 | yes | 30.0 / 25.9 / 29.0 | | + `XCL_VRAM_ARENAS=1` | 131 s | 1,499 | 0 | 0 | 30.0 / 28.9 / 23.2 / 20.4 / 16.8 / 20.4 | | + `XCL_LATE_RELEASE=0` | 117 s | 1,328 | 0 | 0 | 30.0 / 25.7 / 23.2 / 22.5 / 20.7 / 22.5 | Every one of them ends at the same `+0x193e00f`. - **`XCL_VRAM_ARENAS=1` is the one that helps.** 512 arenas, 1.94 GB, and the video-memory complaints go to zero. It also costs: submissions went from 0.18 ms to 6.94 ms and the frame rate from 30 to 17-20. - **`title_memory_mb` does not move the tile heap.** At 10,500 MiB instead of 13,824 the title still reports `total (6236Mb)`, so it sizes that by console type rather than by the budget. It did cut "no video memory" from 4,895 to 21, so it changes something else. - **`XCL_LATE_RELEASE=0` makes it worse.** RAM goes to 99% with 140 MB free, fewer frames than with it on, and at the end a 133-element buffer could not be created. - **`XCL_COHERENT_MB`: not tested.** With `uma_coherent.txt` deleted the window already starts at its 512 MB floor, so from reading `uma.rs` I expected raising it to take more commit rather than less and did not run it. Say the word if that reasoning is wrong and I will measure it. - **`XCL_FRAME_INTERVAL_US` cannot slow the clock.** I tried 66,666 to spread the load over twice the wall time, and the log says `33333 us requested -> 33333 us effective`: in `frame.rs` the effective interval is `min(requested, override)`, so the override only raises the rate. Worth a line in the docs, or the clamp loosened, if slowing it is ever useful for a machine like this. With arenas on, the title's crash report says `memory.load_percent 96` and `system.memory.free 486520` (about 475 MB). So on this machine the video memory that does not fit in 6 GB goes to shared RAM, and 16 GB is not enough for the load. I do not think any setting fixes that here; I am reporting where it breaks and which knob moved what. ## Also in these runs 40 mesh pipelines refused and 5 stubbed `d3d12_xs` entries called about once a frame; I filed those separately. Happy to run anything else on this configuration. --- 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_013pnbLtdoTFoEWJQyG7rozM
This discussion has been locked. Commenting is limited to contributors.
No description provided.