sentry-cocoa icon indicating copy to clipboard operation
sentry-cocoa copied to clipboard

Stack tracer is crashing during captureException

Open kode54 opened this issue 7 months ago • 17 comments

Platform

macOS

Environment

Production

Installed

Swift Package Manager

Version

8.46.0

Xcode Version

16.2

Did it work on previous versions?

No idea, this has happened a few times

Steps to Reproduce

  1. App throws NSException during a work queue for tag reading
  2. Exception is pushed to [SentrySDK captureException:]
  3. App crashes

Expected Result

Exception should be logged, not sure if it should be fatal.

Actual Result

App crashes on this thread dump:

Image
NSInvalidArgumentException: *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil

Are you willing to submit a PR?

I am willing to submit a PR, if I can figure out where it went wrong.

kode54 avatar Mar 10 '25 21:03 kode54