v2026.11.29.01 fails to start: XMemVirtualAlloc refuses 6.24 GB MEM_RESERVE_PLACEHOLDER (os error 8) #2150
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#2150
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?
@LasVegas38919 on GitHub · 2026-11-29 09:58 UTC · original
Summary
v2026.11.29.01fails to start on this machine:XMemVirtualAllocrefuses a 6.24 GB 64K-page reservation.v2026.11.28.03runs fine with the same game files and the same command line.Environment
game_scarlett_master.exe(PEMachine = 0x8664, x64)The failing call
kind=0x42000isMEM_RESERVE | MEM_RESERVE_PLACEHOLDER,flags=0x23includesPAGES_64K.The very next line reports the request itself:
Then the title's Breakpad handler fires and the game exits.
This is not a memory shortage
Measured immediately after the crash:
So the system had plenty of commit and physical memory. The 6.24 GB placeholder
reservation simply does not find a contiguous hole inside the range the layer asks for.
What changed between builds
In the new build, 64K-page reservations go through
MEM_RESERVE_PLACEHOLDER(
crates/victory-hle/src/modules/xmem.rs:199-215), andaddress_range()(
xmem.rs) constrains the search to1 << 32 .. (1 << 40) - 1(4 GB .. 1 TB).The title has already taken, inside that same window:
With plain
MEM_RESERVE(the 28.03 behaviour) the allocator is free to place theblock anywhere and the game starts. With placeholders it must fit between those
and fails.
Reproduction
3 of 3 attempts crashed at the same address with identical size. Neither
VICTORY_XMEM_SECTIONS=1norVICTORY_WATCH_LARGE_XMEM=0changed anything(those are the only nearby knobs; none of the 14 environment variables in
xmem.rsdisables the placeholder path).Suggested fix
Fall back to a plain reservation when the placeholder call fails — that is the
28.03 behaviour:
A retry with
Highestwidened, or asking for the placeholder without a fixedlow bound, would very likely work as well.
Happy to test a patched build on this machine — it reproduces 100%.
@LasVegas38919 on GitHub · 2026-11-29 10:16 UTC · original
Correction to my own report — two things in the original body are wrong.
1. The address range is 4 GiB .. 128 GiB-1, not 4 GiB .. 1 TiB.
xmem.rs:148isconst TITLE_TOP_BITS: u32 = 37;, andxmem.rs:165clamps withbits.min(TITLE_TOP_BITS), so the 40 bits the flags ask for never reach theallocator.
xmem.rs:3785even assertshighest < 1 << TITLE_TOP_BITS. So thewindow is 128 GiB wide in total, and per #2081 / #2133 the largest free span
left in it is about 3.46 GiB — a 6.24 GiB request can never fit, no matter
where the allocator looks.
2. Retracting the "drop MEM_RESERVE_PLACEHOLDER and retry" suggestion.
That fallback is wrong on two counts:
xmem.rs:253only runswhen
watch_placementis set (a fixed base with write-watch). A null-baseplaceholder request never reaches it, and re-issuing the same size against the
same capped range fails the same way.
VirtualFree(MEM_RELEASE | MEM_PRESERVE_PLACEHOLDER)(xmem.rs:2606) andoverlaid with
MapViewOfFile3(MEM_REPLACE_PLACEHOLDER)(xmem.rs:2825), theallocation is recorded as a placeholder at
xmem.rs:194, partial replacementrelies on it (
xmem.rs:3540), and the lazy-mapping path only checksVirtualQueryforMEM_RESERVE/base/size (xmem.rs:3149,xmem.rs:3328) —a plain reservation passes that check and only fails later when the view is
materialised. That turns a clean startup failure into a much harder bug.
This is #2081, and PR #2133 already has the right shape: keep the capped
range first, and only on failure retry up to
console_top(flags)(the consolefield's own 40-bit limit, as before #1041). I have applied #2133's diff to
v2026.11.29.01 locally and am building it on this machine (9800X3D / RTX 3090 /
32 GB / Win11 22621, reproduces 100% on the unpatched build) — I will report back
with the log line and whether the title gets past
+0x1e6c284.@LasVegas38919 on GitHub · 2026-11-29 11:55 UTC · original
Okay, I'm retrying the approach — if anything new comes up, I'll report it right away.