Process Crashes and not firing CoreWebView2.ProcessFailed #3932
Replies: 2 comments
-
Hey @RickStrahl - thanks for this issue. I took a quick look at VerifyBrowserNotCrashed, and the _browserCrashed variable is getting set when the WPF control listens to ProcessFailed. So ProcessFailed is working in general when the browser crashes. When the WPF control gets ProcessFailed it will also Uninitialize the control - I'm wondering if that or something else might somehow trigger the UpdateLayout which calls the Verify check before the ProcessFailed handler in you app has a chance to run? |
Beta Was this translation helpful? Give feedback.
-
I don't see this failure myself, I just see it pop up somewhat frequently in my user logs. I've added some additional logging to try and figure out exactly which control is failing, so hopefully this will get me a little close to see what the problem is. I have a feeling that you're right - there's some sort of recursive thing happening where the control is uninitialized and it's trying to recreate itself and then fails again - many of the errors do show up as a clump of requests... Will let you know what I find once I let the logs run for a few days of the latest update. |
Beta Was this translation helpful? Give feedback.
-
In my application, I'm trapping the CoreWebView2.ProcessFailed event for all instances of the WebBrowser control. In the event handler I handle the event something like this:
In essence the application exits after the failure. There are several different WebViews in use - the one above is critcal if it doesn't work the browser can't be reset.
However in my logs I see long strings of these errors:
but I don't see the Process_Failed errors in my log (the
mmApp.Log()
call), only the exception when it hits which is logged at the process level exception handler.Other
This is anecdotal but the vast majority of these failures occur with Asian languages although that's besides the point of this post. But the crashes very heavily lean towards those languages.
Beta Was this translation helpful? Give feedback.
All reactions