MusicPlayerDaemon / MPD

Music Player Daemon
https://www.musicpd.org/
GNU General Public License v2.0
2.2k stars 350 forks source link

A certain stream cause mpd to hang - only kill -9 able to stop it #1176

Closed pclausen closed 3 years ago

pclausen commented 3 years ago

Bug report

Describe the bug

A certain stream cause mpd to hang - only kill -9 able to stop it

the stream is http://sunshinelive.hoerradar.de/sunshinelive-live-mp3-hq

which I have in a playlist:

 $ cat /var/lib/mpd/playlists/Sunshine-Live.m3u
#EXTM3U
#EXTINF:-1,Sunshine:Live
http://sunshinelive.hoerradar.de/sunshinelive-live-mp3-hq
#EXTINF:-1,Sunshine:House
http://sunshinelive.hoerradar.de/sunshinelive-house-mp3-hq
#EXTINF:-1,Sunshine:EDM
http://sunshinelive.hoerradar.de/sunshinelive-edm-mp3-hq
#EXTINF:-1,Sunshine:Classics
http://sunshinelive.hoerradar.de/sunshinelive-classics-mp3-hq
#EXTINF:-1,Sunshine:Trance
http://sunshinelive.hoerradar.de/sunshinelive-trance-mp3-hq
#EXTINF:-1,Sunshine:Hard
http://sunshinelive.hoerradar.de/sunshinelive-hard-mp3-hq
#EXTINF:-1,Sunshine:Techno
http://sunshinelive.hoerradar.de/sunshinelive-techno-mp3-hq
#EXTINF:-1,Sunshine:Lounge
http://sunshinelive.hoerradar.de/sunshinelive-lounge-mp3-hq
#EXTINF:-1,Sunshine:90er
http://sunshinelive.hoerradar.de/sunshinelive-90er-mp3-hq
#EXTINF:-1,Sunshine:Festival
http://sunshinelive.hoerradar.de/sunshinelive-festival-mp3-hq
#EXTINF:-1,Sunshine:Drum 'n' Bass
http://sunshinelive.hoerradar.de/sunshinelive-dnb-mp3-hq
#EXTINF:-1,Sunshine:Hand's up
http://sunshinelive.hoerradar.de/sunshinelive-handsup-mp3-hq
#EXTINF:-1,Sunshine:Mayday
http://sunshinelive.hoerradar.de/sunshinelive-mayday-mp3-hq
#EXTINF:-1,Sunshine:Nature One
http://sunshinelive.hoerradar.de/sunshinelive-natureone-mp3-hq
#EXTINF:-1,Sunshine:Time Warp Radio
http://sunshinelive.hoerradar.de/sunshinelive-timewarp-mp3-hq

Note, the stream works fine in mpv, eg

mpv http://sunshinelive.hoerradar.de/sunshinelive-live-mp3-hq
[webui] v1.0.0
[webui] Serving on ::0:8081 and 0.0.0.0:8081
Playing: http://sunshinelive.hoerradar.de/sunshinelive-live-mp3-hq
 (+) Audio --aid=1 (mp3 2ch 44100Hz)
File tags:
 icy-title:
AO: [alsa] 44100Hz stereo 2ch float

Other streams work as expected in mpd eg http://live-icy.gslb01.dr.dk:80/A/A05H.mp3 plays fine.

Expected Behavior

The playlist and stream used to work some weeks maybe a month ago. Not sure

Actual Behavior

mpd hangs completely.

mpc returns

error: Timeout

only way to kill mpd is with kill -9. The problem persist because mpd load state again, so to make mpd work again I have to rm state, eg

sudo rm /var/lib/mpd/state

Restarting mpd and mpc works fine untill I add the problematic stream above.

Version

clausen@raspberrypi:~ $ mpd --version
Music Player Daemon 0.21.5 (0.21.5)

Copyright 2003-2007 Warren Dukes <warren.dukes@gmail.com>
Copyright 2008-2018 Max Kellermann <max.kellermann@gmail.com>
This is free software; see the source for copying conditions.  There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Database plugins:
 simple proxy upnp

Storage plugins:
 local smbclient udisks nfs curl

Neighbor plugins:
 smbclient upnp udisks

Decoders plugins:
 [mad] mp3 mp2
 [mpg123] mp3
 [vorbis] ogg oga
 [oggflac] ogg oga
 [flac] flac
 [opus] opus ogg oga
 [sndfile] wav aiff aif au snd paf iff svx sf voc w64 pvf xi htk caf sd2
 [audiofile] wav au aiff aif
 [dsdiff] dff
 [dsf] dsf
 [hybrid_dsd] m4a
 [faad] aac
 [mpcdec] mpc
 [wavpack] wv
 [modplug] 669 amf ams dbm dfm dsm far it med mdl mod mtm mt2 okt s3m stm ult umx xm
 [mikmod] amf dsm far gdm imf it med mod mtm s3m stm stx ult uni xm
 [sidplay] sid mus str prg P00
 [wildmidi] mid
 [fluidsynth] mid
 [adplug] amd d00 hsc laa rad raw sa2
 [ffmpeg] 16sv 3g2 3gp 4xm 8svx aa3 aac ac3 adx afc aif aifc aiff al alaw amr anim apc ape asf atrac au aud avi avm2 avs bap bfi c93 cak cin cmv cpk daud dct divx dts dv dvd dxa eac3 film flac flc fli fll flx flv g726 gsm gxf iss m1v m2v m2t m2ts m4a m4b m4v mad mj2 mjpeg mjpg mka mkv mlp mm mmf mov mp+ mp1 mp2 mp3 mp4 mpc mpeg mpg mpga mpp mpu mve mvi mxf nc nsv nut nuv oga ogm ogv ogx oma ogg omg opus psp pva qcp qt r3d ra ram rl2 rm rmvb roq rpl rvc shn smk snd sol son spx str swf tak tgi tgq tgv thp ts tsp tta xa xvid uv uv2 vb vid vob voc vp6 vmd wav webm wma wmv wsaud wsvga wv wve
 [gme] ay gbs gym hes kss nsf nsfe sap spc vgm vgz
 [pcm]

Filters:
 libsamplerate soxr

Tag plugins:
 id3tag

Output plugins:
 shout null fifo pipe alsa ao oss openal pulse jack httpd recorder

Encoder plugins:
 null vorbis opus lame wave flac

Archive plugins:
 [bz2] bz2
 [zzip] zip
 [iso] iso

Input plugins:
 file archive alsa tidal qobuz curl ffmpeg smbclient nfs mms cdio_paranoia

Playlist plugins:
 extm3u m3u pls xspf asx rss soundcloud flac cue embcue

Protocols:
 file:// alsa:// tidal:// qobuz:// http:// https:// gopher:// rtp:// rtsp:// rtmp:// rtmpt:// rtmps:// smb:// nfs:// mms:// mmsh:// mmst:// mmsu:// cdda://

Other features:
 avahi dbus udisks epoll icu inotify ipv6 systemd tcp un
divenal commented 3 years ago

I'm seeing something very similar on a fresh install on raspberry pi, playing short mp3 sample stored in the music directory. This is also 0.21.5 However, the same sample works fine on the older pi that I'm replacing, and that is running the same version.

MaxKellermann commented 3 years ago

Version 0.21.5 is very old and not supported.