Raspbian: MPD freezes very often
Posted: Tue Dec 26, 2017 6:19 am
[PROBLEM]
On Raspbian Stretch on a RPi (model B), I've installed MPD and pulseaudio (as network sink).
Everything I wanted works, except for it being highly unreliable:
MPD freezes/hangs very often. Especially when interacting with playback from a client (seeking, pause/playback, next/previous song, etc).
[SOLUTION]
Haven't found one yet.
However, I've somewhat narrowed it down to an "audio-output issue":
When MPD freezes, killing the pulseaudio-process it spawned (using "kill -9"), MPD continues its duties.
I'd switch to native ALSA (instead of "pulse" output), but that configuration shows the same audio freeze.
Yet, I'm still suspecting pulseaudio running at all - with the TCP network sink enabled - to be related.
Here's a "ps aux | grep mpd" when mpd is running:
Seems to work more stable. Sometimes audio stops for a second, giving the following error message:
Giving up for now.
Links:
On Raspbian Stretch on a RPi (model B), I've installed MPD and pulseaudio (as network sink).
Everything I wanted works, except for it being highly unreliable:
MPD freezes/hangs very often. Especially when interacting with playback from a client (seeking, pause/playback, next/previous song, etc).
[SOLUTION]
Haven't found one yet.
However, I've somewhat narrowed it down to an "audio-output issue":
When MPD freezes, killing the pulseaudio-process it spawned (using "kill -9"), MPD continues its duties.
I'd switch to native ALSA (instead of "pulse" output), but that configuration shows the same audio freeze.
Yet, I'm still suspecting pulseaudio running at all - with the TCP network sink enabled - to be related.
Here's a "ps aux | grep mpd" when mpd is running:
I've now killed the pulseaudio process owned by "pi" user, and switch mpd.conf back to ALSA.pi 460 1.4 2.1 103988 9360 ? Sl Dez25 2:08 /usr/bin/pulseaudio --start --log-target=syslog --system=false
mpd 26286 6.3 2.4 366264 10880 ? Sl 01:43 0:31 /usr/bin/pulseaudio --start --log-target=syslog
Seems to work more stable. Sometimes audio stops for a second, giving the following error message:
Possible duplicate of "Raspbian: Pulseaudio hangs with MPD as client"alsa_output: Underrun on ALSA device "default"
Giving up for now.
Links: