title: WebView2 in WinUI2 sometimes raised CoreProcessFailed error
body: <p>I'm trying to follow the <a href="https://docs.microsoft.com/en-us/microsoft-edge/webview2/get-started/winui2" rel="nofollow noreferrer">guide</a> to use the WebView2 in WinUI 2, and sometimes I got the CoreProcessFailed error and sometimes the webview2 works fine.</p>
  <p>Environment:
  Win10 Enterprise 1909 with OS build:18363.1734</p>
  <p>WebView2 runtime:92.0.902.84</p>
  <p>I register WebView2's events as below:</p>
  <pre><code> 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(&quot;Navigation completed.&quot;);
   }
  
   private void MyWebView_NavigationStarting(WebView2 sender, CoreWebView2NavigationStartingEventArgs args)
   {
       Debug.WriteLine(&quot;Navigation starting.&quot;);
   }
  
   private void MyWebView_CoreWebView2Initialized(WebView2 sender, CoreWebView2InitializedEventArgs args)
   {
      Debug.WriteLine(&quot;Initialized.&quot;);
   }
  
   private void MyWebView_CoreProcessFailed(WebView2 sender, CoreWebView2ProcessFailedEventArgs args)
   {
      Debug.WriteLine(&quot;Process failed.&quot;);
      Debug.WriteLine($&quot;Reason:{args.Reason}, exit code:{args.ExitCode}, failed kind:{args.ProcessFailedKind}&quot;);
   }
  </code></pre>
  <p>And I try to navigate to a online page by clicking a button to change the WebView2's source.</p>
  <pre><code>private void myButton_Click(object sender, RoutedEventArgs e)
  {
       try
       {
          Uri targetUri = new Uri(addressBar.Text);
          MyWebView.Source = targetUri;
       }
       catch (FormatException ex)
       {
           // Incorrect address entered.
       }
   }
  </code></pre>
  <p>Then I sometimes got the output like below, and the WebView2's background is black.</p>
  <p>Initialized.</p>
  <p>Navigation starting.</p>
  <p>Process failed. Reason:Unresponsive, exit code:259, failed kind:RenderProcessUnresponsive</p>
  <p>Process failed. Reason:Unresponsive, exit code:259, failed kind:RenderProcessUnresponsive</p>
  <p>Process failed. Reason:Unresponsive, exit code:259, failed kind:RenderProcessUnresponsive</p>
  <p><a href="https://i.stack.imgur.com/bJwYx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bJwYx.png" alt="Here is the screenshot for your reference." /></a></p>
  <p>What's I missing? What should I do?
  Any help would be appreciated, thank you in advance.</p>