Title stops at startup when Windows can't commit a 6.5 GB XMemVirtualAlloc (paging file too small, os error 1455) #23

Open
opened 2026-11-26 03:46:54 +00:00 by github-bot · 4 comments
Owner

@⁠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, xmem only 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.

DEBUG victory_hle::modules::xmem: XMemAllocatePhysicalPages n=99776 flags=0x380
DEBUG victory_hle::modules::xmem: XMemVirtualAlloc size=6538919936 kind=0x42000 flags=0x23 at=0xe1c800000
 WARN victory_hle::modules::xmem: committing physical pages failed len=6538919936 error=The paging file is too small for this operation to complete. (os error 1455)
VIctory: first-chance exception 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x1e6c29f
  #0  victory-image-b99f876b74d4a77f.dll+0x1e6c29f
  #1  victory-image-b99f876b74d4a77f.dll+0x19f5289
  #2  victory-image-b99f876b74d4a77f.dll+0x580437e
  #3  victory-image-b99f876b74d4a77f.dll+0x43a4911
  #4  victory-image-b99f876b74d4a77f.dll+0x224070b
  #5  victory-image-b99f876b74d4a77f.dll+0x23cf00a
  #6  victory-image-b99f876b74d4a77f.dll+0x2215eca
VIctory: unhandled exception 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x1e6c29f

99776 pages × 64 KB = 6,538,919,936 bytes, the same size as the failed commit.

Where

map() in crates/victory-hle/src/modules/xmem.rs maps the section view, then commit() calls VirtualAlloc(MEM_COMMIT) on the whole 6.5 GB view at once. When that fails, it logs a WARN and returns false. The title gets no usable memory and hits its breakpoint.

Memory at the time

From the title's own crash report:

  • 32 GB RAM, a system-managed paging file of about 12 GB, so a commit limit of about 44 GB
  • memory.load_percent 70: about 23 GB of RAM actually in use
  • system.memory.swap.free about 6 GB, which is less than the 6.5 GB requested

RAM itself wasn't full. The commit limit ran out.

To reproduce

  1. Use the default system-managed paging file on a 32 GB machine, with normal desktop apps open.
  2. victory run <game exe> --execute
  3. The title stops within about 3 seconds of launch.

Workaround

A fixed 32 GB paging file (initial = maximum = 32768 MB) fixes it: the allocation goes through and startup continues.

Suggestion

  • On a commit failure, report an error that names the paging file and the commit limit, or stop with that message, instead of only logging a WARN.
  • Or check the commit limit at startup and warn when it's too low.
  • Either way, add the page file requirement to the README's Requirements.

Environment

  • Windows 11, 32 GB RAM
  • Release and diag builds of main (2026-11-23)
  • Console: Series X
