Bug 462518 - Black screen when running kwin_wayland on rk3399
Summary: Black screen when running kwin_wayland on rk3399
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.26.4
Platform: OpenMandriva Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-01 19:37 UTC by Tomasz Paweł Gajc
Modified: 2022-12-02 09:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
WAYLAND_DEBUG=1 KWIN_GL_DEBUG=1 kwin_wayland --exit-with-session konsole (50.41 KB, text/x-log)
2022-12-01 19:37 UTC, Tomasz Paweł Gajc
Details
MESA_GL_VERSION_OVERRIDE=2.0 WAYLAND_DEBUG=1 KWIN_GL_DEBUG=1 kwin_wayland --exit-with-session konsole (44.07 KB, text/x-log)
2022-12-01 19:38 UTC, Tomasz Paweł Gajc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Paweł Gajc 2022-12-01 19:37:05 UTC
Created attachment 154206 [details]
WAYLAND_DEBUG=1 KWIN_GL_DEBUG=1 kwin_wayland --exit-with-session konsole

SUMMARY
I noticed that kwin_wayland produces black screen on my rk3399 (rockpro64) when i run Plasma or sddm
Weston works wihout any problems.

When i run MESA_GL_VERSION_OVERRIDE=2.0 kwin_wayland --exit-with-session konsole i see a black screen with a white rectangle which i seems it is a konsole window

This gives a konsole window with decorations with swrast and it works like expected - MESA_GL_VERSION_OVERRIDE=1.0 kwin_wayland --exit-with-session konsole

STEPS TO REPRODUCE
1. Run startplasma-wayland on rk3399 i.e Pine64 rockpro64
2. Observe a black screen
4. kill session
5. Run kwin_wayland --exit-with-session konsole  - from fresh VT on rk3399 i.e Pine64 rockpro64
6. Observe a black screen

OBSERVED RESULT
Black empty screen

EXPECTED RESULT
Working plasma

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenMandriva cooker aarch64
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.100
Qt Version: 5.15.7 with all the KDE patches

ADDITIONAL INFORMATION

[tpg@omv-rockpro64 ~]$ rpm -qf $(command -v kwin_wayland)
kwin-wayland-5.26.4-1.aarch64
[tpg@omv-rockpro64 ~]$ rpm -qf /usr/lib64/libQt5Core.so.5                       
lib64qt5core5-5.15.7-5.aarch64
[tpg@omv-rockpro64 ~]$ rpm -qf /usr/lib64/libKF5WaylandClient.so.5              
lib64KF5WaylandClient5-5.100.0-1.aarch64
[tpg@omv-rockpro64 ~]$ rpm -qf /usr/lib64/libOSMesa.so.8                        
lib64osmesa8-22.3.0-1.aarch64
[tpg@omv-rockpro64 ~]$ uname -a                                                
Linux omv-rockpro64 6.1.0-server-0.rc7.2omv2290 #1 SMP PREEMPT_DYNAMIC Mon Nov 2
8 08:47:13 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
Comment 1 Tomasz Paweł Gajc 2022-12-01 19:38:25 UTC
Created attachment 154207 [details]
MESA_GL_VERSION_OVERRIDE=2.0 WAYLAND_DEBUG=1 KWIN_GL_DEBUG=1 kwin_wayland --exit-with-session konsole
Comment 2 Tomasz Paweł Gajc 2022-12-01 19:40:44 UTC
[tpg@omv-rockpro64 ~]$ kwin_wayland --exit-with-session konsole                                             
No backend specified, automatically choosing Wayland because WAYLAND_DISPLAY is set
kf.globalaccel.kglobalacceld: No desktop file found for service  "krunner.desktop"
OpenGL vendor string:                   Panfrost
OpenGL renderer string:                 Mali-T860 (Panfrost)
OpenGL version string:                  3.1 (Core Profile) Mesa 22.3.0
Driver:                                 Panfrost
GPU class:                              Mali T8xx series
OpenGL version:                         3.1
Mesa version:                           22.3
Linux kernel version:                   6.1
Requires strict binding:                no
GLSL shaders:                           no
Texture NPOT support:                   yes
Virtual Machine:                        no
kwin_xkbcommon: XKB: inet:323:58: unrecognized keysym "XF86EmojiPicker"
kwin_xkbcommon: XKB: inet:324:58: unrecognized keysym "XF86Dictate"
libkwinglutils: Shaders are not supported
libkwinglutils: Failed to link shader: 
 "error: no shaders attached to the program\n\x00"
libkwinglutils: Shaders are not supported
libkwinglutils: Failed to link shader: 
 "error: no shaders attached to the program\n\x00"
libkwinglutils: Shaders are not supported
libkwinglutils: Failed to link shader: 
 "error: no shaders attached to the program\n\x00"
libkwinglutils: Shaders are not supported
libkwinglutils: Failed to link shader: 
 "error: no shaders attached to the program\n\x00"
Comment 3 Tomasz Paweł Gajc 2022-12-01 20:50:09 UTC
I tried with startplasma-x11 and i got the same effect o_0 Even dowgrade mesa to 22.2.3 without no luck
Comment 4 Tomasz Paweł Gajc 2022-12-02 08:20:17 UTC
Ok, i know what is going on. Will come back with a PR to fix this today.
Comment 5 Tomasz Paweł Gajc 2022-12-02 09:52:04 UTC
Ok after a deep dive i found a culprit inside one of downstream patches. Sorry for the noise.