-
-
Notifications
You must be signed in to change notification settings - Fork 341
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
C++ exception is not nicely displayed as stack lines in the UI #1562
Comments
Routing to @getsentry/team-mobile for triage. ⏲️ |
When throwing a CPP Exception in a macOS sample app the problem report displays a similar stack trace as Sentry:
Just to get it right @sindresorhus, you would like to see the stack trace of the CPP code? What is your project setup? |
I already see the stack trace of the C++ code, but it's in the error message instead of Sentry's stack frames UI. I expected it to be nicely formatted like other exceptions.
Not sure what info you're looking for. It's a macOS app built with SwiftUI. The exception is coming from Apple's frameworks, not the app. See the linked event and screenshot. |
Ah, now, I get your point, @sindresorhus. It seems like the JSON contains a valid stacktrace, but the UI is not displaying it correctly. @priscilawebdev, could you maybe have a look at this sample event and check out why we don't display a proper stacktrace? |
sure! I'll have a look into it |
When changing the filter from "App only" to "Full", the frames mentioned in the message are being displayed:
By default, the UI displays app-only frames (in_app = true) and these have the property equal to false in the provided event. The message displayed at the top of stack traces is just a plain string that came from the JSON property in this case, if you want to display more frames in the stack trace list, these have to be listed under You can find more information about our Exception interface in our documentation https://develop.sentry.dev/sdk/event-payloads/exception/ |
Ah, I see the following is the value of the exception and is coming from the SDK.
That doesn't really make sense. I will move this to the Cocoa SDK to fix this. |
It could be that we need to fix this problem somewhere here sentry-cocoa/Sources/Sentry/SentryCrashReportConverter.m Lines 347 to 351 in 229c663
|
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Environment
SaaS (https://sentry.io/)
Version
Sentry Cocoa 7.5.2
Steps to Reproduce
Expected Result
I expected to see the stack trace lines with UI styling.
Actual Result
Instead it just shows a stack line referencing
CPPExceptionTerminate
. The stack trace is just plain text in the error description field.Example report: https://sentry.io/organizations/sindresorhus/issues/2771169314/events/3a1f359eac1e494eae2b877e978368ad/
The text was updated successfully, but these errors were encountered: