Skip to content

Sentry catches wrong stacktrace of NSException #5058

@ShiBody

Description

@ShiBody

Platform

macOS

Environment

Production

Installed

Manually

Version

8.40.0

Xcode Version

16.1

Did it work on previous versions?

No response

Steps to Reproduce

  1. Raise a NSGenericException with customized fail reason
  2. Debug in Xcode could see stacktrace in Exception Backtrace clearly. We have 58 elements in NSExcaption.

Image

  1. While after sending to Sentry, we could only see an invalid stacktrace
    https://webex.sentry.io/issues/6504297906/events/6a3940bbdb38430b8a84f9177eb2d854/?project=4507095483809792
Image

Expected Result

Same stacktrace as Exception Backtrace shows

Actual Result

An invalid runloop stacktrace captured.

Are you willing to submit a PR?

No response

Metadata

Metadata

Labels

Type

Projects

Status

Needs Investigation

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions