MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Got ProcessFailed on CoreWebView2 when fixed runtime is installed in a folder with Chinese characters

Open
#2,423 14 comments 0 reactions 1 assignee View on GitHub

@LiangTheDev is already working on this.

Since May 5, 2022.

bug
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

I believe I found a bug with webview2 loaded from a fixed version which is installed in a folder with Chinese characters. In my case, I have the fixed runtime folder installed at C:\WebView\Microsoft.WebView2.FixedVersionRuntime測試員.

The calls for CoreWebView2Environment.CreateAsync and EnsureCoreWebView2Async both seem to be successful, but my page can't be loaded with the error of process failed (reason: crash) as shown in the screenshot below.

Any ideas if this is a known issue?

Thanks!

     string path = @"C:\WebView\Microsoft.WebView2.FixedVersionRuntime測試員";
     
      var env2 = await CoreWebView2Environment.CreateAsync(path, "c:\\test2");

      Task task = webView.EnsureCoreWebView2Async(env2);
      await task;

      if (webView.CoreWebView2 != null)
        webView.CoreWebView2.ProcessFailed += CoreWebView2_ProcessFailed;

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.