Bug 515786 - plasma quits with Wayland protocol error after "eglSwapBuffers failed with 0x3000, surface: 0x564288a9f500"
Summary: plasma quits with Wayland protocol error after "eglSwapBuffers failed with 0x...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Startup process (other bugs)
Version First Reported In: 6.5.5
Platform: Gentoo Packages Linux
: HI major
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks: 506893
  Show dependency tree / graph
 
Reported: 2026-02-09 20:23 UTC by Niels
Modified: 2026-07-30 07:42 UTC (History)
10 users (show)

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


Attachments
The compressed version of the crash analysis with debugging enabled (1.51 MB, application/gzip)
2026-02-09 20:54 UTC, Niels
Details
Log using the command: sudo journalctl --boot -0 > ~/logs.txt (1.59 MB, text/plain)
2026-05-21 23:26 UTC, Omer
Details
Plasmashell Crash Backtrace (25.53 KB, text/plain)
2026-06-09 23:11 UTC, James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Niels 2026-02-09 20:23:14 UTC
SUMMARY
Ever since I upgraded to Plasma 6.5.5, my graphical interface crashes right after login. Whenever I click anything on all my menu bars and everything disappears, then re-opens. After the initial crash it seems to work fine. This happens both on my desktop with an NVIDIA dGPU and a laptop with Intel iGPU and NVIDIA dGPU

STEPS TO REPRODUCE
1. Wait for SDDM to start
2. Login to Plasma (Wayland)
3. Wait for the crash to occur (sometimes instantly, sometimes when you click on an icon in the taskbar)
4. The taskbar re-appears after a few seconds and then it works as normal.

OBSERVED RESULT
A plasma-shell session that crashes initially.

EXPECTED RESULT
A working plasma-shell session at initial login.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo Linux 2.18 / Kernel 6.17.13
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.2 (6.10.1 gives the same issue)

