Letting crashpad handle the exception BUT additionally report it to windows reliability monitor / eventlog #1288
-
We recently switched to sentry and are pretty happy about it. It looks like there is no builtin way to let the crasphad handler report issues to the windows eventlog or am i missing something? Asking ChatGPT it tells me to implement custom handling for it but i wonder as this "Getting an event in windows eventlog" should be something everybody needs 🤔? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @JanFellner.
Glad to hear!
Yeah, that is a side-effect of how This prevents the UEF from returning This is also not an accident, but rather a deliberate choice. The two snapshotting mechanisms aren't easy to synchronize and potentially could leave the application in a state that prevents the other snapshotting mechanism from succeeding. However, I see how this could be a problem, since the system owner is almost always different from the application developer and will also not have access to their logs, leaving the system owner without diagnostic feedback regarding application health.
No, Google did not address this topic on Windows.
The right approach is not writing something into the event log, but submitting a critical report to the WER queue. You could, for instance, do this inside the
You are the first to have brought this to our attention. I suppose most application developers are not as close to system administrators as in your scenario (i.e., they rarely receive feedback that problem reports are missing or similar issues from a system management perspective, and if they do, they are likely to be really close to ops, i.e., in the same team, where they can share sentry reports). This would be a feature that makes sense to provide out of the box. There is even an option I can explore how to integrate this generically into our handler flow. |
Beta Was this translation helpful? Give feedback.
-
I have created a corresponding issue. Let's continue the conversation there (#1296). |
Beta Was this translation helpful? Give feedback.
Hi @JanFellner.
Glad to hear!
Yeah, that is a side-effect of how
breakpad
andcrashpad
operate. On Windows,crashpad
uses theUnhandledExceptionFilter
to register crashes in the client, but then defers the actual snapshot to thecrashpad_handler
, which terminates the application after generating the minidump.This prevents the UEF from retu…