Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sentry catches wrong stacktrace of NSException #5058

Open
ShiBody opened this issue Apr 7, 2025 · 3 comments
Open

Sentry catches wrong stacktrace of NSException #5058

ShiBody opened this issue Apr 7, 2025 · 3 comments

Comments

@ShiBody
Copy link

ShiBody commented Apr 7, 2025

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

@philprime
Copy link
Contributor

Hi @ShiBody, thanks for opening up this issue.

Looking at the crash report in Sentry, have you tried to upload debug symbols to see if it helps with symbolicating the full stack trace? While I agree that the amount of frames seems off, testing the crash with debug symbols might help with pinpointing the issue.

@ShiBody
Copy link
Author

ShiBody commented Apr 10, 2025

Hi @ShiBody, thanks for opening up this issue.

Looking at the crash report in Sentry, have you tried to upload debug symbols to see if it helps with symbolicating the full stack trace? While I agree that the amount of frames seems off, testing the crash with debug symbols might help with pinpointing the issue.

Upload symbol files and got same result:
https://webex.sentry.io/issues/6504297906/events/aba4cc8bf49c41ab97b444f4dedea653/?project=4507095483809792

And sorry guys, this should be a Mac project. I have switched it to MacOS in my project settings, and all my tests are about a Mac App.

@philprime
Copy link
Contributor

Thank you for getting back to us, we'll have to investigate this.

@philprime philprime moved this from Needs More Information to Needs Investigation in Mobile SDKs Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs Investigation
Development

No branches or pull requests

3 participants