-
-
Notifications
You must be signed in to change notification settings - Fork 19
Improve iOS crash reports by adding scope data #491
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
Conversation
| // 1. Write a crash report to disk with ALL synced scope data | ||
| // 2. Include tags, user, context, breadcrumbs, etc. | ||
| // 3. The crash will be sent on next app launch | ||
| handler.invoke(throwable.asNSException()) |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds legit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes will have a look
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
romtsn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good stuff!
Co-authored-by: Roman Zavarnitsyn <[email protected]>
...src/appleMain/kotlin/io/sentry/kotlin/multiplatform/nsexception/SentryUnhandledExceptions.kt
Show resolved
Hide resolved
...src/appleMain/kotlin/io/sentry/kotlin/multiplatform/nsexception/SentryUnhandledExceptions.kt
Show resolved
Hide resolved
|
Will merge this once |

Note: this will mess up issue grouping because it
adds some frames to the stacktrace as wellproperly symbolicates the stacktace now but I think it's fine since it's such a big improvement📜 Description
Improve crash handling for iOS/macOS
💡 Motivation and Context
Closes #477
Previously iOS crashes were not synced with scope data.
In cocoa
sentrycrashreport_writeStandardReporttakes care of writing a crash report to disk which includes all the scope data (which was held in C memory). Executing the crashReporter handler invokes this process.💚 How did you test it?
Only manually (comparisons below). This test case would need a proper e2e setup that can reliably report crashes e.g via maestro perhaps
We can put writing this e2e test into an issue and do it when we have time
Event links
Images
With synced scope data:

Without synced scope data:

📝 Checklist
You have to check all boxes before merging:
sendDefaultPIIis enabled.🔮 Next steps