Bug 433518

Summary: audio output does not work after restarting PulseAudio
Product: [Applications] Elisa Reporter: Be <be.0>
Component: generalAssignee: Matthieu Gallien <matthieu_gallien>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Be 2021-02-24 04:48:30 UTC
SUMMARY
Elisa does not output audio if the PulseAudio server is restarted while Elisa is running. This occurs both with PulseAudio and pipewire-pulse.

STEPS TO REPRODUCE
1. Play music in Elisa
2. Restart PulseAudio server
3. Try to play music in Elisa again

OBSERVED RESULT
Elisa behaves as if it can play audio (the play button works and the track position slider advances), but there is no audio output.

EXPECTED RESULT
Audio output reconnects when PulseAudio server is restarted.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 33
(available in About System)
KDE Plasma Version: 5.78.0
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
PipeWire's console output repeatedly shows:

[00000000027a1590] vlcpulse audio output error: cannot write: Connection terminated

when pressing play after restarting PulseAudio.
Comment 1 Be 2021-12-02 06:00:29 UTC
I took a quick look at how Elisa outputs audio and see it uses the very high level QMediaPlayer class, so the bug might be upstream in Qt.
Comment 2 Be 2021-12-02 06:05:15 UTC
(In reply to Be from comment #1)
> I took a quick look at how Elisa outputs audio and see it uses the very high
> level QMediaPlayer class, so the bug might be upstream in Qt.

Hmm, the error I originally reported showed an error from the VLC backend rather than QMediaPlayer.

Anyway, I can't reproduce this anymore with Elisa 21.08.1, Pipewire 0.3.40, and Wireplumber 0.4.5.