Hotline Miami (PPSA09682) on Windows: with both module directories it stops in Loading.PreloadManager (app.exe+0x7a6730, array with null data pointer) #3805
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 boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T16:54:43Z.
Hotline Miami (PPSA09682, Unity) on Windows,
maina11c8f7f7, relinked with--windows --module-dir Media/Modules --module-dir Media/Plugins: all 12 modules convert and the import audit has no named absent imports. With both directories the PSNCore start-up fault and the later null-function-pointer stop (#846, #2724) do not occur, and the title reaches level 1. It then stops deterministically (6 of 6 runs):Last file opened:
/app0/Media/sharedassets1.assets.What is established:
app.exe+0x7a6690reads an element count (0x2b) from the stream and stores 40-byte elements into an array object. A healthy empty array looks like{data=0, label|0x2b, size=0, capacity=1}(logged at seven earlier calls of the routine). The array it faults on has data=0 but a large capacity field, so the routine skips its allocation and writes through null. The fields around that array hold values such as 1.0f and 0x7f000000: the object was not constructed as the routine expects.app.exe+0x8f3620) deserializes one object with many float fields; which Unity class it is, is not known.sceKernelMprotect,sceKernelMapNamedFlexibleMemoryandsceKernelMapDirectMemory(all calls in the range 0x1000000000-0x10ffffffff plus every non-zero result) printed nothing. The last memory call before the fault issceKernelReserveVirtualRangewithlen=0x9ec040000(39.7 GiB), answered with 0 at 0x1000000000. Making that call fail withENOMEM(local patch, any length above 16 GiB) leaves the title running and the fault identical, so the reservation is not the cause.sceKernelGetDirectMemorySize(0x360000000) repeatedly and never calls theAvailable*size queries before the fault.Cult of the Lamb (PPSA06465), DREDGE (PPSA09076) and Harmony's Odyssey (PPSA16827) run 180 s with the same two directories and no fault. New Joe & Mac (PPSA02801) gets past PSNCore and stops on the multisampling check (register 0x2f8, see #419).
Not established: which object it is, whether the stream data, an import return value or object construction differs from the console. A next step would be to find the constructor call for that object (before
app.exe+0x8f3620) and compare its allocation size with the fields the routine writes.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T22:43:09Z.
Crash data for this issue from a gdb run on current
main(ca4ab0d5dplus #4021 locally; Windows 10,--module-dir Media/Modules --module-dir Media/Plugins). The fault is unchanged and deterministic (the sameapp.exe+0x7a6730, write of0x24, the same caller chain+0x8f382e,+0xca0ce3,+0xc91513in a 90 s run, and the gdb run below hit it again). Captured at the fault (catch signal SIGSEGV,rax = 0x2b,rcx = 0x24):rax 0x2b,rbx 0x2139239d0(the array object),rcx 0x24,rdx 0,rsi 0,rdi 0,r14 0,r12 0x3f800000,r13 0xffffffffc0800000;rbpframe at0xf45cf540.app.exe+0x7a6690) takes the array object as its second argument (rbx). Its code before the fault: read the count (eax = 0x2b), compare[rbx+0x18] >> 1(the capacity field) with it, and only call the resize helper when it is smaller; then it stores 40-byte elements at[rbx] + 0x24 + 40*i.[rbx]is 0, so the first store is the fault. It uses itsrbpframe for locals (-0x34(%rbp),-0x40(%rbp)); I saw no use of the red zone belowrsp, unlike the DREDGE routine in #3915.rbx - 0x140 = 0x213923890(the caller passesr14 + 0x140). Its vtable is atapp.exe+0x1c550b8(0x7ff72eea50b8); its fields include the string"Bootstra..."(bytes0x61727473746f6f42at+0x48, so a Unity object named "Bootstrap..."), several1.0f/-1.0ffields at+0xa0..+0xd0, and, where the array header should be at+0x140, the words0, 0x0ba11b9b0000002b, 1.0f, 0x7f000000, 0x2508522e00000000. The array header of a freshly constructed empty array looks different ({0, label|0x2b, 0, 1}, #3805 above), so those bytes at+0x140were written by something else, with values that look like defaults of another field (1.0f and a float-max-like0x7f000000).+0x140and what itsTransferroutine reads there, rather than at one of our calls returning a bad value; I do not know which Unity class it is, and I did not find where the object is constructed. The stack near the fault holds0xdeadbeefcafebabewords, a debug-fill pattern.What this does not show: whether the mismatch comes from the title's data (a serialized type tree that does not match the class), from a different build of the plugin modules than the executable expects, or from our emulation. Not tested: a run with the plugins from a different dump.
AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T04:55:18Z.
Data point from a 60 s run per title on current
mainceb342b94(Windows 10, GCC, RTX 4080 SUPER), relinked with--module-dir Media/Modules --module-dir Media/Plugins: the PSNCore start-up fault described here still occurs for Unity titles that ship PSNCore/PSN:0xc0000005atPSNCore.prx.guest.prx+0x118f7(read of 0x4); for 09682 the log first prints "PSNCore is an old version that cannot be used by the current player runtime."0xc0000005atPSNCore.prx.guest.prx+0x11624(read of 0x4)0xc0000005atPSN.prx.guest.prx+0x13ea7(read of 0x4)The description above reports that with both module directories this fault did not occur on
a11c8f7f7. I have not bisected between the two, so whether this is a regression onmain, a difference in how my runs lay outapp0, or the "old version" argument issue of #4225 is not established. The import audit has 0 absent imports for all six.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T05:20:19Z.
Correction to my comment above: the PSNCore faults I reported for PPSA02801, PPSA06465, PPSA09076, PPSA09682, PPSA16827 and PPSA25936 were caused by my own setup, not by
main. My relink passed--module-dir Media/Modules,Media/Pluginsas one comma-joined string in some calls, and reused work directories that still held anin\prxcopy from an earlier run without module directories, so the relinked modules ended up inapp0/prxand the game loaded the unconverted ones fromapp0/Media/Plugins. With a fresh work directory and both module directories passed as separate values, PPSA06465 onmaine013f8c9cruns the full 60 s with no fault (one run). I am re-running the other five the same way and will post only if one still faults. Sorry for the noise.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T08:56:51Z.
Finding for the Hotline Miami (PPSA09682)
Loading.PreloadManagerfault: the file opened right before it,/app0/Media/sharedassets1.assets, is not in the game folder I run from.ampr_emu.index(headerAMPRIDX3, 327 distinct/app0/...paths). Of those 327 paths, 326 exist on disk; the one that does not is/app0/Media/sharedassets1.assets. Every othersharedassetsN.assetsfor N = 0 and 2 to 132 is there, so this is one file missing from an otherwise consecutive series, and I found no copy of it underI:\AnyPS5\GamesorK:\AnyPS5\Games.sceKernelOpencalls for that path (afterlevel1is opened) before the fault.sceKernelOpenreturns0x80020002(ENOENT) for a missing file (core/libs/prx/libkernel/File/src/Open.cpp:208andSceErrorFromErrno), so the title gets an error for that load.level1(5620 bytes) andglobalgamemanagerscontain no reference to the name, so I do not know which object asks for this file. What I can say about the crashing object: it is a Unity object named "Bootstrap" (level0 contains a GameObject "Bootstrap" and the MonoScriptGABootstrapfrom Assembly-CSharp; IL2CPP metadata v29 lists only the fieldsinstance,panelandlogStringToDisplayfor it, none that matches a 43-element array of 40-byte elements), so the failing array is not a field ofGABootstrapitself. I did not identify the native class.So one plausible explanation for the deterministic fault (6 of 6) is an incomplete dump: the loader gets an error for a file the shipped game has, and then writes through an unconstructed array. I did not verify that: I cannot restore the file, and I have not seen how this Unity version behaves on a failed open. If anyone has this title's complete file list or the file, a run with
sharedassets1.assetsin place would settle it. The origin ofampr_emu.index(who generated it, from which install) is not known to me.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by ducloc080202 on 2026-10-12T16:00:34Z.
Second title reproduces this, and #3861 fixes it on Windows.
Cat Quest III (PPSA15065, Unity IL2CPP,
contentVersion01.000.001) on Windows 11 (RTX 3050, driver 617.42, WinLibs GCC 15.2.0, Release): once #4296's module-arguments fix lets it past its own PSN validator, it hits the same crash — deterministic0xC0000005(write of0x0) on threadLoading.PreloadManageratapp.exe+0x7dfecb, while loadingStreamingAssets/aa/PS5/*.bundle.Applying #3861's
Stdio.cppchange (a mutex serializing positioned and sequential file transfers) removes it: zero0xC0000005in a full run, the title loads the bundles and reaches Rewired / Unity init (Unity 2022.3.14f1) and keeps running. Same before/after the reporter saw on Hotline Miami, on a different title.Details and the exact stacks are on #3861.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T00:09:47Z.
#4973 is on main now (Windows positioned file transfers are serialized), and the same change removed the
Loading.PreloadManagerfault in Cat Quest III. Does PPSA09682 still stop there on current main?