https://bugs.kde.org/show_bug.cgi?id=402933
Bug ID: 402933 Summary: Turn off the monitor and on again disconnects Plasma session on Wayland Product: kwin Version: git master Platform: Archlinux Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: wayland-generic Assignee: kwin-bugs-n...@kde.org Reporter: m...@rainer-finke.de Target Milestone: --- Turn off the monitor and on again always disconnects the Plasma session on Wayland and you are back to the SDDM login screen. As soon as you turn on the monitor kwin will crash somehow. The issue exists only with my external GPU (AMD RX 480), the issue happens since a long time but in the past in most cases it froze the system (this driver bug is solved now). The same issue happens as well if power management is active and Plasma turns off the screen after some time and you wake up the system later on. See logs below based on kwin-git and kscreen-git from 2019-01-06. STEPS TO REPRODUCE 1. Turn off the monitor 2. Turn the monitor on again OBSERVED RESULT Kwin crashes all the time, Plasma session is disconnected and you are back to the SDDM login screen. You can open only a new session now. EXPECTED RESULT Screenlocker allows you to unlock the open Plasma session and you can continue to work with the previous open applications. SOFTWARE/OS VERSIONS Linux: 4.20.0 KDE Plasma Version: 5.14.4 KDE Frameworks Version: 5.53 Qt Version: 5.12.0 Kwin: git (r16657.90306f5c0) KWayland: git (r890.648f29a) Kscreen: git (r1082.1c1c9ba) Wayland: 1.16 XWayland: 1.20.3 Mesa: 19.0-git (106573.31e4c9ce40) Test 1 LOGS: $journalctl -f -- Logs begin at Fri 2018-09-28 16:03:16 CEST. -- Jan 06 16:47:05 pc1 kalarm[3257]: Using Wayland-EGL Jan 06 16:47:05 pc1 kdeinit5[2617]: Registering ":1.94/StatusNotifierItem" to system tray ############################### #Turn off monitor and on again# ############################### Jan 06 16:48:33 pc1 plasmashell[2656]: file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:299:21: Unable to assign [undefined] to QStringList Jan 06 16:48:33 pc1 audit[2527]: ANOM_ABEND auid=1000 uid=1000 gid=991 ses=4 pid=2527 comm="kwin_wayland" exe="/usr/bin/kwin_wayland" sig=11 res=1 Jan 06 16:48:33 pc1 kernel: kwin_wayland[2527]: segfault at 55de05f5bfc0 ip 000055de05f5bfc0 sp 00007fff47bb8638 error 15 Jan 06 16:48:33 pc1 kernel: Code: 00 00 b0 52 39 e0 67 7f 00 00 80 4e 39 e0 67 7f 00 00 40 4e 39 e0 67 7f 00 00 00 00 00 00 00 00 00 00 51 00 00 00 00 00 00 00 <b0> 00 8f 05 de 55 00 00 00 00 00 00 00 00 00 00 20 83 e8 05 de 55 Jan 06 16:48:33 pc1 kernel: audit: type=1701 audit(1546789713.312:58): auid=1000 uid=1000 gid=991 ses=4 pid=2527 comm="kwin_wayland" exe="/usr/bin/kwin_wayland" sig=11 res=1 Jan 06 16:48:33 pc1 systemd[1]: Created slice system-systemd\x2dcoredump.slice. Jan 06 16:48:33 pc1 systemd[1]: Started Process Core Dump (PID 3286/UID 0). Jan 06 16:48:33 pc1 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@0-3286-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Jan 06 16:48:33 pc1 kernel: audit: type=1130 audit(1546789713.336:59): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@0-3286-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Jan 06 16:48:33 pc1 kdeinit5[2617]: kscreen.kded: Config does not have at least one screen enabled, WILL NOT save this config, this is not what user wants. Jan 06 16:48:34 pc1 plasmashell[2656]: no screens!! Jan 06 16:48:35 pc1 systemd-coredump[3287]: Core file was truncated to 2147483648 bytes. Jan 06 16:48:35 pc1 systemd-coredump[3287]: Process 2527 (kwin_wayland) of user 1000 dumped core. Stack trace of thread 2527: #0 0x000055de05f5bfc0 n/a (n/a) Jan 06 16:48:35 pc1 akonadi_sendlater_agent[2979]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 akonadi_unifiedmailbox_agent[2983]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 pulseaudio[2687]: XIO: fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server ":1" Jan 06 16:48:35 pc1 pulseaudio[2687]: after 12 requests (6 known processed) with 0 events remaining. Jan 06 16:48:35 pc1 sddm[888]: kwalletd5: Checking for pam module Jan 06 16:48:35 pc1 sddm[888]: kwalletd5: Got pam-login param Jan 06 16:48:35 pc1 sddm[888]: kwalletd5: Waiting for hash on 7- Jan 06 16:48:35 pc1 sddm[888]: kwalletd5: waitingForEnvironment on: 3 Jan 06 16:48:35 pc1 sddm[888]: kwalletd5: client connected Jan 06 16:48:35 pc1 sddm[888]: kwalletd5: client disconnected Jan 06 16:48:35 pc1 kernel: audit: type=1131 audit(1546789715.869:60): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@0-3286-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Jan 06 16:48:35 pc1 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@0-3286-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Jan 06 16:48:35 pc1 polkitd[718]: Unregistered Authentication Agent for unix-session:4 (system bus name :1.124, object path /org/kde/PolicyKit1/AuthenticationAgent, locale de_DE.UTF-8) (disconnected from bus) Jan 06 16:48:35 pc1 akonadi_archivemail_agent[2950]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 akonadi_mailfilter_agent[2962]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 akonadi_ical_resource[2954]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 akonadi_notes_agent[2976]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 akonadi_newmailnotifier_agent[2970]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 akonadi_kalarm_resource[2958]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 akonadi_akonotes_resource[2949]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 akonadi_maildispatcher_agent[2961]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 akonadi_migration_agent[2965]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 akonadi_mailfilter_agent[2962]: QIODevice::read (QLocalSocket): device not open Jan 06 16:48:35 pc1 akonadi_birthdays_resource[2951]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 kdeconnectd[2677]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 akonadi_maildir_resource[2960]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 akonadi_followupreminder_agent[2953]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 akonadi_kalarm_resource[2957]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 akonadi_kalarm_resource[2959]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 akonadi_contacts_resource[2952]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 polkit-kde-authentication-agent-1[2662]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 krunner[2653]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 akonadi_imap_resource[2955]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 python[2699]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 org_kde_powerdevil[2710]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 kactivitymanagerd[2629]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 plasmashell[2656]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 korgac[2705]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 kdeinit5[2617]: Service ":1.5" unregistered Jan 06 16:48:35 pc1 kwalletd5[2489]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 klauncher[2610]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 kdeinit5[2617]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 akonadi_indexing_agent[2956]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 akonadi_maildispatcher_agent[2961]: QIODevice::read (QLocalSocket): device not open Jan 06 16:48:35 pc1 akonadi_control[2780]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 kalarm[3257]: The Wayland connection broke. Did the Wayland compositor die? Jan 06 16:48:35 pc1 ksmserver[2637]: The X11 connection broke (error 1). Did the X11 server die? Jan 06 16:48:35 pc1 gmenudbusmenuproxy[2675]: The X11 connection broke (error 1). Did the X11 server die? Jan 06 16:48:35 pc1 xembedsniproxy[2666]: The X11 connection broke (error 1). Did the X11 server die? Jan 06 16:48:35 pc1 kaccess[2630]: The X11 connection broke (error 1). Did the X11 server die? Jan 06 16:48:35 pc1 kdeinit5[2609]: kdeinit5: Fatal IO error: client killed Jan 06 16:48:35 pc1 kdeinit5[2609]: kdeinit5: sending SIGHUP to children. Jan 06 16:48:35 pc1 kdeinit5[2609]: kdeinit5: sending SIGTERM to children. Jan 06 16:48:35 pc1 kdeinit5[2609]: kdeinit5: Exit. Jan 06 16:48:35 pc1 systemd[1333]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE Jan 06 16:48:35 pc1 systemd[1333]: pulseaudio.service: Failed with result 'exit-code'. Jan 06 16:48:35 pc1 akonadiserver[2793]: org.kde.pim.akonadiserver: Control process died, committing suicide! Jan 06 16:48:35 pc1 akonadi_imap_resource[2955]: org.kde.pim.akonadicore: "QLocalSocket: Remote closed" "/tmp/akonadi-rainer.1WZGkO/akonadiserver-cmd.socket" Jan 06 16:48:35 pc1 systemd[1]: systemd-coredump@0-3286-0.service: Succeeded. Jan 06 16:48:35 pc1 akonadi_imap_resource[2955]: "QLocalSocket: Remote closed" "/tmp/akonadi-rainer.1WZGkO/akonadiserver-ntf.socket" Jan 06 16:48:35 pc1 sddm-helper[2485]: [PAM] Closing session Jan 06 16:48:35 pc1 sddm-helper[2485]: pam_unix(sddm:session): session closed for user rainer Jan 06 16:48:35 pc1 systemd[1333]: pulseaudio.service: Service RestartSec=100ms expired, scheduling restart. Jan 06 16:48:35 pc1 systemd[1333]: pulseaudio.service: Scheduled restart job, restart counter is at 1. Jan 06 16:48:35 pc1 systemd[1333]: Stopped Sound Service. Jan 06 16:48:35 pc1 systemd[1333]: Starting Sound Service... Jan 06 16:48:36 pc1 sddm-helper[2485]: pam_kwallet5(sddm:session): pam_kwallet5: pam_sm_close_session Jan 06 16:48:36 pc1 sddm-helper[2485]: pam_kwallet5(sddm:setcred): pam_kwallet5: pam_sm_setcred Jan 06 16:48:36 pc1 sddm-helper[2485]: [PAM] Ended. Jan 06 16:48:36 pc1 sddm[888]: Auth: sddm-helper exited successfully Jan 06 16:48:36 pc1 sddm[888]: Greeter stopping... Jan 06 16:48:36 pc1 sddm[888]: Socket server stopping... Jan 06 16:48:36 pc1 sddm[888]: Socket server stopped. Jan 06 16:48:36 pc1 sddm[888]: Display server stopping... Jan 06 16:48:36 pc1 sddm-greeter[1156]: The X11 connection broke: I/O error (code 1) Jan 06 16:48:36 pc1 audit[2710]: ANOM_ABEND auid=1000 uid=1000 gid=991 ses=4 pid=2710 comm="QThread" exe="/usr/lib/org_kde_powerdevil" sig=11 res=1 Jan 06 16:48:36 pc1 kernel: audit: type=1701 audit(1546789716.059:61): auid=1000 uid=1000 gid=991 ses=4 pid=2710 comm="QThread" exe="/usr/lib/org_kde_powerdevil" sig=11 res=1 Jan 06 16:48:36 pc1 sddm[888]: Display server stopped. Jan 06 16:48:36 pc1 sddm[888]: Running display stop script "/usr/share/sddm/scripts/Xstop" Jan 06 16:48:36 pc1 sddm[888]: Removing display ":0" ... Jan 06 16:48:36 pc1 sddm[888]: Adding new display on vt 1 ... Test 2 LOGS: $journalctl -f -- Logs begin at Fri 2018-09-28 16:03:16 CEST. -- Jan 06 16:50:48 pc1 nextcloud[4129]: Using Wayland-EGL Jan 06 16:51:11 pc1 systemd[1]: systemd-localed.service: Succeeded. Jan 06 16:51:11 pc1 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-localed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Jan 06 16:51:11 pc1 kernel: audit: type=1131 audit(1546789871.904:75): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-localed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Jan 06 16:51:13 pc1 kalarm[4161]: org.kde.pim.akonadicore: not referenced 29 Jan 06 16:51:13 pc1 kalarm[4161]: org.kde.pim.akonadicore: not referenced 28 Jan 06 16:51:13 pc1 kalarm[4161]: org.kde.pim.akonadicore: not referenced 30 Jan 06 16:51:13 pc1 kalarm[4161]: Using Wayland-EGL Jan 06 16:51:14 pc1 kdeinit5[3543]: Registering ":1.94/StatusNotifierItem" to system tray ############################### #Turn off monitor and on again# ############################### Jan 06 16:51:14 pc1 akonadiserver[3729]: org.kde.pim.akonadiserver: Notification socket write timeout! Jan 06 16:52:09 pc1 sshd[4193]: Accepted publickey for rainer from fe80::2f19:50a7:34b:26d9%enp8s0 port 55368 ssh2: ED25519 SHA256:esXKjHov/1/EvRo8VEGQpnGnsWvIBWoBynLpzHUzBOc Jan 06 16:52:09 pc1 sshd[4193]: pam_unix(sshd:session): session opened for user rainer by (uid=0) Jan 06 16:52:09 pc1 kernel: audit: type=1006 audit(1546789929.673:76): pid=4193 uid=0 old-auid=4294967295 auid=1000 tty=(none) old-ses=4294967295 ses=6 res=1 Jan 06 16:52:09 pc1 systemd-logind[712]: New session 6 of user rainer. Jan 06 16:52:09 pc1 systemd[1]: Started Session 6 of user rainer. Jan 06 16:52:36 pc1 sudo[4227]: rainer : TTY=pts/2 ; PWD=/home/rainer ; USER=root ; COMMAND=/usr/bin/echo 0 Jan 06 16:52:36 pc1 sudo[4228]: rainer : TTY=pts/2 ; PWD=/home/rainer ; USER=root ; COMMAND=/usr/bin/tee /proc/sys/kernel/yama/ptrace_scope Jan 06 16:52:36 pc1 sudo[4227]: pam_unix(sudo:session): session opened for user root by rainer(uid=0) Jan 06 16:52:36 pc1 sudo[4228]: pam_unix(sudo:session): session opened for user root by rainer(uid=0) Jan 06 16:52:36 pc1 sudo[4227]: pam_unix(sudo:session): session closed for user root Jan 06 16:55:30 pc1 sudo[4256]: rainer : TTY=pts/2 ; PWD=/home/rainer ; USER=root ; COMMAND=/usr/bin/gdb --pid 3452 Jan 06 16:55:30 pc1 sudo[4256]: pam_unix(sudo:session): session opened for user root by rainer(uid=0) Jan 06 16:55:45 pc1 PackageKit[3173]: uid 1000 is trying to obtain org.freedesktop.packagekit.system-sources-refresh auth (only_trusted:0) Jan 06 16:55:45 pc1 PackageKit[3173]: uid 1000 obtained auth for org.freedesktop.packagekit.system-sources-refresh Jan 06 16:55:46 pc1 PackageKit[3173]: refresh-cache transaction /3_cbecebbc from uid 1000 finished with success after 550ms Jan 06 16:55:46 pc1 PackageKit[3173]: get-updates transaction /4_ecdbddcb from uid 1000 finished with success after 339ms Jan 06 16:56:55 pc1 plasmashell[3592]: file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:357:21: Unable to assign [undefined] to bool Jan 06 16:56:55 pc1 plasmashell[3592]: file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:299:21: Unable to assign [undefined] to QStringList Jan 06 16:56:55 pc1 kdeinit5[3543]: kscreen.kded: Config does not have at least one screen enabled, WILL NOT save this config, this is not what user wants. Jan 06 16:56:56 pc1 plasmashell[3592]: no screens!! -------------------- sudo gdb --pid `pidof kwin_wayland` 2>&1 | tee kwin_wayland-20190106.gdb GNU gdb (GDB) 8.2.1 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-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". Attaching to process 3452 [New LWP 3453] [New LWP 3454] [New LWP 3455] [New LWP 3456] [New LWP 3457] [New LWP 3458] [New LWP 3459] [New LWP 3460] [New LWP 3461] [New LWP 3462] [New LWP 3463] [New LWP 3464] [New LWP 3465] [New LWP 3466] [New LWP 3467] [New LWP 3468] [New LWP 3469] [New LWP 3470] [New LWP 3471] [New LWP 3472] [New LWP 3473] [New LWP 3474] [New LWP 3475] [New LWP 3532] [New LWP 3533] [New LWP 3536] [New LWP 3537] [New LWP 3540] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". 0x00007fe4a86efd16 in ppoll () from /usr/lib/libc.so.6 (gdb) continue Continuing. Thread 1 "kwin_wayland" received signal SIGSEGV, Segmentation fault. 0x000055e1615c2c00 in ?? () (gdb) bt #0 0x000055e1615c2c00 in () #1 0x00007fe4a9a8aaa9 in KWin::AbstractOutput::geometry() const (this=0x55e160f7fa50) at /usr/src/debug/kwin/abstract_output.h:72 #2 0x00007fe49f50e29a in KWin::EglGbmBackend::makeContextCurrent(KWin::EglGbmBackend::Output const&) (this=this@entry=0x55e160fa7150, output=...) at /usr/src/debug/kwin/plugins/platforms/drm/egl_gbm_backend.cpp:236 #3 0x00007fe49f50ef58 in KWin::EglGbmBackend::prepareRenderingForScreen(int) (this=0x55e160fa7150, screenId=<optimized out>) at /usr/src/debug/kwin/plugins/platforms/drm/egl_gbm_backend.cpp:343 #4 0x00007fe49ce156b2 in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) (this=this@entry=0x55e1615e7410, damage=..., toplevels=...) at /usr/src/debug/kwin/plugins/scenes/opengl/scene_opengl.cpp:663 #5 0x00007fe4a9a001ff in KWin::Compositor::performCompositing() (this=0x55e160ec93d0) at /usr/src/debug/kwin/composite.cpp:750 #6 0x00007fe4a8c21b1b in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5 #7 0x00007fe4a9004e34 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5 #8 0x00007fe4a900c671 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5 #9 0x00007fe4a8bf68f9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5 #10 0x00007fe4a8c4b955 in QTimerInfoList::activateTimers() () at /usr/lib/libQt5Core.so.5 #11 0x00007fe4a8c49a9e in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5 #12 0x00007fe4a04f367e in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/qt/plugins/platforms/KWinQpaPlugin.so #13 0x00007fe4a8bf558c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5 #14 0x00007fe4a8bfd896 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5 #15 0x000055e15f1efebc in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kwin/main_wayland.cpp:829 (gdb) -- You are receiving this mail because: You are watching all bug changes.