Title stops at startup when Windows can't commit a 6.5 GB XMemVirtualAlloc (paging file too small, os error 1455) #23
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#23
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?
@bulva2 on GitHub · 2026-11-23 23:17 UTC · original
What happens
A few seconds after launch the title allocates 6.5 GB of physical pages and maps them. Windows refuses the commit,
xmemonly logs a warning, and the title then stops on a breakpoint (0x80000003). From the outside it looks like a title crash, not a memory limit on the host.99776 pages × 64 KB = 6,538,919,936 bytes, the same size as the failed commit.
Where
map()incrates/victory-hle/src/modules/xmem.rsmaps the section view, thencommit()callsVirtualAlloc(MEM_COMMIT)on the whole 6.5 GB view at once. When that fails, it logs aWARNand returnsfalse. The title gets no usable memory and hits its breakpoint.Memory at the time
From the title's own crash report:
memory.load_percent70: about 23 GB of RAM actually in usesystem.memory.swap.freeabout 6 GB, which is less than the 6.5 GB requestedRAM itself wasn't full. The commit limit ran out.
To reproduce
victory run <game exe> --executeWorkaround
A fixed 32 GB paging file (initial = maximum = 32768 MB) fixes it: the allocation goes through and startup continues.
Suggestion
WARN.Environment
main(2026-11-23)@leonardo-silva-pinheiro on GitHub · 2026-11-24 02:57 UTC · original
Status of the three suggestions here:
9aef3d9), which writes commit-limit failures tocrashes.log.So once #224 lands, this looks ready to close.
@Dathinel on GitHub · 2026-11-24 06:20 UTC · original
The opening post lists a diagnostic on allocation failure or a startup check, with README guidance in either case. Merged PR #51 implements the first option. On error 1455, it prints the requested size and paging-file guidance to stderr and tries to append the message to the configured
crashes.log. It includes system commit usage and the limit when Windows supplies them. The Getting started section says where to check committed memory and what to do on error 1455.I ran
modules::xmem::tests::commit_limit_report_includes_request_and_system_commiton Windows atd2a4bae1. It passed for the message with synthetic commit counters and for the fallback when counters are unavailable. The test exercises formatting only.The earlier comment suggested waiting for #224. Does the on-failure option cover your reporting request? If so, this issue can close while the alternative startup check continues in #224. AI tools assisted with this verification.
@Marvisak on GitHub · 2026-11-25 01:46 UTC · original · edited 2026-11-25 01:51 UTC
Automated triage for the maintainers.
Fixed in
main. Pull request #51 (merge commit9aef3d9) changedcommitand the newcommit_refusedincrates/victory-hle/src/modules/xmem.rs: on error 1455 the requested size, the system's commit usage and limit, and the paging-file advice are now written tocrashes.log(commit_limit_message) instead of only aWARN. The README's "Getting started" section now explains where to check committed memory and what to do on error 1455. The optional startup check is still open as #224 and can continue there.This issue will be closed in 48 hours unless the reporter replies or a maintainer removes the
triage: proposed closelabel.Generated by Claude Code
@shawshanker18 on GitHub · 2026-11-26 08:29 UTC · original
One more case worth a line in the README guidance, from an RTX 4050 laptop with 16 GB of RAM: a paging file set to grow (initial 16 GB, max 32 GB) works on one day and fails the next. Yesterday the file had grown, the commit limit was ~48 GB, and the title reached the world in every run. After a restart, Windows shrinks the file back to its initial size, the limit drops to ~32 GB, and every run stops on the start screen with
commit limit reached while committing 6538919936 bytes of physical pages (os error 1455)incrashes.log. The window stays at the start screen (13 draws/frame) with no crash dialog, so it looks like a hang.Windows grows the file only after a failed commit, and the title commits the 6.5 GB pool in one call, so the file never grows in time. Setting the initial size, not only the maximum, fixes it: initial 32 GB / max 48 GB gives a 48 GB limit right after boot.
The real fix is committing in pieces, which is #561.