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]: webview not initializing/rendering when UDF folder is not present #5014

Open
mhdshameel opened this issue Dec 23, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@mhdshameel
Copy link

mhdshameel commented Dec 23, 2024

What happened?

We are using webview2 extensively. We see a new issue in one machines alone. Either the webview doesn't initialize or host object doesn't work when the UDF folder is not present and created dynamically. When the UDF folder is made to persist then the both issues are gone, rendering and host objects everything works fine.

When the issue occurs we can see that the count of the msedgewebview processes is 5 rather than 6. I succeeded to reproduce the same issue with the webview sample by adding hostobject implementation.
image

I observe that a msedgewebview child process is getting created again and again and are short lived. From procmon I didnt see any failures when the processes end. Sometimes the type of the process is renderer, utility, gpu-process. Majority of the short lived child processes spawned are of type utility.

One absurd thing is when I set compatibility settings for the sample webview2gettingstarted executable, then it fixes these issues. The same thing doesn't work on our application.

This is kind of blocker for us. Would really appreciate if there are any inputs.

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

No response

SDK Version

No response

Framework

Win32

Operating System

Windows 10, Windows 11

OS Version

19045.5247

Repro steps

Opening webview by dynamically creating the UDF folder

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

@mhdshameel mhdshameel added the bug Something isn't working label Dec 23, 2024
@mhdshameel
Copy link
Author

mhdshameel commented Dec 23, 2024

When the hostobject issue occurs - I can see that the NavigationStarting, DOMContentLoaded events are fired. We add the hostobject in NavigationStarting callback and the api return is successful as well.
I tried to call the hostobject callback with the full form (chrome.webview.hostObjects.sync) from the devtools console and I get the following error:
image

When the rendering issue occurs only the NavigationStarting event is fired and then it goes into a kind of loading/hanged state and loads indefinitely.

The rendering issue occur more frequently than the host objects issue. When the UDF is made to persist then both issues dont occur.

@mhdshameel
Copy link
Author

mhdshameel commented Dec 23, 2024

We tried the WebviewAPISample executable and got this error:
image
The sysfer.dll module is failing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant