MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
452 stars 55 forks source link

WebView2 freezes after playing video and resize the UWP app #3492

Closed DotNet-Fan closed 1 year ago

DotNet-Fan commented 1 year ago

Microsoft Webview2 experts,

Navigate to https://www.youtube.com/ in UWP webview2 control and play any video

try for eg: https://youtu.be/qsQB1gY7Tzo

Resize the window multiple times by dragging , wait for few seconds for the the whole video and the webview2 control freezes. It is reproducible with a sample UWP app as well.

Version SDK - Microsoft.UI.Xaml - 2.8.4 Framework: UWP OS: Windows 11

Thanks

AB#44972238

DotNet-Fan commented 1 year ago

@novac42 @maurawinstanley This happens when you play videos from https://www.dailymotion.com/ also. That means it is a blocker for video and audio playback.

champnic commented 1 year ago

Thanks for the bug report @DotNet-Fan and sorry you're running into this. I've added it to our backlog to look into.

champnic commented 1 year ago

@DotNet-Fan We just tried this and we are unable to reproduce on stable WebView2 Runtime 114. What runtime version is your app using?

DotNet-Fan commented 1 year ago

@champnic these are the versions

Microsoft.UI.Xaml - 2.8.4 Microsoft.Web.WebView2.Core.dll version - 1.0.1264.42 WebView2Loader.dll - 1.0.1264.42

champnic commented 1 year ago

That's a pretty old SDK. Can you try updating?

And what version of the WebView2 Runtime is getting used? (You can look at the command-line of the child msedgewebview2.exe processes, and/or check to see what version of WebView2 is installed under "Installed Apps" on your machine)

DotNet-Fan commented 1 year ago

@champnic When you create a new UWP project and add Microsoft.UI.Xaml 2.8.4 , it uses these versions automatically and can see this in the bin folder - Microsoft.Web.WebView2.Core.dll version - 1.0.1264.42 WebView2Loader.dll - 1.0.1264.42. How can i point to the latest ones? Visual studio is updated to the latest ones.

I checked the msedgewebview2.exe runtime in taskmanager and it is loading the latest image

champnic commented 1 year ago

1.0.1264.42 is probably the minimum version specified for the WebView2 SDK dependency. You should be able to look at the Nuget packages installed for your project, find WebView2, and then upgrade it to a newer version (either the latest release or pre-release SDK).

Thanks for confirming the runtime. If it ends up still reproducing for you even with the latest SDK then it might be some machine or GPU driver issue.

DotNet-Fan commented 1 year ago

@champnic When you use the webview2 control from Microsoft.UI.Xaml - 2.8.4 , it uses the min version 1.0.1264.42. Microsoft.UI.Xaml 2.8.4 is the latest nuget package available.

champnic commented 1 year ago

Let me know if you are still seeing this with the latest SDK and I can reopen. We are still unable to reproduce this issue.