KDE plasma shell freezes when I try to switch bluetooth audio channel

Hey guys I suddently started expiriencing a verry weird bug in fedora KDE Plasma Edition. Baically, the moment i go into the volume panel to change the audio channel, plasma shell freezes immidietly and the only way to fix it is go to tty and do pkill -9 plasmashell to force it to restart. I use wayland, pipewire. After taking a look at the journalctl for errors I see this:

andyglaros@hp15s:~$ journalctl --user -f -u pipewire -u wireplumber
Oct 12 23:53:23 hp15s wireplumber[1698]: wp-event-dispatcher: <WpAsyncEventHook:0x560d65c919e0> failed: <WpSiStandardLink:0x560d66018380> link failed: 1 of 1 PipeWire links failed to activate
Oct 13 00:32:43 hp15s wireplumber[1698]: pw.node: (bluez_input.78_44_05_72_37_34.0-98) running -> error (Received error event)
Oct 13 00:32:43 hp15s wireplumber[1698]: pw.node: (bluez_output.78_44_05_72_37_34.1-101) running -> error (Received error event)
Oct 13 00:32:43 hp15s wireplumber[1698]: spa.bluez5: Failure in Bluetooth audio transport /org/bluez/hci0/dev_78_44_05_72_37_34/fd62
Oct 13 00:32:43 hp15s pipewire[1697]: pw.node: (bluez_input.78_44_05_72_37_34.0-98) running -> error (Received error event)
Oct 13 00:32:43 hp15s pipewire[1697]: pw.node: (bluez_output.78_44_05_72_37_34.1-101) running -> error (Received error event)
Oct 13 00:33:22 hp15s wireplumber[1698]: spa.bluez5.midi: org.bluez.GattManager1.RegisterApplication() failed: GDBus.Error:org.bluez.Error.AlreadyExists: Already Exists
Oct 13 00:34:01 hp15s wireplumber[1698]: spa.bluez5.midi: org.bluez.GattManager1.RegisterApplication() failed: GDBus.Error:org.bluez.Error.AlreadyExists: Already Exists
Oct 13 00:34:48 hp15s wireplumber[1698]: spa.bluez5: media codec switch 0x7f76cc100370: endpoint /org/bluez/hci0/dev_78_44_05_72_37_34/sep1 not valid
Oct 13 00:34:48 hp15s wireplumber[1698]: spa.bluez5.device: failed to switch codec (-19)

Specs:

  • KDE Plasma Version: 6.7.5
  • KDE Frameworks Version: 6.31.0
  • Qt Version: 6.11.2
  • Kernel Version: 7.2.9-200.fc44.x86_64 (64-bit)
  • Graphics Platform: Wayland
  • Fedora 44

Can anyone help me fix it?

Hey andygl,

Your log shows the Bluetooth connection to the JBL GO had a problem, and then switching the codec failed with -19 (“No such device”). So the speaker connection might be in a bad state. But the log doesn’t prove that’s why plasmashell freezes, so let’s try a few simple things:

  1. Disconnect and reconnect the speaker (or turn Bluetooth off and on). Does the freeze still happen?
  2. Try a different Bluetooth device, or turn Bluetooth off and switch between the built-in outputs. Does it freeze then too?
  3. Right after a freeze, check the logs:
   journalctl --user -b | grep -iE 'plasmashell|plasma-pa|pipewire|wireplumber'

Then post what shows up around the time it froze.

If that doesn’t tell us much, we can look at a backtrace of plasmashell next. It would also help to know your versions: rpm -q wireplumber pipewire bluez.

@ssynxx Here is what i get

andyglaros@hp15s:~$ journalctl --user -b | grep -iE 'plasmashell|plasma-pa|pipewire|wireplumber'
Oct 14 14:09:26 hp15s systemd[1527]: Listening on pipewire-pulse.socket - PipeWire PulseAudio.
Oct 14 14:09:26 hp15s systemd[1527]: Listening on pipewire.socket - PipeWire Multimedia System Sockets.
Oct 14 14:09:27 hp15s systemd[1527]: Started pipewire.service - PipeWire Multimedia Service.
Oct 14 14:09:27 hp15s systemd[1527]: Started wireplumber.service - Multimedia Service Session Manager.
Oct 14 14:09:27 hp15s wireplumber[1844]: [0:50:33.359776688] [1844]  INFO Camera camera_manager.cpp:340 libcamera v0.7.1
Oct 14 14:09:27 hp15s wireplumber[1844]: [0:50:33.462075782] [1935]  INFO Camera camera_manager.cpp:223 Adding camera '\_SB_.PC00.XHCI.RHUB.HS03-3:1.0-04f2:b75e' for pipeline handler uvcvideo
Oct 14 14:09:27 hp15s systemd[1527]: Starting plasma-plasmashell.service - KDE Plasma Workspace...
Oct 14 14:09:28 hp15s systemd[1527]: Started plasma-plasmashell.service - KDE Plasma Workspace.
Oct 14 14:09:28 hp15s systemd[1527]: Started pipewire-pulse.service - PipeWire PulseAudio.
Oct 14 14:09:28 hp15s plasmashell[2013]: Member visible of the object PlasmaQuick::Dialog overrides a member of the base object. Consider renaming it or adding final or override specifier
Oct 14 14:09:28 hp15s plasmashell[2013]: Member enabled of the object DeclarativeDropArea overrides a member of the base object. Consider renaming it or adding final or override specifier
Oct 14 14:09:30 hp15s plasmashell[2013]: Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Oct 14 14:09:30 hp15s plasmashell[2013]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: Connection already associated with an application ID")
Oct 14 14:10:28 hp15s drkonqi-coredump-launcher[3092]: Unable to find file for pid 28186 expected at "kcrash-metadata/plasmashell.13c2dc2451594fda8799672d258c76cd.28186.ini"
Oct 14 14:12:53 hp15s plasmashell[2013]: PipeWire remote error:  -2 target not found
Oct 14 14:12:53 hp15s plasmashell[2013]: PipeWire remote error:  -2 unknown resource 4 op:7
Oct 14 14:14:52 hp15s wireplumber[1844]: pw.node: (bluez_output.78_44_05_72_37_34.1-97) running -> error (Received error event)
Oct 14 14:14:52 hp15s wireplumber[1844]: spa.bluez5: Failure in Bluetooth audio transport /org/bluez/hci0/dev_78_44_05_72_37_34/sep1/fd0
Oct 14 14:14:52 hp15s pipewire[1843]: pw.node: (bluez_output.78_44_05_72_37_34.1-97) running -> error (Received error event)
Oct 14 14:14:52 hp15s plasmashell[2013]: No object for name "bluez_output.78_44_05_72_37_34.1"
Oct 14 14:14:55 hp15s wireplumber[1844]: pw.node: (bluez_output.78_44_05_72_37_34.1-105) running -> error (Received error event)
Oct 14 14:14:55 hp15s wireplumber[1844]: spa.bluez5: Failure in Bluetooth audio transport /org/bluez/hci0/dev_78_44_05_72_37_34/sep1/fd0
Oct 14 14:14:55 hp15s pipewire[1843]: pw.node: (bluez_output.78_44_05_72_37_34.1-105) running -> error (Received error event)
Oct 14 14:14:55 hp15s plasmashell[2013]: No object for name "bluez_output.78_44_05_72_37_34.1"
Oct 14 14:14:59 hp15s wireplumber[1844]: pw.node: (bluez_output.78_44_05_72_37_34.1-97) running -> error (Received error event)
Oct 14 14:14:59 hp15s wireplumber[1844]: spa.bluez5: Failure in Bluetooth audio transport /org/bluez/hci0/dev_78_44_05_72_37_34/sep1/fd0
Oct 14 14:14:59 hp15s pipewire[1843]: pw.node: (bluez_output.78_44_05_72_37_34.1-97) running -> error (Received error event)
Oct 14 14:14:59 hp15s plasmashell[2013]: No object for name "bluez_output.78_44_05_72_37_34.1"
Oct 14 14:14:59 hp15s plasmashell[2013]: No object for name "bluez_output.78_44_05_72_37_34.1"
Oct 14 14:15:02 hp15s wireplumber[1844]: pw.node: (bluez_input.78_44_05_72_37_34.0-105) running -> error (Received error event)
Oct 14 14:15:02 hp15s wireplumber[1844]: pw.node: (bluez_output.78_44_05_72_37_34.1-99) running -> error (Received error event)
Oct 14 14:15:02 hp15s wireplumber[1844]: spa.bluez5: Failure in Bluetooth audio transport /org/bluez/hci0/dev_78_44_05_72_37_34/fd51
Oct 14 14:15:02 hp15s pipewire[1843]: pw.node: (bluez_input.78_44_05_72_37_34.0-105) running -> error (Received error event)
Oct 14 14:15:02 hp15s pipewire[1843]: pw.node: (bluez_output.78_44_05_72_37_34.1-99) running -> error (Received error event)
Oct 14 14:15:02 hp15s plasmashell[2013]: No object for name "bluez_output.78_44_05_72_37_34.1"
Oct 14 14:15:02 hp15s plasmashell[2013]: No object for name "bluez_output.78_44_05_72_37_34.1"
Oct 14 14:29:07 hp15s plasmashell[2013]: PipeWire remote error:  -2 target not found
Oct 14 14:29:07 hp15s plasmashell[2013]: PipeWire remote error:  -2 unknown resource 4 op:7
Oct 14 14:36:42 hp15s plasmashell[2013]: currency conversion table data obtained via network
Oct 14 14:37:27 hp15s plasmashell[2013]: PipeWire remote error:  -2 target not found
Oct 14 14:37:27 hp15s plasmashell[2013]: PipeWire remote error:  -2 unknown resource 4 op:7
Oct 14 14:37:41 hp15s plasmashell[2013]: PipeWire remote error:  -2 target not found
Oct 14 14:37:41 hp15s plasmashell[2013]: PipeWire remote error:  -2 unknown resource 4 op:7
4 16:06:12 hp15s plasmashell[2013]: The requested buffer size is too big, ignoring
Oct 14 16:06:12 hp15s plasmashell[2013]: The requested buffer size is too big, ignoring
Oct 14 16:06:12 hp15s plasmashell[2013]: The requested buffer size is too big, ignoring
Oct 14 16:06:12 hp15s plasmashell[2013]: The requested buffer size is too big, ignoring
Oct 14 16:06:12 hp15s plasmashell[2013]: The requested buffer size is too big, ignoring
Oct 14 16:14:15 hp15s wireplumber[1844]: pw.node: (bluez_input.78_44_05_72_37_34.0-90) running -> error (Received error event)
Oct 14 16:14:15 hp15s wireplumber[1844]: pw.node: (bluez_output.78_44_05_72_37_34.1-94) running -> error (Received error event)
Oct 14 16:14:15 hp15s wireplumber[1844]: spa.bluez5: Failure in Bluetooth audio transport /org/bluez/hci0/dev_78_44_05_72_37_34/fd62
Oct 14 16:14:15 hp15s pipewire[1843]: pw.node: (bluez_input.78_44_05_72_37_34.0-90) running -> error (Received error event)
Oct 14 16:14:15 hp15s pipewire[1843]: pw.node: (bluez_output.78_44_05_72_37_34.1-94) running -> error (Received error event)
Oct 14 16:14:15 hp15s plasmashell[2013]: No object for name "bluez_output.78_44_05_72_37_34.1"
Oct 14 16:14:33 hp15s wireplumber[1844]: spa.bluez5.midi: org.bluez.GattManager1.RegisterApplication() failed: GDBus.Error:org.bluez.Error.AlreadyExists: Already Exists
Oct 14 16:14:36 hp15s sudo[51087]: andyglaros : TTY=tty3 ; PWD=/home/andyglaros ; USER=root ; COMMAND=/usr/sbin/pkill -9 plasmashell
Oct 14 16:14:36 hp15s systemd[1527]: plasma-plasmashell.service: Main process exited, code=killed, status=9/KILL
Oct 14 16:14:36 hp15s systemd[1527]: plasma-plasmashell.service: Failed with result 'signal'.
Oct 14 16:14:36 hp15s systemd[1527]: plasma-plasmashell.service: Consumed 3min 27.583s CPU time over 2h 5min 9.058s wall clock time, 988.6M memory peak.
Oct 14 16:14:37 hp15s systemd[1527]: plasma-plasmashell.service: Scheduled restart job, restart counter is at 1.
Oct 14 16:14:37 hp15s systemd[1527]: Starting plasma-plasmashell.service - KDE Plasma Workspace...
Oct 14 16:14:37 hp15s systemd[1527]: Started plasma-plasmashell.service - KDE Plasma Workspace.
Oct 14 16:14:37 hp15s plasmashell[51103]: Member visible of the object PlasmaQuick::Dialog overrides a member of the base object. Consider renaming it or adding final or override specifier
Oct 14 16:14:37 hp15s plasmashell[51103]: Member enabled of the object DeclarativeDropArea overrides a member of the base object. Consider renaming it or adding final or override specifier
Oct 14 16:14:38 hp15s plasmashell[51103]: Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Oct 14 16:14:39 hp15s plasmashell[51103]: The requested buffer size is too big, ignoring
Oct 14 16:14:39 hp15s plasmashell[51103]: The requested buffer size is too big, ignoring
Oct 14 16:14:41 hp15s plasmashell[51103]: The requested buffer size is too big, ignoring
Oct 14 16:14:41 hp15s plasmashell[51103]: The requested buffer size is too big, ignoring
Oct 14 16:14:41 hp15s plasmashell[51103]: The requested buffer size is too big, ignoring
Oct 14 16:14:41 hp15s plasmashell[51103]: The requested buffer size is too big, ignoring
Oct 14 16:14:43 hp15s plasmashell[51103]: PipeWire remote error:  -2 target not found
Oct 14 16:14:43 hp15s plasmashell[51103]: PipeWire remote error:  -2 unknown resource 4 op:7
Oct 14 16:14:47 hp15s plasmashell[51103]: qrc:/qt/qml/plasma/applet/org/kde/plasma/systemtray/ExpandedRepresentation.qml:239: TypeError: Cannot read property 'text' of null
Oct 14 16:14:53 hp15s wireplumber[1844]: spa.bluez5: media codec switch 0x7fbc8001ba00: endpoint /org/bluez/hci0/dev_78_44_05_72_37_34/sep1 not valid
Oct 14 16:14:53 hp15s wireplumber[1844]: spa.bluez5.device: failed to switch codec (-19)
Oct 14 16:14:58 hp15s plasmashell[51103]: qrc:/qt/qml/plasma/applet/org/kde/plasma/systemtray/ExpandedRepresentation.qml:239: TypeError: Cannot read property 'text' of null
Oct 14 16:15:05 hp15s plasmashell[51103]: Property 'onPressed' of object QQuickMouseArea_QML_130(0x55ce944e5240) is a signal handler. You should not call it directly. Make it a proper function and call that or emit the signal.
Oct 14 16:15:06 hp15s plasmashell[51103]: qrc:/qt/qml/plasma/applet/org/kde/plasma/systemtray/ExpandedRepresentation.qml:239: TypeError: Cannot read property 'text' of null
Oct 14 16:15:07 hp15s plasmashell[51103]: PendingCall Error: "Busy"
Oct 14 16:15:09 hp15s plasmashell[51103]: PendingCall Error: ""
Oct 14 16:15:21 hp15s plasmashell[51103]: Property 'onPressed' of object CompactRepresentation_QMLTYPE_629_QML_632(0x55ce9600d880) is a signal handler. You should not call it directly. Make it a proper function and call that or emit the signal.
Oct 14 16:15:21 hp15s plasmashell[51103]: qrc:/qt/qml/plasma/applet/org/kde/plasma/systemtray/ExpandedRepresentation.qml:239: TypeError: Cannot read property 'text' of null
Oct 14 16:15:22 hp15s plasmashell[51103]: qrc:/qt/qml/plasma/applet/org/kde/plasma/systemtray/ExpandedRepresentation.qml:239: TypeError: Cannot read property 'text' of null
Oct 14 16:15:23 hp15s plasmashell[51103]: Property 'onPressed' of object QQuickMouseArea_QML_565(0x55ce94588a90) is a signal handler. You should not call it directly. Make it a proper function and call that or emit the signal.
andyglaros@hp15s:~$ 

