Skip to content
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

Open
pushkin- opened this issue Feb 20, 2024 · 6 comments
Open

[Problem/Bug]: empty Crashpad reports directory when crashing #4382

pushkin- opened this issue Feb 20, 2024 · 6 comments
Assignees

Comments

@pushkin-
Copy link

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 to false (though I don't think that matters for your purposes) and FailureReportFolderPath 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

@pushkin- pushkin- added the bug Something isn't working label Feb 20, 2024
@LiangTheDev
Copy link
Member

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 LiangTheDev removed the bug Something isn't working label Feb 20, 2024
@pushkin-
Copy link
Author

@LiangTheDev thanks - is there a way to mimic a webview2 process crash then? One that would generate a dump file?

@pushkin-
Copy link
Author

pushkin- commented Jan 6, 2025

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.

@LiangTheDev
Copy link
Member

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".
For intentionally crashing WebView, this might be helpful: https://stackoverflow.com/questions/40367087/how-to-crash-chrome-browser.

@pushkin-
Copy link
Author

pushkin- commented Jan 6, 2025

@LiangTheDev thanks, my "send optional diagnostics" was on, but after turning it off and back on, now crash dumps generate.

As for the SO post, opening those types of sites gives me:
{C48A123E-BA09-424F-9F21-E523B23A1271}

@LiangTheDev
Copy link
Member

You could have navigate to edge:// urls from DevTools opened for http/https pages. That's the browser security.
You would have to use WebView2 API to navigate the WebView2 to edge:// ulrs. If using the sample app, this means entering the url in its "address bar" and then trigger the navigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants