Throw Objective-C exception

Throw an uncaught Objective-C exception.

It's possible to generate a better crash report here compared to the C++ Exception case because NSUncaughtExceptionHandler can be used, which isn't available for C++ extensions.

Provider X86-64
HockeyApp
SDK: 4.1.3 Date: 05/18/2017 (i)
Sentry
SDK: 3.0.7 Date: 07/03/2017 (i)
Bugsnag
SDK: 5.0.0 Date: 02/16/2016 (i)
Apple
Date: 05/18/2017 (i)

Expected Report Details:

NSGenericException: An uncaught exception! SCREAM.
-[CRLCrashObjCException crash] (CRLCrashObjCException.m:41)
-[CRLMainWindowController causeCrash:] (CRLMainWindowController.m:72)

Click a status icon above to see the crashing thread’s stack trace with further info.

HockeyApp - x86_64

Exception Type:  SIGABRT
Exception Codes: #0 at 0x7fff96d84d42
Crashed Thread:  0

Application Specific Information:
*** Terminating app due to uncaught exception 'NSGenericException', reason: 'An uncaught exception! SCREAM.'

Last Exception Backtrace:
0   CoreFoundation        0x00007fff815662b3 __exceptionPreprocess + 147
1   libobjc.A.dylib       0x00007fff9637148d objc_exception_throw + 48
2   CrashLib              0x00000001012ef5b3 -[CRLCrashObjCException crash] (CRLCrashObjCException.m:41)
3   CrashProbe            0x00000001012e1c31 -[CRLMainWindowController causeCrash:] (CRLMainWindowController.m:72)
4   libsystem_trace.dylib 0x00007fff96e883a7 _os_activity_initiate_impl + 52
5   AppKit                0x00007fff7f754721 -[NSApplication(NSResponder) sendAction:to:from:] + 455
6   AppKit                0x00007fff7f238cc4 -[NSControl sendAction:to:] + 85
7   AppKit                0x00007fff7f238bec __26-[NSCell _sendActionFrom:]_block_invoke + 135
8   libsystem_trace.dylib 0x00007fff96e883a7 _os_activity_initiate_impl + 52
9   AppKit                0x00007fff7f238b44 -[NSCell _sendActionFrom:] + 127
10  AppKit                0x00007fff7f27b539 -[NSButtonCell _sendActionFrom:] + 97
11  libsystem_trace.dylib 0x00007fff96e883a7 _os_activity_initiate_impl + 52
12  AppKit                0x00007fff7f237426 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2480
13  AppKit                0x00007fff7f27b272 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 797
14  AppKit                0x00007fff7f235ddb -[NSControl mouseDown:] + 831
15  AppKit                0x00007fff7f8d024f -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 6340
16  AppKit                0x00007fff7f8cca6c -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 1941
17  AppKit                0x00007fff7f8cbf0a -[NSWindow(NSEventRouting) sendEvent:] + 540
18  AppKit                0x00007fff7f750681 -[NSApplication(NSEvent) sendEvent:] + 1144
19  HockeySDK             0x000000010131154e -[BITCrashExceptionApplication sendEvent:] (BITCrashExceptionApplication.m:48)
20  AppKit                0x00007fff7efcb427 -[NSApplication run] + 1001
21  AppKit                0x00007fff7ef95e0e NSApplicationMain + 1236
22  CrashProbe            0x00000001012e1ef0 main (main.m:13)
23  libdyld.dylib         0x00007fff96c56235 start + 0

Sentry - x86_64

No report

Bugsnag - x86_64

Exception Type:  EXC_CRASH (SIGABRT)
An uncaught exception! SCREAM.

Missing frame that shows where the crash occured
0 CrashProbe    -[CRLApplication reportException:] (CRLApplication.m:15)
1 AppKit        -[NSApplication run]
2 AppKit        NSApplicationMain
3 CrashProbe    main (main.m:13)
4 libdyld.dylib start

Apple - x86_64

No report

Exception Type:        EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes:       0x0000000000000001, 0x0000000000000000

Application Specific Information:
Crashing on exception: An uncaught exception! SCREAM.

Application Specific Backtrace 1:
0  CoreFoundation        0x00007fff7f85137b __exceptionPreprocess + 171
1  libobjc.A.dylib       0x00007fff9464548d objc_exception_throw + 48
2  CrashLib              0x000000010cbcd5b3 -[CRLCrashObjCException crash] + 164 | Missing filename and line number
3  CrashProbe            0x000000010cbbfc35 CrashProbe + 11317
4  libsystem_trace.dylib 0x00007fff9515c3a7 _os_activity_initiate_impl + 53
5  AppKit                0x00007fff7da41791 -[NSApplication(NSResponder) sendAction:to:from:] + 456
6  AppKit                0x00007fff7d526000 -[NSControl sendAction:to:] + 86
7  AppKit                0x00007fff7d525f28 __26-[NSCell _sendActionFrom:]_block_invoke + 136
8  libsystem_trace.dylib 0x00007fff9515c3a7 _os_activity_initiate_impl + 53
9  AppKit                0x00007fff7d525e80 -[NSCell _sendActionFrom:] + 128
10 AppKit                0x00007fff7d568875 -[NSButtonCell _sendActionFrom:] + 98
11 libsystem_trace.dylib 0x00007fff9515c3a7 _os_activity_initiate_impl + 53
12 AppKit                0x00007fff7d524762 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2481
13 AppKit                0x00007fff7d5685ae -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 798
14 AppKit                0x00007fff7d523117 -[NSControl mouseDown:] + 832
15 AppKit                0x00007fff7dbbd2bf -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 6341
16 AppKit                0x00007fff7dbb9adc -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 1942
17 AppKit                0x00007fff7dbb8f7a -[NSWindow(NSEventRouting) sendEvent:] + 541
18 AppKit                0x00007fff7da3d6f1 -[NSApplication(NSEvent) sendEvent:] + 1145
19 AppKit                0x00007fff7d2b87f7 -[NSApplication run] + 1002
20 AppKit                0x00007fff7d2831de NSApplicationMain + 1237
21 CrashProbe            0x000000010cbbfef4 CrashProbe + 12020
22 libdyld.dylib         0x00007fff94f2a235 start + 1