Report Windows commit-limit failures in crashes.log #51
No reviewers
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!51
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/51/head"
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?
@BaggyALPHA on GitHub · 2026-11-23 23:49 UTC · original
BaggyALPHA:fix/windows-commit-limit-diagnostic→main· +68 −10 · 2 files · 1 commits · merged 2026-11-24 00:43 UTCProblem
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).
@DaviTostes on GitHub · 2026-11-24 00:09 UTC · original
Tested
7e42fefstacked on #39 on Arch Linux x86_64, rustc 1.98.1: pass (no regression only).cargo test --workspace: 155 passed, 0 failed, 3 ignored; merge with #39 clean.xmemcommit-limit text incrashes.log), so the Linux run covers the portable HLE suite around it.crates/victory-hle/src/modules/xmem.rsarea for the same purpose (reporting the commit limit before the page pool fails). Worth picking one shape between the two.AI-assisted (DeepSeek V4.1 Flash coding agent).
@WallasSCRIPTS on GitHub · 2026-11-24 00:09 UTC · original
This covers the same commit-limit failure I had in #64, so I am closing mine
in your favour —
crashes.logis a better place for the report than a logline alone.
One addition worth considering: a startup preflight in
victory runthatreads
K32GetPerformanceInfoonce and prints available commit and thelimit, warning below ~7 GiB of headroom before the title loads. A user with
a small pagefile then sees the cause before the breakpoint, and the
crashes.logreport confirms it if it still fails. My now-closed #64 hasthat piece in
apps/victory/src/run.rsand two tests for the report and thecharge reading if you want to fold it in.
Nit on the test:
PERFORMANCE_INFORMATIONis initialized with..Default::default(), socbis set afterwards — that is fine, butcb: size_of::<...>() as u32in the struct literal is clearer and matchesthe other callers.
@WallasSCRIPTS on GitHub · 2026-11-24 00:41 UTC · original
Verified
7e42fefon Windows 11 / AMD RX 7600 with Rust 1.98.1:modules::xmem::tests::commit_limit_report_includes_request_and_system_commitpasses.cargo test -p victory-hle: 81 passed, 1 failed —modules::display::tests::sdr_and_display_deferrals(0x80070032). This same display test fails on an unmodifiedmaincheckout here because the machine has no display device.cargo build --profile diag -p victory --features diagnosticslinks, andvictory.exe --helpruns.field_reassign_with_defaultatxmem.rs:650, whereinfo.cbis assigned afterPERFORMANCE_INFORMATION::default(); initializingcbin the struct literal clears it.No title data or small-pagefile host was available, so the real Windows error 1455 path was not exercised.