xmem: keep a stretch below 4 GiB for the title's 32-bit graphics heap (#385) #511
No reviewers
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!511
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-511"
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?
@gabrielcorreabsb on GitHub · 2026-12-06 01:41 UTC · original
gabrielcorreabsb:pr/low-window→main· +274 −16 · 3 files · 2 commits · openAddresses #385: on an RX 9070 XT the title stops at boot with
0x80000003at+0x19f4f58(r11=0xc0000017) with memory to spare. Its 32-bit graphics heap asks once for a placeholder of about 185 MB below 4 GiB, after the title image, its DLLs, the driver and the rest of the process are in place, and by then there can be no free stretch that big.A run now reserves 256 MB below 4 GiB as a placeholder before anything else and splits the title's heap off its front, letting the rest go. A request that does not fit lets the whole stretch go for the host to place, as before. A refused 32-bit request now logs what holds the addresses below 4 GiB.
LARP_LOW_WINDOW_MBsets the size (default 256);0keeps nothing, as before. Documented indocs/environment-variables.md.Ported from ReVIctory
03d164e(PR #43) by staticman256.Tested
v1.1.6-amd(b7ab1fd): the release build had stopped at boot at+0x19f4f58; with the change the log shows the stretch kept, the 193,986,560-byte heap placed in it, and the title got past boot into its menu (pipelines compiling). The failure is intermittent and this is a small sample from one PC.main):cargo check -p larpand a new unit test (the_title_heap_is_split_off_the_kept_stretch) pass. Themainbuild itself was not run in game.🤖 Generated with Claude Code
@christopear on GitHub · 2026-12-06 02:02 UTC · original
I extended the low-window check locally on
eb62aa10and ran it in five fresh Proton Experimental processes. All five passed with a 256 MiB reservation below 4 GiB.The window was consumed only once in each case. This exercises the actual placeholder APIs under Proton. It doesn't reproduce the original fragmented launch or test the caller's subsequent allocation.
Optional test patch for the boundary cases
Run the ignored test by itself in a fresh process with
LARP_LOW_WINDOW_MB=256. It shares global state with the existing test and assumes the process can reserve the initial window. If folding this into the regular suite I'd combine the cases in your existing test or serialize them.@gabrielcorreabsb on GitHub · 2026-12-06 03:36 UTC · original
Thanks for running this under Proton, it's the first outside check of the change. I folded your three boundary cases (185 MiB split, 256 MiB exact fit, 257 MiB refused and released) into the existing test as one test, so they run in turn on the shared window and need no
#[ignore]; it's in93b2ae8, crediting you. On my side (RX 9070 XT, Windows) the original failure at+0x19f4f58went away onv1.1.6-amdplus this change. Like you say, neither of us has reproduced the fragmented launch deterministically, so I'd keep #385 open until its reporter confirms.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.