![]() |
Track stops playing with CDSP Plugin ERROR: XRUN OCCURRED! - 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: Track stops playing with CDSP Plugin ERROR: XRUN OCCURRED! (/showthread.php?tid=4939) |
Track stops playing with CDSP Plugin ERROR: XRUN OCCURRED! - Sehnsucht - 07-02-2022 I listened to approx one hour of music when suddenly it stopped 5-10 mins into the fourth track, where each track was around 20 minutes long. /var/log/mpd/log contains over 2000 of these: CDSP Plugin ERROR: XRUN OCCURRED! I checked the flac file in Audacity and it looks fine. Played it again and it's fine. I've recently performed a fresh install of moOde 8.1.1 and I play purely local flac files from a USB attached hard drive. I use CamillaDSP with a fairly simple EQ (3 filters plus gain, on two channels). I've never had this problem before using moOode/CamillaDSP on recent moOde v7/v8 and I've listened continously for much longer than an hour on this and previous installs. I'm using a Pi 4 with 2gb ram, into an external DAC over USB. Code: pi@moode:/var/log/mpd $ moodeutl -l CamillaDSP EQ: Code: HD 660S Amir.yml RE: Track stops playing with CDSP Plugin ERROR: XRUN OCCURRED! - Tim Curtis - 07-02-2022 The first challenge is to isolate the problem and then develop a test case that can be reproduced - Can continuous playback be > one hour with other files? - Same on 32-bit? RE: Track stops playing with CDSP Plugin ERROR: XRUN OCCURRED! - Sehnsucht - 07-02-2022 (07-02-2022, 06:15 PM)Tim Curtis Wrote: The first challenge is to isolate the problem and then develop a test case that can be reproduced I'll stick to testing on this 64-bit install. btw: The timestamps are inconsistent in /var/log/mpd/log - some (those containing "INFO") are an hour early. BST vs GMT maybe (I'm in the UK)? It's repeatable. I rebooted and played the same four tracks starting 7:29pm: /var/log/mpd/log: 2022-07-02 18:29:37.096063 INFO [src/bin.rs:711] CamillaDSP version 1.0.0 2022-07-02 18:29:37.096165 INFO [src/bin.rs:712] Running on linux, aarch64 2022-07-02 18:29:37.195943 INFO [src/alsadevice.rs:156] Starting playback from Prepared state Jul 02 19:51 : player: played "USB/USB4tbMusic/G1.flac" Jul 02 20:13 : player: played "USB/USB4tbMusic/H1.flac" Jul 02 20:34 : player: played "USB/USB4tbMusic/I1.flac" CDSP Plugin ERROR: XRUN OCCURRED! 2212 of those in 5 mins then.... Jul 02 20:39 : output: Failed to flush filter on "ALSA Default" (alsa): snd_pcm_writei() failed: Broken pipe 2022-07-02 19:39:41.287130 INFO [src/bin.rs:420] Capture finished 2022-07-02 19:39:41.287342 INFO [src/bin.rs:410] Playback finished Jul 02 20:39 : player: played "USB/USB4tbMusic/J1.flac" I'll find another hour long album and see if I can repeat it. RE: Track stops playing with CDSP Plugin ERROR: XRUN OCCURRED! - Sehnsucht - 07-02-2022 (07-02-2022, 08:20 PM)Sehnsucht Wrote:(07-02-2022, 06:15 PM)Tim Curtis Wrote: The first challenge is to isolate the problem and then develop a test case that can be reproduced Yep, a different album with shorter tracks - after ~90 mins it happens again. I wasn't listening to it but the log shows that the attempt to play the album continues through the errors to the end of the album. I'll try the first album again (it fails quicker) and keep an eye on the buffer level in the CamillaDSP pipeline editor. After that maybe I'll try playing with the chunksize and queue limit. btw: in the pipeline editer page there's a "show log file" but clicking on that gives: "500 Internal Server Error Server got itself in trouble" (when the album is quite happily playing). RE: Track stops playing with CDSP Plugin ERROR: XRUN OCCURRED! - Tim Curtis - 07-02-2022 I'll add the "show log file" issue to the TODO list for upcoming 8.1.2 bug fix release. Do you see "Config is not valid, Invalid filter 'ir_hpcf'..." in Pipeline Configuration section? In the diyAudio Camilla thread there a posts regarding adjusting the chunk size. RE: Track stops playing with CDSP Plugin ERROR: XRUN OCCURRED! - Sehnsucht - 07-02-2022 (07-02-2022, 10:51 PM)Tim Curtis Wrote: Do you see "Config is not valid, Invalid filter 'ir_hpcf'..." in Pipeline Configuration section?Nope, "config is valid". I changed to flat and back to mine, did check etc. It's always valid. Ok, after the current test is complete I'll try changing just chunk size. I don't care about latency and I've got loads of spare ram... Edit: Failed again. I was running htop and nothing unusual appeared when it happened. On the pipeline page it just changed the status to STALLED. Trying again with a larger chunk size. Going from 4096 to 4*4096 = 16384. Oddly, having done that, the "Capture Samplerate" which I think was a static 44100 before is now fluctutating between 48000, 44100 and being blank. (I'm listening to 44100 stereo CD rips). Edit again: Nope, that larger chunksize made no difference. I've read the docs about queuelimit but I don't understand them. Is the default 4 or 128? Is moOde using the alsa cdsp plugin? No idea. I'll try setting this to 1, then I'll try making it larger. Edit again: My first attempt at using queuelimit 1 (chunksize still 16384) failed (that is, the error didn't reproduce) but I notice that I accidentally selected "play tracks in random order" mode, and it reminded me that I've listened to music for much longer than an hour in any given day since the upgrade, but that I probably always listened to multiple, shorter albums, or paused/unpaused, skipped etc. So possibly the problem is specifically related to continous playback. But...like I said, I can't see anything like memory leaks, cpu usage increasing etc. Edit again: /var/log/mpd/log is empty and syslog only goes back a couple of hours. I'm going to try with the last v7 image. RE: Track stops playing with CDSP Plugin ERROR: XRUN OCCURRED! - Sehnsucht - 07-03-2022 Reverting to 7.6.1 has fixed my issue. It also fixes the samba problem I mentioned previously: https://moodeaudio.org/forum/showthread.php?tid=4777&pid=40947#pid40947 I don't have any spare SD cards to test two versions of moOde in parallel so I'm going to leave it there for now; I already spent several hours on this and I'm out of ideas. It doesn't seem like this problem would be very hard for interested parties to reproduce. I posted about it on diyaudio and the CamillaDsp dev said "I looked in the link, and my guess is that there is an issue with the alsa_cdsp plugin. I don't know what version of that is used in moOde. Let's wait and see if anyone in the moOde forum has some idea first.". RE: Track stops playing with CDSP Plugin ERROR: XRUN OCCURRED! - Tim Curtis - 07-03-2022 We might need @bitlab to do a bit of investigation. We are using alsa_cdsp plugin v1.1.0 (March 8) the latest version from the author @scripple https://github.com/bitkeeper/alsa_cdsp -Tim |