![]() |
[PROBLEM] [PROBLEM] 9.x: MPD crashing ad-hoc / stops playing - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: [PROBLEM] [PROBLEM] 9.x: MPD crashing ad-hoc / stops playing (/showthread.php?tid=6988) |
RE: [PROBLEM] 9.1.2: MPD crashing ad-hoc - kurt1970 - 10-24-2024 Hi @the_bertrum , @Tim Curtis So... I disabled the stream monitor in moOde and I'm running your script since a couple of hours. We're in the evening, so much more congestion on the internet. Your script kicks in on a regular basis, resulting very rare in a hick-up, but never stopping the steam. This is... absolutely faboulus! @Tim Curtis is there a way to integrate this in moOde? Tx, Kurt Code: moode@moode:~ $ ls -l RE: [PROBLEM] 9.1.2: MPD crashing ad-hoc - Tim Curtis - 10-24-2024 If other users report problems with the built-in Stream monitor I can look into it again but until that happens your best bet is to just use the bash script since it appears to work for your particular stream issues. RE: [PROBLEM] 9.1.2: MPD crashing ad-hoc - kurt1970 - 10-25-2024 @Tim Curtis , I'll do that, but I'm not the only one suffering from this as there's already a thread about this from someone else where this script is coming from: https://moodeaudio.org/forum/showthread.php?tid=5914&pid=49406#pid49406 @the_bertrum, I start the script in rc.local, right after the start of moOde. Works perfect! Tx! As this moment, I'm not at home. I'll let it playing and I'll see what it gives later today, playing the "difficult" Super Stereo HD channel. But the tests already done, sound promising. X fingers... RE: [PROBLEM] 9.1.2: MPD crashing ad-hoc - the_bertrum - 10-25-2024 I'm glad the script is working for you. Really all it does differently to the monitor is to run "mpc stop" followed by "mpc start", rather than a full restart of the MPD process. So, I'm experimenting now with this in my mpdmon.php: Code: // $msg = 'mpdmon: MPD restarted'; I don't get xruns often these days, but I expect this will recover just as well. I'll let you know. RE: [PROBLEM] 9.1.2: MPD crashing ad-hoc - kurt1970 - 10-25-2024 Hi @the_bertrum, @Tim Curtis Coming home, and after +8h, the system is still playing my HD Super Stereo 7 channel. This never happened before! As expected, xruns happen very frequently, but due the script, the system nicely recovers. So, it looks like the script does a better recovery job than the stream monitor (switched off now). I just made the change in /var/www/daemon/mpdmon.php you proposed above, switched on the stream monitor and disabled the script. Let you know the outcome! RE: [PROBLEM] 9.1.2: MPD crashing ad-hoc - kurt1970 - 10-25-2024 Hi @the_bertrum , I just tested the proposed fix in mpdmon.php, but this doesnt work. Music stops playing due to xruns, and the mpd log keeps getting filled with xrun messages. Moodeutl says nothing and the monitor doesn't kick in. This is the same behavior as with the patch @Tim Curtis proposed. Although, not sure if - due to the preceding conditions in the code - your code gets actually hit? I doubt it. Tim may know. So, for now, I went back to your script and switched off the stream monitor. This works. It would be great to see this logic integrated in the stream monitor, as it requires manual work in case of a fresh install. Unfortunately I'm not a php, but Java, C++ guy. @Tim Curtis can you please (re)consider, as this is not an isolated case, and it's improving moOde? Code: Oct 25 12:41 : alsa_output: Decoder is too slow; playing silence to avoid xrun RE: [PROBLEM] 9.1.2: MPD crashing ad-hoc - the_bertrum - 10-25-2024 (10-25-2024, 10:20 AM)kurt1970 Wrote: Hi @the_bertrum, @Tim Curtis Just checking that you did add the station to those that are monitored as well as turning the monitor on? RE: [PROBLEM] 9.1.2: MPD crashing ad-hoc - kurt1970 - 10-25-2024 All my stations (40+, I don't use the default moOde stations) are marked as being monitored, as I used to have drop-outs on all of them from time to time. Fact that almost all of them are flac hd stations may have to do something with that. But your script is great! I've a SSH terminal running a tail -f on the /var/log/mpd/log, and I see your script kicks in from time to time, mostly with no hearable interruption. Also, resource consumption of your script is negligible. Actually, I woke up at 4h30. Now it's 19h06, and the music keeps playing! Never had that experience! Not on moOde, and for sure not on Naim gear! Tx! I combined both of your scripts in 1: Code: moode@moode:~ $ cat XRUN_restart.sh RE: [PROBLEM] 9.1.2: MPD crashing ad-hoc - the_bertrum - 10-25-2024 I forgot it did timeout as well, I used to get them on occasion too. I remember I needed a modification in the case where CamillaDSP was engaged also because the xrun caused other errors in the log from CamillaDSP that swamped the xrun message, I'll see if I can find the version with that in (just in case). RE: [PROBLEM] 9.1.2: MPD crashing ad-hoc - kurt1970 - 10-25-2024 I don't use CamillaDSP, but indeed, I see that in your script you explicitly check on timeout as well. No, I'm only suffering from those xruns. |