Short Summary
I use Kando to switch music. This involves triggering it very often in a certain amount of time. This usually eventually leads to a complete crash of the desktop due to dbus-broker (or dbus-broker-launch) crashing (see logs). Especially if I do this very often in a certain amount of time.
Steps to Reproduce the Issue
- Use KDE Plasma 6.3.2 with Wayland
- Trigger Kando over and over
Example: watch -n 0.5 flatpak run menu.kando.Kando -m "Main"
- The dbus broker soon crashes and takes the entire desktop down with it, segfaulting every application in the session
Kando Version
v1.7.0
Installation Method
Another method (specify in the comments below)
Desktop Environment
KDE on Wayland
Environment Version
KDE Plasma 6.3.2, OpenSUSE Tumbleweed
Additional Information
I have tested this issue with multiple ways of triggering Kando. Be it through my keyboard, my mouse bound to a key or even the command line, it still does it.
I have also tried to see if this is caused by any of my other extensions. Sadly it occurs even on vanilla Plasma.
The issue happens irregardless of if Kando is run as an AppImage, Flatpak or anything else.
While I do think this is a bug in dbus_broker, the issue also seems partially to be on the side of Kando. I think this could be caused by Kando creating a high amount of chatter, which then crashes dbus. That could however be wrong on my side
Logs:
Mar 12 19:51:18 moon kwin_wayland[2976]: js: Kando: Triggered.
Mar 12 19:51:18 moon kwin_wayland[2976]: js: Kando: Triggered.
Mar 12 19:51:18 moon kwin_wayland[2976]: js: Kando: Received data request.
Mar 12 19:51:18 moon kwin_wayland[2976]: js: Kando: Successfully transmitted the data.
Mar 12 19:51:18 moon kwin_wayland[2976]: js: Kando: Registered shortcut main-menu
Mar 12 19:51:18 moon kwin_wayland[2976]: js: Kando: Triggered.
Mar 12 19:51:18 moon kwin_wayland[2976]: js: Kando: Triggered.
Mar 12 19:51:18 moon kwin_wayland[2976]: js: Kando: Received data request.
Mar 12 19:51:18 moon kwin_wayland[2976]: js: Kando: Successfully transmitted the data.
Mar 12 19:51:18 moon kwin_wayland[2976]: js: Kando: Registered shortcut main-menu
Mar 12 19:51:19 moon kwin_wayland[2976]: js: Kando: Triggered.
Mar 12 19:51:19 moon kwin_wayland[2976]: js: Kando: Triggered.
Mar 12 19:51:19 moon kwin_wayland[2976]: js: Kando: Received data request.
Mar 12 19:51:19 moon dbus-broker-launch[2955]: ERROR sockopt_get_peerpidfd @ ../src/util/sockopt.c +244: Too many open files
Mar 12 19:51:19 moon dbus-broker-launch[2955]: peer_new_with_fd @ ../src/bus/peer.c +290
Mar 12 19:51:19 moon dbus-broker-launch[2955]: listener_dispatch @ ../src/bus/listener.c +54
Mar 12 19:51:19 moon dbus-broker-launch[2955]: dispatch_context_dispatch @ ../src/util/dispatch.c +344
Mar 12 19:51:19 moon dbus-broker-launch[2955]: broker_run @ ../src/broker/broker.c +229
Mar 12 19:51:19 moon kwin_wayland[2976]: js: Kando: Successfully transmitted the data.
Mar 12 19:51:19 moon systemd[2801]: Got disconnect on API bus.
Mar 12 19:51:19 moon wireplumber[3077]: m-dbus-connection: <WpDBusConnection:0x556c00b6d460> DBus connection closed: Underlying GIOStream returned 0 bytes on an async read
Mar 12 19:51:19 moon flatpak[3781]: [2 preload-host-spawn-strategy] Dropping 0xe400004c6c0 (3) because of connection closed
Mar 12 19:51:19 moon systemd[2801]: obex.service: Main process exited, code=exited, status=1/FAILURE
Mar 12 19:51:19 moon gvfsd[3647]: A connection to the bus can't be made
Mar 12 19:51:19 moon systemd[2801]: obex.service: Failed with result 'exit-code'.
Mar 12 19:51:19 moon dbus-broker[3629]: Dispatched 706 messages @ 2(±3)μs / message.
Mar 12 19:51:19 moon flatpak[3780]: [2 preload-host-spawn-strategy] Dropping 0x39480004c6c0 (3) because of connection closed
Mar 12 19:51:19 moon 1password[3713]: [3713:0312/195119.091844:FATAL:bus.cc(1246)] D-Bus connection was disconnected. Aborting.
Mar 12 19:51:19 moon flatpak[3780]: [2:36:0312/195119.092948:FATAL:bus.cc(1247)] D-Bus connection was disconnected. Aborting.
Mar 12 19:51:19 moon flatpak[3781]: [2:34:0312/195119.092748:FATAL:bus.cc(1247)] D-Bus connection was disconnected. Aborting.
Mar 12 19:51:19 moon flatpak[3926]: [0312/195119.093041:ERROR:scoped_ptrace_attach.cc(27)] ptrace: Operation not permitted (1)
Mar 12 19:51:19 moon flatpak[3925]: [0312/195119.092831:ERROR:scoped_ptrace_attach.cc(27)] ptrace: Operation not permitted (1)
Mar 12 19:51:19 moon wireplumber[3077]: m-dbus-connection: <WpDBusConnection:0x556c00b6d460> Trying to reconnect after core sync
Mar 12 19:51:19 moon systemd[2801]: xdg-permission-store.service: Main process exited, code=exited, status=1/FAILURE
Mar 12 19:51:19 moon systemd[2801]: xdg-permission-store.service: Failed with result 'exit-code'.
Mar 12 19:51:19 moon systemd[2801]: xdg-document-portal.service: Main process exited, code=exited, status=20/n/a
Mar 12 19:51:19 moon dbus-broker[2955]: Dispatched 24923 messages @ 3(±9)μs / message.
Mar 12 19:51:19 moon dbus-broker-launch[2955]: run @ ../src/broker/main.c +261
Mar 12 19:51:19 moon dbus-broker-launch[2955]: main @ ../src/broker/main.c +295
Mar 12 19:51:19 moon systemd[2801]: flatpak-session-helper.service: Main process exited, code=exited, status=1/FAILURE
Mar 12 19:51:19 moon kdeconnectd[3458]: 2025-03-12T19:51:19 org.kde.pulseaudio: No object for name "alsa_output.pci-0000_12_00.6.analog-stereo"
Mar 12 19:51:19 moon dbus-broker-launch[2954]: Caught SIGCHLD of broker.
Mar 12 19:51:19 moon dbus-broker-launch[2954]: ERROR launcher_run @ ../src/launch/launcher.c +1453: Return code 1
Mar 12 19:51:19 moon dbus-broker-launch[2954]: run @ ../src/launch/main.c +152
Mar 12 19:51:19 moon systemd[2801]: xdg-document-portal.service: Failed with result 'exit-code'.
Mar 12 19:51:19 moon systemd[2801]: flatpak-session-helper.service: Failed with result 'exit-code'.
Short Summary
I use Kando to switch music. This involves triggering it very often in a certain amount of time. This usually eventually leads to a complete crash of the desktop due to dbus-broker (or dbus-broker-launch) crashing (see logs). Especially if I do this very often in a certain amount of time.
Steps to Reproduce the Issue
Example:
watch -n 0.5 flatpak run menu.kando.Kando -m "Main"Kando Version
v1.7.0
Installation Method
Another method (specify in the comments below)
Desktop Environment
KDE on Wayland
Environment Version
KDE Plasma 6.3.2, OpenSUSE Tumbleweed
Additional Information
I have tested this issue with multiple ways of triggering Kando. Be it through my keyboard, my mouse bound to a key or even the command line, it still does it.
I have also tried to see if this is caused by any of my other extensions. Sadly it occurs even on vanilla Plasma.
The issue happens irregardless of if Kando is run as an AppImage, Flatpak or anything else.
While I do think this is a bug in dbus_broker, the issue also seems partially to be on the side of Kando. I think this could be caused by Kando creating a high amount of chatter, which then crashes dbus. That could however be wrong on my side
Logs: