acphal: ProjectScarlett crashes at start-up since #527 (non-cached APU heap is 0x1800 bytes short) #556
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?
Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-29T23:16:33Z.
ProjectScarlett crashes at start-up on
mainsince #527. Found by bisecting 4198b48c..6bab5478 on an RTX 5090 (the good end was an integration build on4198b48c, not plain), with the launch fix of #551 and #535's DXC helper. First bad:051bdf79(#527); its parent9a266c1ais good, and so is72e266bf(#476).What happens
The title's own start-up code faults in a memory copy (
VCRUNTIME140+0x1989, called fromgame_scarlett_master.exe+0x43AED60), 30 to 100 s in; exit code 5. Log of the APU calls (a local log-only patch):0x5800 (0x5780 rounded up to the 0x800 alignment) + 0x222e00 is 0x228600, and the heap has 0x226e00: 0x1800 short. Before #527 both heaps were one region of both sizes together, so it fitted.
What I don't know
Whether the console keeps these contexts in the title's non-cached heap, and how much it really allocates for a title's size. The title works on the console with these numbers, so it has at least 0x5780 + 0x222e00 + alignment, if the contexts are there.
Measured: rounding the non-cached size up to 64 KiB (0x230000) makes the game start on plain
main(f482572a); it ran until my 2-minute limit. That's a guess at the reason (64 KiB is the granule of the host memory), not a fact about the console. An alternative is to keep the contexts out of the title's heap.@csj0oe this is your area: would you rather fix it, or shall I? I'll open a draft with the rounding and a test so that something can be run now; take it or replace it.
Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-29T23:20:54Z.
Duplicate of #554, which I missed when I searched. The APU trace is in a comment there.