-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mpd 0.24 (0.23.15) will not play via icecast as a drop-in replacement f/0.23.14 - mpd hangs until SIGTERM #2027
Comments
Post a backtrace of all threads when MPD is stuck. |
can confirm, icecast streams do not keep playing. the mpd engine continues to show active, but the sound stops after one song, and the metadata doesnt change.. errors observed include: |
i just tried the git master (0.24 (v0.23.15-1377-g381215fd7)) and it isnt fixed |
@whatamesss your posts are not helpful. I explained what is needed to analyze your problem, but neither the submitter nor you provided what is needed. Therefore I will have to close this bug report. |
MPD does not support icecast. got it. |
I think there is a misunderstanding. The problem is not lack of support for Icecast; the problem is that you don't listen to me and fail to provide the information I asked to you provide. |
eu-stack -p $(pidof mpd) |
more information on this bug...i may be wrong, as i do no fully understand the inner workings of the software but the issue appears to be in the mpd 'player'. it continues to consume internet data, but audio cuts out approximately 5 seconds into the second track upon song change with icecast streams, this includes 'station identification' tracks.. i've tried the latest git master and/or release versions of mpd, curl, and libshout....and the issue is not fixed anywhere. here's what i've learned: as a work-around, to get streaming audio to play continually you can remove curl from mpd. i've tried just about every config option in curl, and cant seem to make a difference. fwiw: for both, the file format is detected as ogg, the codec selected is ffflac |
Bug report
Describe the bug
mpd 0.23.14
was installed via ubuntu repository to/bin/mpd
;/usr/bin/mpd
; later renamedmpd.23
mpd 0.23.15-1177-g1efb9d41d
was compiled and installed at/usr/local/bin/mpd
; later renamedmpd.24
/etc/mpd.conf
contains audio_outputs to icecast2 that are set asenabled "no"
/etc/mpd.conf
contains audio_output to null, enabled (5)/etc/mpd.conf
was copied to/etc/mpd.23.conf
for testing purposes as described belowNB throughout this discussion I will be using 0.24, 0.23.15, and 0.23.15.177-g1efb9d41d interchangeably;
0.23 will be used to refer to 0.23.14 only.
Holding everything else the same, when /usr/local/lib/systemd/system/mpd.service is modified to change from
ExecStart=/usr/bin/mpd.23 --systemd
to
'ExecStart=/usr/local/bin/mpd.24 --systemd'
$ systemctl start mpd
mpd will run, but when the icecast output is enabled, it hangs. mpc can no longer communicate with it and systemctl cannot stop/restart mpd; it must be killed via SIGTERM (i.e,.
kill -9
; I don't think it will exit without SIGTERM)This was the state of affairs prior to 2024.04.19.
Kaliko suggested running via the cli so I changed to a minimal mpd.24.conf and an included mpd.24.outputs.conf and I've separated out the database file, i.e., so the database is not overwritten each time the version changes. This was done at the systemd script level so that the DBs don't have to get rebuilt. Snippet of
/usr/local/lib/systemd/system/mpd.service
:Fun from the cli, it was invoked by
The mpd.24.conf files are below, but regardless, mpd still hangs when icecast2 is enabled.
Expected Behavior
Expect 0.23.15 to work as a drop in replacement for 0.23.14, i.e., such that the icecast streaming is operative and mpd does not hang.
Icecast has no issue with 0.23.14.
Actual Behavior
mpd hangs for more than 10 minutes and the user kills it.
Version
Linux 6.8.4-060804-generic #202404041833 SMP PREEMPT_DYNAMIC Thu Apr 4 18:46:22 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
mpd.24:
mpd.23:
Configuration
mpd.24.conf
mpd.24.outputs.conf:
Log
corresponding commands:
I don't know that mpd has "crashed" per se, as I need to kill it. I can try to run a back trace if it is something that will help.
The text was updated successfully, but these errors were encountered: