-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
Perform operations after crash #720
Comments
The docs are partly out of date. We got the Switching to the breakpad handler should also provide this functionality, as with that backend, the hook is being invoked on all platforms. |
Okay, thank you for the update. Will close this issue as soon as I have tried and verified this. |
Is there any reliable way to tell whether the Looking at sentry-native/src/backends/sentry_backend_crashpad.cpp Lines 140 to 146 in 9e12f81
and sentry-native/src/sentry_core.c Lines 455 to 482 in 9e12f81
it seems like one way would be to check if the event passed to the hook function is empty/null (as with crash) or not empty (as with other kind of event), is that the expected way to go about this? And the telling those apart itself is definitely needed, since a random silent event shouldn't generate stuff like extra diagnostic logging or displaying a message to the user about crash |
It seems like the native handler generates a generic event only to discard it after the before_send function... |
Depending on the crash backend, we may also have a full event object (in case of inproc). We could think about exposing a new hook that is only called in case of crash. |
@arijith96, were you able to verify this? feel free to reopen if you still have issues with this. @p0358, we introduced an |
Description
When does the problem happen
Environment
Steps To Reproduce
I wanted to know how I could perform some operations right after a crash has occurred, since I want to do somethings like the following:
I came across
before_send()
but as stated in the docs, but it states that crashpad does not invoke this when a crash occurs. Please note that my primary intention is for crashes only and not for any message/error events.The text was updated successfully, but these errors were encountered: