Bug 433518 - audio output does not work after restarting PulseAudio
Summary: audio output does not work after restarting PulseAudio
Status: RESOLVED FIXED
Alias: None
Product: Elisa
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Matthieu Gallien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-24 04:48 UTC by Be
Modified: 2021-12-02 06:05 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.