clementine-player / Clementine

:tangerine: Clementine Music Player
https://www.clementine-player.org/
GNU General Public License v3.0
3.68k stars 670 forks source link

Sound playback stops working with PulseAudio 16.1 on track position changes #7283

Open M4he opened 11 months ago

M4he commented 11 months ago

Before posting

Please follow the steps below and check the boxes with [x] once you did the step.

System information

Please provide information about your system and the version of Clementine used.

Expected behaviour / actual behaviour

Expected behaviour:

Clementine should continue to be able to output audio regardless of how frequent the track position is changed.

Actual behaviour:

Using the PulseAudio output module, sound output of Clementine will stop working at one of the following occasions:

  1. if repeatedly clicking on the progress slider to change the track position
  2. randomly by itself at track changes

The second one is not as common and harder to reproduce but the first one is easily reproducible.

When the sound stops playing, the following is logged by PulseAudio to the syslog:

pulseaudio[1730]: Failed to push data into queue
pulseaudio[1730]: Failed to push data into queue
pulseaudio[1730]: Failed to push data into queue
pulseaudio[1730]: Failed to push data into queue
pulseaudio[1730]: Failed to push data into queue
pulseaudio[1730]: Failed to push data into queue
pulseaudio[1730]: Failed to push data into queue
pulseaudio[1730]: Failed to push data into queue

The only way to revive the audio output is to click "Stop" and then "Play" again, effectively restarting the output module.

Steps to reproduce the problem (only for bugs)

  1. in Tools > Preferences > Playback > Audio output set the Output device to "Default device on Plays audio to a PulseAudio server"
  2. start playing a track
  3. repeatedly click at different positions on the progress slider
  4. eventually observe the progress bar freezing and sound stop playing

At this stage only pressing "Stop" and then "Play" again will revive audio playback from Clementine.

Notes

kr5ture commented 10 months ago

Got the same issue. Apparently changing output device [from Choose automatically] to Default device on Output to a sound card via ALSA resolved it on my side too, thanks for sharing this!

W055 commented 9 months ago

Found the same behavior with clementine 1.4 rc2 and pulseaudio 15.99.1 under linux mint 21.2

vmicho commented 6 months ago

Can confirm on Linuxmint 21.2, clementine 1.4 rc2, using internal or external(usb) cards.

Also can confirm selecting "Default device on Output to a sound card via ALSA" fixes the issue. Selecting the similar option "Default device on Plays audio to a PulseAudio server" has still the issue.