sentry-native icon indicating copy to clipboard operation
sentry-native copied to clipboard

Breakpad Crash Handler Not Sending Crash Errors

Open ricolaw-clarius opened this issue 3 years ago • 3 comments

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

ricolaw-clarius avatar Jan 12 '22 19:01 ricolaw-clarius

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.

Swatinem avatar Jan 13 '22 12:01 Swatinem

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.

ricolaw-clarius avatar Jan 14 '22 19:01 ricolaw-clarius

I am assuming this second step will still use the custom transport.

Yes thats true.

You can take a look at the directory that you configured via:

https://github.com/getsentry/sentry-native/blob/0e94e49f442b75da4cf4048e25d577cd581a7b09/include/sentry.h#L960-L990

Swatinem avatar Jan 17 '22 13:01 Swatinem