Open sergei-dyshel opened 3 years ago
When running this command:
/usr/local/bin/alerter -message Msg -title title -subtitle subtitle -closeLabel close_label -dropdownlabel drop -actions one,two,three -json -timeout 10
action list in the notification contains Show item, clicking it leads to exception:
Show
2021-11-19 23:53:54.519 alerter[58872:14756858] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndexedSubscript:]: index 9223372036854775807 beyond bounds [0 .. 2]' *** First throw call stack: ( 0 CoreFoundation 0x00007fff2066f1db __exceptionPreprocess + 242 1 libobjc.A.dylib 0x00007fff203a8d92 objc_exception_throw + 48 2 CoreFoundation 0x00007fff20725e0a _CFThrowFormattedException + 202 3 CoreFoundation 0x00007fff205e3140 +[NSNull null] + 0 4 alerter 0x000000010ae176e5 -[AppDelegate userNotificationCenter:didActivateNotification:] + 540 5 Foundation 0x00007fff2142bf63 -[_NSConcreteUserNotificationCenter _sendDelegateMessage:sendToAppDelegate:withObject:] + 118 6 Foundation 0x00007fff215e891a -[_NSConcreteUserNotificationCenter _notificationClickedMessage:] + 460 7 Foundation 0x00007fff213de9b2 __54-[_NSConcreteUserNotificationCenter _serverConnection]_block_invoke_4 + 49 8 libdispatch.dylib 0x00007fff20352623 _dispatch_call_block_and_release + 12 9 libdispatch.dylib 0x00007fff20353806 _dispatch_client_callout + 8 10 libdispatch.dylib 0x00007fff2035fb4f _dispatch_main_queue_callback_4CF + 940 11 CoreFoundation 0x00007fff20631f18 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 12 CoreFoundation 0x00007fff205f4112 __CFRunLoopRun + 2755 13 CoreFoundation 0x00007fff205f2f8c CFRunLoopRunSpecific + 563 14 HIToolbox 0x00007fff2883aa83 RunCurrentEventLoopInMode + 292 15 HIToolbox 0x00007fff2883a7e5 ReceiveNextEventCommon + 587 16 HIToolbox 0x00007fff2883a583 _BlockUntilNextEventMatchingListInModeWithFilter + 70 17 AppKit 0x00007fff22dfc172 _DPSNextEvent + 864 18 AppKit 0x00007fff22dfa945 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1364 19 AppKit 0x00007fff22decc69 -[NSApplication run] + 586 20 alerter 0x000000010ae1882a main + 147 21 libdyld.dylib 0x00007fff20518f3d start + 1 ) libc++abi: terminating with uncaught exception of type NSException
When running this command:
action list in the notification contains
Show
item, clicking it leads to exception: