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

Creation of WebView2 hangs with 100% CPU msedgewebview2.exe process (probably renderer process) #3698

Closed
Urmeli0815 opened this issue Aug 9, 2023 · 8 comments
Assignees
Labels
bug Something isn't working status-circle back Check back after requesting general information.

Comments

@Urmeli0815
Copy link

Description
A customer is experiencing a problem with WebView2 in our application. Our application starts and waits for WebView2 to be initialized. One msedgewebview2.exe process occupies one CPU core 100% and our app hangs.

Customer already reinstalled WebView2 and also mentioned that no special Anti-Malware application is active (just built-in Windows defender).

Version
SDK: 1.0.1518.46
Runtime: 115.0.1901.200
Framework: Win32
OS: Win10

Screenshots
image
image

Additional context
The customer sent us dumps of the CPU-burning process, we could provide them for analysis.

@Urmeli0815 Urmeli0815 added the bug Something isn't working label Aug 9, 2023
@aluhrs13
Copy link
Contributor

@Urmeli0815 - Can you take a dump of the process in this state and share it?

@aluhrs13 aluhrs13 added the status-circle back Check back after requesting general information. label Aug 10, 2023
@aluhrs13
Copy link
Contributor

@vbryh-msft can you PTAL while Liang is OOF?

@SanderBouwhuis
Copy link

I am the customer @Urmeli0815 mentioned.
The first dump is after waiting about 1.5 mins, and the second dump is after waiting for about 2 mins. It seems there is an initialization error (maybe a dead lock?).
If you need more info, let me know.

@vbryh-msft
Copy link
Contributor

The stacks for main thread are different in both dumps, so it does not looks like deadlock/hung there - dumped process is renderer which does some CSS/JS work.

  • Does the app try to navigate to any url when it happens?
  • Is there any errors in DevTools console if it is accessible?
  • Does the same url work in Edge and Chrome?
  • Can we have etw for the issue?

@Urmeli0815
Copy link
Author

  • The app creates a WebView2 on startup and navigates to a single-page app. After that no more navigation happens.
  • DevTools are not available in this build
  • The same url works in Edge according to the customer
  • @SanderBouwhuis could you make an etw trace? See etw-link from @vbryh-msft

@SanderBouwhuis
Copy link

SanderBouwhuis commented Sep 9, 2023

Sorry, we stopped using the application. We switched to something else.
If someone else can also reproduce this, then by all means continue this thread.

Edit:
@Urmeli0815
Ok, I removed the name of the application.

@Urmeli0815
Copy link
Author

@SanderBouwhuis No problem, thanks for the initial feedback. Can you do me a favour and remove the reference to our product in your last comment?

@vbryh-msft I propose we close this issue, if we experience something similar I will create a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status-circle back Check back after requesting general information.
Projects
None yet
Development

No branches or pull requests

5 participants