-
Notifications
You must be signed in to change notification settings - Fork 55
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
RenderProcessExited #443
Comments
Was this working before and broke from an update to the Dev Edge browser? Can you share the code that's catching and printing that error message? If you remove the error handling, what's the failure stack? |
It worked on my machine about two and a half weeks ago. Since then the Version of the Browser has changed multiple times as well as the code. I deinstalled all versions of edge and installed the beta version (86.x) and that ain't working either. An update to the most recent version of the webview prerelease (which needs 87.x, so i used the dev channel) changed nothing. It even works on the machines of my coworkers and I have no idea what causes this, because if I comment out the error handling it just fails silently. private void WebView_CoreWebView2Ready(object sender, EventArgs e)
{
webView.CoreWebView2.ProcessFailed += CoreWebView2_ProcessFailed;
}
private void CoreWebView2_ProcessFailed(object sender, CoreWebView2ProcessFailedEventArgs e)
{
MessageBox.Show(this, "ProcessFailedKind: " + e.ProcessFailedKind);
} |
@TimWeidner Are you compiling as 64-bit (x64 or Any CPU with Prefer 32 bit unchecked) or 32-bit (x86 or Any CPU with Prefer 32 bit checked). |
Any CPU with Prefer 32 bit unchecked |
You can try what's mentioned in #431, but that may not apply to you. Try this demo: WebView2Test_v628.zip . It's just a WebView2 control on a form. |
@TimWeidner In the demo project, add the following line: What version of .NET is your project using? Ensure that you see the following files in same folder as the executable (ex: bin\Debug...):
You might try removing the WebView2 package from your project. Then deleting the WebView2 NuGet package from: Then in your project add the WebView2 NuGet package. It will be downloaded again to both *Note: For .NET, it should be a "prerelease" version. Also keep in mind that the oldest (most stable) version of MS Edge is being used. If you have MS Edge Beta and MS Edge Dev installed, then MS Edge Beta will be used. |
Sorry for not responding sooner.
The Project is using .NET 4.7.2. I am using Windows 10 64-bit. I have all the specified .dll-Files, but no XML Files in the debug directory. We have done all the steps you recommended about clearing the packages and (after fixing the nullpointer from the other issue #431) nothing works, just like before doing the steps. So basically the problem still persists |
My coworker came back from vacation and he has the exact same issue. |
Please check that your anti-virus isn't blocking/removing the files. If you haven't already done so, please reboot your computer. Clean the Visual Studio Toolbox (this will remove manually added controls):
Uninstall the Microsoft.Web.WebView2 NuGet package from the project
*Note: Once the WebView2 NuGet package has been uninstalled from your project/solution, the following folder should no longer exist:
Delete the WebView2 NuGet package files/folders:
Install the Microsoft.Web.WebView2 0.9.628-prerelease NuGet package to the project which will re-download the WebView2 files/folders to
Uninstall the Microsoft.Web.WebView2 NuGet package from the project again
Modify the Microsoft.Web.WebView2.targets files as described in #431
Install the Microsoft.Web.WebView2 0.9.628-prerelease NuGet package to the project again which will copy the WebView2 files/folders from
Are you using Visual Studio? If so, what version? The latest versions are:
Use "Visual Studio Installer" to install the latest updates. (Type here to search: Visual Studio Installer) How are you compiling? Command line? Visual Studio? Are you receiving any errors when you compile? Have you specified any additional build parameters? What Configuration and Platform are you compiling for?
If you're using Visual Studio to compile, set the output to Diagnostic.
Please post the Microsoft.Web.WebView2.targets files that your project is using.
What version of Windows 10 are you using? The latest version of Windows 10 is v2004.
What OS architecture are you using?
There have been numerous updates during this time. Visual Studio updates, MSBuild updates, MS Edge updates Webview2 updates, and maybe even some OS updates. Please make sure you've installed all of the mentioned updates and reboot your computer. *Note: It looks like the MS Edge (stable) update occurs when one navigates to
rather than through Windows Updates. There's some info in #421 that describes where the MS Edge files and registry keys are. *Note: During the compile/build process the following files are copied from <solution folder>\packages\Microsoft.Web.WebView2.0.9.628-prerelease\lib\net462:
to your build folder (ex: bin\Debug, bin\x64\Debug, ...) One or more of the following are also copied to your build folder (ex: bin\Debug, bin\x64\Debug, ...):
Due to issue 431, the appropriate version of WebView2Loader.dll, should be copied to the same location as your executable and Microsoft.Web.WebView2.WinForms.dll files. What files/folders exist in your build folder (ex: bin\Debug, bin\x64\Debug, ...) after compiling? Other options:
Use the System File Checker tool to repair missing or corrupted system files |
This line is exactly what resolved this issue. The reason for our internal problems with Webview is the simple fact that our corporate structure dictated usage of an old version of symantec endpoint protection. It's not that any files were blocked, but it seams like symantec conflicted with webview2s RendererCodeIntegrity. See The Chrome 78.0 Symentec SEP error. Two people on our team used the registry workaround and another one did not have Symantec installed for whatever reason. It worked fine on his machine, so that perfectly explains that. So I am guessing some change to the inner workings of edge/webview (in the last month or so) made the webview crash as soon as RendererCodeIntegrity was disabled. This is obvious in hindsight, but figuring out the problem in the first place took us literally the past 2 1/2 weeks plus some time before that (dealing with some other strange behaviour). So thank you so much for this detailed answer, which made the penny drop). You sir @cgeier are the real MVP. Thank you so much. I'm going to close this issue now, please feel free to remove the bug label. |
Description
The "ProcessFailedKind:" addition is from us, but the RenderProcessExited error is thrown by webview on first load.
In another test Form with just an URL to https://www.microsoft.com/ I get just a blank / empty Form
Version
SDK: 0.9.579-prerelease
Runtime: Dev 87.0.637.0
Framework: Winforms
OS: Win10
Screenshots
The text was updated successfully, but these errors were encountered: