HLE: a refused audio heap allocation is told in the crash log (port of Marvisak#1720) #670
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!670
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-670"
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?
@kibagami-nc on GitHub · 2026-11-28 03:15 UTC · original
kibagami-nc:fix/apu-heap-refusals-logged→main· +112 −20 · 2 files · 1 commits · merged 2026-11-29 08:16 UTCThe problem
When the host allocator refuses an APU (audio) heap allocation,
ApuAllocreturnsE_OUTOFMEMORYand nothing is written anywhere. A title that does not check the result crashes a moment later on a write near null. The crash log then points at the title instead of at the cause, which is the system running out of commit. That is the case on PCs with little RAM or a small paging file.The change
crashes.log. The entry gives the size asked for and the system's commit (in use and limit), the way xmem's commit-limit report already does, with a hint at Windows' paging file size.This is a port of imjustprism's fix (Marvisak/VIctory#1720, refs Marvisak/VIctory#289). Upstream reproduced the crash by running the title in a job object with a 7.1 GB commit cap:
crashes.logthen starts with the refused allocation (about 401 MiB) and the commit numbers.The two conflicts were small:
audio.rs, this tree's log line for big audio allocations is kept with the newOkreturn;xmem.rs, this tree's tests sit beside the new one.It also merges cleanly with #538, which changes another part of
xmem.rs.Tests
xmem::tests::allocator_refusal_report_names_apu_heap_and_system_commit: the report's text, with and without the system's commit numbers. The host allocator cannot be made to return null in a test.cargo test -p victory-hle --locked --lib: 189 passed, 3 ignored, plus 1.cargo clippy -p victory-hle --all-targets -- -D warnings, with and without--all-features: no warnings. To get there, clippy needed the four fixes of #665 applied, sincemainstops it invictory-gpufirst.No game files, dumps or extracted data are included.
@Dukestar69 on GitHub · 2026-11-28 05:36 UTC · original · approved these changes
LGTM — verified on Windows:
cargo test -p victory-hle --lib audio(8/8) andxmem(23/23, includingallocator_refusal_report_names_apu_heap_and_system_commit) passedcargo xtask policypassed (294 files ok)Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).