-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crashing when USB devices removed #35
Comments
@drowe67, in VMware at least, following the test steps on Ubuntu 20.04 LTS results in "Sound Card 1 Open/Setup Error" and no other messages/crashes, so this issue is likely fixed. (It's definitely fixed in #82, or at least the error messages are improved anyway.) Also, I don't remember seeing crashes on Mac surrounding sound devices going away in a while, FWIW. |
Thanks @tmiw - could you pls try it on your Windows VM? (I don't have a Windows machine or VM handy). I might also ask the list just to double check. |
@drowe67, is the Docker script working for you? It looks like I'm getting "bad tar archive" errors now while building LPCnet:
EDIT: interesting:
and
Maybe random network/server issue? |
Docker build worked fine for me. Maybe try:
|
@drowe67, I edited my last post, actually. Even downloading the file by hand outside of Docker seemed to have issues. Weirdly, it seemed to decompress with no issue on macOS, so I'm not sure what's going on. |
@drowe67, okay, I came back to it after a few hours and the Docker build magically started working again. o_O Anyway, on Windows, I don't get any errors. It just seems to automatically choose the default sound device (Microsoft Sound Mapper?) instead. (I selected the USB sound card as the "radio" device and the built-in sound card as the "speaker/headset" one and unplugged the USB one after pushing Stop.) The audio-ux branch should hopefully make the behavior more consistent across platforms, I think. |
That all said, it looks like I do get a "sound card open/setup error" after closing and restarting FreeDV, so the behavior is at least consistent after then. Fortunately, no crashes either way. |
No reports of this issue from the digital voice mailing list, and the developers can't reproduce, so closing this one. |
Configure FreeDV with a radio and headset (two card configuration):
I've taken an initial look at the startRxStream. This is complex code and could use some refactoring. Backing out of any failed function calls is tricky, so many structures to delete/pull down.. To deal specifically with this bug, suggest a sanity check at the top to check the available PortAudio devices and confirm they are as expected, and bail early before everything is allocated.
This is a fairly important issue, as we would like to avoid any circumstances where FreeDV can crash. Messing with USB devices is common, so it would be good to trap this.
The text was updated successfully, but these errors were encountered: