OpenEmu / OpenEmu

🕹 Retro video game emulation for macOS
https://openemu.org
16.2k stars 1.26k forks source link

SNES Games Crash When Adding A Cheat #4646

Open bspianoman opened 2 years ago

bspianoman commented 2 years ago

Summary of issue: SNES games crash when adding a cheat

Read https://github.com/OpenEmu/OpenEmu/wiki/Troubleshooting:-Reporting-problems

Steps to reproduce

  1. Open SNES Game
  2. Click add cheat
  3. Enter valid cheat code & title
  4. Click Enable Now
  5. Game crashes with error message: "OpenEmuHelperApp quit unexpectedly." Details of crash:

    Translated Report (Full Report Below)

Process: OpenEmuHelperApp [1214] Path: /Applications/OpenEmu.app/Contents/MacOS/OpenEmuHelperApp Identifier: OpenEmuHelperApp Version: ??? Code Type: X86-64 (Native) Parent Process: OpenEmu [1004] Responsible: OpenEmu [1004] User ID: 501

Date/Time: 2021-12-29 13:32:06.1887 -0500 OS Version: macOS 12.0.1 (21A559) Report Version: 12 Bridge OS Version: 6.0 (19P549) Anonymous UUID: 34FF027A-D176-51B2-C558-5AB98637E529

Time Awake Since Boot: 2500 seconds

System Integrity Protection: enabled

Crashed Thread: 4 org.openemu.core-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x00000027fffffff0 Exception Codes: 0x0000000000000001, 0x00000027fffffff0 Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11 Terminating Process: exc handler [1214]

VM Region Info: 0x27fffffff0 is not in any region. Bytes after previous region: 167156060145 Bytes before following region: 105381317574672 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL VM_ALLOCATE (reserved) 114b89000-114b8f000 [ 24K] r--/r-- SM=NUL ...(unallocated) ---> GAP OF 0x5ffeeb471000 BYTES MALLOC_NANO 600000000000-600008000000 [128.0M] rw-/rwx SM=PRV

Thread 0:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x7ff801d3aaba mach_msg_trap + 10 1 libsystem_kernel.dylib 0x7ff801d3ae2b mach_msg + 59 2 CoreFoundation 0x7ff801e3ea42 CFRunLoopServiceMachPort + 319 3 CoreFoundation 0x7ff801e3d11b CFRunLoopRun + 1325 4 CoreFoundation 0x7ff801e3c52d CFRunLoopRunSpecific + 563 5 CoreFoundation 0x7ff801ec457e CFRunLoopRun + 40 6 OpenEmuKit 0x10c16de27 -[OpenEmuXPCHelperAppBase launchApplication] + 287 7 OpenEmuHelperApp 0x10be73a41 main + 76 8 dyld 0x114ae44fe start + 462

Thread 1: 0 libsystem_pthread.dylib 0x7ff801d7300c start_wqthread + 0

Thread 2:: AMCP Logging Spool 0 libsystem_kernel.dylib 0x7ff801d3aaf6 semaphore_wait_trap + 10 1 caulk 0x7ff80a7ea1c0 caulk::mach::semaphore::wait_or_error() + 16 2 caulk 0x7ff80a7d108a caulk::concurrent::details::worker_thread::run() + 36 3 caulk 0x7ff80a7d0d4e void caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::)(), std::__1::tuple<caulk::concurrent::details::worker_thread> > >(void) + 41 4 libsystem_pthread.dylib 0x7ff801d77514 _pthread_start + 125 5 libsystem_pthread.dylib 0x7ff801d7302f thread_start + 15

Thread 3:: com.apple.audio.toolbox.AUScheduledParameterRefresher 0 libsystem_kernel.dylib 0x7ff801d3aaf6 semaphore_wait_trap + 10 1 caulk 0x7ff80a7ea1c0 caulk::mach::semaphore::wait_or_error() + 16 2 caulk 0x7ff80a7d108a caulk::concurrent::details::worker_thread::run() + 36 3 caulk 0x7ff80a7d0d4e void caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::)(), std::__1::tuple<caulk::concurrent::details::worker_thread> > >(void) + 41 4 libsystem_pthread.dylib 0x7ff801d77514 _pthread_start + 125 5 libsystem_pthread.dylib 0x7ff801d7302f thread_start + 15

