-
Notifications
You must be signed in to change notification settings - Fork 108
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
stream not properly closed (NoBackendError | OSError: Too many open files) #134
Comments
Thanks for the complete script for testing this! I wasn't able to reproduce this with some quick testing (macOS, FFmpeg backend, using For FFmpeg in particular, is there any chance you can check whether the loopy script also leaves a bunch of |
good morning, I didn't realise that before trying to open the file with so the issue seems to be only with the |
Ah, that makes sense! I unfortunately don't have a great way to test this out here… I can imagine that we may need to do some additional explicit resource cleanup here: Lines 378 to 406 in ff9535d
But it will require some real GStreamer expertise or trial and error to figure out exactly what to clean up. |
I have run into the same problem while using
|
the audio is openned in a loop using with, but it seems that is not properly closed
in my system it will print about 500 lines, then raises the NoBackendError and the OSError when trying to open a new file
using
lsof
shows lines of the form (my limit is 1024)I've observed this issue with audioread.gstdec.GstAudioFile and audioread.ffdec.FFmpegAudioFile backends, couldn't test with audioread.rawread.RawAudioFile
The text was updated successfully, but these errors were encountered: