Repository navigation
HLE: report the Windows commit limit before a title's page pool fails - #64
Closed
WallasSCRIPTS wants to merge 1 commit into
Closed
WallasSCRIPTS wants to merge 1 commit into
WallasSCRIPTS wants to merge 1 commit into
Conversation
xmem maps the title's 6.5 GiB physical-page section and commits the whole view in one VirtualAlloc. When the paging file cannot cover it the only trace was a WARN, after which the title stops on its own breakpoint with no hint that the host ran out of commit. Read the system commit charge with K32GetPerformanceInfo, print it at the start of `victory run`, warn below 7 GiB of headroom, and on a failed commit log the size asked for, the limit and charge, the shortfall, and the paging file change that fixes it. Document the requirement in the README. Two tests cover the report and the charge reading. `cargo test -p victory-hle` has one pre-existing environment failure (display SDR deferrals, 0x80070032) unrelated to this change; clippy is clean and the diag build links.
|
Tested
AI-assisted (DeepSeek V4.1 Flash coding agent). |
Author
|
Closing this in favour of #51, which covers the same failure: the requested The one piece here that #51 does not have is a startup preflight: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relates to #23.
What
xmemmaps the title's 6.5 GiB pagefile-backed section and commits thewhole view with one
VirtualAlloc(MEM_COMMIT). When the Windows paging filecannot cover it,
commit()logged only a WARN; the title then stops on itsown
0x80000003breakpoint, which reads like a crash rather than a hostlimit.
K32GetPerformanceInfo.victory runprints the available commit and the limit, and warns below7 GiB of headroom before loading the title.
the shortfall, and the paging-file change that fixes it.
file.
Verification
cargo test -p victory-hle: 82 passed, 1 failed. The failure ismodules::display::tests::sdr_and_display_deferrals(0x80070032),reproduced on the unmodified checkout too — no display device here.
cargo clippy -p victory-hle -p victory --all-targets: clean.cargo build --profile diag -p victory --features diagnostics: links;victory.exe --helpruns.No game data and no small-pagefile host here, so the warning path is
verified by the API-reading test, not by a live run that hits error 1455.