sfsam / Itsycal

Itsycal is a tiny calendar for your Mac's menu bar. http://www.mowglii.com/itsycal
MIT License
3.25k stars 234 forks source link

Launching on Ventura is breaking #210

Closed antonyr closed 1 year ago

antonyr commented 1 year ago

Following is the exception I noticed while launching Itsycal app. Please help fix this issue. Thanks

2022-11-02 15:49:09.351 Itsycal[30372:1559463] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
*** First throw call stack:
(
    0   CoreFoundation                      0x00000001b409c418 __exceptionPreprocess + 176
    1   libobjc.A.dylib                     0x00000001b3be6ea8 objc_exception_throw + 60
    2   CoreFoundation                      0x00000001b4181cc4 -[__NSCFString characterAtIndex:].cold.1 + 0
    3   CoreFoundation                      0x00000001b417e71c -[__NSArrayM insertObject:atIndex:].cold.2 + 0
    4   CoreFoundation                      0x00000001b3fc0cf0 -[__NSArrayM insertObject:atIndex:] + 908
    5   Itsycal                             0x000000010095ca30 Itsycal + 35376
    6   Itsycal                             0x000000010095c674 Itsycal + 34420
    7   libdispatch.dylib                   0x00000001b3db99dc _dispatch_call_block_and_release + 32
    8   libdispatch.dylib                   0x00000001b3dbb504 _dispatch_client_callout + 20
    9   libdispatch.dylib                   0x00000001b3dc2bbc _dispatch_lane_serial_drain + 672
    10  libdispatch.dylib                   0x00000001b3dc3708 _dispatch_lane_invoke + 384
    11  libdispatch.dylib                   0x00000001b3dce34c _dispatch_workloop_worker_thread + 652
    12  libsystem_pthread.dylib             0x00000001b3f3e100 _pthread_wqthread + 288
    13  libsystem_pthread.dylib             0x00000001b3f3ce20 start_wqthread + 8
)
libc++abi: terminating with uncaught exception of type NSException
[1]    30372 abort      /Applications/Itsycal.app/Contents/MacOS/Itsycal

Saving session...completed.
Deleting expired sessions...      10 completed.
sfsam commented 1 year ago

@antonyr Try this: https://www.mowglii.com/2022/11/05/ventura.html

antonyr commented 1 year ago

@sfsam Thank you, this worked wonders