ADDITIONAL INFORMATION
b 09 21:06:08 pc03 org_kde_powerdevil[1370]: Handle button events action could not check for screen configuration
Feb 09 21:06:08 pc03 kwin_wayland[1055]: "\"fsrestore1\" - conversion of \"0,0,0,0\" to QRect failed"
Feb 09 21:06:08 pc03 systemd[982]: Started User folders update.
Feb 09 21:06:08 pc03 systemd[982]: Reached target Startup of XDG autostart applications.
Feb 09 21:06:08 pc03 polkit-kde-authentication-agent-1[1369]: Authentication agent result: true
Feb 09 21:06:08 pc03 systemd[982]: Finished KDE Session Restoration.
Feb 09 21:06:08 pc03 dbus-daemon[1041]: [session uid=1000 pid=1041 pidfd=5] Successfully activated service 'org.freedesktop.impl.portal.desktop.kde'
Feb 09 21:06:08 pc03 systemd[982]: Started Xdg Desktop Portal For KDE.
Feb 09 21:06:08 pc03 dbus-daemon[1041]: [session uid=1000 pid=1041 pidfd=5] Activating via systemd: service name='org.freedesktop.impl.portal.desktop.gtk' unit='xdg-desktop-portal-gtk.service' requested by ':1.6' (uid=1000 pid=1063 comm="/usr/libexec/xdg-desktop-portal")
Feb 09 21:06:08 pc03 systemd[982]: Starting Portal service (GTK/GNOME implementation)...
Feb 09 21:06:08 pc03 org_kde_powerdevil[1370]: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this hardware"
Feb 09 21:06:08 pc03 kwalletd6[1387]: g_dbus_proxy_get_object_path: assertion 'G_IS_DBUS_PROXY (proxy)' failed
Feb 09 21:06:08 pc03 dbus-daemon[1041]: [session uid=1000 pid=1041 pidfd=5] Successfully activated service 'org.kde.kwalletd6'
Feb 09 21:06:08 pc03 kclockd[1526]: Starting kclockd 25.08.3
Feb 09 21:06:08 pc03 kclockd[1526]: PowerDevil found, using it for time tracking.
Feb 09 21:06:08 pc03 kclockd[1526]: Registered on DBus: true
Feb 09 21:06:08 pc03 at-spi-bus-launcher[1165]: dbus-daemon[1165]: Activating service name='org.a11y.atspi.Registry' requested by ':1.1' (uid=1000 pid=1564 comm="/usr/libexec/xdg-desktop-portal-gtk")
Feb 09 21:06:08 pc03 dbus-daemon[1041]: [session uid=1000 pid=1041 pidfd=5] Successfully activated service 'org.freedesktop.impl.portal.desktop.gtk'
Feb 09 21:06:08 pc03 systemd[982]: Started Portal service (GTK/GNOME implementation).
Feb 09 21:06:08 pc03 at-spi-bus-launcher[1165]: dbus-daemon[1165]: Successfully activated service 'org.a11y.atspi.Registry'
Feb 09 21:06:08 pc03 at-spi-bus-launcher[1607]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Feb 09 21:06:08 pc03 kwalletmanager5[1349]: Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Feb 09 21:06:08 pc03 dbus-daemon[1041]: [session uid=1000 pid=1041 pidfd=5] Successfully activated service 'org.freedesktop.portal.Desktop'
Feb 09 21:06:08 pc03 systemd[982]: Started Portal service.
Feb 09 21:06:08 pc03 kwin_wayland[1055]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: Unable to open /proc/1055/root")
Feb 09 21:06:08 pc03 kded6[1177]: Registering ":1.31/StatusNotifierItem" to system tray
Feb 09 21:06:08 pc03 ksmserver[1175]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.kde.ksmserver'")
Feb 09 21:06:08 pc03 kactivitymanagerd[1364]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.kde.ActivityManager'")
Feb 09 21:06:08 pc03 gmenudbusmenuproxy[1367]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.kde.gmenudbusmenuproxy'")
Feb 09 21:06:08 pc03 xembedsniproxy[1372]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.kde.xembedsniproxy'")
Feb 09 21:06:08 pc03 kded6[1177]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.kde.kded6'")
Feb 09 21:06:08 pc03 org_kde_powerdevil[1370]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: Unable to open /proc/1370/root")
Feb 09 21:06:08 pc03 polkit-kde-authentication-agent-1[1369]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: Unable to open /proc/1369/root")
Feb 09 21:06:08 pc03 kwalletd6[1387]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.kde.kwalletd'")
Feb 09 21:06:08 pc03 kclockd[1526]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.kde.kclockd'")
Feb 09 21:06:08 pc03 xdg-desktop-portal-kde[1371]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: Connection already associated with an application ID")
Feb 09 21:06:08 pc03 org_kde_powerdevil[1370]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: Unable to open /proc/1370/root")
Feb 09 21:06:08 pc03 polkit-kde-authentication-agent-1[1369]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: Unable to open /proc/1369/root")
Feb 09 21:06:08 pc03 xembedsniproxy[1372]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.kde.xembedsniproxy'")
Feb 09 21:06:08 pc03 kaccess[1368]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: Connection already associated with an application ID")
Feb 09 21:06:08 pc03 kclockd[1526]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.kde.kclockd'")
Feb 09 21:06:08 pc03 kwalletd6[1387]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.kde.kwalletd'")
Feb 09 21:06:08 pc03 ksecretd[1021]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: Connection already associated with an application ID")
Feb 09 21:06:08 pc03 kded6[1177]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.kde.kded6'")
Feb 09 21:06:08 pc03 kactivitymanagerd[1364]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.kde.ActivityManager'")
Feb 09 21:06:08 pc03 kwin_wayland[1055]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: Unable to open /proc/1055/root")
Feb 09 21:06:08 pc03 gmenudbusmenuproxy[1367]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.kde.gmenudbusmenuproxy'")
Feb 09 21:06:08 pc03 ksmserver[1175]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.kde.ksmserver'")
Feb 09 21:06:08 pc03 kwalletmanager5[1349]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: Connection already associated with an application ID")
Feb 09 21:06:08 pc03 plasmashell[1259]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: Connection already associated with an application ID")
Feb 09 21:06:08 pc03 org_kde_powerdevil[1370]: [  1471] (dw_recheck_displays_func) Recheck interval: Slept for 200 millisec
Feb 09 21:06:08 pc03 systemd[982]: Finished Splash screen shown during boot.
Feb 09 21:06:08 pc03 kstart[1588]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.kde.kstart'")
Feb 09 21:06:08 pc03 kstart[1588]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.kde.kstart'")
Feb 09 21:06:08 pc03 systemd[982]: Started KWalletManager - Password Manager.
Feb 09 21:06:08 pc03 DiscoverNotifier[1544]: couldn't find any notifier backend QList("/usr/lib64/qt6/plugins", "/usr/libexec")
Feb 09 21:06:08 pc03 DiscoverNotifier[1544]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: Connection already associated with an application ID")
Feb 09 21:06:08 pc03 xwaylandvideobridge[1530]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: Connection already associated with an application ID")
Feb 09 21:06:08 pc03 kwalletmanager5[1619]: QThreadStorage: entry 2 destroyed before end of thread 0x55fda616fba0
Feb 09 21:06:08 pc03 kwalletmanager5[1619]: QThreadStorage: entry 1 destroyed before end of thread 0x55fda616fba0
Feb 09 21:06:08 pc03 plasmashell[1259]: Entry is not valid "org.kde.kontact.desktop" 0x55dfe5e70da0
Feb 09 21:06:08 pc03 plasmashell[1259]: Entry is not valid "org.kde.kontact.desktop" 0x55dfe5e70da0
Feb 09 21:06:11 pc03 plasmashell[1259]: not a valid new object id (4278190097), message activation(n)
Feb 09 21:06:11 pc03 plasmashell[1259]: The Wayland connection experienced a fatal error: Invalid argument
Feb 09 21:06:11 pc03 systemd[982]: plasma-plasmashell.service: Main process exited, code=exited, status=255/EXCEPTION
Feb 09 21:06:11 pc03 systemd[982]: plasma-plasmashell.service: Failed with result 'exit-code'.
Feb 09 21:06:11 pc03 systemd[982]: plasma-plasmashell.service: Consumed 1.271s CPU time.
Feb 09 21:06:11 pc03 baloo_file_extractor[1662]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.kde.baloo'")
Feb 09 21:06:12 pc03 systemd[982]: plasma-plasmashell.service: Scheduled restart job, restart counter is at 1.
Feb 09 21:06:12 pc03 systemd[982]: Starting KDE Plasma Workspace...
Feb 09 21:06:12 pc03 systemd[982]: Started KDE Plasma Workspace.
Feb 09 21:06:12 pc03 plasmashell[1666]: KPackageStructure of KPluginMetaData(pluginId:"org.kde.plasma.kweather_1x4", fileName: "/usr/share/plasma/plasmoids/org.kde.plasma.kweather_1x4/metadata.json") does not match requested format "Plasma/Applet"
Feb 09 21:06:12 pc03 plasmashell[1666]: The plugin "/usr/lib64/qt6/plugins/plasma/applets/plasma_applet_kweather_1x4.so" explicitly states an Id in the embedded metadata, which is different from the one derived from the filename The Id field from the KPlugin object in the metadata should be removed
Feb 09 21:06:12 pc03 plasmashell[1666]: The plugin "/usr/lib64/qt6/plugins/plasma/applets/plasma_applet_kweather_1x4.so" explicitly states an Id in the embedded metadata, which is different from the one derived from the filename The Id field from the KPlugin object in the metadata should be removed
Feb 09 21:06:12 pc03 plasmashell[1666]: Applet preload policy set to 1
Feb 09 21:06:12 pc03 dbus-daemon[1041]: [session uid=1000 pid=1041 pidfd=5] Activating service name='org.kde.KSplash' requested by ':1.56' (uid=1000 pid=1666 comm="/usr/bin/plasmashell --no-respawn")
Feb 09 21:06:12 pc03 plasmashell[1666]: Entry is not valid "org.kde.kontact.desktop" 0x5565463d0270
Feb 09 21:06:12 pc03 plasmashell[1666]: Entry is not valid "org.kde.kontact.desktop" 0x5565463d0270
Comment 1 Niels 2026-02-09 20:32:24 UTC
This behavior did not occur in 6.4.5. If there's anything else you'd need then please don't hesitate to let me know. I initially made a bug report at: https://bugs.gentoo.org/969811 but it doesn't seem it was related to kwin (must've been a bug for a longer time already?)

Things I've tried and that didn't work:
- The NVIDIA drivers in the 570 and 580 series.
- Downgrading libdrm and downgrading mesa
- Changing from CSD to SSD: This made the "QWaylandGLContext: Failed to create the decorations EGLContext. Decorations will not be drawn" go away, but it gave eglSwapBuffers failed with 0x3000 instead and it still crashed with the exact same error: The Wayland connection experienced a fatal error: Invalid argument. I ended up reverting this.
- Upgrading from Qt version 6.10.1 to 6.10.2 (This seem to have made the QWaylandGLContext: Failed to create the decorations EGLContext. Decorations will not be drawn go away)
- Upgrading egl-gbm and egl-wayland to their latest version
Comment 2 Niels 2026-02-09 20:54:00 UTC
Created attachment 189408 [details]
The compressed version of the crash analysis with debugging enabled

From what I can quickly gather is that xdg-activation and data_offer protocol errors with explicit sync ENABLED show an unresolved initialization race condition. The invalid object ID 0xFEED0011 during protocol initialization seem to be unique (couldn't find it anywhere so far).
Comment 3 Nate Graham 2026-02-13 14:42:25 UTC
*** Bug 514532 has been marked as a duplicate of this bug. ***
Comment 4 Andreas Hartmetz 2026-02-21 19:45:46 UTC
Yeah, I get that one too, so CONFIRMED
Comment 5 Andreas Hartmetz 2026-02-21 19:52:26 UTC Comment hidden (off-topic)
Comment 6 TraceyC 2026-03-11 17:06:19 UTC
*** Bug 516858 has been marked as a duplicate of this bug. ***
Comment 7 TraceyC 2026-04-01 19:48:05 UTC
(In reply to Niels from comment #0)
> SUMMARY
> Ever since I upgraded to Plasma 6.5.5, my graphical interface crashes right
> after login. 

Are you still seeing the crash or just the logs of  "unit appname.service not found"?
Comment 8 Omer 2026-04-02 03:25:45 UTC Comment hidden (off-topic)
Comment 9 Omer 2026-04-02 09:40:11 UTC Comment hidden (off-topic)
Comment 10 David Edmundson 2026-04-17 14:47:28 UTC
> "Could not register app ID: App info not found for 'org.kde.kstart'"

This is a harmless warning, it just means we have an old version of xdg-desktop-portals.
Comment 11 TraceyC 2026-04-17 17:15:09 UTC
(In reply to David Edmundson from comment #10)
> > "Could not register app ID: App info not found for 'org.kde.kstart'"
> 
> This is a harmless warning, it just means we have an old version of
> xdg-desktop-portals.

If we disregard these from the original logs, the most important part is this exception thrown by plasmashell:

65:Feb 09 21:06:11 pc03 systemd[982]: plasma-plasmashell.service: Main process exited, code=exited, status=255/EXCEPTION


With this, can I ask people who have seen crashes if they still have plasmashell exceptions like this in your system logs? Thanks!
Comment 12 Niels 2026-04-19 15:20:17 UTC
I still have this crash occur, but the problem is that it doesn't always occur. Once it does occur again, I'll check my logs.
Comment 13 Bug Janitor Service 2026-05-04 03:45:56 UTC Comment hidden (off-topic)
Comment 14 Omer 2026-05-18 17:06:01 UTC Comment hidden (off-topic)
Comment 15 TraceyC 2026-05-20 17:10:06 UTC Comment hidden (off-topic)
Comment 16 TraceyC 2026-05-21 17:59:21 UTC Comment hidden (off-topic)
Comment 17 Omer 2026-05-21 23:26:26 UTC Comment hidden (off-topic)
Comment 18 TraceyC 2026-05-22 17:07:32 UTC Comment hidden (off-topic)
Comment 19 TraceyC 2026-05-22 17:08:28 UTC Comment hidden (off-topic)
Comment 20 Tobias Fella 2026-05-26 14:16:26 UTC Comment hidden (off-topic)
Comment 21 Omer 2026-05-27 20:12:41 UTC Comment hidden (off-topic)
Comment 22 TraceyC 2026-05-27 20:19:24 UTC Comment hidden (off-topic)
Comment 23 James 2026-06-09 23:11:31 UTC Comment hidden (off-topic)
Comment 24 James 2026-06-09 23:13:11 UTC Comment hidden (off-topic)
Comment 25 TraceyC 2026-06-10 20:40:37 UTC Comment hidden (off-topic)
Comment 26 Omer 2026-06-23 14:50:16 UTC Comment hidden (off-topic)
Comment 27 James 2026-06-23 19:11:44 UTC Comment hidden (off-topic)
Comment 28 Nate Graham 2026-07-09 15:47:57 UTC
This bug report is getting very confused with people saying "me too" but for different issues.

Niels' issue is when plasmashell quits (does not crash) with a Wayland protocol error:

Feb 09 21:39:09 pc03 plasmashell[1192]: Didn't receive frame callback in time, window should now be inexposed
Feb 09 21:39:09 pc03 plasmashell[1192]: handleUpdate QThread(0x564284fbcfb0, name = "Qt mainThread")
Feb 09 21:39:09 pc03 plasmashell[1192]: eglSwapBuffers failed with 0x3000, surface: 0x564288a9f500
Feb 09 21:39:09 pc03 plasmashell[1192]: The Wayland connection experienced a fatal error: Invalid argument
[...]
Feb 09 21:39:09 pc03 kwin_wayland_wrapper[1054]: [ 562530.324]  -> wl_buffer#81.release()
Feb 09 21:39:09 pc03 systemd[983]: plasma-plasmashell.service: Main process exited, code=exited, status=255/EXCEPTION
Feb 09 21:39:09 pc03 systemd[983]: plasma-plasmashell.service: Failed with result 'exit-code'.

Every different issue that people are experiencing needs to be reported separately. Please only comment in this one if you are experiencing *the exact same issue* with *nearly-identical log output*.
Comment 29 Corbett 2026-07-30 07:42:29 UTC
I'm seeing what looks like a related but distinct root cause on a custom Arch-based build (KDE Frameworks 6.27, Plasma 6.6.5, kernel 7.1.2, SDDM), and wanted to add a data point in case it's contributing to what's reported here.

Symptom: SDDM authenticates successfully and hands off cleanly, but Plasma fails to come up — session dies with a black screen shortly after handoff, systemd shows the plasma-wayland/plasmashell unit exiting and restarting, consistent with the status=255/EXCEPTION behavior already noted in this thread.

Working theory: rather than (or possibly in addition to) the xdg-activation/data_offer protocol race already discussed, this reproduces as a hardware-timing race at the DRM layer — SDDM initiates the handoff to the Plasma/KWin session before DRM/DRI has fully completed mode-setting and settled on the GPU. The session starts against a DRM state that isn't fully ready, and the resulting failure surfaces downstream as a plasmashell crash/restart, which would look identical in the logs to a protocol-level race even though the actual cause is earlier in the boot sequence.

This would also explain the inconsistency several people in this thread have noted (crash doesn't always happen, sometimes recovers after a TTY switch, varies by GPU/driver) — a hardware-settling race is inherently timing- and hardware-dependent rather than deterministic.

Fix in progress: I'm implementing a settle-check gate between SDDM's handoff and the Plasma session start — polling DRM/DRI readiness state before the session is permitted to start, rather than assuming a fixed delay is sufficient. Writing this to be hardware-agnostic (driver/vendor independent) so it isn't a workaround specific to one GPU. Expect to have a tested patch within a few days; will attach it here along with a coredumpctl backtrace from my own hardware once confirmed.