RPCS3 / rpcs3

PlayStation 3 emulator and debugger
https://rpcs3.net/
GNU General Public License v2.0
15.33k stars 1.91k forks source link

[Bug] [macOS] [ARM] PPU compile may hang with failure in memory_decommit on first load #16013

Closed squidbus closed 1 month ago

squidbus commented 1 month ago

Quick summary

Sometimes when loading games with a fresh cache folder on an ARM Mac, the PPU compile will hang. Main game I use to reproduce this is Sonic Unleashed.

Details

When the compile hangs I usually see a few instances of this in the log:

F {PPUW.23.0} SIG: Thread terminated due to fatal error: Verification failed (object: 0x0)
(in file rpcs3/rpcs3/util/vm_native.cpp:348[:3], in function void utils::memory_decommit(void *, usz)) (errno=2=No such file or directory)

The compile also notably stops on the total number of modules minus the number of times that error occurs.

Attach a log file

RPCS3.log.gz

Attach capture files for visual issues

No response

System configuration

Apple M3 Max, macOS 15.1

Other details

No response

kd-11 commented 1 month ago

I still haven't encountered this one. When the objects are compiled it does "freeze" for about a minute the first run but then proceeds as usual. However, I'm still on 14.x so this may be an issue with MacOS itself changing behavior rather than rpcs3.

squidbus commented 1 month ago

I don't actually seem to be able to reproduce this anymore for some reason, its possible another change somehow fixed it but I'm not sure what. Feel free to close if you want and I suppose if it comes up again someone will report it.

kd-11 commented 1 month ago

Closing as cannot reproduce. Request to reopen if the issue reappears.