Thread 4 Crashed:: org.openemu.core-thread 0 SNES9x 0x10f9bd9eb S9xEnableCheatGroup(unsigned int) + 27 1 SNES9x 0x10f95cc89 -[SNESGameCore setCheat:setType:setEnabled:] + 1081 2 CoreFoundation 0x7ff801e3e3f3 CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 12 3 CoreFoundation 0x7ff801e3e2a3 CFRunLoopDoBlocks + 445 4 CoreFoundation 0x7ff801e3cf5d CFRunLoopRun + 879 5 CoreFoundation 0x7ff801e3c52d CFRunLoopRunSpecific + 563 6 OpenEmuBase 0x10bf94a95 -[OEGameCore runGameLoop:] + 1749 7 OpenEmuBase 0x10bf94125 -[OEGameCore _gameCoreThreadWithStartEmulationCompletionHandler:] + 104 8 Foundation 0x7ff802c9d3c9 NSThreadstart__ + 1025 9 libsystem_pthread.dylib 0x7ff801d77514 _pthread_start + 125 10 libsystem_pthread.dylib 0x7ff801d7302f thread_start + 15

Thread 5:: com.apple.audio.IOThread.client 0 libsystem_kernel.dylib 0x7ff801d3aaba mach_msg_trap + 10 1 libsystem_kernel.dylib 0x7ff801d3ae2b mach_msg + 59 2 CoreAudio 0x7ff8039bcf27 HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, bool, unsigned int) + 111 3 CoreAudio 0x7ff80384bd17 HALC_ProxyIOContext::IOWorkLoop() + 3937 4 CoreAudio 0x7ff80384a7d9 invocation function for block in HALC_ProxyIOContext::HALC_ProxyIOContext(unsigned int, unsigned int) + 63 5 CoreAudio 0x7ff803a12b54 HALB_IOThread::Entry(void*) + 72 6 libsystem_pthread.dylib 0x7ff801d77514 _pthread_start + 125 7 libsystem_pthread.dylib 0x7ff801d7302f thread_start + 15

Thread 6:: Dispatch queue: com.Metal.CommandQueueDispatch 0 libsystem_kernel.dylib 0x7ff801d3aaf6 semaphore_wait_trap + 10 1 libdispatch.dylib 0x7ff801bc1178 _dispatch_sema4_wait + 16 2 libdispatch.dylib 0x7ff801bc1647 _dispatch_semaphore_wait_slow + 98 3 Metal 0x7ff80a6b8f8d -[_MTLCommandQueue _submitAvailableCommandBuffers] + 922 4 libdispatch.dylib 0x7ff801bc0cc9 _dispatch_client_callout + 8 5 libdispatch.dylib 0x7ff801bc3746 _dispatch_continuation_pop + 460 6 libdispatch.dylib 0x7ff801bd4a5a _dispatch_source_invoke + 2150 7 libdispatch.dylib 0x7ff801bc6b85 _dispatch_lane_serial_drain + 335 8 libdispatch.dylib 0x7ff801bc77c8 _dispatch_lane_invoke + 366 9 libdispatch.dylib 0x7ff801bd17e1 _dispatch_workloop_worker_thread + 758 10 libsystem_pthread.dylib 0x7ff801d7408f _pthread_wqthread + 326 11 libsystem_pthread.dylib 0x7ff801d7301b start_wqthread + 15

Thread 7: 0 libsystem_pthread.dylib 0x7ff801d7300c start_wqthread + 0

Thread 8: 0 libsystem_pthread.dylib 0x7ff801d7300c start_wqthread + 0

Thread 9: 0 libsystem_pthread.dylib 0x7ff801d7300c start_wqthread + 0

Thread 4 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x00007ff801c0b040 rcx: 0x00000000ffffffff rdx: 0x00000000eaefb1af rdi: 0x00000000ffffffff rsi: 0x0000600001dc1ae0 rbp: 0x00007000063a0b90 rsp: 0x00007000063a0b60 r8: 0x0000000000001ae0 r9: 0x0000000000000010 r10: 0x00000000000007fb r11: 0x0000000000000400 r12: 0x00007ff801c0b040 r13: 0x0000000000000001 r14: 0x00000004fffffffb r15: 0x00007ff844c57f88 rip: 0x000000010f9bd9eb rfl: 0x0000000000010296 cr2: 0x00000027fffffff0

Logical CPU: 2 Error Code: 0x00000004 (no mapping for user data read) Trap Number: 14

Thread 4 instruction stream: 00 0f 1f 40 00 4c 8d 70-d8 48 8b 78 e8 48 85 ff ...@.L.p.H.x.H.. 74 09 48 89 78 f0 e8 f0-1a 1c 00 4c 89 f0 4d 39 t.H.x......L..M9 f7 75 e2 4c 89 3d 4b c2-23 00 48 83 c4 18 5b 41 .u.L.=K.#.H...[A 5c 41 5d 41 5e 41 5f 5d-c3 66 2e 0f 1f 84 00 00 \A]A^A_].f...... 00 00 00 66 90 55 48 89-e5 41 57 41 56 41 55 41 ...f.UH..AWAVAUA 54 53 50 89 f9 48 8b 05-11 c2 23 00 4c 8d 34 89 TSP..H....#.L.4. [4a]8b 4c f0 18 4a 3b 4c-f0 10 0f 84 9b 00 00 00 J.L..J;L........ <== bb 01 00 00 00 31 c9 49-bf ab aa aa aa aa aa aa .....1.I........ aa 0f 1f 40 00 4e 8b 64-f0 10 4c 8d 2c 49 43 80 ...@.N.d..L.,IC. 7c ac 09 00 75 4f 4b 8d-44 ac 09 c6 00 01 80 3d |...uOK.D......= e0 c1 23 00 00 74 3e 43-8b 3c ac e8 85 f8 ff ff ..#..t>C.<...... 43 80 7c ac 06 00 74 0d-43 3a 44 ac 08 75 26 43 C.|...t.C:D..u&C

Binary Images: 0x7ff801d3a000 - 0x7ff801d70fff libsystem_kernel.dylib () <12bd6f13-c452-35ee-9069-51befef29f1a> /usr/lib/system/libsystem_kernel.dylib 0x7ff801dbe000 - 0x7ff8022c0fff com.apple.CoreFoundation (6.9) <3002b545-6841-3fc8-91a2-bcfbe5872465> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x10c169000 - 0x10c1a4fff org.openemu.OpenEmuKit (0.1) <983fe374-b5ec-3eea-938b-879afd24ab2e> /Applications/OpenEmu.app/Contents/Frameworks/OpenEmuKit.framework/Versions/A/OpenEmuKit 0x10be70000 - 0x10be73fff OpenEmuHelperApp () /Applications/OpenEmu.app/Contents/MacOS/OpenEmuHelperApp 0x114adf000 - 0x114b4afff dyld () <1a6ae033-9438-33c0-8077-988fd885250a> /usr/lib/dyld 0x7ff801d71000 - 0x7ff801d7cfff libsystem_pthread.dylib () <29a2750e-f31b-3630-8761-242a6bc3e99e> /usr/lib/system/libsystem_pthread.dylib 0x7ff80a7cf000 - 0x7ff80a7f1fff com.apple.audio.caulk (1.0) /System/Library/PrivateFrameworks/caulk.framework/Versions/A/caulk 0x10f952000 - 0x10fb93fff org.openemu.SNES9x () <8dbd9ed7-8a01-3abb-8334-c05d1f796b58> /Users/USER/Library/Application Support/OpenEmu//SNES9x 0x10bf91000 - 0x10bf9cfff org.openemu.OpenEmuBase (1.0) /Applications/OpenEmu.app/Contents/Frameworks/OpenEmuBase.framework/Versions/A/OpenEmuBase 0x7ff802c44000 - 0x7ff802ffefff com.apple.Foundation (6.9) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 0x7ff803695000 - 0x7ff803dbafff com.apple.audio.CoreAudio (5.0) <130e5930-dd35-379f-965e-c760c13b3462> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio 0x7ff801bbe000 - 0x7ff801c04fff libdispatch.dylib () /usr/lib/system/libdispatch.dylib 0x7ff80a698000 - 0x7ff80a7cefff com.apple.Metal (258.13) /System/Library/Frameworks/Metal.framework/Versions/A/Metal 0x0 - 0xffffffffffffffff ??? () <00000000-0000-0000-0000-000000000000> ???

External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 820 thread_create: 0 thread_set_state: 0

VM Region Summary: ReadOnly portion of Libraries: Total=975.8M resident=0K(0%) swapped_out_or_unallocated=975.8M(100%) Writable regions: Total=1.6G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.6G(100%)

                            VIRTUAL   REGION 

REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Activity Tracing 256K 1 ColorSync 20K 4 CoreAnimation 4K 1 Kernel Alloc Once 8K 1 MALLOC 301.4M 52 MALLOC guard page 48K 9 MALLOC_MEDIUM (reserved) 960.0M 8 reserved VM address space (unallocated) MALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated) STACK GUARD 56.0M 10 Stack 12.6M 10 VM_ALLOCATE 204K 8 DATA 29.3M 420 DATA_CONST 20.1M 244 DATA_DIRTY 1134K 146 __FONT_DATA 4K 1 LINKEDIT 639.5M 45 OBJC_RO 81.5M 1 __OBJC_RW 3120K 2 TEXT 336.3M 437 __UNICODE 588K 1 dyld private memory 1024K 1 mapped file 35.2M 7 shared memory 792K 16 =========== ======= ======= TOTAL 2.8G 1426 TOTAL, minus reserved VM space 1.5G 1426


Full Report

{"app_name":"OpenEmuHelperApp","timestamp":"2021-12-29 13:32:06.00 -0500","app_version":"","slice_uuid":"b5ff09e1-3279-373e-b22d-b51ec68cded0","build_version":"","platform":1,"share_with_app_devs":1,"is_first_party":1,"bug_type":"309","os_version":"macOS 12.0.1 (21A559)","incident_id":"CB69BF2B-326A-4EB4-AC49-56ACFC7A8899","name":"OpenEmuHelperApp"} { "uptime" : 2500, "procLaunch" : "2021-12-29 13:31:46.2413 -0500", "procRole" : "Unspecified", "version" : 2, "userID" : 501, "deployVersion" : 210, "modelCode" : "MacBookPro16,1", "procStartAbsTime" : 2483432526994, "coalitionID" : 516, "osVersion" : { "train" : "macOS 12.0.1", "build" : "21A559", "releaseType" : "User" }, "captureTime" : "2021-12-29 13:32:06.1887 -0500", "incident" : "CB69BF2B-326A-4EB4-AC49-56ACFC7A8899", "bug_type" : "309", "pid" : 1214, "procExitAbsTime" : 2503379134641, "cpuType" : "X86-64", "procName" : "OpenEmuHelperApp", "procPath" : "\/Applications\/OpenEmu.app\/Contents\/MacOS\/OpenEmuHelperApp", "parentProc" : "OpenEmu", "parentPid" : 1004, "coalitionName" : "org.openemu.OpenEmu", "crashReporterKey" : "34FF027A-D176-51B2-C558-5AB98637E529", "responsiblePid" : 1004, "responsibleProc" : "OpenEmu", "bridgeVersion" : {"build":"19P549","train":"6.0"}, "sip" : "enabled", "vmRegionInfo" : "0x27fffffff0 is not in any region. Bytes after previous region: 167156060145 Bytes before following region: 105381317574672\n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n VM_ALLOCATE (reserved) 114b89000-114b8f000 [ 24K] r--\/r-- SM=NUL ...(unallocated)\n---> GAP OF 0x5ffeeb471000 BYTES\n MALLOC_NANO 600000000000-600008000000 [128.0M] rw-\/rwx SM=PRV ", "isCorpse" : 1, "exception" : {"codes":"0x0000000000000001, 0x00000027fffffff0","rawCodes":[1,171798691824],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x00000027fffffff0"}, "termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":1214}, "vmregioninfo" : "0x27fffffff0 is not in any region. Bytes after previous region: 167156060145 Bytes before following region: 105381317574672\n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n VM_ALLOCATE (reserved) 114b89000-114b8f000 [ 24K] r--\/r-- SM=NUL ...(unallocated)\n---> GAP OF 0x5ffeeb471000 BYTES\n MALLOC_NANO 600000000000-600008000000 [128.0M] rw-\/rwx SM=PRV ", "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":820},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0}, "faultingThread" : 4, "threads" : [{"id":39007,"queue":"com.apple.main-thread","frames":[{"imageOffset":2746,"symbol":"mach_msg_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":3627,"symbol":"mach_msg","symbolLocation":59,"imageIndex":0},{"imageOffset":526914,"symbol":"CFRunLoopServiceMachPort","symbolLocation":319,"imageIndex":1},{"imageOffset":520475,"symbol":"CFRunLoopRun","symbolLocation":1325,"imageIndex":1},{"imageOffset":517421,"symbol":"CFRunLoopRunSpecific","symbolLocation":563,"imageIndex":1},{"imageOffset":1074558,"symbol":"CFRunLoopRun","symbolLocation":40,"imageIndex":1},{"imageOffset":20007,"symbol":"-[OpenEmuXPCHelperAppBase launchApplication]","symbolLocation":287,"imageIndex":2},{"imageOffset":14913,"symbol":"main","symbolLocation":76,"imageIndex":3},{"imageOffset":21758,"symbol":"start","symbolLocation":462,"imageIndex":4}]},{"id":39012,"frames":[{"imageOffset":8204,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}]},{"id":39021,"name":"AMCP Logging Spool","frames":[{"imageOffset":2806,"symbol":"semaphore_wait_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":111040,"symbol":"caulk::mach::semaphore::wait_or_error()","symbolLocation":16,"imageIndex":6},{"imageOffset":8330,"symbol":"caulk::concurrent::details::worker_thread::run()","symbolLocation":36,"imageIndex":6},{"imageOffset":7502,"symbol":"void caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::)(), std::1::tuple<caulk::concurrent::details::worker_thread> > >(void)","symbolLocation":41,"imageIndex":6},{"imageOffset":25876,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":5},{"imageOffset":8239,"symbol":"thread_start","symbolLocation":15,"imageIndex":5}]},{"id":39052,"name":"com.apple.audio.toolbox.AUScheduledParameterRefresher","frames":[{"imageOffset":2806,"symbol":"semaphore_wait_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":111040,"symbol":"caulk::mach::semaphore::wait_or_error()","symbolLocation":16,"imageIndex":6},{"imageOffset":8330,"symbol":"caulk::concurrent::details::worker_thread::run()","symbolLocation":36,"imageIndex":6},{"imageOffset":7502,"symbol":"void* caulk::thread_proxy<std::1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::)(), std::__1::tuple<caulk::concurrent::details::worker_thread> > >(void)","symbolLocation":41,"imageIndex":6},{"imageOffset":25876,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":5},{"imageOffset":8239,"symbol":"thread_start","symbolLocation":15,"imageIndex":5}]},{"triggered":true,"id":39063,"instructionState":{"instructionStream":{"bytes":[0,15,31,64,0,76,141,112,216,72,139,120,232,72,133,255,116,9,72,137,120,240,232,240,26,28,0,76,137,240,77,57,247,117,226,76,137,61,75,194,35,0,72,131,196,24,91,65,92,65,93,65,94,65,95,93,195,102,46,15,31,132,0,0,0,0,0,102,144,85,72,137,229,65,87,65,86,65,85,65,84,83,80,137,249,72,139,5,17,194,35,0,76,141,52,137,74,139,76,240,24,74,59,76,240,16,15,132,155,0,0,0,187,1,0,0,0,49,201,73,191,171,170,170,170,170,170,170,170,15,31,64,0,78,139,100,240,16,76,141,44,73,67,128,124,172,9,0,117,79,75,141,68,172,9,198,0,1,128,61,224,193,35,0,0,116,62,67,139,60,172,232,133,248,255,255,67,128,124,172,6,0,116,13,67,58,68,172,8,117,38,67],"offset":96}},"name":"org.openemu.core-thread","threadState":{"r13":{"value":1},"rax":{"value":0},"rflags":{"value":66198},"cpu":{"value":2},"r14":{"value":21474836475},"rsi":{"value":105553147468512},"r8":{"value":6880},"cr2":{"value":171798691824},"rdx":{"value":3941577135},"r10":{"value":2043},"r9":{"value":16},"r15":{"value":140704282410888},"rbx":{"value":140703158022208,"symbolLocation":0,"symbol":"objc_msgSend"},"trap":{"value":14,"description":"(no mapping for user data read)"},"err":{"value":4},"r11":{"value":1024},"rip":{"value":4556839403,"matchesCrashFrame":1},"rbp":{"value":123145406778256},"rsp":{"value":123145406778208},"r12":{"value":140703158022208,"symbolLocation":0,"symbol":"objc_msgSend"},"rcx":{"value":4294967295},"flavor":"x86_THREAD_STATE","rdi":{"value":4294967295}},"frames":[{"imageOffset":440811,"symbol":"S9xEnableCheatGroup(unsigned int)","symbolLocation":27,"imageIndex":7},{"imageOffset":44169,"symbol":"-[SNESGameCore setCheat:setType:setEnabled:]","symbolLocation":1081,"imageIndex":7},{"imageOffset":525299,"symbol":"CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK","symbolLocation":12,"imageIndex":1},{"imageOffset":524963,"symbol":"CFRunLoopDoBlocks","symbolLocation":445,"imageIndex":1},{"imageOffset":520029,"symbol":"CFRunLoopRun","symbolLocation":879,"imageIndex":1},{"imageOffset":517421,"symbol":"CFRunLoopRunSpecific","symbolLocation":563,"imageIndex":1},{"imageOffset":14997,"symbol":"-[OEGameCore runGameLoop:]","symbolLocation":1749,"imageIndex":8},{"imageOffset":12581,"symbol":"-[OEGameCore _gameCoreThreadWithStartEmulationCompletionHandler:]","symbolLocation":104,"imageIndex":8},{"imageOffset":365513,"symbol":"NSThreadstart__","symbolLocation":1025,"imageIndex":9},{"imageOffset":25876,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":5},{"imageOffset":8239,"symbol":"thread_start","symbolLocation":15,"imageIndex":5}]},{"id":39064,"name":"com.apple.audio.IOThread.client","frames":[{"imageOffset":2746,"symbol":"mach_msg_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":3627,"symbol":"mach_msg","symbolLocation":59,"imageIndex":0},{"imageOffset":3309351,"symbol":"HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, bool, unsigned int)","symbolLocation":111,"imageIndex":10},{"imageOffset":1797399,"symbol":"HALC_ProxyIOContext::IOWorkLoop()","symbolLocation":3937,"imageIndex":10},{"imageOffset":1791961,"symbol":"invocation function for block in HALC_ProxyIOContext::HALC_ProxyIOContext(unsigned int, unsigned int)","symbolLocation":63,"imageIndex":10},{"imageOffset":3660628,"symbol":"HALB_IOThread::Entry(void)","symbolLocation":72,"imageIndex":10},{"imageOffset":25876,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":5},{"imageOffset":8239,"symbol":"thread_start","symbolLocation":15,"imageIndex":5}]},{"id":39086,"queue":"com.Metal.CommandQueueDispatch","frames":[{"imageOffset":2806,"symbol":"semaphore_wait_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":12664,"symbol":"_dispatch_sema4_wait","symbolLocation":16,"imageIndex":11},{"imageOffset":13895,"symbol":"_dispatch_semaphore_wait_slow","symbolLocation":98,"imageIndex":11},{"imageOffset":135053,"symbol":"-[_MTLCommandQueue _submitAvailableCommandBuffers]","symbolLocation":922,"imageIndex":12},{"imageOffset":11465,"symbol":"_dispatch_client_callout","symbolLocation":8,"imageIndex":11},{"imageOffset":22342,"symbol":"_dispatch_continuation_pop","symbolLocation":460,"imageIndex":11},{"imageOffset":92762,"symbol":"_dispatch_source_invoke","symbolLocation":2150,"imageIndex":11},{"imageOffset":35717,"symbol":"_dispatch_lane_serial_drain","symbolLocation":335,"imageIndex":11},{"imageOffset":38856,"symbol":"_dispatch_lane_invoke","symbolLocation":366,"imageIndex":11},{"imageOffset":79841,"symbol":"_dispatch_workloop_worker_thread","symbolLocation":758,"imageIndex":11},{"imageOffset":12431,"symbol":"_pthread_wqthread","symbolLocation":326,"imageIndex":5},{"imageOffset":8219,"symbol":"start_wqthread","symbolLocation":15,"imageIndex":5}]},{"id":39271,"frames":[{"imageOffset":8204,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}]},{"id":39280,"frames":[{"imageOffset":8204,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}]},{"id":39281,"frames":[{"imageOffset":8204,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}]}], "usedImages" : [ { "source" : "P", "arch" : "x86_64", "base" : 140703159263232, "size" : 225280, "uuid" : "12bd6f13-c452-35ee-9069-51befef29f1a", "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib", "name" : "libsystem_kernel.dylib" }, { "source" : "P", "arch" : "x86_64h", "base" : 140703159803904, "CFBundleShortVersionString" : "6.9", "CFBundleIdentifier" : "com.apple.CoreFoundation", "size" : 5255168, "uuid" : "3002b545-6841-3fc8-91a2-bcfbe5872465", "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation", "name" : "CoreFoundation", "CFBundleVersion" : "1855.105" }, { "source" : "P", "arch" : "x86_64", "base" : 4497772544, "CFBundleShortVersionString" : "0.1", "CFBundleIdentifier" : "org.openemu.OpenEmuKit", "size" : 245760, "uuid" : "983fe374-b5ec-3eea-938b-879afd24ab2e", "path" : "\/Applications\/OpenEmu.app\/Contents\/Frameworks\/OpenEmuKit.framework\/Versions\/A\/OpenEmuKit", "name" : "OpenEmuKit", "CFBundleVersion" : "2" }, { "source" : "P", "arch" : "x86_64", "base" : 4494655488, "size" : 16384, "uuid" : "b5ff09e1-3279-373e-b22d-b51ec68cded0", "path" : "\/Applications\/OpenEmu.app\/Contents\/MacOS\/OpenEmuHelperApp", "name" : "OpenEmuHelperApp" }, { "source" : "P", "arch" : "x86_64", "base" : 4641910784, "size" : 442368, "uuid" : "1a6ae033-9438-33c0-8077-988fd885250a", "path" : "\/usr\/lib\/dyld", "name" : "dyld" }, { "source" : "P", "arch" : "x86_64", "base" : 140703159488512, "size" : 49152, "uuid" : "29a2750e-f31b-3630-8761-242a6bc3e99e", "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib", "name" : "libsystem_pthread.dylib" }, { "source" : "P", "arch" : "x86_64", "base" : 140703304577024, "CFBundleShortVersionString" : "1.0", "CFBundleIdentifier" : "com.apple.audio.caulk", "size" : 143360, "uuid" : "c5042b28-9206-337f-bfb2-dc0b37dd8632", "path" : "\/System\/Library\/PrivateFrameworks\/caulk.framework\/Versions\/A\/caulk", "name" : "caulk" }, { "source" : "P", "arch" : "x86_64", "base" : 4556398592, "CFBundleIdentifier" : "org.openemu.SNES9x", "size" : 2367488, "uuid" : "8dbd9ed7-8a01-3abb-8334-c05d1f796b58", "path" : "\/Users\/USER\/Library\/Application Support\/OpenEmu\/*\/SNES9x", "name" : "SNES9x", "CFBundleVersion" : "1.60" }, { "source" : "P", "arch" : "x86_64", "base" : 4495839232, "CFBundleShortVersionString" : "1.0", "CFBundleIdentifier" : "org.openemu.OpenEmuBase", "size" : 49152, "uuid" : "ab7ad26f-4eab-3873-9ddc-4ad50ce964ec", "path" : "\/Applications\/OpenEmu.app\/Contents\/Frameworks\/OpenEmuBase.framework\/Versions\/A\/OpenEmuBase", "name" : "OpenEmuBase", "CFBundleVersion" : "1" }, { "source" : "P", "arch" : "x86_64", "base" : 140703175032832, "CFBundleShortVersionString" : "6.9", "CFBundleIdentifier" : "com.apple.Foundation", "size" : 3911680, "uuid" : "d7fd0214-4bbb-3d84-88f7-820b25a6e16c", "path" : "\/System\/Library\/Frameworks\/Foundation.framework\/Versions\/C\/Foundation", "name" : "Foundation", "CFBundleVersion" : "1855.105" }, { "source" : "P", "arch" : "x86_64", "base" : 140703185850368, "CFBundleShortVersionString" : "5.0", "CFBundleIdentifier" : "com.apple.audio.CoreAudio", "size" : 7495680, "uuid" : "130e5930-dd35-379f-965e-c760c13b3462", "path" : "\/System\/Library\/Frameworks\/CoreAudio.framework\/Versions\/A\/CoreAudio", "name" : "CoreAudio", "CFBundleVersion" : "5.0" }, { "source" : "P", "arch" : "x86_64", "base" : 140703157706752, "size" : 290816, "uuid" : "be53a13c-8ce1-3e40-b9bc-98473d3eed3e", "path" : "\/usr\/lib\/system\/libdispatch.dylib", "name" : "libdispatch.dylib" }, { "source" : "P", "arch" : "x86_64", "base" : 140703303303168, "CFBundleShortVersionString" : "258.13", "CFBundleIdentifier" : "com.apple.Metal", "size" : 1273856, "uuid" : "e8e48b19-b8db-3ed2-830b-01e242f09e0f", "path" : "\/System\/Library\/Frameworks\/Metal.framework\/Versions\/A\/Metal", "name" : "Metal", "CFBundleVersion" : "258.13" }, { "size" : 0, "source" : "A", "base" : 0, "uuid" : "00000000-0000-0000-0000-000000000000" } ], "sharedCache" : { "base" : 140703156260864, "size" : 15213641728, "uuid" : "3d05845f-3f65-358f-9ebf-2236e772ac01" }, "vmSummary" : "ReadOnly portion of Libraries: Total=975.8M resident=0K(0%) swapped_out_or_unallocated=975.8M(100%)\nWritable regions: Total=1.6G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.6G(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nActivity Tracing 256K 1 \nColorSync 20K 4 \nCoreAnimation 4K 1 \nKernel Alloc Once 8K 1 \nMALLOC 301.4M 52 \nMALLOC guard page 48K 9 \nMALLOC_MEDIUM (reserved) 960.0M 8 reserved VM address space (unallocated)\nMALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)\nSTACK GUARD 56.0M 10 \nStack 12.6M 10 \nVM_ALLOCATE 204K 8 \nDATA 29.3M 420 \nDATA_CONST 20.1M 244 \nDATA_DIRTY 1134K 146 \n__FONT_DATA 4K 1 \nLINKEDIT 639.5M 45 \nOBJC_RO 81.5M 1 \n__OBJC_RW 3120K 2 \nTEXT 336.3M 437 \n__UNICODE 588K 1 \ndyld private memory 1024K 1 \nmapped file 35.2M 7 \nshared memory 792K 16 \n=========== ======= ======= \nTOTAL 2.8G 1426 \nTOTAL, minus reserved VM space 1.5G 1426 \n", "legacyInfo" : { "threadTriggered" : { "name" : "org.openemu.core-thread" } }, "trialInfo" : { "rollouts" : [ { "rolloutId" : "607844aa04477260f58a8077", "factorPackIds" : { "SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a" }, "deploymentId" : 240000066 }, { "rolloutId" : "60da5e84ab0ca017dace9abf", "factorPackIds" : {

  },
  "deploymentId" : 240000008
},
{
  "rolloutId" : "602ad4dac86151000cf27e46",
  "factorPackIds" : {
    "SIRI_DICTATION_ASSETS" : "614a34c5eae97a2111628dc5"
  },
  "deploymentId" : 240000290
},
{
  "rolloutId" : "5ffde50ce2aacd000d47a95f",
  "factorPackIds" : {

  },
  "deploymentId" : 240000090
},
{
  "rolloutId" : "5fc94383418129005b4e9ae0",
  "factorPackIds" : {

  },
  "deploymentId" : 240000196
},
{
  "rolloutId" : "601d9415f79519000ccd4b69",
  "factorPackIds" : {
    "SIRI_TEXT_TO_SPEECH" : "61c0d3122be4e338e11ae9e1"
  },
  "deploymentId" : 240000357
}

], "experiments" : [

] } }

Model: MacBookPro16,1, BootROM 1715.40.15.0.0 (iBridge: 19.16.10549.0.0,0), 8 processors, 8-Core Intel Core i9, 2.3 GHz, 32 GB, SMC Graphics: Intel UHD Graphics 630, Intel UHD Graphics 630, Built-In Display: Color LCD, 3072 x 1920 Retina, Main, MirrorOff, Online Graphics: AMD Radeon Pro 5500M, AMD Radeon Pro 5500M, PCIe, 8 GB Memory Module: BANK 0/ChannelA-DIMM0, 16 GB, DDR4, 2667 MHz, SK Hynix, HMAA2GS6CMR8K-VK Memory Module: BANK 2/ChannelB-DIMM0, 16 GB, DDR4, 2667 MHz, SK Hynix, HMAA2GS6CMR8K-VK AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x7BF), wl0: Jul 12 2021 18:02:56 version 9.30.464.0.32.5.76 FWID 01-c081cfed Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports Network Service: Wi-Fi, AirPort, en0 USB Device: USB31Bus USB Device: T2Bus USB Device: composite_device USB Device: Touch Bar Backlight USB Device: Touch Bar Display USB Device: Apple Internal Keyboard / Trackpad USB Device: Headset USB Device: Ambient Light Sensor USB Device: FaceTime HD Camera (Built-in) USB Device: Apple T2 Controller Thunderbolt Bus: MacBook Pro, Apple Inc., 63.5 Thunderbolt Bus: MacBook Pro, Apple Inc., 63.5


  1. Upon restart of game, OpenEmu generates this message: "The SNES9x core has quit unexpectedly after loading a save state. Sometimes a crash may occur while loading a save state because of incompatibilities between different versions of the same core. Do you want to open the game without loading a save state?" Reopening without loading the save state produces the same results.

  2. The same error happened with every cheat code on every game.

  3. Restarting or shutting down the computer made no difference.

Expected Behavior

  1. Entering a cheat should function normally.

Observed Behavior

  1. Entering a cheat causes the described crash

Debugging Information

bspianoman commented 2 years ago

I believe this is the solution to my problem, but I'm unsure of how to do this: https://github.com/OpenEmu/OpenEmu/issues/3252 Can someone please walk me through how to copy and paste this code into the necessary files? TIA!

clobber commented 2 years ago

No... a bug fixed back in 2017 is not the solution to your problem. The crash is happening inside the core plugin. Cannot help you without know what you entered as the "code" and for which game.