Replies: 1 comment 1 reply
-
Sometimes we also get a similar error: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to follow the guide to use the WebView2 in WinUI 2, and sometimes I got the CoreProcessFailed error and sometimes the webview2 works fine.
Environment:
Win10 Enterprise 1909 with OS build:18363.1734
WebView2 runtime: 93.0.961.38
Microsoft.UI.Xaml: 2.7.0-prerelease.210827001
I register WebView2's events as below:
MyWebView.CoreWebView2Initialized += MyWebView_CoreWebView2Initialized;
MyWebView.CoreProcessFailed += MyWebView_CoreProcessFailed;
MyWebView.NavigationStarting += MyWebView_NavigationStarting;
MyWebView.NavigationCompleted += MyWebView_NavigationCompleted;
private void MyWebView_NavigationCompleted(WebView2 sender, CoreWebView2NavigationCompletedEventArgs args)
{
Debug.WriteLine("Navigation completed.");
}
private void MyWebView_NavigationStarting(WebView2 sender, CoreWebView2NavigationStartingEventArgs args)
{
Debug.WriteLine("Navigation starting.");
}
private void MyWebView_CoreWebView2Initialized(WebView2 sender, CoreWebView2InitializedEventArgs args)
{
Debug.WriteLine("Initialized.");
}
private void MyWebView_CoreProcessFailed(WebView2 sender, CoreWebView2ProcessFailedEventArgs args)
{
Debug.WriteLine("Process failed.");
Debug.WriteLine($"Reason:{args.Reason}, exit code:{args.ExitCode}, failed kind:{args.ProcessFailedKind}");
}
And I try to navigate to a online page by clicking a button to change the WebView2's source.
Then I sometimes got the output like below, and the WebView2's background is black.
Initialized.
Navigation starting.
Process failed.
Reason:Unresponsive, exit code:259, failed kind:RenderProcessUnresponsive
Process failed.
Reason:Unresponsive, exit code:259, failed kind:RenderProcessUnresponsive
Process failed.
Reason:Unresponsive, exit code:259, failed kind:RenderProcessUnresponsive
What's I missing? What should I do? Any help would be appreciated, thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions