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

[BUG] SKGLElement gives black screen on Intel integrated graphics #2837

Open
1 task done
AhmedEssoubai opened this issue Apr 16, 2024 · 1 comment
Open
1 task done
Labels

Comments

@AhmedEssoubai
Copy link

Description

We are trying to use the new SKGLElement WPF element for our project to replace the WinFormsHost solution since it has many issues when integrated in a WPF project. The element works fine on a machine with an Nvidia or AMD graphic card. But, when tested on a machine with integrated Intel graphics only (or the other is disabled), it does not work for all graphics cards. On one of the testing machine that have an Intel HDG 4600 graphics card, we have a newly installed Windows 11 on it.

When using WinFormsHost with SKGLControl, it works just fine.

SKGLElement is based on GLWpfControl(https://github.com/opentk/GLWpfControl). We did try out this control, and it did result in the same issue. There are others faced the same issue: opentk/GLWpfControl#73.

@mattleibow @gmurray81 do you have any suggestions on how to resolve such issue. Is it a problem with the control or the machine it self? if so, why SKGLControl works fine on this machine? Aren't they both use OpenGL?

Code

e.Surface.Canvas.Clear(new SKColor(255, 0, 0));

Expected Behavior

No response

Actual Behavior

No response

Version of SkiaSharp

3.x (Alpha)

Last Known Good Version of SkiaSharp

2.88.2 (Previous)

IDE / Editor

Visual Studio (Windows)

Platform / Operating System

Windows

Platform / Operating System Version

Windows 11

Devices

HP Mini PC with Intel HDG 4600

Relevant Screenshots

No response

Relevant Log Output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@romen-h
Copy link

romen-h commented Oct 1, 2024

I have been working around this issue by upgrading or downgrading Intel graphics drivers, it seems to be an issue on Intel's side unfortunately. It's also likely to be an issue that the upstream GlWpfControl would have to fix rather than SkiaSharp.

I had a system with Intel UHD 630 and tested a bunch of driver versions to find the exact version that the problem started happening:

Driver Version, 	MM/DD/YYYY, 	Working
15.40.7.4279,		09/01/2015,	        Yes
15.40.14.4352,		12/23/2015,	        Yes
15.40.15.4360,		12/21/2015,	        Yes
15.40.16.4364,		01/06/2016,	        Yes	
15.40.21.4416,		03/23/2016,	        No
15.40.23.4444,		04/22/2016,        	No
15.40.30.4531,		09/29/2016,	        No
15.40.37.4835,		11/06/2017,	        No
15.40.42.5063,		03/19/2019,	        No
15.40.48.5171,		02/05/2021,	        No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Ready For Work
Development

No branches or pull requests

2 participants