Repository navigation
Report Windows commit-limit failures in crashes.log - #51
Conversation
|
Tested
AI-assisted (DeepSeek V4.1 Flash coding agent). |
|
This covers the same commit-limit failure I had in #64, so I am closing mine One addition worth considering: a startup preflight in Nit on the test: |
|
Verified
No title data or small-pagefile host was available, so the real Windows error 1455 path was not exercised. |
Issue Marvisak#23 asks for a check at startup: a host whose paging file cannot take the 99,776 64 KiB pages (6.1 GiB) the title maps in one call on its first boot stops the title a few seconds in, and until Marvisak#51 only the bare failure reached the log. `xmem::commit_headroom` reads the system commit limit and what is left of it through `K32GetPerformanceInfo`, the call `commit_limit_message` already makes. `victory run` prints both in the startup block, next to the 6.1 GiB the first boot asks for, and adds a line when the headroom is short. Bug reports paste the startup block, so every one of them now carries the host's commit state beside the build hash and the console mode. Verified on Windows 11 x64 (AMD RX 7600), Rust 1.98.1: cargo test --workspace 265 passed, 0 failed, 4 ignored; clippy clean on victory-hle and victory, --all-targets; rustfmt --edition 2024 clean. The line itself needs a title to be seen, which this host has no dump for; the numbers behind it are covered by `commit_headroom_is_within_the_limit`. The `PERFORMANCE_INFORMATION` initializer in `commit` is fixed here as clippy asks, since it is the same struct and its warning was the crate's only one.
A refused XMemVirtualAlloc or XMemAllocDefault handed the title a null in silence, and the title then writes at null plus an offset, which reads like a title bug. In Marvisak#289 the faulting write is at 0x217800, the request's length 0x2173a0 rounded up to 2 KiB, so the base it built on was most likely such a null. At the commit limit, XMemVirtualAlloc now writes the same crashes.log report the physical-page commit writes since Marvisak#51 (the shared part is `commit_refused`); other refusals, and a host heap out of memory, are warnings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ostic Report Windows commit-limit failures in crashes.log
Problem
When Windows refuses to commit physical pages with error 1455, VIctory logs a warning that can be missed before the title hits a breakpoint. The subsequent crash report gives users little indication that the host ran out of commit capacity. Refs #23.
Change
crashes.log. Include the current system commit usage and limit when Windows supplies them.Verification
cargo test --workspace --lockedon Windows with Rust 1.98.1. 225 passed and three reference-data tests were ignored. The new test checks the report both with and without system commit counters.rustfmt --edition 2024 --check. Workspace-wide formatting already fails on upstream97c78d1.The diagnostic was verified with synthetic inputs. I did not run the title or exhaust the host's commit capacity. No game assets are included.
AI-assisted (OpenAI Codex).