SDK Crash Detection Ignore Uncaught NSExceptions
- Dominant language
- Python
- Stars
- 44.8k
- Forks
- 4.9k
- Avg merge
- 22h 21m
- Merged PRs (30d)
- 586
Description
Uncaught NSExceptions end up as wrongly reported [Cocoa SDK crashes](https://sentry.sentry.io/issues/4680761284/events/5314281f6f5e4aa2984d66c8a600db14/?project=4505469596663808&query=&referrer=previous-event&sort=freq&statsPeriod=30d&stream_index=0).
```
Exception Type: EXC_CRASH (SIGABRT)
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x1d691e974 __pthread_kill
1 libsystem_pthread.dylib 0x1ea3a10e8 pthread_kill
2 libsystem_c.dylib 0x19636fb7c abort
3 libc++abi.dylib 0x1ea2c0cc8 abort_message
4 libc++abi.dylib 0x1ea2b0e80 demangling_terminate_handler
5 libobjc.A.dylib 0x1863060b8 _objc_terminate
6 Sentry.framework 0x10329db84 [inlined] sentrycrashcm_cppexception_callOriginalTerminationHandler (Sentry.framework:104)
7 Sentry.framework 0x10329db84 CPPExceptionTerminate (Sentry.framework:181)
8 libc++abi.dylib 0x1ea2c008c std::__terminate
9 libc++abi.dylib 0x1ea2c0030 std::terminate
10 libdispatch.dylib 0x1962b6de4 _dispatch_client_callout
11 libdispatch.dylib 0x1962be3fc _dispatch_lane_serial_drain
12 libdispatch.dylib 0x1962bef2c _dispatch_lane_invoke
13 libdispatch.dylib 0x1962c9cb0 _dispatch_root_queue_drain_deferred_wlh
14 libdispatch.dylib 0x1962c9524 _dispatch_workloop_worker_thread
15 libsystem_pthread.dylib 0x1ea39cf1c _pthread_wqthread
```
We can ignore SDK crashes for which the top Cocoa SDK frame is `sentrycrashcm_cppexception_callOriginalTerminationHandler` and the message contains `terminating due to uncaught exception of type NSException`.
Contributor guide
Assessment
This issue has not been assessed yet.