SUMMARY Using kde plasma on archlinux with pipewire makes Elisa stutter when starting every track that it tries to play. Works fine otherwise. STEPS TO REPRODUCE 1. Use KDE plasma with pipewire as a replacement for pulseaudio 2. Install elisa music player with pacman 3. Play any track OBSERVED RESULT Elisa plays the first half-second of the track before pausing and stuttering. After a short pause it plays the rest of the track as expected. This happens for the start of every song that plays whether it is started manually or via a playlist. EXPECTED RESULT Elisa should ideally not stutter at the start of each track playing. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.22.5 KDE Frameworks Version: 5.86.0 Qt Version: 5.15.2 Kernel Version: 5.14.8-zen1-1-zen (64-bit) Graphics Platform: X11 Processors: 12 × AMD Ryzen 5 3600 6-Core Processor Memory: 15.5 GiB of RAM Graphics Processor: AMD Radeon Pro W5500 ADDITIONAL INFORMATION Pipewire Version: Compiled with libpipewire 0.3.38 Linked with libpipewire 0.3.38
Hmm, I'm using PipeWire and I don't experience this.
(In reply to Nate Graham from comment #1) > Hmm, I'm using PipeWire and I don't experience this. I remember Elisa working just fine back when I was using PulseAudio and then the problem suddenly starting after an update or two and after switching to PipeWire. It might not be PipeWire I just thought that was the most likely culprit. Let me know if there is anything that I can try or provide to make squashing this bug easier. I can give systemd journals if that helps. I looked into a similar error that was raised on here a while ago that blamed VLC audio libraries during compilation or something? I don't think that would affect me since I didn't compile Elisa from source. Is there anything else unusual that might cause something like this? Thanks for answering I really like Elisa and most kde stuff otherwise.
Okay I tried Elisa again recently on a KDE wayland session and it worked just fine. No stutters at all. I am still on pipewire so it is working with pipewire without stuttering using a wayland session. I will try with an x session again to see if the stutters return.
Hmm.. It seems to also be working within an x session too now. I wonder if an upstream change fixed it or something. I am running elisa 21.08.2
So the stutters came back after I used my computer to do other things for a while. Same issue returns after a while. Here is the journalctl output from around when the stutters happened: Oct 13 21:11:59 cinnamon kernel: audit: type=1131 audit(1634177519.152:208): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=> Oct 13 21:13:39 cinnamon plasmashell[880]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Panel.qml:27:1: QML Panel: Binding loop detected for property "state" Oct 13 21:13:39 cinnamon plasmashell[880]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Panel.qml:27:1: QML Panel: Binding loop detected for property "state" Oct 13 21:13:41 cinnamon elisa[3381]: libpng warning: iCCP: known incorrect sRGB profile Oct 13 21:13:52 cinnamon plasmashell[880]: kde.dataengine.mpris: "org.mpris.MediaPlayer2.elisa" has an invalid URL for the xesam:url entry of the "Metadata" property Oct 13 21:13:59 cinnamon plasmashell[880]: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:233: TypeError: Cannot read property 'visible' of null Oct 13 21:14:05 cinnamon elisa[3381]: kf.kirigami: Units.devicePixelRatio is deprecated (since 5.86 ): This returns 1 when using Qt HiDPI scaling. Oct 13 21:14:05 cinnamon elisa[3381]: kf.kirigami: Previous message repeats 2 times. Oct 13 21:14:09 cinnamon xdg-desktop-portal-kde[6904]: xdp-kde-background: GetAppState called: no parameters Oct 13 21:14:17 cinnamon elisa[3381]: kf.kirigami: Units.devicePixelRatio is deprecated (since 5.86 ): This returns 1 when using Qt HiDPI scaling. Oct 13 21:14:17 cinnamon elisa[3381]: kf.kirigami: Previous message repeats 2 times. Oct 13 21:14:39 cinnamon plasmashell[880]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Panel.qml:27:1: QML Panel: Binding loop detected for property "state" Oct 13 21:14:39 cinnamon plasmashell[880]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Panel.qml:27:1: QML Panel: Binding loop detected for property "state" Oct 13 21:14:39 cinnamon xdg-desktop-portal-kde[6904]: xdp-kde-background: GetAppState called: no parameters Oct 13 21:14:44 cinnamon plasmawindowed[8852]: <Unknown File>:1: TypeError: Cannot read property 'Layout' of null Oct 13 21:14:44 cinnamon plasmawindowed[8852]: QObject::disconnect: Unexpected nullptr parameter Oct 13 21:14:54 cinnamon plasmashell[880]: kf.plasma.quick: Couldn't create KWindowShadow for PlasmaQuick::Dialog(0x560382238610) Oct 13 21:14:54 cinnamon plasmashell[880]: kf.plasma.quick: Couldn't create KWindowShadow for PlasmaQuick::Dialog(0x560382238610) Oct 13 21:14:54 cinnamon plasmashell[880]: kf.plasma.quick: Couldn't create KWindowShadow for PlasmaQuick::Dialog(0x560382238610) Oct 13 21:14:55 cinnamon plasmashell[880]: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:233: TypeError: Cannot read property 'visible' of null Oct 13 21:15:04 cinnamon plasmashell[880]: kf.plasma.quick: Couldn't create KWindowShadow for PlasmaQuick::Dialog(0x560382238610) Oct 13 21:15:04 cinnamon plasmashell[880]: kf.plasma.quick: Couldn't create KWindowShadow for PlasmaQuick::Dialog(0x560382238610) Oct 13 21:15:04 cinnamon plasmashell[880]: kf.plasma.quick: Couldn't create KWindowShadow for PlasmaQuick::Dialog(0x560382238610) Oct 13 21:15:07 cinnamon plasmashell[880]: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:233: TypeError: Cannot read property 'visible' of null Oct 13 21:15:09 cinnamon xdg-desktop-portal-kde[6904]: xdp-kde-background: GetAppState called: no parameters Oct 13 21:15:12 cinnamon plasmashell[880]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Panel.qml:27:1: QML Panel: Binding loop detected for property "state" Oct 13 21:15:12 cinnamon plasmashell[880]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Panel.qml:27:1: QML Panel: Binding loop detected for property "state" Oct 13 21:15:19 cinnamon elisa[3381]: libpng warning: iCCP: known incorrect sRGB profile Oct 13 21:15:23 cinnamon elisa[3381]: kf.kirigami: Units.devicePixelRatio is deprecated (since 5.86 ): This returns 1 when using Qt HiDPI scaling. Oct 13 21:15:23 cinnamon elisa[3381]: kf.kirigami: Previous message repeats 2 times. Oct 13 21:15:25 cinnamon plasmashell[880]: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:233: TypeError: Cannot read property 'visible' of null Oct 13 21:15:25 cinnamon plasmashell[880]: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:233: TypeError: Cannot read property 'visible' of null Oct 13 21:15:34 cinnamon systemd[713]: Started Konsole - Terminal. Oct 13 21:15:34 cinnamon xdg-desktop-portal-kde[6904]: xdp-kde-wayland-integration: Adding output: Oct 13 21:15:34 cinnamon xdg-desktop-portal-kde[6904]: xdp-kde-wayland-integration: manufacturer: "Acer Technologies" Oct 13 21:15:34 cinnamon xdg-desktop-portal-kde[6904]: xdp-kde-wayland-integration: model: "G226HQL/LYLAA0018502" Oct 13 21:15:34 cinnamon xdg-desktop-portal-kde[6904]: xdp-kde-wayland-integration: resolution: QSize(1920, 1080) Oct 13 21:15:34 cinnamon xdg-desktop-portal-kde[6904]: xdp-kde-wayland-integration: Adding output: Oct 13 21:15:34 cinnamon xdg-desktop-portal-kde[6904]: xdp-kde-wayland-integration: manufacturer: "Acer Technologies" Oct 13 21:15:34 cinnamon xdg-desktop-portal-kde[6904]: xdp-kde-wayland-integration: model: "SB220Q/85993775" Oct 13 21:15:34 cinnamon xdg-desktop-portal-kde[6904]: xdp-kde-wayland-integration: resolution: QSize(1920, 1080) Oct 13 21:15:34 cinnamon kded5[852]: Got an error Oct 13 21:15:34 cinnamon kded5[852]: Got an error Oct 13 21:15:39 cinnamon xdg-desktop-portal-kde[6904]: xdp-kde-background: GetAppState called: no parameters Oct 13 21:15:44 cinnamon plasmashell[880]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Panel.qml:27:1: QML Panel: Binding loop detected for property "state" Oct 13 21:15:44 cinnamon plasmashell[880]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Panel.qml:27:1: QML Panel: Binding loop detected for property "state"
Okay so it persists on reboot now as well. This is extremely strange to me.
Update: So the stuttering is only happening when I listen through bluetooth headphones. Everything works perfectly when I use my speakers plugged into my computer.
Bluetooth headphones+1
I can confirm this. It is specific to Bluetooth devices. Codec (AAC or SBC) doesn't seem to matter. Happens on track switch.
Went back and reproduced this bug again in version 22.04.1. Same situation was observed. Using Bluetooth headphones causes Elisa to stutter and pause a half second into track start and also just delays track start in general.
This issue is happening to me too, but I'm not on Bluetooth, and only happens on some FLAC albums, and not others. Might be unrelated to the Bluetooth issue. I'm also using Pipewire, but have not tested PulseAudio.
Same here with a bluetooth device
This happens for me too when using a bluetooth headset, but only with the aptX profile. With the aac profile it works as expected.