Bug 493165

Summary: Plasma 6.1.90 KWin white screen on ancient Intel Atom
Product: [Plasma] kwin Reporter: kalamajkamikmikmix
Component: generic-crashAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: xaver.hugl
Priority: NOR    
Version First Reported In: 6.1.90   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: systemctl log
coredump 1 of 3
coredump 2 of 3
coredump 3 of 3

Description kalamajkamikmikmix 2024-09-15 16:53:51 UTC
Created attachment 173697 [details]
systemctl log

Updated KWin from version 6.1.5 to 6.1.90 -> on boot white rectangle (circa 16px) on black background, 
then the screen is completely white -> can not see SDDM gui or mouse.
(downgrade KWin -> issue disappears, 
different PC with AMD Ryzen APU is OK)

OS: EndeavourOS
KDE Plasma Version: 6.1.90
KDE Frameworks Version: 6.5.0
Qt Version: 6.8.0
CPU: Intel Atom N570
Graphics Processor: llvmpipe (under X11 i915, iGPU is GMA 3150)

Suspect weak GPU is the cause.
Comment 1 kalamajkamikmikmix 2024-09-15 16:55:33 UTC
Created attachment 173698 [details]
coredump 1 of 3
Comment 2 kalamajkamikmikmix 2024-09-15 16:57:08 UTC
Created attachment 173699 [details]
coredump 2 of 3
Comment 3 kalamajkamikmikmix 2024-09-15 16:57:48 UTC
Created attachment 173700 [details]
coredump 3 of 3
Comment 4 Bug Janitor Service 2024-09-16 17:17:30 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/6389
Comment 5 Zamundaaa 2024-09-16 17:23:13 UTC
The linked MR *might* help, but your logs also say
> "kwin_scene_opengl: Failed to link shader: \n \"error: Exceeded max nr indirect texture lookups (5/4)\\n\\x00\"\n"
which is weird, we only do up to 2 texture lookups explicitly. Might be something going wrong in Mesa.

At the same time, KWin should automatically fall back to software rendering when shaders don't compile, so this is pretty odd.
Comment 6 Zamundaaa 2024-09-16 20:08:01 UTC
Git commit f9d8af036dd1a8eba36ddec203fc1fdf43206405 by Xaver Hugl.
Committed on 16/09/2024 at 19:59.
Pushed by zamundaaa into branch 'master'.

opengl/colormanagement: remove float suffixes

They're unnecessary and apparently don't compile on really old OpenGL

M  +6    -6    src/opengl/colormanagement.glsl

https://invent.kde.org/plasma/kwin/-/commit/f9d8af036dd1a8eba36ddec203fc1fdf43206405
Comment 7 Zamundaaa 2024-09-16 20:08:10 UTC
Git commit e2186eb838fba8640003020774a1e1052c2d92e9 by Xaver Hugl.
Committed on 16/09/2024 at 19:59.
Pushed by zamundaaa into branch 'master'.

opengl/colormanagement: precompute to/from ictcp matrices

Apparently constant expressions in GLSL aren't universally supported

M  +10   -6    src/opengl/colormanagement.glsl

https://invent.kde.org/plasma/kwin/-/commit/e2186eb838fba8640003020774a1e1052c2d92e9
Comment 8 Bug Janitor Service 2024-09-16 20:13:34 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/6392
Comment 9 Zamundaaa 2024-09-16 20:22:31 UTC
Git commit edb4bc42ba5c0dcf9927a324c011447bbdfea700 by Xaver Hugl.
Committed on 16/09/2024 at 20:12.
Pushed by zamundaaa into branch 'Plasma/6.2'.

opengl/colormanagement: precompute to/from ictcp matrices

Apparently constant expressions in GLSL aren't universally supported
(cherry picked from commit e2186eb838fba8640003020774a1e1052c2d92e9)

M  +10   -6    src/opengl/colormanagement.glsl

https://invent.kde.org/plasma/kwin/-/commit/edb4bc42ba5c0dcf9927a324c011447bbdfea700
Comment 10 Zamundaaa 2024-09-16 20:22:39 UTC
Git commit 95368896e6350496b65016ea583399ec8d870ea5 by Xaver Hugl.
Committed on 16/09/2024 at 20:12.
Pushed by zamundaaa into branch 'Plasma/6.2'.

opengl/colormanagement: remove float suffixes

They're unnecessary and apparently don't compile on really old OpenGL
(cherry picked from commit f9d8af036dd1a8eba36ddec203fc1fdf43206405)

M  +6    -6    src/opengl/colormanagement.glsl

https://invent.kde.org/plasma/kwin/-/commit/95368896e6350496b65016ea583399ec8d870ea5
Comment 11 kalamajkamikmikmix 2024-09-18 08:01:16 UTC
(In reply to Zamundaaa from comment #5)
> The linked MR *might* help, but your logs also say
> > "kwin_scene_opengl: Failed to link shader: \n \"error: Exceeded max nr indirect texture lookups (5/4)\\n\\x00\"\n"
> which is weird, we only do up to 2 texture lookups explicitly. Might be
> something going wrong in Mesa.
> 
> At the same time, KWin should automatically fall back to software rendering
> when shaders don't compile, so this is pretty odd.

Thank you, I was able to launch nested Wayland session 
(guess that is enough, the error message about texture lookup did not appear). On X11 got crash and this error:
>kwin_scene_opengl: Failed to link shader:
> "error: Exceeded 32 max uniforms and immediates.Exceeded 32 max uniforms and immediates.Exceeded 32 max uniforms and >immediates.Exceeded 32 max uniforms and immediates.Exceeded 32 max uniforms and immediates.Exceeded 32 max uniforms and >immediates.\x00"
>kwin_scene_opengl: Creating the OpenGL rendering failed:  "Could not initialize rendering context"
but it does not give any hints about the value (nothing in logs). 
Tried downgrading Mesa from 24.2.2->24.1.5
->on X11 still the same error. (Wayland still OK, some error from Mesa, KWin survived)
I do not use X11 session and this is only test PC. 
Looks as another hw limit and given how bad the GPU is it is not worth the effort.