PCSX2 / pcsx2

PCSX2 - The Playstation 2 Emulator
https://pcsx2.net
GNU General Public License v3.0
11.9k stars 1.63k forks source link

[BUG]: [Regression] Older Intel Macs: Crash on launch after v1.7.5849 (Memory Map failure) #11728

Open shinra-electric opened 3 months ago

shinra-electric commented 3 months ago

Describe the Bug

PCSX2 crashes on launch on older Intel Macs with the following error message:

Failed to map data memory at an acceptable location

Reproduction Steps

I tried updating PCSX2 on an old Intel MacBook Air, and it crashed at launch. I bisected the builds, with v1.7.5847 working fine and all builds from v1.7.5849 were broken. (There was no v1.7.5848 release).

Because the crash was instant at launch, there were no logs. However I noticed that if I enable logging as well as the log window (in the previous build), an alert would pop up and I could get a screenshot of the log window.

I tested on a 2015 MacBook Air: 2.2Ghz Core i7 Intel HD 6000

Also tested on a 2015 MacBook Pro with the same results: 2.7 Ghz Core i5 Intel Iris Graphics 6100

(I should also note that they are both running Sonoma via OCLP, though this shouldn't be an issue since v1.7.5847 works fine).

Screenshot 2024-08-19 at 17 03 47 Screenshot 2024-08-19 at 17 04 05

Screenshot 2024-08-19 at 17 12 14

Expected Behavior

No response

PCSX2 Revision

v1.7.5849

Operating System

macOS 14 (Sonoma)

If Linux - Specify Distro

No response

Logs & Dumps

No response

ynazar1 commented 3 months ago

Maybe the MAC build isn't universal or using ARM only features/flags? Working here on M1 Max. Sonoma 10.16.1 I don't have any games to test on mac, but it starting UI perfectly fine.

shinra-electric commented 3 months ago

I can confirm that #11734 fixes this on my 2015 MBP šŸ‘šŸ¼

jimjamyaha commented 3 months ago

I can confirm that #11734 fixes this on my 2015 MBP šŸ‘šŸ¼

Excellent - have you run this on a self-compiled version with the patch/change included?

shinra-electric commented 3 months ago

Excellent - have you run this on a self-compiled version with the patch/change included?

No, I used the CI build from the GitHub action for this PR.

atarixle commented 3 months ago

It works for me. MacBook Pro 2014, OCLP, Sonoma 14.6.1 Weirdly enough, PCSX2 1.7.5849 and later on didn't even show me the error-message seen in the first post here

jimjamyaha commented 2 months ago

This fixes the issue for me. MacBook Pro 2012, OCLP, Sonoma 14.6.1.

atarixle commented 2 months ago

BTW the same change in Duckstation lets it crash too. The build before "use mach routines for VM mem ... something" works.