Bug 396585 - Kwin (Wayland) not responding/ not working properly
Summary: Kwin (Wayland) not responding/ not working properly
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.14.4
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-17 00:32 UTC by Panos
Modified: 2021-10-13 14:07 UTC (History)
3 users (show)

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


Attachments
kwin_wayland options not reponds (98.75 KB, image/jpeg)
2018-07-17 00:32 UTC, Panos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Panos 2018-07-17 00:32:50 UTC
Created attachment 113976 [details]
kwin_wayland options not reponds

Kwin Options dialog (Wayland) stuck when i'm trying to resize the window so i click on close button and i'm getting a "not responding". On X11 it's working properly. I'm using Argergos Linux so they are actually archlinux packages. Also my gpu driver is amdgpu.
Comment 1 Alexander Mentyu 2018-07-17 05:23:17 UTC
Can reproduce

Distribution: Netrunner Rolling
Kernel: 4.18.0-1-MANJARO
Plasma: 5.13.3
Apps: 18.04.3
Qt: 5.11.1
Frameworks: 5.47.0
Wayland: 1.15.0
Graphics:  Card-1: Intel Haswell-ULT Integrated Graphics driver: i915 v: kernel bus ID: 00:02.0 
           chip ID: 8086:0a16 
           Display: wayland server: X.Org 1.20.0 driver: intel unloaded: modesetting compositor: kwin_wayland 
           tty: N/A 
           OpenGL: renderer: Mesa DRI Intel Haswell Mobile v: 4.5 Mesa 18.1.4 compat-v: 3.0 direct render: Yes
Comment 2 Panos 2018-07-24 15:56:54 UTC
Distribution: Antergos 
Kernel: 4.17.9-1-ARCH
Plasma: 5.13.3
Qt: 5.11.1
Frameworks: 5.48.0
Wayland: 1.15.0
Graphics: amdgpu

I can confirm the same on Fedora Linux with intel i965 driver
Comment 3 David Edmundson 2018-07-24 20:37:45 UTC
/opt/kde5/bin/kcmshell5 kwindecoration kwinactions kwinfocus kwinmoving kwinadvanced kwinrules kwincompositing kwineffects kwintabbox kwinscreenedges kwinscripts 

Also freezes, but super weirdly subsets of those doesn't.

frozen backtrace

#0  0x00007ffff3d62ea9 in poll () from /usr/lib/libc.so.6
#1  0x00007fffe5a2336b in ?? () from /usr/lib/libwayland-client.so.0
#2  0x00007fffe5a24e3e in wl_display_dispatch_queue () from /usr/lib/libwayland-client.so.0
#3  0x00007fffe5a250ac in wl_display_roundtrip_queue () from /usr/lib/libwayland-client.so.0
#4  0x00007fffe0856e46 in ?? () from /usr/lib/libEGL_mesa.so.0
#5  0x00007fffe0857107 in ?? () from /usr/lib/libEGL_mesa.so.0
#6  0x00007fffe08571c4 in ?? () from /usr/lib/libEGL_mesa.so.0
#7  0x00007fffda59fd73 in ?? () from /usr/lib/dri/i965_dri.so
#8  0x00007fffda5a0401 in ?? () from /usr/lib/dri/i965_dri.so
#9  0x00007fffda59b57e in ?? () from /usr/lib/dri/i965_dri.so
#10 0x00007ffff523d49f in QOpenGLFunctions::glClear (mask=16384, this=0x55555689d1b0)
    at ../../include/QtGui/../../../../qt5/qtbase/src/gui/opengl/qopenglfunctions.h:645
#11 QPlatformBackingStore::composeAndFlush (this=this@entry=0x55555617aef0, window=0x5555561a04b0, region=..., 
    offset=..., 
    textures=textures@entry=0x7ffff5b22c10 <(anonymous namespace)::Q_QGS_qt_dummy_platformTextureList::innerFunction()::holder>, translucentBackground=translucentBackground@entry=false)
    at /home/david/projects/qt5/qtbase/src/gui/painting/qplatformbackingstore.cpp:349
