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.
This happens for me too! Using Flatpak Elisa 23.08.4 on Fedora 40 Wayland session
I can confirm that I have this issue as well, latest Elisa Flatpak from Flathub 24.05.1, KF 6.3.0, Qt 6.7.2. Only happens when playing music via bluetooth headset. Does not happen when playing using internal laptop speakers.
I confirm the stuttering with Bluetooth headphones in aptX profile, kubuntu 24.04.
I have the same problem with Pipewire 1.2.5-1 and: Operating System: Arch Linux KDE Plasma Version: 6.1.5 KDE Frameworks Version: 6.6.0 Qt Version: 6.7.3 Kernel Version: 6.11.2-zen1-1-zen (64-bit) Graphics Platform: X11 Stutters if a «High Fidelity Playback» profile is used (SBC, SBC-XQ, AAC, LDAC) but not with a (poor audio quality) «Headset Head Unit» profile (CVSD, mSBC). I observe that very often, there’s two stutters: one very very shortly after the beginning of the music and lasts for a short time, the other one slightly later and during something on the order of 1s. But sometimes it’s only one, and a bit more rarely it’s none at all.
With Elisa 24.12.0 on Fedora Kinoite 41 (Pipewire 1.2.7, libwireplumber 0.5.5) I'm currently experiencing stutters at the beginning of each track regardless of the output audio interface. (tried with internal desktop speaker, Bluetooth headset, wired headset connected via USB-C to 3.5mm adapter and it's all the same) These are my new observations so far (with headphones connected to a USB-C to 3.5mm adapter and using Analog Stereo Duplex profile): - After stuttering at the start of any track, when I click "skip backward" to go back to the start of the track again, it will not stutter. - As an EasyEffects user, disabling EE (installed via Flatpak, and it uses PipeWire 0.3.69 inside the Flatpak container) eliminated the stuttering at the start of any track. Will file a bug at EE's repo as well.
With the same audio setup and playing the same file (2 channels, 134kbit/s, 48kHz), GNOME's Amberol does not stutter at all. However, running pw-top revealed some interesting info. My output device is HTC_Type-C_to_3.5mm_Headphone_Jack which the format is "S24LE 2 48000" which matched the specs that says 24bit/48K. With EasyEffects applied: - Amberol's format is "S16LE 2 48000", with Amberol's quantum set to 4320 and output device's quantum set to 2048 - Elisa's format is "F32LE 2 48000" which has more bits than my output device (32bit vs 24bit), with Elisa's quantum set to 1920 and output device's quantum set to 1024 (much lower than Amberol's) - EasyEffects' format is "F32P 2 48000" and quantum set to 0. With EasyEffects disabled, the format/quantum is same, but there's no stutter. My stuttering in Elisa always looks like this: - Playback starts (status shows "R") - In less than a second, it stutters (during stutter shows "I") - The player continued playing for less than a secound (status shows "R") - Stutters again (this time status still shows "R") - After that the music plays normally to the end of the track.
Since I use Elisa installed via Flatpak, I tried turning off the socket=pulseaudio permission (to find out whether Elisa will use PipeWire natively, since pw-cat did not stutter even though f32le just like in Elisa and not s16le like in Amberol). Now this showed up in the logs: ``` [0000561740ee7790] vlcpulse audio output error: PulseAudio server connection failure: Connection refused ``` So I tried playing the same file with VLC itself (3.0.21 installed via flatpak, using pulseaudio backend) and VLC stutters too. I think this is now a VLC issue and not an Elisa issue since Elisa seemed to use VLC components to play the audio file. See also: https://code.videolan.org/videolan/vlc/-/issues/28346
(In reply to Pongpeera Wongprasitthiporn from comment #19) > With the same audio setup and playing the same file (2 channels, 134kbit/s, > 48kHz), GNOME's Amberol does not stutter at all. However, running pw-top > revealed some interesting info. > > My output device is HTC_Type-C_to_3.5mm_Headphone_Jack which the format is > "S24LE 2 48000" which matched the specs that says 24bit/48K. > > With EasyEffects applied: > - Amberol's format is "S16LE 2 48000", with Amberol's quantum set to 4320 > and output device's quantum set to 2048 > - Elisa's format is "F32LE 2 48000" which has more bits than my output > device (32bit vs 24bit), with Elisa's quantum set to 1920 and output > device's quantum set to 1024 (much lower than Amberol's) > - EasyEffects' format is "F32P 2 48000" and quantum set to 0. > > With EasyEffects disabled, the format/quantum is same, but there's no > stutter. > > My stuttering in Elisa always looks like this: > > - Playback starts (status shows "R") > - In less than a second, it stutters (during stutter shows "I") > - The player continued playing for less than a secound (status shows "R") > - Stutters again (this time status still shows "R") > - After that the music plays normally to the end of the track. I have exact the same problem when playing via my bluetooth boxes. No problem when I use the notebook speakers.
I'm also getting the stuttering at the beginning using my Bluetooth in-ear headphones. Elisa: 25.08.0 KDE Flatpak runtime (Wayland) KDE Frameworks: 6.13.0 Qt: Using 6.9.0 and built against 6.9.0 Build ABI: x86_64-little_endian-lp64 Kernel: linux 6.14.11-300.fc42.x86_64