macOS Sequoia has broken the game
Hey just figured I should mention that updating to the newly released macOS Sonoma Sequoia has broken something in the Mac_Runner executable so that the game will no longer open. Here is the crash report that is shown when trying to launch the game:
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Incident Identifier: A7CB05E0-E12D-4C9E-A7F0-4622F8604043
CrashReporter Key: A201AB7D-4FEE-ADD6-9070-FE91B434ABF0
Hardware Model: MacBookPro18,3
Process: Mac_Runner [9041]
Path: /Users/USER/Documents/*/am2r_15_5.app/Contents/MacOS/Mac_Runner
Identifier: com.yoyogames.am2r
Version: 1.4.1804 (1.4.1804)
Code Type: X86-64 (Native)
Role: Default
Parent Process: launchd [1]
Coalition: com.yoyogames.am2r [74884]
Date/Time: 2024-10-01 20:56:28.5058 -0700
Launch Time: 2024-10-01 20:56:28.4796 -0700
OS Version: macOS 15.0 (24A335)
Release Type: User
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL (Code Signature Invalid))
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: CODESIGNING 1 Taskgated Invalid Signature
Triggered by Thread: 0
Thread 0 Crashed:
0 main_executable_path_missing 0x7ff7ffe45f7c 0x7ff7ffe43000 + 12156
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000
rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000000000000000 rsp: 0x0000000000000000
r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000000
r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000
rip: <unavailable> rfl: 0x0000000000000203
tmp0: 0x0000000000000000 tmp1: 0x0000000000000000 tmp2: 0x0000000000000000
Binary Images:
0x203367000 - 0x2033f3fff dyld_path_missing (*) <e6056c94-fc2d-3517-b1e1-46d8eb58a10e> /dyld_path_missing
0x7ff7ffe43000 - 0x7ff7ffe72fff main_executable_path_missing (*) <e447ba6f-c0b7-3dcb-b110-b38e57558dc3> /main_executable_path_missing
0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
Error Formulating Crash Report:
dyld_process_snapshot_get_shared_cache failed
PC register does not match crashing frame (0x0 vs 0x7FF7FFE45F7C)
EOF
-----------
Full Report
-----------
{"app_name":"Mac_Runner","timestamp":"2024-10-01 20:56:29.00 -0700","app_version":"1.4.1804","slice_uuid":"bb43d70c-b22e-3128-8d5c-e2b4f0002b20","build_version":"1.4.1804","platform":0,"bundleID":"com.yoyogames.am2r","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 15.0 (24A335)","roots_installed":0,"name":"Mac_Runner","incident_id":"A7CB05E0-E12D-4C9E-A7F0-4622F8604043"}
{
"uptime" : 750000,
"procRole" : "Default",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "MacBookPro18,3",
"coalitionID" : 74884,
"osVersion" : {
"train" : "macOS 15.0",
"build" : "24A335",
"releaseType" : "User"
},
"captureTime" : "2024-10-01 20:56:28.5058 -0700",
"codeSigningMonitor" : 1,
"incident" : "A7CB05E0-E12D-4C9E-A7F0-4622F8604043",
"pid" : 9041,
"translated" : true,
"cpuType" : "X86-64",
"roots_installed" : 0,
"bug_type" : "309",
"procLaunch" : "2024-10-01 20:56:28.4796 -0700",
"procStartAbsTime" : 18093061130753,
"procExitAbsTime" : 18093061736736,
"procName" : "Mac_Runner",
"procPath" : "\/Users\/USER\/Documents\/*\/am2r_15_5.app\/Contents\/MacOS\/Mac_Runner",
"bundleInfo" : {"CFBundleShortVersionString":"1.4.1804","CFBundleVersion":"1.4.1804","CFBundleIdentifier":"com.yoyogames.am2r"},
"storeInfo" : {"deviceIdentifierForVendor":"52914FE5-CB83-5D92-B349-40FF5D06A75D","thirdParty":true},
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "com.yoyogames.am2r",
"crashReporterKey" : "A201AB7D-4FEE-ADD6-9070-FE91B434ABF0",
"codeSigningID" : "",
"codeSigningTeamID" : "",
"codeSigningFlags" : 16777216,
"codeSigningValidationCategory" : 0,
"codeSigningTrustLevel" : 4294967295,
"bootSessionUUID" : "C76DE14F-02AE-4E70-9334-1288F9DD8096",
"wakeTime" : 11683,
"sleepWakeUUID" : "05B69500-1BA6-477D-9933-F5406E84BC3C",
"sip" : "enabled",
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGKILL (Code Signature Invalid)"},
"termination" : {"flags":66,"code":1,"namespace":"CODESIGNING","indicator":"Taskgated Invalid Signature"},
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":102,"task_for_pid":4},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":12002992,"threadState":{"flavor":"x86_THREAD_STATE","rbp":{"value":0},"r12":{"value":0},"rosetta":{"tmp2":{"value":0},"tmp1":{"value":0},"tmp0":{"value":0}},"rbx":{"value":0},"r8":{"value":0},"r15":{"value":0},"r10":{"value":0},"rdx":{"value":0},"rdi":{"value":0},"r9":{"value":0},"r13":{"value":0},"rflags":{"value":515},"rax":{"value":0},"rsp":{"value":0},"r11":{"value":0},"rcx":{"value":0},"r14":{"value":0},"rsi":{"value":0}},"frames":[{"imageOffset":12156,"imageIndex":1}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "x86_64",
"base" : 8643833856,
"size" : 577536,
"uuid" : "e6056c94-fc2d-3517-b1e1-46d8eb58a10e",
"path" : "\/dyld_path_missing",
"name" : "dyld_path_missing"
},
{
"source" : "P",
"arch" : "arm64",
"base" : 140703126794240,
"size" : 196608,
"uuid" : "e447ba6f-c0b7-3dcb-b110-b38e57558dc3",
"path" : "\/main_executable_path_missing",
"name" : "main_executable_path_missing"
},
{
"size" : 0,
"source" : "A",
"base" : 0,
"uuid" : "00000000-0000-0000-0000-000000000000"
}
],
"vmSummary" : "ReadOnly portion of Libraries: Total=1068K resident=0K(0%) swapped_out_or_unallocated=1068K(100%)\nWritable regions: Total=35.2M written=144K(0%) resident=144K(0%) swapped_out=0K(0%) unallocated=35.1M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nSTACK GUARD 56.0M 1 \nStack 8176K 1 \nVM_ALLOCATE 24.1M 7 \nVM_ALLOCATE (reserved) 3020K 1 reserved VM address space (unallocated)\n__DATA 76K 4 \n__DATA_CONST 24K 1 \n__DATA_DIRTY 8K 2 \n__LINKEDIT 336K 4 \n__TEXT 756K 2 \n__TPRO_CONST 276K 1 \nmapped file 8.6G 39 \npage table in kernel 144K 1 \n=========== ======= ======= \nTOTAL 8.7G 64 \nTOTAL, minus reserved VM space 8.7G 64 \n",
"legacyInfo" : {
"threadTriggered" : {
}
},
"logWritingSignature" : "9cfea589c59d3f765dd58ac8875fcc723970831d",
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "6425c75e4327780c10cc4252",
"factorPackIds" : {
"SIRI_HOME_AUTOMATION_INTENT_SELECTION_CACHE" : "642600a457e7664b1698eb32"
},
"deploymentId" : 240000004
},
{
"rolloutId" : "654d8c0661e7447155256fcd",
"factorPackIds" : {
"SIRI_TEXT_TO_SPEECH" : "66c3e0ec54da772bbdc18016"
},
"deploymentId" : 240000169
}
],
"experiments" : [
{
"treatmentId" : "c47ab4cc-c9c3-4b5d-a87c-e2433ce02597",
"experimentId" : "6639bc6ba73d460582162323",
"deploymentId" : 400000006
},
{
"treatmentId" : "45f4e2a5-551b-4bc2-a2dc-19c244dda8f8",
"experimentId" : "6643969b3099cf28e049862f",
"deploymentId" : 400000007
}
]
},
"reportNotes" : [
"dyld_process_snapshot_get_shared_cache failed",
"PC register does not match crashing frame (0x0 vs 0x7FF7FFE45F7C)"
]
}
Model: MacBookPro18,3, BootROM 11881.1.1, proc 8:6:2 processors, 16 GB, SMC
Graphics: Apple M1 Pro, Apple M1 Pro, Built-In
Display: Color LCD, 3024 x 1964 Retina, Main, MirrorOff, Online
Memory Module: LPDDR5, Samsung
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4387), wl0: Jul 26 2024 20:03:40 version 20.10.1123.2.8.7.186 FWID 01-94146b8e
IO80211_driverkit-1302.71 "IO80211_driverkit-1302.71" Aug 5 2024 22:09:56
AirPort:
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: USB31Bus
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
and here is the output when trying to run the app from the command line
The application cannot be opened for an unexpected reason, error=Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x600000765080 {Error Domain=NSPOSIXErrorDomain Code=162 "Unknown error: 162" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}
This crash happened after re-cloning the repository and rebuilding the app to make sure that everything was up-to-date.
Idk if this is an easy fix or not, but I figured it was worth mentioning just in case 🙂
Sounds about right. iirc sonoma did something that just broke old gms runners, iirc undertale (and deltarune?) were affected by that too. the runner i'm using is the only one i can use that supports both x86 and x64 archs and has enough backwards compatibility with am2r to not break things. Unless i do manual assembly edits, I can't fix this. Honestly not surprising that there was an eol to this repo, but I didn't expect it to be this soon.
Out of curiosity tho, does it work on macOS 15 (Sequoia)?
Oh lol that's what I meant, it also starts with "S" so I just wrote Sonoma out of habit 😅
It was working on Sonoma, it's now broken on Sequoia
I'm having the same issue since updating to Sequoia.
@Shock9616 @Spidey002 does this work?
codesign --force --deep --sign - /path/to/am2r.app
codesign --force --deep --sign - /path/to/am2r.app
It worked! Thank you!
No way! It worked! You're a legend @Miepee 😅
Did that need elevated privileges? Might be worth putting into the bash script / am2rlauncher
Did that need elevated privileges? Might be worth putting into the bash script / am2rlauncher
I don't recall having to type in my password.
I used sudo just to be safe, dont know if its required
No I just pasted the command as it was. No sudo required
@Miepee Hey just thought you should know, I made a post about this fix on r/macgaming and someone commented that they ran into this error when trying to run the codesign command:
am2r_15_5.app: resource fork, Finder information, or similar detritus not allowed
I am unable to reproduce the error myself, but after a bit of digging I found that running xattr -cr /path/to/am2r.app fixes the issue and they confirmed that everything worked properly after running that command.