-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Problem/Bug]: WebView2 control throws OutOfMemoryException on call to EnsureCoreWebView2Async() #4601
Comments
Is this the right repository for this issue? If not, I can open it in another one (WindowsAppSdk?) if that's a more appropriate place. Thank you! |
Can I ask, if you have specific reasons to believe that this is something that is WebView2 related, instead of WindowsAppSdk? |
Sorry, I don't really have any specific reason to think it's one or the other. I'm hoping it won't take too long for someone familiar with the code to be able to tell and point me in the right direction. Thanks again! |
Thanks a lot for the repro. It is a WebView2 issue. We'll investigate and update. |
Have you had any luck tracking this down? Please let me know if there's anything else I can do to make it easier to investigate this issue. Thank you! |
We are still investigating the issue. It is related to something in the OS itself and might take longer to address. The repro really helps and we have enough clue to investigate further. |
What happened?
Our WinUI 3 (WindowsAppSdk) app allows users to navigate to various pages to define a model, compute, and review tabular and graphic outputs. Some of these pages have WebView2 controls on them to show their content. Once we've loaded a WebView2 control 252 times, the 253rd attempt throws an OutOfMemory exception when we call EnsureCoreWebView2Async() when initializing the WebView2 control.
This was tested with the following configurations with the same behavior:
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
125.0.2535.67, 124.0.2478.109
SDK Version
1.0.2210.55
Framework
WinUI3/WinAppSDK
Operating System
Windows 10, Windows 11
OS Version
10.0.19045, 10.0.22631
Repro steps
WebViewTest.zip
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
Don't know
Last working version (if regression)
No response
AB#51806338
The text was updated successfully, but these errors were encountered: