Newer retail game: E_OUTOFMEMORY from video memory (CreateHeap 64 MB refused) at ~210 s on 6 GB VRAM #345
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#345
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?
@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:
sampled textures ("a resource of its own"), 1243-1434 times per run.
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
db1ddb2GPU 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
@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_OUTOFMEMORYfrom 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, zeroCreateHeap(0x4000000 …) refused, zerosparse windows: no video memoryin the whole log. The title's video-memory shape iscoherent 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.
@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.mdmeasures 15 to 19 GB ofcommit 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
WaveLaneCountMax32integration-mainof #2057,f7e08e6What happens
As Series X the title initialises and reaches the loading screens, then takes
an exception 0x80000003 at
game_scarlett_master.exe+0x193e00fwithrax=rcx=rsi=0x8007000e(E_OUTOFMEMORY). It happens right after XCL refusesa resource, so the title is reacting to the failure rather than failing on its
own:
The title reports
TileHeap: used (1174Mb) - total (6236Mb)and 5,013streaming 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.txtdeleted before each so the coherent window starts at its512 MB floor. None of them lasted five minutes: each ended at the exception
below, between 82 and 131 seconds in.
CreateHeaprefusedtitle_memory_mb = 10500XCL_VRAM_ARENAS=1XCL_LATE_RELEASE=0Every one of them ends at the same
+0x193e00f.XCL_VRAM_ARENAS=1is the one that helps. 512 arenas, 1.94 GB, and thevideo-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_mbdoes not move the tile heap. At 10,500 MiB instead of13,824 the title still reports
total (6236Mb), so it sizes that by consoletype rather than by the budget. It did cut "no video memory" from 4,895 to
21, so it changes something else.
XCL_LATE_RELEASE=0makes 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. Withuma_coherent.txtdeleted thewindow already starts at its 512 MB floor, so from reading
uma.rsIexpected 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_UScannot slow the clock. I tried 66,666 to spreadthe load over twice the wall time, and the log says
33333 us requested -> 33333 us effective: inframe.rsthe effectiveinterval 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 96andsystem.memory.free 486520(about 475 MB). So on this machine the videomemory 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_xsentries called about once aframe; I filed those separately.
Happy to run anything else on this configuration.
🤖 Generated with Claude Code
https://claude.ai/code/session_013pnbLtdoTFoEWJQyG7rozM