Thanks again Fabian Vogt from the openSUSE tracker for the new suggestions. Sharing the tests and results here too once more.
Regarding whether this affects just Wayland or X11 clients: I don’t know how to check which is which. However the issue does affect both Qt and GTK applications, KDE components or otherwise; So far I’ve seen it happen to KWrite, Konsole, KSysGuard, Firefox, Thunderbird, Audacious, etc. Since the first are default KDE components I’m assuming they’re ran as native WL clients?
In a console I set “export WAYLAND_DEBUG=1” followed by repeatedly launching and closing “kwrite”. When eventually it opened with a hidden window, nothing was printed to this console. I killed the process and it only said “Terminated”.
I took a backup of ~/.config/plasma-org.kde.plasma.desktop-appletsrc to save my widget config, then successfully managed to use “dbus-run-session startplasma-wayland --xwayland --x11-display $DISPLAY --exit-with-session=/usr/lib64/libexec/startplasma-waylandsession” and start another session in a smaller window from within my normal session… I also set “export WAYLAND_DEBUG=1” in the console that spawned this debug session. I could reproduce the crash in this controlled environment too! Here’s the output that was produced in the console running the nested session as that session collapsed:
The Wayland connection broke. Did the Wayland compositor die?
Service ":1.5" unregistered
The Wayland connection broke. Did the Wayland compositor die?
The Wayland connection broke. Did the Wayland compositor die?
KCrash: Application 'kdeconnectd' crashing...
The Wayland connection broke. Did the Wayland compositor die?
(EE) failed to read Wayland events: Connection reset by peer
KCrash: Attempting to start /usr/lib64/libexec/drkonqi from kdeinit
"/usr/bin/kwin_wayland" ("--xwayland", "--x11-display", ":1", "--exit-with-session=/usr/lib64/libexec/startplasma-waylandsession") exited with code 11
startplasmacompositor: Shutting down...
startplasmacompositor: Done.
org.kde.knotifications: env says KDE is running but SNI unavailable -- check KDE_FULL_SESSION and XDG_CURRENT_DESKTOP
The X11 connection broke (error 1). Did the X11 server die?
mircea@linux-qz0r:~> Gdk-Message: 16:55:37.847: geany: Fatal IO error 11 (Resource temporarily unavailable) on X server :2.
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
org.kde.pim.akonadiserver: Subscriber "SpecialCollectionsMonitor - 93989194988816" disconnected
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
org.kde.pim.akonadiserver: Subscriber "SpecialCollectionsMonitor - 94808550392064" disconnected
kdeinit5: Fatal IO error: client killed
kdeinit5: sending SIGHUP to children.
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
kdeinit5: sending SIGTERM to children.
kdeinit5: Exit.
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
klauncher: Exiting on signal 15
klauncher: Exiting on signal 1
The X11 connection broke (error 1). Did the X11 server die?
org.kde.pim.akonadiserver: Subscriber "AgentBaseChangeRecorder - 94815390863600" disconnected
org.kde.pim.akonadiserver: Subscriber "AgentBaseChangeRecorder - 94237770427552" disconnected
org.kde.pim.akonadiserver: Subscriber "AgentBaseChangeRecorder - 93922727390192" disconnected
org.kde.pim.akonadiserver: Subscriber "AgentBaseChangeRecorder - 94808550262528" disconnected
org.kde.pim.akonadiserver: Subscriber "akonadi_maildispatcher_agent - 94808550320912" disconnected
org.kde.pim.akonadiserver: Subscriber "AgentBaseChangeRecorder - 30460528" disconnected
org.kde.pim.akonadiserver: Subscriber "AgentBaseChangeRecorder - 94889553774624" disconnected
org.kde.pim.akonadiserver: Subscriber "AgentBaseChangeRecorder - 93946156200368" disconnected
org.kde.pim.akonadiserver: Subscriber "AgentBaseChangeRecorder - 94604754354512" disconnected
org.kde.pim.akonadiserver: Subscriber "AgentBaseChangeRecorder - 94479107463888" disconnected
org.kde.pim.akonadiserver: Subscriber "akonadi_birthdays_resource - 94479108419744" disconnected
WARNING ../src/audacious/main.cc:318 [main_cleanup]: exit() called unexpectedly; skipping normal cleanup.
org.kde.pim.akonadiserver: Subscriber "AgentBaseChangeRecorder - 94171675233888" disconnected
org.kde.pim.akonadiserver: Subscriber "KNotes Session - 94573788775056" disconnected
org.kde.pim.akonadiserver: Subscriber "AgentBaseChangeRecorder - 94573787822144" disconnected
** (zeitgeist-datahub:11941): WARNING **: 16:55:37.858: zeitgeist-datahub.vala:224: Unable to get name "org.gnome.zeitgeist.datahub" on the bus!
org.kde.pim.akonadiserver: Subscriber "AgentBaseChangeRecorder - 93952615237872" disconnected
org.kde.pim.akonadiserver: Subscriber "AgentBaseChangeRecorder - 94919006869168" disconnected
org.kde.pim.akonadiserver: Subscriber "AgentBaseChangeRecorder - 94580347672576" disconnected
org.kde.pim.akonadiserver: Subscriber "AgentBaseChangeRecorder - 94257760094352" disconnected
[13:55:37.860847 WARNING] zeitgeist-daemon.vala:453: The connection is closed
The X11 connection broke (error 1). Did the X11 server die?
A connection to the bus can't be made
org.kde.pim.akonadiserver: Subscriber "AgentBaseChangeRecorder - 94320471285232" disconnected
org.kde.pim.akonadiserver: Subscriber "ETMCalendarMonitor - 94725931742432" disconnected
org.kde.pim.akonadiserver: Subscriber "AgentBaseChangeRecorder - 93935000592720" disconnected
QSocketNotifier: Invalid socket 6 and type 'Read', disabling...
QSocketNotifier: Invalid socket 10 and type 'Read', disabling...
org.kde.pim.akonadiserver: Control process died, committing suicide!
"QLocalSocket: Remote closed" "/run/user/1000/akonadi/akonadiserver-cmd.socket"
"QLocalSocket: Remote closed" "/run/user/1000/akonadi/akonadiserver-cmd.socket"
org.kde.pim.akonadiserver: Subscriber "MailFilter Kernel ETM - 93989195084128" disconnected
org.kde.pim.akonadiserver: Subscriber "MailFilterItemMonitor - 93989195119904" disconnected
org.kde.pim.akonadiserver: Subscriber "AgentBaseChangeRecorder - 94119478474928" disconnected
org.kde.pim.akonadiserver: Subscriber "MailFilterCollectionMonitor - 93989195135120" disconnected
org.kde.pim.akonadiserver: Subscriber "ArchiveMailCollectionMonitor - 94119478525392" disconnected
org.kde.pim.akonadiserver: Subscriber "AgentBaseChangeRecorder - 93989194985664" disconnected
org.kde.pim.akonadiserver: Subscriber "Archive Mail Kernel ETM - 94119478551440" disconnected
"QLocalSocket: Remote closed" "/run/user/1000/akonadi/akonadiserver-ntf.socket"
"QLocalSocket: Remote closed" "/run/user/1000/akonadi/akonadiserver-ntf.socket"
KCrash: Attempting to start /usr/lib64/libexec/org_kde_powerdevil from kdeinit
Warning: connect() failed: : No such file or directory
KCrash: Attempting to start /usr/lib64/libexec/org_kde_powerdevil directly
QSocketNotifier: Invalid socket 22 and type 'Read', disabling...
QSocketNotifier: Invalid socket 23 and type 'Read', disabling...
KCrash: Application 'org_kde_powerdevil' crashing...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi from kdeinit
Warning: connect() failed: : No such file or directory
KCrash: Attempting to start /usr/lib64/libexec/drkonqi directly
Failed to create wl_display (Connection refused)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
Failed to create wl_display (Connection refused)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
KCrash: Attempting to start /usr/bin/kded5 from kdeinit
sock_file=/run/user/1000/kdeinit5__2
Warning: connect() failed: : No such file or directory
KCrash: Attempting to start /usr/bin/kded5 directly
KCrash: Attempting to start /usr/bin/plasmashell from kdeinit
Warning: connect() failed: : No such file or directory
KCrash: Attempting to start /usr/bin/plasmashell directly
QSocketNotifier: Invalid socket 22 and type 'Read', disabling...
QSocketNotifier: Invalid socket 23 and type 'Read', disabling...
KCrash: Application 'kded5' crashing...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__2
Warning: connect() failed: : No such file or directory
KCrash: Attempting to start /usr/lib64/libexec/drkonqi directly
Unable to start Dr. Konqi
Re-raising signal for core dump handling.
QSocketNotifier: Invalid socket 48 and type 'Read', disabling...
QSocketNotifier: Invalid socket 49 and type 'Read', disabling...
KCrash: Application 'plasmashell' crashing...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi from kdeinit
Warning: connect() failed: : No such file or directory
KCrash: Attempting to start /usr/lib64/libexec/drkonqi directly
Failed to create wl_display (Connection refused)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
Failed to create wl_display (Connection refused)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
Failed to create wl_display (Connection refused)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
Failed to create wl_display (Connection refused)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
Unable to start Dr. Konqi
Re-raising signal for core dump handling.
QSocketNotifier: Invalid socket 13 and type 'Read', disabling...
Unable to start Dr. Konqi
Re-raising signal for core dump handling.
Unable to start Dr. Konqi
Re-raising signal for core dump handling.