Hotline Miami (PPSA09682) on Windows: with both module directories it stops in Loading.PreloadManager (app.exe+0x7a6730, array with null data pointer) #3805

Closed
opened 2026-10-11 16:54:43 +00:00 by xXPBSXx · 6 comments
xXPBSXx commented 2026-10-11 16:54:43 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T16:54:43Z.


Hotline Miami (PPSA09682, Unity) on Windows, main a11c8f7f7, 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):

FATAL: unhandled exception 0xc0000005 on thread 'Loading.PreloadManager'
  rip app.exe+0x7a6730   write of 0x24   rax 0x2b   rbx = array object   r14 = 0

Last file opened: /app0/Media/sharedassets1.assets.

What is established:

  • app.exe+0x7a6690 reads 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.
  • The caller (app.exe+0x8f3620) deserializes one object with many float fields; which Unity class it is, is not known.
  • It is not one of our memory calls failing: a local trace of sceKernelMprotect, sceKernelMapNamedFlexibleMemory and sceKernelMapDirectMemory (all calls in the range 0x1000000000-0x10ffffffff plus every non-zero result) printed nothing. The last memory call before the fault is sceKernelReserveVirtualRange with len=0x9ec040000 (39.7 GiB), answered with 0 at 0x1000000000. Making that call fail with ENOMEM (local patch, any length above 16 GiB) leaves the title running and the fault identical, so the reservation is not the cause.
  • The title reads sceKernelGetDirectMemorySize (0x360000000) repeatedly and never calls the Available* size queries before the fault.
  • Under gdb with many breakpoints the timing changes and the fault is not reached; a lighter probe is needed.

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).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5803153245 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3805). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-11T16:54:43Z. --- Hotline Miami (PPSA09682, Unity) on Windows, `main` a11c8f7f7, 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): ``` FATAL: unhandled exception 0xc0000005 on thread 'Loading.PreloadManager' rip app.exe+0x7a6730 write of 0x24 rax 0x2b rbx = array object r14 = 0 ``` Last file opened: `/app0/Media/sharedassets1.assets`. What is established: - `app.exe+0x7a6690` reads 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. - The caller (`app.exe+0x8f3620`) deserializes one object with many float fields; which Unity class it is, is not known. - It is not one of our memory calls failing: a local trace of `sceKernelMprotect`, `sceKernelMapNamedFlexibleMemory` and `sceKernelMapDirectMemory` (all calls in the range 0x1000000000-0x10ffffffff plus every non-zero result) printed nothing. The last memory call before the fault is `sceKernelReserveVirtualRange` with `len=0x9ec040000` (39.7 GiB), answered with 0 at 0x1000000000. Making that call fail with `ENOMEM` (local patch, any length above 16 GiB) leaves the title running and the fault identical, so the reservation is not the cause. - The title reads `sceKernelGetDirectMemorySize` (0x360000000) repeatedly and never calls the `Available*` size queries before the fault. - Under gdb with many breakpoints the timing changes and the fault is not reached; a lighter probe is needed. 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).
xXPBSXx commented 2026-10-11 22:43:09 +00:00 (Migrated from github.com)
Author
Contributor

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 (ca4ab0d5d plus #4021 locally; Windows 10, --module-dir Media/Modules --module-dir Media/Plugins). The fault is unchanged and deterministic (the same app.exe+0x7a6730, write of 0x24, the same caller chain +0x8f382e, +0xca0ce3, +0xc91513 in a 90 s run, and the gdb run below hit it again). Captured at the fault (catch signal SIGSEGV, rax = 0x2b, rcx = 0x24):

  • Registers: rax 0x2b, rbx 0x2139239d0 (the array object), rcx 0x24, rdx 0, rsi 0, rdi 0, r14 0, r12 0x3f800000, r13 0xffffffffc0800000; rbp frame at 0xf45cf540.
  • The routine (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 its rbp frame for locals (-0x34(%rbp), -0x40(%rbp)); I saw no use of the red zone below rsp, unlike the DREDGE routine in #3915.
  • The array object is a member of a larger object whose base is rbx - 0x140 = 0x213923890 (the caller passes r14 + 0x140). Its vtable is at app.exe+0x1c550b8 (0x7ff72eea50b8); its fields include the string "Bootstra..." (bytes 0x61727473746f6f42 at +0x48, so a Unity object named "Bootstrap..."), several 1.0f/-1.0f fields at +0xa0..+0xd0, and, where the array header should be at +0x140, the words 0, 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 +0x140 were written by something else, with values that look like defaults of another field (1.0f and a float-max-like 0x7f000000).
  • That points at a layout mismatch between what this object's constructor (or an earlier base-class initialisation) wrote at +0x140 and what its Transfer routine 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 holds 0xdeadbeefcafebabe words, 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).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114723020 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3805#issuecomment-6114723020). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-11T22:43:09Z. --- Crash data for this issue from a gdb run on current `main` (ca4ab0d5d plus #4021 locally; Windows 10, `--module-dir Media/Modules --module-dir Media/Plugins`). The fault is unchanged and deterministic (the same `app.exe+0x7a6730`, write of `0x24`, the same caller chain `+0x8f382e`, `+0xca0ce3`, `+0xc91513` in a 90 s run, and the gdb run below hit it again). Captured at the fault (`catch signal SIGSEGV`, `rax = 0x2b`, `rcx = 0x24`): - Registers: `rax 0x2b`, `rbx 0x2139239d0` (the array object), `rcx 0x24`, `rdx 0`, `rsi 0`, `rdi 0`, `r14 0`, `r12 0x3f800000`, `r13 0xffffffffc0800000`; `rbp` frame at `0xf45cf540`. - The routine (`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 its `rbp` frame for locals (`-0x34(%rbp)`, `-0x40(%rbp)`); I saw no use of the red zone below `rsp`, unlike the DREDGE routine in #3915. - The array object is a member of a larger object whose base is `rbx - 0x140 = 0x213923890` (the caller passes `r14 + 0x140`). Its vtable is at `app.exe+0x1c550b8` (`0x7ff72eea50b8`); its fields include the string `"Bootstra..."` (bytes `0x61727473746f6f42` at `+0x48`, so a Unity object named "Bootstrap..."), several `1.0f`/`-1.0f` fields at `+0xa0..+0xd0`, and, where the array header should be at `+0x140`, the words `0, 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 `+0x140` were written by something else, with values that look like defaults of another field (1.0f and a float-max-like `0x7f000000`). - That points at a layout mismatch between what this object's constructor (or an earlier base-class initialisation) wrote at `+0x140` and what its `Transfer` routine 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 holds `0xdeadbeefcafebabe` words, 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).
xXPBSXx commented 2026-10-12 04:55:18 +00:00 (Migrated from github.com)
Author
Contributor

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 main ceb342b94 (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:

  • PPSA09682 and PPSA16827: 0xc0000005 at PSNCore.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."
  • PPSA02801, PPSA09076, PPSA06465: 0xc0000005 at PSNCore.prx.guest.prx+0x11624 (read of 0x4)
  • PPSA25936: 0xc0000005 at PSN.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 on main, a difference in how my runs lay out app0, 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).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6118005068 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3805#issuecomment-6118005068). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-12T04:55:18Z. --- Data point from a 60 s run per title on current `main` `ceb342b94` (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: - PPSA09682 and PPSA16827: `0xc0000005` at `PSNCore.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." - PPSA02801, PPSA09076, PPSA06465: `0xc0000005` at `PSNCore.prx.guest.prx+0x11624` (read of 0x4) - PPSA25936: `0xc0000005` at `PSN.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 on `main`, a difference in how my runs lay out `app0`, 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).
xXPBSXx commented 2026-10-12 05:20:19 +00:00 (Migrated from github.com)
Author
Contributor

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/Plugins as one comma-joined string in some calls, and reused work directories that still held an in\prx copy from an earlier run without module directories, so the relinked modules ended up in app0/prx and the game loaded the unconverted ones from app0/Media/Plugins. With a fresh work directory and both module directories passed as separate values, PPSA06465 on main e013f8c9c runs 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).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6118247351 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3805#issuecomment-6118247351). Originally posted by [xXPBSXx](https://github.com/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/Plugins` as one comma-joined string in some calls, and reused work directories that still held an `in\prx` copy from an earlier run without module directories, so the relinked modules ended up in `app0/prx` and the game loaded the unconverted ones from `app0/Media/Plugins`. With a fresh work directory and both module directories passed as separate values, PPSA06465 on `main` `e013f8c9c` runs 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).
xXPBSXx commented 2026-10-12 08:56:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T08:56:51Z.


