-
Notifications
You must be signed in to change notification settings - Fork 54
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
[Problem/Bug]: empty Crashpad reports directory when crashing #4382
Comments
If you simply kill the process, it is an unexpected process failure, but not a crash. A crash report would not be created for this case. This is by design. If a real crash happened, dump files should be generated. |
@LiangTheDev thanks - is there a way to mimic a webview2 process crash then? One that would generate a dump file? |
I'm seeing a browser process crash (#4843) that generates crash dumps on one machine but not on another. Not sure if there's some other OS-level setting, say, that controls this. Not clear why we see this discrepancy. |
If the OS setting doesn't allow collecting of "optional diagnostic data", then Edge code would not collect dump. The setting could be accessed from Settings app, "Privacy & security -> Diagnostics & feedback". |
@LiangTheDev thanks, my "send optional diagnostics" was on, but after turning it off and back on, now crash dumps generate. |
You could have navigate to edge:// urls from DevTools opened for http/https pages. That's the browser security. |
I'm also running into this issue (dumps are generating on one machine but not another). I've tried toggling the "optional diagnostic data" and it didn't fix the issue. WebView2 Runtime Version: 131.0.2903.112 |
@LiangTheDev, following up on this again. We are trying to preemptively ensure that if/when our application hard-crashes, we get a crash dump but with recent WebView2 updates, no matter what
This is a method on a "hostObject" and I'm invoking it via the console. |
@Manish3177 there seems to be a misunderstanding here. The WebView2's crash dumps (the ones that are supposed to be in environment.FailureReportFolderPath folder) are for crashes happened in WebView2's processes (msedgewebview2.exe). The crashes that happen in app process is not handled by WebView2 Runtime, but handled by Windows' error handling. I would expect that you can see events related to the crash in app process if you use event viewer to check WER events. |
Thanks for the clarification, @LiangTheDev. I can confirm that I do get a .dmp file in the |
What happened?
My understanding is that crash reporting is enabled by default.
If I start my app, open Task Manager and kill the browser process (--embedded-browser-webview) or the renderer process (--type=renderer), the
ProcessFailed
event is raised, but I don't see any reports getting created.IsCustomCrashReportingEnabled
is set tofalse
(though I don't think that matters for your purposes) andFailureReportFolderPath
is set to%localappdata%\\<appName>\\EBWebView\\Crashpad\\reports
However, the reports directory is empty.
The only modified file after the crash is settings.dat.
Seems related to this issue (maybe that's answered and I'm just not understanding the resolution)
--
though I see this in Edge too assuming I'm following the steps correctly. Maybe it's expected that we don't create dumps in these cases?
Importance
Moderate. My app's user experience is affected, but still usable.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
121.0.2277.128
SDK Version
1.0.2277.86
Framework
Winforms
Operating System
Windows 10
OS Version
10.0.19045 Build 19045
Repro steps
see above
Repros in Edge Browser
Yes
Regression
Don't know
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered: