shirosaki / enjoyable

an application for Mac OS X which allows you to use controller inputs like a mouse or keyboard
143 stars 29 forks source link

Crash on macOS 12.2 #13

Open kueiapp opened 2 years ago

kueiapp commented 2 years ago

It run very well on macOS 10.x, but got crash on macOS 12.2

It might be an API issues because of OS version when running it on macOS 12.2. It crashes with following error message,

Exception Name: NSRangeException
Description: *** -[__NSArrayM objectAtIndexedSubscript:]: index 0 beyond bounds for empty array
User Info: (null)

0   CoreFoundation                      0x00007ff800c23f0b __exceptionPreprocess + 242
1   libobjc.A.dylib                     0x00007ff800984b9d objc_exception_throw + 48
2   CoreFoundation                      0x00007ff800cdf434 _CFThrowFormattedException + 202
3   CoreFoundation                      0x00007ff800b9631a -[__NSArrayM objectAtIndexedSubscript:] + 142
4   Enjoyable                           0x0000000108b91684 Enjoyable + 71300
5   Enjoyable                           0x0000000108b918ce Enjoyable + 71886
6   Enjoyable                           0x0000000108b87e76 Enjoyable + 32374
7   Enjoyable                           0x0000000108b829a7 Enjoyable + 10663
8   CoreFoundation                      0x00007ff800b9df23 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
9   CoreFoundation                      0x00007ff800c3b3f9 ___CFXRegistrationPost_block_invoke + 49
10  CoreFoundation                      0x00007ff800c3b376 _CFXRegistrationPost + 496
11  CoreFoundation                      0x00007ff800b6f836 _CFXNotificationPost + 733
12  Foundation                          0x00007ff8019b71be -[NSNotificationCenter postNotificationName:object:userInfo:] + 82
13  AppKit                              0x00007ff8037d0ecc applicationStatusSubsystemCallback + 678
14  LaunchServices                      0x00007ff8010536ea ___LSScheduleNotificationFunction_block_invoke_2 + 47
15  CoreFoundation                      0x00007ff800ba84a3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
16  CoreFoundation                      0x00007ff800ba8353 __CFRunLoopDoBlocks + 445
17  CoreFoundation                      0x00007ff800ba76b8 __CFRunLoopRun + 2586
18  CoreFoundation                      0x00007ff800ba65dd CFRunLoopRunSpecific + 563
19  HIToolbox                           0x00007ff80988b4f1 RunCurrentEventLoopInMode + 292
20  HIToolbox                           0x00007ff80988b247 ReceiveNextEventCommon + 587
21  HIToolbox                           0x00007ff80988afe5 _BlockUntilNextEventMatchingListInModeWithFilter + 70
22  AppKit                              0x00007ff8035d4b4c _DPSNextEvent + 886
23  AppKit                              0x00007ff8035d31b8 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1411
24  AppKit                              0x00007ff8035c55a9 -[NSApplication run] + 586
25  AppKit                              0x00007ff803599447 NSApplicationMain + 816
26  Enjoyable                           0x0000000108b81c9c Enjoyable + 7324
27  ???                                 0x0000000000000001 0x0 + 1

and stops to run when trying to compile with XCode 13.3.1.It shows the error message and stops.

make: *** No targets specified and no makefile found.  Stop.
Command PhaseScriptExecution failed with a nonzero exit code