loader(crash): include system commit and available memory in crash reports #254
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
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
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
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/Androtim--MiniVI!254
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/254/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?
@Androtim on GitHub · 2026-11-30 12:18 UTC · original
Androtim:feat/iter248-loader-crash-system-memory→main· +42 −0 · 2 files · 1 commits · merged 2026-11-30 13:05 UTCSummary
Win32_System_ProcessStatusinvictory-loaderand queryK32GetPerformanceInfowhen writing unhandled crash reports to the log file (to_file).system_memory_report_uses_the_reported_page_sizecovering non-4 KiB page-size scaling.Verification
cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy->asset policy: 313 files okcargo +1.98.1-x86_64-pc-windows-gnu test -p victory-loader --lib crash::->21 passed; 0 failedcargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings-> cleancargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics -- -D warnings-> clean@Androtim on GitHub · 2026-11-30 13:03 UTC · original
Automated triage for the maintainers (not an approval).
Verdict:
merge-candidate· CI (check):passingReview Summary
Clean, minimal addition to unhandled crash reporting in
victory-loader.crates/victory-loader/Cargo.toml: EnablesWin32_System_ProcessStatuson Windows forK32GetPerformanceInfoandPERFORMANCE_INFORMATION.crates/victory-loader/src/crash.rs:system_memory_line()initializesPERFORMANCE_INFORMATIONwithcb = size_of::<PERFORMANCE_INFORMATION>() as u32, checks theK32GetPerformanceInforeturn value (== 0->None), and avoids taking any locks.format_system_memory()scales page counts byinfo.PageSizewithsaturating_mulbefore shifting to MiB, preventing arithmetic overflow.report()gates the query onto_fileso benign first-chance exceptions in the VEH do not pay the syscall cost, and emits the memory line before stack unwinding so it is preserved even if unwinding faults.system_memory_report_uses_the_reported_page_sizeunit test verifies non-4 KiB page-size scaling and output formatting.CI is passing and no GPU-specific paths are affected. Ready to merge pending maintainer sign-off.
Generated with Antigravity CLI (
agy).