It happens both on my earbuds, on any bluetooth audio device the time I actually change audio profiles…I click any profile and it basically freezes

Anyone willing to help?

Hey, sorry for the late reply :sweat_smile:

Since it happens with every Bluetooth device, I don’t think it’s the earbuds themselves.

First, try updating everything and rebooting:

sudo dnf upgrade --refresh

Also, can you check which versions you have installed?

rpm -q plasma-pa plasma-workspace pipewire wireplumber

If it still happens, try switching profiles through pavucontrol instead of the volume widget. Install it with:

sudo dnf install pavucontrol

And one more thing, run this before and after switching profiles:

pactl list short sinks

If it works fine in pavucontrol but freezes through the Plasma widget, that would help narrow it down. If it freezes there too, we can look into PipeWire/WirePlumber next.

@ssynxx

andyglaros@hp15s:~$ rpm -q plasma-pa plasma-workspace pipewire wireplumber
plasma-pa-6.7.5-1.fc44.x86_64
plasma-workspace-6.7.5-1.fc44.x86_64
pipewire-1.6.9-1.fc44.x86_64
pipewire-1.6.9-1.fc44.i686
wireplumber-0.5.18-1.fc44.x86_64

With pavucontrol it didnt freeze the plasma shell, the plasma shell only freezes when switching profiles with the volume tray panel

