clementine-player / Clementine

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

Playback hangs in pause state if fade on pause/resume is enabled #7227

Open adem4ik opened 1 year ago

adem4ik commented 1 year 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.

inxi -A
Audio:
  Device-1: Intel 82801AA AC97 Audio driver: snd_intel8x0
  Sound API: ALSA v: k5.15.74-3-MANJARO running: yes
  Sound Server-1: PulseAudio v: 16.1 running: yes

Expected behaviour / actual behaviour

Playback hangs in pause state after clicking on play/pause a few times.

Steps to reproduce the problem (only for bugs)

  1. Enable Preferences > Playback > Fade out on pause / fade in on resume
  2. Start playing any track
  3. Click on play/pause button (or corresponding shorcut) a few times

Result: Play / pause button changes its icon, but nothing is played.

If you start the player from the terminal, you'll see lot of spam of the same message during that hang:

14:49:48.567 DEBUG MainWindow:1596                  position: 0 , scrobble point: 180 , lastfm status: 0 , play count point: 180 , is local library item: false , playlist have incremented playcount:  false
14:49:49.567 DEBUG MainWindow:1596                  position: 0 , scrobble point: 180 , lastfm status: 0 , play count point: 180 , is local library item: false , playlist have incremented playcount:  false
14:49:50.567 DEBUG MainWindow:1596                  position: 0 , scrobble point: 180 , lastfm status: 0 , play count point: 180 , is local library item: false , playlist have incremented playcount:  false

Similar issue with the same condition is presented in Strawberry player: https://github.com/strawberrymusicplayer/strawberry/issues/1060

Xashyar commented 1 year ago

Experiencing the same issue on Kinetic Kudu, the problems obviously immediately resolves if you disable "Cross-fade when changing tracks".

adem4ik commented 1 year ago

@Xashyar try to set ALSA in Settings > Playback > Output device. If fixed my issue in Clementine. Thanks for tip from Strawberry developer. image