othmar52 / eurorack-rotating-audio-recorder

raspberry pi based automatic audio recorder
2 stars 0 forks source link

sometimes audio recording freezes on the raspberry pi #1

Open othmar52 opened 2 years ago

othmar52 commented 2 years ago

every few hours the VU-meter leds freezes and the whole recorder becomes unresponsive.

it seems to be related to this issue:
Python sounddevice input stream failing on Raspberry pi

logging in via ssh and restarting the recorder daemon solves the problem:
sudo systemctl restart recorder

othmar52 commented 2 years ago

as a workaround added in 99eeb2f488de09d84815bed37109f00e49ef5696 this cronjob can be added

*/5 * * * *     python /home/pi/eurorack-rotating-audio-recorder/rotating-audio-recorder.py checkfreeze > /dev/null 2>&1

this restarts the recorder service in case a hanging recorder instance is detected
hopefully the actual cause will be resolved in pythons sounddevice library