MicrosoftEdge / MicrosoftEdge/WebView2Feedback

WebView2 stops to initialize

Open
#1,991 3 comments 0 reactions 1 assignee View on GitHub

@champnic is already working on this.

Since Dec 7, 2021.

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

Description

(Lib version 1.0.1054.31, Runtime 96.0.1054.43)
I am working on a C++ MFC application that also hosts .NET WinForms forms and controls, including a WinForms form with a WebView2 control inside it. The form is instantiated/destroyed each time that view is entered/left. This works fine except in a particular case where the form is show right after other forms , then WebView2 stops initializing for the rest of the process's life. Calling EnsureCoreWebView2Async() does not help and the CoreWebView2InitializationCompleted event stops being triggered. Running EnsureCoreWebView2Async().Wait() never completes.

What could be the cause of this ?

AB#37315730

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.