**@⁠bulva2** on GitHub · 2026-11-23 23:17 UTC · [original](https://github.com/Marvisak/VIctory/issues/23) ## What happens A few seconds after launch the title allocates 6.5 GB of physical pages and maps them. Windows refuses the commit, `xmem` only 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. ``` DEBUG victory_hle::modules::xmem: XMemAllocatePhysicalPages n=99776 flags=0x380 DEBUG victory_hle::modules::xmem: XMemVirtualAlloc size=6538919936 kind=0x42000 flags=0x23 at=0xe1c800000 WARN victory_hle::modules::xmem: committing physical pages failed len=6538919936 error=The paging file is too small for this operation to complete. (os error 1455) VIctory: first-chance exception 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x1e6c29f #0 victory-image-b99f876b74d4a77f.dll+0x1e6c29f #1 victory-image-b99f876b74d4a77f.dll+0x19f5289 #2 victory-image-b99f876b74d4a77f.dll+0x580437e #3 victory-image-b99f876b74d4a77f.dll+0x43a4911 #4 victory-image-b99f876b74d4a77f.dll+0x224070b #5 victory-image-b99f876b74d4a77f.dll+0x23cf00a #6 victory-image-b99f876b74d4a77f.dll+0x2215eca VIctory: unhandled exception 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x1e6c29f ``` 99776 pages × 64 KB = 6,538,919,936 bytes, the same size as the failed commit. ## Where `map()` in `crates/victory-hle/src/modules/xmem.rs` maps the section view, then `commit()` calls `VirtualAlloc(MEM_COMMIT)` on the whole 6.5 GB view at once. When that fails, it logs a `WARN` and returns `false`. The title gets no usable memory and hits its breakpoint. ## Memory at the time From the title's own crash report: - 32 GB RAM, a system-managed paging file of about 12 GB, so a commit limit of about 44 GB - `memory.load_percent` 70: about 23 GB of RAM actually in use - `system.memory.swap.free` about 6 GB, which is less than the 6.5 GB requested RAM itself wasn't full. The commit limit ran out. ## To reproduce 1. Use the default system-managed paging file on a 32 GB machine, with normal desktop apps open. 2. `victory run <game exe> --execute` 3. The title stops within about 3 seconds of launch. ## Workaround A fixed 32 GB paging file (initial = maximum = 32768 MB) fixes it: the allocation goes through and startup continues. ## Suggestion - On a commit failure, report an error that names the paging file and the commit limit, or stop with that message, instead of only logging a `WARN`. - Or check the commit limit at startup and warn when it's too low. - Either way, add the page file requirement to the README's Requirements. ## Environment - Windows 11, 32 GB RAM - Release and diag builds of `main` (2026-11-23) - Console: Series X
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:46:54 +00:00
Author
Owner

@⁠leonardo-silva-pinheiro on GitHub · 2026-11-24 02:57 UTC · original

Status of the three suggestions here:

  • Report the failure clearly: done in #51 (9aef3d9), which writes commit-limit failures to crashes.log.
  • Check the commit limit at startup: #224 (open).
  • Document the paging-file requirement: the README's "Getting started" now explains error 1455 and the paging-file fix.

So once #224 lands, this looks ready to close.

**@⁠leonardo-silva-pinheiro** on GitHub · 2026-11-24 02:57 UTC · [original](https://github.com/Marvisak/VIctory/issues/23#issuecomment-7120637226) Status of the three suggestions here: - Report the failure clearly: done in #51 (`9aef3d9`), which writes commit-limit failures to `crashes.log`. - Check the commit limit at startup: #224 (open). - Document the paging-file requirement: the README's "Getting started" now explains error 1455 and the paging-file fix. So once #224 lands, this looks ready to close.
Author
Owner

@⁠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_commit on Windows at d2a4bae1. 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.

**@⁠Dathinel** on GitHub · 2026-11-24 06:20 UTC · [original](https://github.com/Marvisak/VIctory/issues/23#issuecomment-7123830392) The opening post lists a diagnostic on allocation failure **or** a startup check, with README guidance in either case. [Merged PR #51](https://git.gtahub.st/github/Marvisak--VIctory/pulls/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](https://github.com/Marvisak/VIctory/blob/d2a4bae1f49533ef5cb512fd1b1ba1513f2e1989/README.md#L53-L56) 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_commit` on Windows at `d2a4bae1`. 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](https://git.gtahub.st/github/Marvisak--VIctory/issues/23) 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](https://git.gtahub.st/github/Marvisak--VIctory/pulls/224). AI tools assisted with this verification.
Author
Owner

@⁠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 commit 9aef3d9) changed commit and the new commit_refused in crates/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 to crashes.log (commit_limit_message) instead of only a WARN. 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 close label.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/23#issuecomment-7149932367) · edited 2026-11-25 01:51 UTC <!-- victory-issue-triage v1 verdict=proposed-close seen=2026-11-24T06:20:21Z at=2026-11-25T01:46:04Z --> Automated triage for the maintainers. Fixed in `main`. Pull request #51 (merge commit `9aef3d9`) changed `commit` and the new `commit_refused` in `crates/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 to `crashes.log` (`commit_limit_message`) instead of only a `WARN`. 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 close` label. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠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) in crashes.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.

**@⁠shawshanker18** on GitHub · 2026-11-26 08:29 UTC · [original](https://github.com/Marvisak/VIctory/issues/23#issuecomment-7186648640) 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)` in `crashes.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.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#23
No description provided.