Crashpad callback on app crash to inform user

197 views
Skip to first unread message

Sven Trittler

unread,
Jul 31, 2021, 9:47:06 AM7/31/21
to Crashpad-dev
Hello Crashpad-Developer,

does Crashpad provide a callback functionality to be able to execute some log output or prompt some information to the user?

In Breakpad this was possible so i wonder if Crashpad may provides some kind of similar functionality.

Our app lives in a offline environment on windows, linux and mac.
We would love to prompt the user a dialog to provide information that the app crashed and which .dmp files they should send us.

Maybe through a callback in c++ or may the crash_handler.exe could call some other custom app in a crash situation.

Best regards

Sven

Scott Graham

unread,
Aug 3, 2021, 11:40:32 AM8/3/21
to Sven Trittler, Crashpad-dev
Hi, because crash_handler is out of process there's no convenient way to call back into the app. Crashpad also tries to avoid "trusting" the application (in the sense of the application being unstable due to having crashed).

A couple workarounds to consider:
- read the database at startup (see crashpad_database_util) to see if there's any un-uploaded reports that the user might want to supply. You could also do this in a background process or periodically if your application is very long-lived.
- configure Crashpad to "upload" to a local server which could then notify the user.


--
You received this message because you are subscribed to the Google Groups "Crashpad-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crashpad-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/crashpad-dev/91424f17-4941-42a0-aec8-ef004f96d2ddn%40chromium.org.
Reply all
Reply to author
Forward
0 new messages