before:

andyglaros@hp15s:\~$ pactl list short sinks 
48      alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__HDMI3__sink     PipeWire        s24-32le 2ch 48000Hz    SUSPENDED 
49      alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__HDMI2__sink     PipeWire        s24-32le 2ch 48000Hz    SUSPENDED 
50      alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__HDMI1__sink     PipeWire        s24-32le 2ch 48000Hz    SUSPENDED 
51      alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__Speaker__sink   PipeWire        s32le 2ch 48000Hz       SUSPENDED 
127     bluez_output.78_44_05_72_37_34.1        PipeWire        s16le 2ch 48000Hz       SUSPENDED

after:

andyglaros@hp15s:~$ pactl list short sinks
217     alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__HDMI3__sink     PipeWire        s24-32le 2ch 48000Hz    SUSPENDED
218     alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__HDMI2__sink     PipeWire        s24-32le 2ch 48000Hz    SUSPENDED
219     alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__HDMI1__sink     PipeWire        s24-32le 2ch 48000Hz    SUSPENDED
220     alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__Speaker__sink   PipeWire        s32le 2ch 48000Hz       SUSPENDED
262     bluez_output.78_44_05_72_37_34.1        PipeWire        s16le 2ch 48000Hz       SUSPENDED

allthogh after checking the logs we have a smoking gun:

