Replies: 1 comment
-
I am not able to repro this. The renderer process memory usage did go up, however it went down after a while. And I didn't observer difference between WebView2 and browser. My guess would be that there are some internal cache that only be trimmed after a while, and if there was any difference between for browser, it might be that the browser is under more memory pressure and trimming is triggered earlier. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
In our WPF project, We use WebView2 control to display a local HTML file where a local video is playing in loop. The memory consumption of "Microsoft Edge WebView2" keeps increasing until the OutOfMemory Exception is thrown.
The content of the local HTML file is like
Video file "myVideo.mp4" is located at the same folder as the HTML file.
WPF application is pretty simple, only one WebView2 control in the MainWindow.xaml, set the source to the HTML file path (using file:///C/xxxxxxx ). The usage of WebView2 follows the guide from Microsoft.
Memory consumption of "Microsoft Edge WebView2" is stable if I remove the "loop" attribute from video tag, but OutOfMemory exception thrown if I keep "loop" attribute.
I have installed the latest WebView2 runtime. I tried to open this HTML file directly in Microsoft Edge and the memory consumption seems stable.
Has anyone the similar issue? Any advice and help will be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions