Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Moode Player 6.5.2 hanged after finishing a Playlist
#11
Just finished the real git-bisect process. 

To cut to the chase, here's the output (where, in our context, "git bisect good" means the last of the succession of bisect builds led to a working mpd/bluez-alsa setup and "first bad commit" identifies the first commit which leads to a non-working mpd/bluez-alsa setup):

Code:
pi@moode3b:~/MPD $ git bisect good
c926021599c77b3011beec856cad535a5bedb1af is the first bad commit
commit c926021599c77b3011beec856cad535a5bedb1af
Author: Max Kellermann <max@musicpd.org>
Date:   Fri Jun 28 08:27:48 2019 +0200

   output/alsa: always redo DrainInternal() after writing
   
   Draining isn't finished just because the period_buffer has run empty.
   It is only finished after snd_pcm_drain() has succeeded.

:100644 100644 1d066d2901e48a7ca1b565de944f3b3849164a0d 542cd5d048f0609224e9de363bcabd3d7d0c2c97 M    NEWS
:040000 040000 987fdf549bf480b76e3e0078313222569bb0e559 5ea2319f77527a0ffebb364c83f3e521994d1672 M    src


I'll set up a clean-room Raspbian system to see what I can see.

Regards,
Kent
Reply
#12
(05-19-2020, 03:46 PM)dml3334 Wrote:
(05-19-2020, 01:12 PM)Tim Curtis Wrote: After some testing this morning I can confirm that for the use case MPD -> BT Speaker when last song in Playlist ends MPD never generates an idle timeout event. It remains in its idle loop and refuses to process any protocol commands. This could be due to either an MPD bug or a bluez-alsa bug. I have no way of knowing.

The only way out is to kill the MPD process and then let watchdog.sh automatically restart it.

Code:
sudo killall -s 9 mpd

Alternatively you could add a radio station to the end of the Playlist.

-Tim

Thanks for debugging it Smile 

I'll try to add a radio station as an alternative. It is for the kids to use. It must be easy Wink

Will it be solved? Maybe, a bug report should be submitted to MPD?

Thanks!

The other 'workaround' other than adding a radio at the end of the playlist which has worked for me is to set the playlist to 'repeat'.  It seems to successfully loop back to the first song and not hang.
Reply
#13
Compliments of @TheOldPresbyope the issue was isolated to blues-alsa. The latest version 2.1.0 fixes it and will be included in upcoming moOde 6.6.0 release :-)

-Tim
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#14
(05-25-2020, 03:06 PM)Tim Curtis Wrote: Compliments of @TheOldPresbyope the issue was isolated to blues-alsa. The latest version 2.1.0 fixes it and will be included in upcoming moOde 6.6.0 release :-)

-Tim

@TheOldPresbyope and @Tim Curtis, thank you very much for debugging it. I'm eager to have it solved Smile
Reply


Forum Jump: