Startup assert at larp-image+0x19f4f58 (0x80000003, r11=0xc0000017) on RX 9070 XT: the title's 185 MB 32-bit heap gets no contiguous stretch below 4 GiB — 12 of 12 launches #385
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/gamingwithhomie--larp#385
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@Slking999 on GitHub · 2026-12-05 23:57 UTC · original
larp-issue-EN.md
Summary: On an AMD Radeon RX 9070 XT (RDNA 4), LARP fails before its first frame in 12/12 launches with an assert at
larp-image+0x19f4f58andr11=0xc0000017(STATUS_NO_MEMORY). This is not a RAM shortage: 23.5 GB RAM and 68.9 GB commit were free. The title’s 32-bit graphics heap requests a contiguous ~185 MB region below 4 GiB, but by then the title image, driver, FSR loader,cache\images, andcache\dstoragemappings leave no such hole, soVirtualAllocfails. Settings such as resolution, upscaler mode, frame generation, and DStorage cache do not change the crash because it occurs before resource creation. The root cause matches ReVIctory PR #43:xmem.rscallsVirtualAlloc2and only logs on failure, with no early low-address reservation. The report asks for areserve_low_window()-style reservation at the start ofrun(), an opt-out viaLARP_LOW_WINDOW_MB(default 256,0= current behavior), and a diagnostic showing what occupies space below 4 GiB. On the same machine, upstream failed 10/10 launches, while the ReVIctory-style fix was refused 0/10 and reached the title 9/10. Thebenni2250/ReLarporyfork is also affected.@vanya890 on GitHub · 2026-12-06 01:21 UTC · original
I checked the current upstream implementation in
crates/larp-hle/src/modules/xmem.rs:XMemVirtualAllocpasses the requested 32-bit address constraints toVirtualAlloc2, but I do not see an early low-address reservation before the title and its runtime dependencies map their images/caches. That is consistent with the failure mode described here: a later ~185 MiB contiguous allocation below 4 GiB can fail even while system commit and physical RAM remain available.The proposed early reservation is therefore a plausible direction, but it needs to be placed before the title image / FSR / DStorage mappings consume the low range, and it must remain optional because reserving address space can conflict with other 32-bit mappings. The useful acceptance criteria would be: a diagnostic showing the reserved interval and any failed reservation, an opt-out preserving today's behavior, and repeated launch results on the affected RX 9070 XT. If you have the tested ReVIctory-style patch, a minimal diff or commit reference would let maintainers compare the exact reservation lifetime and cleanup semantics rather than reimplementing it from the description.