Finding for the Hotline Miami (PPSA09682) Loading.PreloadManager fault: the file opened right before it, /app0/Media/sharedassets1.assets, is not in the game folder I run from.

  • The game folder contains ampr_emu.index (header AMPRIDX3, 327 distinct /app0/... paths). Of those 327 paths, 326 exist on disk; the one that does not is /app0/Media/sharedassets1.assets. Every other sharedassetsN.assets for 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 under I:\AnyPS5\Games or K:\AnyPS5\Games.
  • The run log shows three sceKernelOpen calls for that path (after level1 is opened) before the fault. sceKernelOpen returns 0x80020002 (ENOENT) for a missing file (core/libs/prx/libkernel/File/src/Open.cpp:208 and SceErrorFromErrno), so the title gets an error for that load.
  • Not Unity's own scene list: level1 (5620 bytes) and globalgamemanagers contain 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 MonoScript GABootstrap from Assembly-CSharp; IL2CPP metadata v29 lists only the fields instance, panel and logStringToDisplay for it, none that matches a 43-element array of 40-byte elements), so the failing array is not a field of GABootstrap itself. 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.assets in place would settle it. The origin of ampr_emu.index (who generated it, from which install) is not known to me.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6121002456 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3805#issuecomment-6121002456). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-12T08:56:51Z. --- Finding for the Hotline Miami (PPSA09682) `Loading.PreloadManager` fault: the file opened right before it, `/app0/Media/sharedassets1.assets`, is not in the game folder I run from. - The game folder contains `ampr_emu.index` (header `AMPRIDX3`, 327 distinct `/app0/...` paths). Of those 327 paths, 326 exist on disk; the one that does not is `/app0/Media/sharedassets1.assets`. Every other `sharedassetsN.assets` for 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 under `I:\AnyPS5\Games` or `K:\AnyPS5\Games`. - The run log shows three `sceKernelOpen` calls for that path (after `level1` is opened) before the fault. `sceKernelOpen` returns `0x80020002` (ENOENT) for a missing file (`core/libs/prx/libkernel/File/src/Open.cpp:208` and `SceErrorFromErrno`), so the title gets an error for that load. - Not Unity's own scene list: `level1` (5620 bytes) and `globalgamemanagers` contain 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 MonoScript `GABootstrap` from Assembly-CSharp; IL2CPP metadata v29 lists only the fields `instance`, `panel` and `logStringToDisplay` for it, none that matches a 43-element array of 40-byte elements), so the failing array is not a field of `GABootstrap` itself. 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.assets` in place would settle it. The origin of `ampr_emu.index` (who generated it, from which install) is not known to me. AI-assisted (Claude Code).
ducloc080202 commented 2026-10-12 16:00:34 +00:00 (Migrated from github.com)
Author
Contributor

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, contentVersion 01.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 — deterministic 0xC0000005 (write of 0x0) on thread Loading.PreloadManager at app.exe+0x7dfecb, while loading StreamingAssets/aa/PS5/*.bundle.

Applying #3861's Stdio.cpp change (a mutex serializing positioned and sequential file transfers) removes it: zero 0xC0000005 in 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6127887402 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3805#issuecomment-6127887402). Originally posted by [ducloc080202](https://github.com/ducloc080202) on 2026-10-12T16:00:34Z. --- Second title reproduces this, and #3861 fixes it on Windows. Cat Quest III (PPSA15065, Unity IL2CPP, `contentVersion` 01.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 — deterministic `0xC0000005` (write of `0x0`) on thread `Loading.PreloadManager` at `app.exe+0x7dfecb`, while loading `StreamingAssets/aa/PS5/*.bundle`. Applying #3861's `Stdio.cpp` change (a mutex serializing positioned and sequential file transfers) removes it: zero `0xC0000005` in 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.
oneandonlydean commented 2026-10-14 00:09:47 +00:00 (Migrated from github.com)
Author
Contributor

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.PreloadManager fault in Cat Quest III. Does PPSA09682 still stop there on current main?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6157883386 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3805#issuecomment-6157883386). Originally posted by [oneandonlydean](https://github.com/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.PreloadManager` fault in Cat Quest III. Does PPSA09682 still stop there on current main?
Sign in to join this conversation.
No labels
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.

Reference
boykopovar/AnyPS5#3805
No description provided.