Oct 16 14:41:15 hp15s plasmashell[1832]: qrc:/qt/qml/plasma/applet/org/kde/plasma/systemtray/ExpandedRepresentation.qml:239: TypeError: Cannot read property 'text' of null
Oct 16 14:41:25 hp15s plasmashell[1832]: No object for name "bluez_output.78_44_05_72_37_34.1"
Oct 16 14:41:34 hp15s plasmashell[1832]: Property 'onPressed' of object QQuickMouseArea_QML_555(0x55c885bc3210) is a signal handler. You should not call it directly. Make it a proper function and call that or emit the signal.
Oct 16 14:41:35 hp15s plasmashell[1832]: PipeWire remote error:  -2 target not found
Oct 16 14:41:35 hp15s plasmashell[1832]: PipeWire remote error:  -2 unknown resource 4 op:7
Oct 16 14:41:36 hp15s drkonqi-coredump-launcher[3818]: Unable to find file for pid 28186 expected at "kcrash-metadata/plasmashell.13c2dc2451594fda8799672d258c76cd.28186.ini"
Oct 16 14:41:37 hp15s drkonqi-coredump-launcher[3830]: Unable to find file for pid 1637 expected at "kcrash-metadata/wireplumber.2e8bc5902c6c4bc2a96283c42d63a374.1637.ini"
Oct 16 14:41:40 hp15s wireplumber[1692]: pw.node: (bluez_output.78_44_05_72_37_34.1-96) running -> error (Received error event)
Oct 16 14:41:40 hp15s wireplumber[1692]: spa.bluez5: Failure in Bluetooth audio transport /org/bluez/hci0/dev_78_44_05_72_37_34/sep1/fd0
Oct 16 14:41:40 hp15s pipewire[1691]: pw.node: (bluez_output.78_44_05_72_37_34.1-96) running -> error (Received error event)
Oct 16 14:41:40 hp15s plasmashell[1832]: No object for name "bluez_output.78_44_05_72_37_34.1"
Oct 16 14:41:40 hp15s plasmashell[1832]: No object for name "bluez_output.78_44_05_72_37_34.1"
Oct 16 14:41:48 hp15s wireplumber[1692]: wp-event-dispatcher: <WpAsyncEventHook:0x55f03a5ae430> failed: <WpSiStandardLink:0x7f2d0c009dd0> link failed: some node was destroyed before the link was created
Oct 16 14:41:48 hp15s wireplumber[1692]: wp-properties: wp_properties_get: assertion 'self != NULL' failed
Oct 16 14:41:48 hp15s wireplumber[1692]: wp-properties: wp_properties_get: assertion 'self != NULL' failed
Oct 16 14:41:48 hp15s wireplumber[1692]: wp-properties: wp_properties_get: assertion 'self != NULL' failed
Oct 16 14:41:53 hp15s wireplumber[1692]: spa.bluez5.midi: org.bluez.GattManager1.RegisterApplication() failed: GDBus.Error:org.bluez.Error.AlreadyExists: Already Exists
Oct 16 14:41:55 hp15s systemd[1365]: plasma-plasmashell.service: Main process exited, code=killed, status=9/KILL
Oct 16 14:41:55 hp15s systemd[1365]: plasma-plasmashell.service: Failed with result 'signal'.
Oct 16 14:41:55 hp15s systemd[1365]: plasma-plasmashell.service: Consumed 35.016s CPU time over 1min 19.279s wall clock time, 904.3M memory peak.
Oct 16 14:41:56 hp15s systemd[1365]: plasma-plasmashell.service: Scheduled restart job, restart counter is at 1.
Oct 16 14:41:56 hp15s systemd[1365]: Starting plasma-plasmashell.service - KDE Plasma Workspace...
Oct 16 14:41:56 hp15s systemd[1365]: Started plasma-plasmashell.service - KDE Plasma Workspace.
Oct 16 14:41:56 hp15s plasmashell[4140]: Member visible of the object PlasmaQuick::Dialog overrides a member of the base object. Consider renaming it or adding final or override specifier
Oct 16 14:41:56 hp15s plasmashell[4140]: Member enabled of the object DeclarativeDropArea overrides a member of the base object. Consider renaming it or adding final or override specifier
Oct 16 14:41:57 hp15s plasmashell[4140]: Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)

something with qt string ui bug or a corrupted value sent by bluez

Its a plasma side issue, QML is trying to access the text property of something that is null.
It is most probably a bug on either plasma side or pipewire.
I dont know how to help you file a bug, someone else does. :smiley:

I just reported it!

Hey Andy, I tried looking into it but couldn’t find an exact fix either lol. As @shivanksharma12 mentioned, it might be a Plasma or PipeWire bug. Hopefully someone more familiar with this stuff can figure out a solution. For now, at least pavucontrol works as a workaround.