Bug 443184 - Elisa Music Player Stutters on Each Track Start with Bluetooth Headphones (fine otherwise)
Summary: Elisa Music Player Stutters on Each Track Start with Bluetooth Headphones (fi...
Status: REPORTED
Alias: None
Product: Elisa
Classification: Applications
Component: general (show other bugs)
Version: 21.08.1
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Matthieu Gallien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-01 01:49 UTC by Isaac Milarsky
Modified: 2023-09-01 10:07 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Isaac Milarsky 2021-10-01 01:49:12 UTC
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
Comment 1 Nate Graham 2021-10-05 02:03:01 UTC
Hmm, I'm using PipeWire and I don't experience this.
Comment 2 Isaac Milarsky 2021-10-05 03:52:29 UTC
(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.
Comment 3 Isaac Milarsky 2021-10-13 20:51:23 UTC
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.
Comment 4 Isaac Milarsky 2021-10-13 20:54:59 UTC
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
Comment 5 Isaac Milarsky 2021-10-14 02:20:29 UTC
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"
Comment 6 Isaac Milarsky 2021-10-14 02:23:44 UTC
Okay so it persists on reboot now as well. This is extremely strange to me.
Comment 7 Isaac Milarsky 2021-10-14 17:49:42 UTC
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.
Comment 8 Fushan Wen 2021-10-14 17:50:47 UTC
Bluetooth headphones+1
Comment 9 Mufeed Ali 2022-05-17 05:17:36 UTC
I can confirm this. It is specific to Bluetooth devices. Codec (AAC or SBC) doesn't seem to matter. Happens on track switch.
Comment 10 Isaac Milarsky 2022-05-17 15:26:44 UTC
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.
Comment 11 nf.pereira 2022-05-18 14:54:36 UTC
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.
Comment 12 Mickaël Leduque 2022-12-31 20:00:40 UTC
Same here with a bluetooth device
Comment 13 Benjamin Bukowski 2023-09-01 10:07:55 UTC
This happens for me too when using a bluetooth headset, but only with the aptX profile. With the aac profile it works as expected.