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

Open
opened 2026-12-06 00:06:47 +00:00 by github-bot · 1 comment
Owner

@⁠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+0x19f4f58 and r11=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, and cache\dstorage mappings leave no such hole, so VirtualAlloc fails. 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.rs calls VirtualAlloc2 and only logs on failure, with no early low-address reservation. The report asks for a reserve_low_window()-style reservation at the start of run(), an opt-out via LARP_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. The benni2250/ReLarpory fork is also affected.

**@⁠Slking999** on GitHub · 2026-12-05 23:57 UTC · [original](https://github.com/gamingwithhomie/larp/issues/385) [larp-issue-EN.md](https://github.com/user-attachments/files/35924831/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+0x19f4f58` and `r11=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`, and `cache\dstorage` mappings leave no such hole, so `VirtualAlloc` fails. 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.rs` calls `VirtualAlloc2` and only logs on failure, with no early low-address reservation. The report asks for a `reserve_low_window()`-style reservation at the start of `run()`, an opt-out via `LARP_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. The `benni2250/ReLarpory` fork is also affected.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-06 00:06:47 +00:00
Author
Owner

@⁠vanya890 on GitHub · 2026-12-06 01:21 UTC · original

I checked the current upstream implementation in crates/larp-hle/src/modules/xmem.rs: XMemVirtualAlloc passes the requested 32-bit address constraints to VirtualAlloc2, 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.

**@⁠vanya890** on GitHub · 2026-12-06 01:21 UTC · [original](https://github.com/gamingwithhomie/larp/issues/385#issuecomment-7449117826) I checked the current upstream implementation in `crates/larp-hle/src/modules/xmem.rs`: `XMemVirtualAlloc` passes the requested 32-bit address constraints to `VirtualAlloc2`, 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.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/gamingwithhomie--larp#385
No description provided.