Audio stops; need help with error messages #702
Replies: 2 comments 2 replies
-
As I said in one of your earlier posts, this does not appear to be an issue with bluealsa or mpg123 (nor the rainstorm script for that matter). Something else is happening in the system during the night which is causing playback to stop. That is why your search terms are revealing "nothing interesting". I would advise to find out what time the playback is stopping, then look through the system logs for whatever is happening around that time. The underrun is unexpected - the pi zero2 is more than capable of playing a mp3 file from the sd card using the bluetooth SBC codec without breaking a sweat. So although mpg123 recovers the stream, perhaps whatever caused the underrun has also caused other more serious problems? |
Beta Was this translation helpful? Give feedback.
-
Yes - I recall your saying that it seemed to be a system issue. That's why I shut off wifi just before beginning playback (and unmounting a network drive). It's rather difficult to pinpoint even an approximate time when playback stops as |
Beta Was this translation helpful? Give feedback.
-
This is a repeat/revision of #700; after reading it again, I realized I complicated the question far too much. I've marked #700 as closed.
Here's what's happening: Occasionally, during playback using
bluez-alsa
, the audio output just stops as shown below.I'd like to try to get a handle on the cause, and hopefully find a cure.
First, I am using a script named
rainstorm
originally supplied by @borine. I have modified it slightly, and I run it fromcron
(i.e. theroot crontab
instead ofsystemd
) on my RPi Zero 2W system.Here's the
rainstorm
script as currently used:And here's the job as entered in the root crontab:
The playback stopped sometime during the night (well before the scheduled termination as shown in the crontab).
I looked at two logs for clues:
journalctl
and/home/pi/rainstormlog.txt
From
journalctl
:journalctl -S yesterday | less
I used the following search terms: blue, alsa, rainstorm, mpg123. But
journalctl
turned up nothing "interesting"From
/home/pi/rainstormlog.txt
, following is the complete log entry from April 30:You can see that an
underrun
occurred during the "third round" of playback, but I'm not sure that (underrun
) is significant as it occurs occasionally without audio stopping.However, the "wheels come off" in the 4th round of playback. Playback appears to start, but then gets a
SIGTERM
(from mycron
job apparently!), which is followed by the error:Fatal problem with alsa output, error -19.
Any and all feedback is welcome - I don't have a clue, but I wonder if some additional logging by
systemd
might help??Beta Was this translation helpful? Give feedback.
All reactions