-
Notifications
You must be signed in to change notification settings - Fork 90
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
takePicture a file descriptor opened causing "too many files opened" error #61
Comments
I think the line causing not closing file descriptors is Files are closed only if both target_path and socket_path are not empty |
Please confirm the fix by @Sija - it's merged and looks fine, but I can't run any tests here. |
I'm testing it for the last few days and I can confirm it's working damn fine! :) |
I'm sure it does :) |
Should be fixed in 0.1.7 (ba9a9b9) |
It seems like each time takePicture is called, a new file descriptor is created and never closed, bringing to an error in the long run when no more file descriptor can be created.
You can just loop a takePicture call and launch this shell command
lsof | grep node
to see how many opened files you have
Can you confirm it's a file descriptor leak?
The text was updated successfully, but these errors were encountered: