-
Notifications
You must be signed in to change notification settings - Fork 321
Description
Getting the following error on direwolf after transmitting every time I boot.
Audio input device 0 error code -77: File descriptor in bad state
Terminating after audio input failure
It prints the first line a bunch of times then the second line and quits. Sometimes if I reboot the raspberry pi enough it snaps out of it and returns to normal operations. My APRS setup is a raspberry pi with a USB sound card (Corsair) hooked up to a UV5R on VOX set to 1. It shows up in alsamixer and is the right card number as configured in the direwolf.conf file and I'm launching explicitly opening that file. The device is visible both before and after the failure of direwolf. Searching around I only found this thread where someone got the same error, but I don't have kissparams or kissattach in my path, only kissutils.
For now I have a watchdog that looks for the direwolf process and if it's not running reboots my entire raspberry pi and I have startup scripts that start things in-order (with a 5 minute delay before reboot so I can debug). If the stars align it starts up properly every once in a while, runs for days, then fails and goes back into the boot loop until it gets lucky again. Would really like to resolve this issue, going to get a second usb sound card to try that in the meantime but until then any advice is appreciated!