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

Nothing displayed, but Right-Click works. Some computers only. #1539

Open
TCNOco opened this issue Jul 17, 2021 · 24 comments
Open

Nothing displayed, but Right-Click works. Some computers only. #1539

TCNOco opened this issue Jul 17, 2021 · 24 comments
Labels
bug Something isn't working gpu Issues caused by gpu or graphics drivers tracked We are tracking this work internally.

Comments

@TCNOco
Copy link

TCNOco commented Jul 17, 2021

This project of mine, the TcNo Account Switcher is being plagued by an issue that affects... some people.
The WebView2 window works perfectly. A handful of computers display nothing but the form's background, even when the page is changed, and can be interacted with (Both elements on the page, and the Right-Click window for the Inspector).

It affects both Windows 7 - issue #45 and Windows 10 users. Windows 10 I can't link as they contacted via Discord, but it's been 2 or 3 users so far.
Nothing is different in the builds. They work, and on some computers, they don't. I can't recreate it, but I need to solve it.

I tried 'fixes' from #1077, in TCNOco/TcNo-Acc-Switcher@1c085ce. But they came to the same result. Not fixing anything.

Version
SDK: WebView2 1.0.864.35, WebView 2 1.0.902-prerelease. ASP.NET Core + Desktop Runtime 5.0.8.
Runtime: WebView2 Runtime 91.0.864.70 (Latest)
Framework: WinForms
OS: Windows 10 latest, Windows 7 latest.

Repro Steps
I have no steps as nothing is done differently on computers where it works, and where it doesn't. Some just don't display anything, some do. It should open up and display everything as normal, but for some, it just doesn't.

Screenshots
Expected:
image
Actual, on PCs affected by this bug:
image

Additional context
You're able to download it yourself, here. The installer installs all required runtimes, so nobody is missing anything causing this issue.

AB#34786782

@TCNOco TCNOco added the bug Something isn't working label Jul 17, 2021
@champnic
Copy link
Member

Hey @TcNobo - thanks for the bug report! A couple of questions:

  1. Are you setting the WebView2 to have a transparent background?
  2. Is this happening when minimizing and then opening the app?
  3. Are you able to find out what GPUs the affected machines are using?

We are currently investigating similar bugs, so I'll link your issue to those investigations. Thanks!

@TCNOco
Copy link
Author

TCNOco commented Jul 21, 2021

  1. No.
  2. Just when opening the program, and lasts throughout its life.
  3. The 2 computers affected:

I asked users for DXDiag screenshots, so that's what the links are for if you can pull any more useful info out of it.

@champnic
Copy link
Member

Thanks for the info! I'm adding this bug to our backlog. We have some similar bugs on our backlog that we're working on and are related to DComp being disabled for certain GPUs, which seems to be the case for the Intel 4000 and OS < Win10.

@champnic champnic added the tracked We are tracking this work internally. label Jul 22, 2021
@TCNOco
Copy link
Author

TCNOco commented Jul 23, 2021

Thanks. Are there any known workarounds that I can use in the meanwhile?

@champnic
Copy link
Member

Unfortunately we haven't found workaround yet for folks who find themselves in this state.

@TCNOco
Copy link
Author

TCNOco commented Aug 2, 2021

Have another user with the same exact issue. Same thing, also Intel HD Graphics:

  • Windows 7 Ultimate x64 7601, Turkish, Intel i5-4300M (Intel HD Graphics 4600). See Imgur album

@TCNOco
Copy link
Author

TCNOco commented Nov 6, 2021

For now I've worked around this by building in a 'fallback' CEFSharp version. Extra files are downloaded, and the program uses this instead of WebView2.
I much prefer the performance of WebView2 - and the Inspect Element functionality... I do hope this gets patched soon.

@markismail7
Copy link

markismail7 commented Mar 30, 2022

I'm having the same problem with some of our customers. Webview2 won't work on certain computers, i even had the customer upgrade from windows 10 to windows 11 and still didn't fix it. It's 64 bit computer. I have seen this problem more than once now. We use the latest version of Webview2. I hope Microsoft takes care of it as we have no answer for our customers on why certain computers can't load webview2

@champnic
Copy link
Member

@markismail7 These issues are tough to repro and track down, but in my experience they are most often tied to GPU driver issues. If you want to, you can try disabling the GPU workarounds that exist for some driver bugs. This is a tradeoff in that you may hit other graphical issues tied to drivers, but may avoid the content being invisible issue. To try this, add these to the browser arguments when initializing the WebView2:
--ignore-gpu-blocklist --disable-gpu-driver-bug-workarounds

@champnic champnic added the gpu Issues caused by gpu or graphics drivers label Mar 30, 2022
@markismail7
Copy link

@champnic How do you answer everyone's question so fast. OMG. Microsoft give this person a raise. Thank you i'll try that. I really appreciate your help.

@markismail7
Copy link

@champnic
I haven't been able to solve the problem on certain computers where webview2 doesn't load. Its just white blank. However, they can load edge chrome. Can you please help, i have encountered over 50 customers for the past 30 days. Some of them have 2 computers, one can load webview2 the other can't load it.

@champnic
Copy link
Member

champnic commented May 4, 2022

Are you suddenly seeing a surge of this occurring?

For the machines that are hitting this, do the following browser arguments "fix" the issue and allow WebView2 to load? You can set the following environment variable of those machines and restart the WebView2/app:
WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS=--ignore-gpu-blocklist --disable-gpu-driver-bug-workarounds

If that fixes the issue, then that confirms that it's due to a gpu issue, and we'll want to gather some more information.

@markismail7
Copy link

Yes, they told me it was working before

@markismail7
Copy link

I'm working with a customer right now, i'm trying to find the error. I'll post it soon

@markismail7
Copy link

Here is the error that comes up when initializing WEbview2:
"Unable to cast to Mircrosoft.web.webview2.core.raw.icorewebview2controller2. This may happen if you are using an interface not supported by the version of the webview2 runtime you are using. "

@markismail7
Copy link

I'm using the lastest version of webview2 production, it seems like the for some computer the webview2 runtime is not matching

@markismail7
Copy link

markismail7 commented May 4, 2022

@champnic
So i found the problem, it's exactly what it says. The webview2 runtime is outdated and not matching webview2 core. I'm downloading it from this url https://developer.microsoft.com/en-us/microsoft-edge/webview2/ (Evergreen standalone)
And the crazy part, its only happening on some computers, so i don't get this point.

I had to downgrade webview2 from : 1.0.1185.39 to 1.0.1020.30 . Please let me if i'm suppose to download runtime from somewhere else or the runtime on this link needs to be updated it. Thanks Mark

@champnic
Copy link
Member

champnic commented May 4, 2022

Thanks for digging in @markismail7 - sounds like this is a different issue than the main thread here (which has nothing getting displayed, but the WebView2 is loading fine).

ICoreWebView2Controller2 is an old interface (1.5 yrs) supported by runtimes 89.0.774.45+. What runtime did the user have on their machine? In theory the evergreen runtime should be keeping itself up to date (though there is a group policy that IT admins can use to block updating). Did downgrading the SDK but keeping the same old runtime workaround the issue?

@markismail7
Copy link

markismail7 commented May 4, 2022

@champnic
No problem, so i tried to upgrade the runtime, it kept saying, it's already installed. Here is the issue, this only happens with certain computers. The runtime is not working with certain computers with the latest version of webview2. Once i downgraded webview2, it loaded perfectly. Other customer didn't encounter this issue. keep in mind, this is not one computer, it's multiples. One customer upgraded from windows 10 to windows 11, the issue was still there. There is something going on with the runtime for those computers. Most of those computer have integrated video card to the motherboard.

@champnic
Copy link
Member

champnic commented May 4, 2022

Can you get version info of the SDK and Runtimes for machines where you are and aren't seeing this?

@markismail7
Copy link

I will get it.

@markismail7
Copy link

markismail7 commented May 5, 2022

@champnic
It is the latest version: RunTime: 101.0.1210.32
SDK:1.0.1185.39

@champnic
Copy link
Member

champnic commented May 5, 2022

Just to confirm - that is the version combination that you are seeing it fail due to the ICoreWebView2Controller2?
"Unable to cast to Mircrosoft.web.webview2.core.raw.icorewebview2controller2."

@markismail7
Copy link

Yes, keep in mind. This only happens on certain computers. So it doesn't make any sense. Another thing i found out, if you have webview2 runtime older version installed, and you try to install the new version from https://developer.microsoft.com/en-us/microsoft-edge/webview2/ It will say, you already have webview2 installed. It doesn't force to update. You need to un install and re- install to have the latest version. I know it suppose to update automatically though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gpu Issues caused by gpu or graphics drivers tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

3 participants