helloSystem / ISO

helloSystem Live and installation ISO
https://github.com/helloSystem/
BSD 3-Clause "New" or "Revised" License
805 stars 59 forks source link

2023Q1 packages, some Intel GPUs: Crash, Freeze in OpenGL initialization detected #444

Closed probonopd closed 1 year ago

probonopd commented 1 year ago

Since 2023Q1 packages, our KWin.app does not do compositing anymore on some Intel GPUs (e.g., on Intel HD Graphics 400).

probonopd commented 1 year ago

Built new KWin.app. Crashes on Intel GPUs with compositing enabled.

Same for FreeBSD kwin and kwinft packages, with BreezeEnhanced disabled.

What gives?

probonopd commented 1 year ago

On build 2H238, this issue does not manifest itself on Nvidia GPUs.

So maybe we also need to update graphics/drm-510-kmod... every quarter the same hassle, argh.

probonopd commented 1 year ago

No change.

kwin_core: XCB error: 147 (BadOutput), sequence: 464, resource id: 30015489, major code: 140 (RANDR), minor code: 9 (GetOutputInfo)
OpenGL vendor string:                   Intel
OpenGL renderer string:                 Mesa Intel(R) HD Graphics 400 (BSW)
OpenGL version string:                  4.6 (Compatibility Profile) Mesa 22.3.2
OpenGL shading language version string: 4.60
Driver:                                 Intel
GPU class:                              Cherryview
OpenGL version:                         4.6
GLSL version:                           4.60
Mesa version:                           22.3.2
X server version:                       1.21.1
Requires strict binding:                yes
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no

KWin starts (does show drop shadows) for a few seconds, then exits with

kwin_core: XCB error: 10 (BadAccess), sequence: 396, resource id: 1024, major code: 142 (Composite), minor code: 2 (RedierctSubwindows) Freeze in OpenGL initialization detected zsh: abort /System/KWin.app/KWin

probonopd commented 1 year ago

On another Intel system, KWIn.app is not crashing, also getting these messages except for Freeze in OpenGL initialization detected:

OpenGL vendor string:                   Intel
OpenGL renderer string:                 Mesa Intel(R) HD Graphics 5500 (BDW GT2)
OpenGL version string:                  4.6 (Compatibility Profile) Mesa 22.3.2
OpenGL shading language version string: 4.60
Driver:                                 Intel
GPU class:                              Broadwell
OpenGL version:                         4.6
GLSL version:                           4.60
Mesa version:                           22.3.2
X server version:                       1.21.1
Requires strict binding:                yes
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
...
Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing.
...
kwin_core: XCB error: 10 (BadAccess), sequence: 1397, resource id: 1598, major code: 142 (Composite), minor code: 2 (RedirectSubwindows)
probonopd commented 1 year ago

Maybe @evadot has an idea how to debug this? E.g., to find out which component is causing the issue? Xorg log doesn't show any obvious errors.

probonopd commented 1 year ago

Intel UHD Graphics 620 (GT2) also does not have the issue.

jsm222 commented 1 year ago

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268955 tested workiing for HD 3000. Thanks Jan Beich.

probonopd commented 1 year ago

Works. Huge "thank you" to @jbeich for identifying the root cause, and for providing a fix. :1st_place_medal: