Breakpad Crash Handler Not Sending Crash Errors #854
-
Hi currently I have set up Sentry for my project along with custom transports via setting sentry_tranport_new() which works properly when creating events with sentry_capture_event(). However it does not seem to send anything when I crash the program. From what I read in another issue here Crashpad has it's own transport method, is similar for Breakpad? If so is there a way to use our own transport code, or is that for in proc error handling only? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
The breakpad handler (and in-proc) will write the event directly to disk in the case of a hard crash. On restart, the event will be loaded from disk and passed to the configured transport. |
Beta Was this translation helpful? Give feedback.
-
Is there a method you'd recommend for debugging whether the crash is being saved and whether the event is read again after the program restarts? I am assuming this second step will still use the custom transport. |
Beta Was this translation helpful? Give feedback.
-
Yes thats true. You can take a look at the directory that you configured via: sentry-native/include/sentry.h Lines 960 to 990 in 0e94e49 |
Beta Was this translation helpful? Give feedback.
Your question is answered partially here: #786. The other part is that running an HTTP client inside an already hard-crashed application is rarely a good idea (even if technically possible).
On Linux specifically we are very limited in what we can do within a signal-handler. There are ways around this, but they haven't been attempted yet, because users can use our crashpad backend in that case (which uses a separate process to send the crash-event "live").
Most users gather crash-events over a wide range of deployed target systems in an aggregate fashion where it isn't necessary to be informed of a singular "live" crash event, but rather get an overview of how many of their users or clien…