You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a UWP application that uses WebView2 to render and print HTML content. My RegisterPrintPage method initializes the WebView2, loads HTML, and then prints it to a PDF.
Everything works fine until the app's language is changed. After switching the language, WebView2 fails to initialize properly, and WebViewControl.CoreWebView2 becomes null.
However, if I change the language back to the original setting, WebView2 works correctly again.
Here’s my implementation:
Additionally, I noticed that WebView2 instances are not closing properly. When checking Task Manager, I see multiple msedgewebview2.exe processes running even after calling CleanupWebView(). This makes me suspect that WebView2 is not fully releasing its resources.
Interestingly, if I manually kill the msedgewebview2.exe process using the command line (taskkill /F /IM msedgewebview2.exe), WebView2 starts working correctly again.
The text was updated successfully, but these errors were encountered:
How are you changing the app's language (and webview's) - a small example would help a lot!
Regarding the multiple webview2 processes. Could be other application's webview2 as well, how are you validating those were created by your app?
Overall, the description implies creation failure due to difference between environment of currently running WebView2 Manager process and the environment of the new webview being created.
I'm working on a UWP application that uses WebView2 to render and print HTML content. My RegisterPrintPage method initializes the WebView2, loads HTML, and then prints it to a PDF.
Everything works fine until the app's language is changed. After switching the language, WebView2 fails to initialize properly, and WebViewControl.CoreWebView2 becomes null.
However, if I change the language back to the original setting, WebView2 works correctly again.
Here’s my implementation:
Additionally, I noticed that WebView2 instances are not closing properly. When checking Task Manager, I see multiple msedgewebview2.exe processes running even after calling CleanupWebView(). This makes me suspect that WebView2 is not fully releasing its resources.
Interestingly, if I manually kill the msedgewebview2.exe process using the command line (taskkill /F /IM msedgewebview2.exe), WebView2 starts working correctly again.
The text was updated successfully, but these errors were encountered: