Skip to content
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]: Web pages load very slowly with the latest version of the webview2 runtime #4256

Open
EvgeniyNakonechnyy opened this issue Dec 21, 2023 · 5 comments
Assignees
Labels
bug Something isn't working regression Something used to work but doesn't anymore tracked We are tracking this work internally.

Comments

@EvgeniyNakonechnyy
Copy link

EvgeniyNakonechnyy commented Dec 21, 2023

What happened?

Web pages started taking a long time to load after updating to the webview2 runtime from version 120.0.221.61 to 120.0.2210.77 and 120.0.2210.89.
webview2_61_no_issue
webview2_89_issue

Importance

Moderate. My app's user experience is affected, but still usable.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

120.0.2210.89, 120.0.2210.77

SDK Version

1.0.1418.22 and 1.0.2210.55

Framework

Winforms

Operating System

Windows Server

OS Version

Windows Server 2019 Version 1809 Build 17763.5122

Repro steps

I can reproduce it on Windows Server 2019 only from my app and WebView2WindowsFormsBrowser demo app.

Repros in Edge Browser

No

Regression

Regression in newer Runtime

Last working version (if regression)

120.0.2210.61

AB#48257891

@EvgeniyNakonechnyy EvgeniyNakonechnyy added the bug Something isn't working label Dec 21, 2023
@github-actions github-actions bot added the regression Something used to work but doesn't anymore label Dec 21, 2023
@monica-ch monica-ch added the tracked We are tracking this work internally. label Dec 22, 2023
@EvgeniyNakonechnyy
Copy link
Author

I`ve updated win server 2019. Current build is 17763.5206, webview2 runtime is 120.0.2210.77 and the problem seems to be gone.
Could this mean that not all versions of Windows Server 2019 are 100% compatible with certain versions of the webview2 runtime?

@LiangTheDev
Copy link
Member

Could you please capture net log if it repro again following instructions at Capture Network Logs (NetLog) from Edge and Chrome (and Electron and WebView2) – text/plain (textslashplain.com)?

@EvgeniyNakonechnyy
Copy link
Author

EvgeniyNakonechnyy commented Apr 19, 2024

@LiangTheDev sorry for my delayed response.

I created Webview2WinformsTestApp and reproduced the issue using this app in Windows Server 2019.
I started my virtual machine with webview2-runtime 123.0.2420.81 installed, after some time the runtime was automatically updated to 123.0.2420.97, after that Webview2 takes about 20 sec to initialize and page navigation also takes 20 sec.

Before update
photo_2024-04-19_13-28-48

After
photo_2024-04-19_13-28-55

I captured netlog before and after update.
netlog_before_update.json
netlog_after.json

@EvgeniyNakonechnyy
Copy link
Author

The problem seems to reproduce only on Windows Server 2019. I have not been able to reproduce it on win 10-11.

Also, I found that this can be resolved by simply restarting the VM after updating the webview2 runtime, but the user cannot restart or shut down the VM in my case.

Is there any solution for this without restarting the VM or is it possible to configure the update only with the windows update?

@LiangTheDev
Copy link
Member

The netlog doesn't provide any clues. As WebView2 initialization also becomes slow, it seems that something else is going on. Could you please capture an ETW trace (https://github.com/MicrosoftEdge/WebView2Feedback/blob/main/diagnostics/etw.md) and share via some cloud drive to [email protected]?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression Something used to work but doesn't anymore tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

5 participants