#12 0x00007ffff55949f3 in QWidgetBackingStore::qt_flush (widget=widget@entry=0x55555595f1f0, region=..., 
    backingStore=backingStore@entry=0x555556176f20, tlw=tlw@entry=0x5555557db900, 
    widgetTextures=widgetTextures@entry=0x7ffff5b22c10 <(anonymous namespace)::Q_QGS_qt_dummy_platformTextureList::innerFunction()::holder>, widgetBackingStore=widgetBackingStore@entry=0x555556175860)
    at /home/david/projects/qt5/qtbase/src/widgets/kernel/qwidgetbackingstore.cpp:146
#13 0x00007ffff5598538 in QWidgetBackingStore::sync (this=0x555556175860, exposedWidget=0x55555595f1f0, 
    exposedRegion=...) at /home/david/projects/qt5/qtbase/src/widgets/kernel/qwidgetbackingstore.cpp:1120
#14 0x00007ffff55b5fa7 in QWidgetPrivate::syncBackingStore (this=this@entry=0x5555558b03f0, region=...)
    at /home/david/projects/qt5/qtbase/src/widgets/kernel/qwidget.cpp:1962
#15 0x00007ffff55ed646 in QWidgetWindow::handleExposeEvent (this=this@entry=0x5555561a04b0, 
    event=event@entry=0x7fffffffd5c0) at /home/david/projects/qt5/qtbase/src/widgets/kernel/qwidgetwindow.cpp:962
#16 0x00007ffff55ee1e9 in QWidgetWindow::event (this=0x5555561a04b0, event=0x7fffffffd5c0)
    at /home/david/projects/qt5/qtbase/src/widgets/kernel/qwidgetwindow.cpp:326
#17 0x00007ffff55872c3 in QApplicationPrivate::notify_helper (this=this@entry=0x5555557792b0, 
    receiver=receiver@entry=0x5555561a04b0, e=e@entry=0x7fffffffd5c0)
    at /home/david/projects/qt5/qtbase/src/widgets/kernel/qapplication.cpp:3727
#18 0x00007ffff558eb0c in QApplication::notify (this=0x7fffffffde10, receiver=0x5555561a04b0, e=0x7fffffffd5c0)
    at /home/david/projects/qt5/qtbase/src/widgets/kernel/qapplication.cpp:3099


Which seems pretty generic in client code :/
Comment 4 Panos 2018-07-24 21:07:26 UTC
Just noticed that if you try to run "kcmshell5 kwinactions kwinfocus kwinmoving kwinadvanced kwinrules kwincompositing kwineffects kwintabbox kwinscreenedges kwinscripts" (without kwindecoration) then it's working properly, on the other hand if you try " kcmshell5 kwindecoration" alone it's working too. It seems to be some confict with those modules.
Comment 5 Panos 2018-07-31 21:28:11 UTC
Fedora Linux 28

[panos@deimos ~]$ gdb -ex=r --args kcmshell5 kwindecoration kwinactions kwinfocus kwinmoving kwinadvanced kwinrules kwincompositing kwineffects kwintabbox kwinscreenedges kwinscripts
GNU gdb (GDB) Fedora 8.1-25.fc28
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from kcmshell5...Reading symbols from /usr/lib/debug/usr/bin/kcmshell5-5.13.3-2.fc28.x86_64.debug...done.
done.
Starting program: /usr/bin/kcmshell5 kwindecoration kwinactions kwinfocus kwinmoving kwinadvanced kwinrules kwincompositing kwineffects kwintabbox kwinscreenedges kwinscripts
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffd6790700 (LWP 3865)]
[New Thread 0x7fffcd589700 (LWP 3867)]
Calling KPluginInfo::property("X-KDE-PluginInfo-Name") is deprecated, use KPluginInfo::pluginName() in "/usr/lib64/qt5/plugins/org.kde.kdecoration2/breezedecoration.so" instead.
file:///usr/share/kwin/kcm_kwindecoration/Previews.qml:36: ReferenceError: savedIndex is not defined
file:///usr/share/kwin/kcm_kwindecoration/Buttons.qml:143: ReferenceError: iconLabel is not defined
[New Thread 0x7fffc16b6700 (LWP 3869)]
org.kde.kcoreaddons: Expected JSON property "X-KWin-Border-Activate" to be a single string. but it is a bool
org.kde.kcoreaddons: Expected JSON property "X-KWin-Exclude-Listing" to be a single string. but it is a bool
file:///usr/share/kwin/kcm_kwindecoration/Previews.qml:36: ReferenceError: savedIndex is not defined
Calling KPluginInfo::property("X-KDE-PluginInfo-Name") is deprecated, use KPluginInfo::pluginName() in "/usr/lib64/qt5/plugins/org.kde.kdecoration2/breezedecoration.so" instead.
file:///usr/share/kwin/kcm_kwindecoration/Buttons.qml:143: ReferenceError: iconLabel is not defined
[New Thread 0x7fffba351700 (LWP 3870)]
Calling KPluginInfo::property("X-KDE-PluginInfo-Name") is deprecated, use KPluginInfo::pluginName() in "/usr/lib64/qt5/plugins/org.kde.kdecoration2/breezedecoration.so" instead.
[New Thread 0x7fffb6146700 (LWP 3871)]
Module 'org.kde.kwin.decoration' does not contain a module identifier directive - it cannot be protected from external registrations.
wl_display@1: error 0: invalid object 84
The Wayland connection experienced a fatal error (Μη έγκυρη παράμετρος)
[Thread 0x7fffb6146700 (LWP 3871) exited]
[Thread 0x7fffd6790700 (LWP 3865) exited]
[Thread 0x7fffc16b6700 (LWP 3869) exited]
[Thread 0x7fffcd589700 (LWP 3867) exited]
[Thread 0x7fffe582d940 (LWP 3854) exited]
[Inferior 1 (process 3854) exited with code 01]
(gdb) 

(again without kwindecoration it's working properly)
Comment 6 Panos 2018-12-03 23:39:48 UTC
Still the same under Fedora Linux 29. KDE 5.14.3 
Check this video here: https://www.youtube.com/watch?v=QvoGTHktsg4
I hope this might help.
Comment 7 Panos 2018-12-09 22:52:09 UTC
It seems again that the issue is related with kwindecoration but only in kwin_wayland not the kwin_x11

[panos@deimos ~]$ kcmshell5 kwindecoration
Calling KPluginInfo::property("X-KDE-PluginInfo-Name") is deprecated, use KPluginInfo::pluginName() in "/usr/lib64/qt5/plugins/org.kde.kdecoration2/breezedecoration.so" instead.
file:///usr/share/kwin/kcm_kwindecoration/Previews.qml:36: ReferenceError: savedIndex is not defined
file:///usr/share/kwin/kcm_kwindecoration/Buttons.qml:144: ReferenceError: iconLabel is not defined
file:///usr/share/kwin/kcm_kwindecoration/Previews.qml:36: ReferenceError: savedIndex is not defined
Calling KPluginInfo::property("X-KDE-PluginInfo-Name") is deprecated, use KPluginInfo::pluginName() in "/usr/lib64/qt5/plugins/org.kde.kdecoration2/breezedecoration.so" instead.
file:///usr/share/kwin/kcm_kwindecoration/Buttons.qml:144: ReferenceError: iconLabel is not defined
Calling KPluginInfo::property("X-KDE-PluginInfo-Name") is deprecated, use KPluginInfo::pluginName() in "/usr/lib64/qt5/plugins/org.kde.kdecoration2/breezedecoration.so" instead.
Module 'org.kde.kwin.decoration' does not contain a module identifier directive - it cannot be protected from external registrations.
Comment 8 Vlad Zahorodnii 2021-10-13 14:07:58 UTC
It's a relatively old bug report and we haven't received new ones about the same issue. Besides that I cannot reproduce it. Marking as RESOLVED WORKSFORME. If you're still able to reproduce the issue, please reopen the bug report.