https://bugs.kde.org/show_bug.cgi?id=416914

            Bug ID: 416914
           Summary: Connecting of external monitor gets stuck Plasma
           Product: plasmashell
           Version: master
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: critical
          Priority: NOR
         Component: generic-crash
          Assignee: plasma-b...@kde.org
          Reporter: wwwald...@gmail.com
  Target Milestone: 1.0

SUMMARY
Connecting an external monitor to my laptop Lenovo T470p (over HDMI, or mDP or
over docking station) caused hang of plasmashell. 

On Arch forum I found out other people having the same problem.

STEPS TO REPRODUCE
1. Run KDE
2. Connect external monitor
3. Work

OBSERVED RESULT
Symptoms:
* Clock gets stuck
* Not possible to click with the mouse anywhere - choose some window,
right-click, application menu.
* Not possible to unlock screen (SDDM must be restarted)
* Multimedia keys for volume don't work
* Windows react to mouse click with delay (i.e. switch tab in browser)
* Wallpapers disappeared (often)
* Default panel disappeared (almost everytime)
* Kwin is loading one from 8 CPU to 100% (sometimes)
* Keyboard works (mostly), so you can switch to TTYx and restart SDDM

Quick win is in while loop restart of plasmashell:
while true; do killall plasmashell && kstart5 plasmashell; sleep 120; done


EXPECTED RESULT
Working KDE environment.


SOFTWARE/OS VERSIONS
Information about system & KDE:
Operating System: Arch Linux 
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66.0
Qt Version: 5.14.0
Kernel Version: 5.4.15-arch1-1


Packages containing plasma:
extra/plasma-workspace-wallpapers 5.17.5-1
extra/plasma-workspace 5.17.5-2
extra/plasma-sdk 5.17.5-1
extra/plasma-pa 5.17.5-1
extra/plasma-nm 5.17.5-1
extra/plasma-integration 5.17.5-1
extra/plasma-framework 5.66.0-1
extra/plasma-desktop 5.17.5-2

ADDITIONAL INFORMATION

I found out how to debug kwin_x11 (https://community.kde.org/KWin/Debugging):
$ gdb --pid `pidof kwin_x11` 2>&1 | tee kwin.gdb
Excess command line arguments ignored. (1277)
GNU gdb (GDB) 8.3.1
Copyright (C) 2019 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-pc-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"...
90290: No such file or directory.
Attaching to process 325239
[New LWP 325281]
[New LWP 325296]
[New LWP 325341]
[New LWP 325345]
[New LWP 325346]
[New LWP 325347]
[New LWP 325348]
[New LWP 325360]
[New LWP 325554]
[New LWP 350054]
[New LWP 359730]
[New LWP 2468705]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
0x00007fa28238bae6 in ppoll () from /usr/lib/libc.so.6
/usr/lib/../share/gcc-9.2.0/python/libstdcxx/v6/xmethods.py:731: SyntaxWarning:
list indices must be integers or slices, not str; perhaps you missed a comma?
  refcounts = ['_M_refcount']['_M_pi']
(gdb)
(gdb)
(gdb) continue
Continuing.
[Thread 0x7fa271931700 (LWP 325554) exited]
[Thread 0x7fa279ac8700 (LWP 325281) exited]
[Thread 0x7fa25febe700 (LWP 325345) exited]
[Thread 0x7fa25f6bd700 (LWP 325346) exited]
[Thread 0x7fa25e6bb700 (LWP 325348) exited]
[Thread 0x7fa25eebc700 (LWP 325347) exited]
[Thread 0x7fa278dc8700 (LWP 325296) exited]

Thread 1 "kwin_x11" received signal SIGSEGV, Segmentation fault.
0x00007fa27f01d39b in ?? () from /usr/lib/libKF5GlobalAccel.so.5
(gdb) bt
#0  0x00007fa27f01d39b in  () at /usr/lib/libKF5GlobalAccel.so.5
#1  0x00007fa27f0138e5 in  () at /usr/lib/libKF5GlobalAccel.so.5
#2  0x00007fa280db83be in  () at /usr/lib/libQt5Core.so.5
#3  0x00007fa280db2aa0 in QObject::destroyed(QObject*) () at
/usr/lib/libQt5Core.so.5
#4  0x00007fa280db6787 in QObject::~QObject() () at /usr/lib/libQt5Core.so.5
#5  0x00007fa281814d77 in QAction::~QAction() () at /usr/lib/libQt5Widgets.so.5
#6  0x00007fa281814daa in QAction::~QAction() () at /usr/lib/libQt5Widgets.so.5
#7  0x00007fa280dacc8e in QObjectPrivate::deleteChildren() () at
/usr/lib/libQt5Core.so.5
#8  0x00007fa280db6558 in QObject::~QObject() () at /usr/lib/libQt5Core.so.5
#9  0x00007fa282017d40 in  () at /usr/lib/libkwin.so.5
#10 0x00007fa280dacc8e in QObjectPrivate::deleteChildren() () at
/usr/lib/libQt5Core.so.5
#11 0x00007fa280db6558 in QObject::~QObject() () at /usr/lib/libQt5Core.so.5
#12 0x00007fa278596e7a in KWin::X11StandalonePlatform::~X11StandalonePlatform()
() at /usr/lib/qt/plugins/org.kde.kwin.platforms/KWinX11Platform.so
#13 0x00007fa280d77dc7 in  () at /usr/lib/libQt5Core.so.5
#14 0x00007fa280d7c455 in  () at /usr/lib/libQt5Core.so.5
#15 0x00007fa280d79779 in  () at /usr/lib/libQt5Core.so.5
#16 0x00007fa2822d5cae in __cxa_finalize () at /usr/lib/libc.so.6
#17 0x00007fa280b8b718 in  () at /usr/lib/libQt5Core.so.5
#18 0x00007ffe5ecafb60 in  ()
#19 0x00007fa2824baabb in _dl_fini () at /lib64/ld-linux-x86-64.so.2
(gdb) detach
Detaching from program: /usr/bin/kwin_x11, process 325239
[Inferior 1 (process 325239) detached]
(gdb) quit


Logs from journalctl:
Jan 28 16:53:06 jenpockej dbus-daemon[964]: [system] Activating via systemd:
service name='org.freedesktop.hostname1'
unit='dbus-org.freedesktop.hostname1.service' requested by ':1.6897' (uid=1000
pid=1398 comm="/usr/lib/firefox/firefox --sm-client-id 10143c8d9d")
Jan 28 16:53:06 jenpockej kwin_x11[1158]:
file:///usr/share/kwin/aurorae/MenuButton.qml:22: TypeError: Cannot read
property 'closeOnDoubleClickOnMenu' of null
Jan 28 16:53:06 jenpockej kwin_x11[1158]:
file:///usr/share/kwin/aurorae/MenuButton.qml:22: TypeError: Cannot read
property 'closeOnDoubleClickOnMenu' of null
Jan 28 16:53:06 jenpockej kwin_x11[1158]:
file:///usr/share/kwin/aurorae/MenuButton.qml:22: TypeError: Cannot read
property 'closeOnDoubleClickOnMenu' of null
Jan 28 16:53:06 jenpockej kwin_x11[1158]:
file:///usr/share/kwin/aurorae/MenuButton.qml:22: TypeError: Cannot read
property 'closeOnDoubleClickOnMenu' of null
Jan 28 16:53:06 jenpockej kwin_x11[1158]:
file:///usr/share/kwin/aurorae/MenuButton.qml:22: TypeError: Cannot read
property 'closeOnDoubleClickOnMenu' of null
Jan 28 16:53:06 jenpockej kwin_x11[1158]:
file:///usr/share/kwin/aurorae/MenuButton.qml:22: TypeError: Cannot read
property 'closeOnDoubleClickOnMenu' of null
Jan 28 16:53:06 jenpockej kwin_x11[1158]:
file:///usr/share/kwin/aurorae/MenuButton.qml:22: TypeError: Cannot read
property 'closeOnDoubleClickOnMenu' of null
Jan 28 16:53:06 jenpockej kwin_x11[1158]:
file:///usr/share/kwin/aurorae/MenuButton.qml:22: TypeError: Cannot read
property 'closeOnDoubleClickOnMenu' of null
Jan 28 16:53:06 jenpockej kwin_x11[1158]:
file:///usr/share/kwin/aurorae/MenuButton.qml:22: TypeError: Cannot read
property 'closeOnDoubleClickOnMenu' of null
Jan 28 16:53:06 jenpockej systemd[1]: Starting Hostname Service...
Jan 28 16:53:06 jenpockej kwin_x11[1158]:
file:///usr/share/kwin/aurorae/MenuButton.qml:22: TypeError: Cannot read
property 'closeOnDoubleClickOnMenu' of null
Jan 28 16:53:07 jenpockej dbus-daemon[964]: [system] Successfully activated
service 'org.freedesktop.hostname1'
Jan 28 16:53:07 jenpockej systemd[1]: Started Hostname Service.
Jan 28 16:53:08 jenpockej sudo[403769]: pam_unix(sudo:auth): conversation
failed
Jan 28 16:53:08 jenpockej sudo[403769]: pam_unix(sudo:auth): auth could not
identify password for [waldauf]
Jan 28 16:53:08 jenpockej sudo[403775]: pam_unix(sudo:auth): conversation
failed
Jan 28 16:53:08 jenpockej sudo[403775]: pam_unix(sudo:auth): auth could not
identify password for [waldauf]
Jan 28 16:53:08 jenpockej kwin_x11[1158]: qt.qpa.xcb: QXcbConnection: XCB
error: 3 (BadWindow), sequence: 29176, resource id: 56627913, major code: 15
(QueryTree), minor code: 0
Jan 28 16:53:08 jenpockej kwin_x11[1158]: qt.qpa.xcb: QXcbConnection: XCB
error: 3 (BadWindow), sequence: 29181, resource id: 56627913, major code: 18
(ChangeProperty), minor code: 0
Jan 28 16:53:09 jenpockej krusader[1439]: 16:53:09.523-warning default
unknown@0 # file not found (unexpected), path= "/tmp/mozilla-temp-805311980"

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to