-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
subprocess.Popen not closed when using subclip #518
Comments
Can you provide a minimal code to reproduce the effect ? |
Yes, it's with the audio fix. I am actually just using one subclip at a time. It's just a function that is called over an over again, thus after sufficient calls leading to an error. |
@Zulko
On my local development machine I get a |
@gyglim I've ran your code above, and after 1,000 loops, it still seems stable (I'm running the program top, and I see the number of processes fluxuate between 220 and 250, but always comes back to 220 after a minute or so. Can you double check that you still get errors with this code, with the current repo version? |
@gyglim I let this run to completion, and I do not get the error you reported. I will admit that memory usage got somewhat high, and at times we have 20 or so ffmpeg processes open at a time. |
Ok, I will have another look. I believe the issue comes from using wait() in From the subprocess documentation:
It is my understanding that the buffer can run full when using Anyways, we changed to |
Closing this as it's a very old issue without any new activity in several years. Feel free to reopen it – or better yet, open a new issue following our issue template and referencing this issue – if the problem persists with the latest recommended version of MoviePy. |
Hi
I have another issue with system calls that remain open, eventually leading to an OSError: [Errno 24] Too many open files.
It happens when using subclip. This is the call trace, leading to the call which is not closed:
Relates to these:
#501
#255
#57
@Zulko Any suggestion as to here I should go looking for a missing
del
orclose
?Regards,
Michael
The text was updated successfully, but these errors were encountered: