-
Notifications
You must be signed in to change notification settings - Fork 52
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
ProcessPool issue : error: (9, 'Bad file descriptor') #10
Comments
Hi, I'm trying to get my hands on a MAC so I can try to reproduce the issue. I will come back once I succeed. |
All tests are passing on OSX. Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
Some updates: I did not manage to get a MAC to try to reproduce your issue. Nevertheless, I managed to set up test automation on Travis including OSX OS. https://travis-ci.org/noxdafox/pebble All tests are passing successfully. I am pretty confident that the issue you suffer from would have most likely shown itself in the tests as the coverage is pretty good. This narrows down the issue to your set-up. I wonder what can cause that bad file descriptor. Are you, by any chance, terminating the Pool workers manually? |
@noxdafox I have the same error on a mac when using
|
The traceback indicates that the OS pipe used to communicate with the worker processes gets somehow closed. Are the tasks completed correctly? If so, this might happen when the Yet I want to make sure this is not affecting the task processing. |
@noxdafox The tasks are indeed completed correctly. So far as I can tell it's just noise. |
In Python 2, select exception have a custom class. When shutting down the ProcessPool, the message reader might receive a select.error which was not handled. Signed-off-by: cafama <matteo.cafasso@f-secure.com>
In Python 2, select exception have a custom class. When shutting down the ProcessPool, the message reader might receive a select.error which was not handled. Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
The following branch should fix the issue. The issue seems to affect only Python 2 and it's due to a custom select exception which was not dealt with during the |
issue #10: channel, wrap select.error into OSError
Patch merged and released in version 4.3.3. Thanks @e271828- for trying it out. |
Sorry I arrive late since I was on vacation, but version 4.3.3 is also OK for me on the Mac OSX. |
Np, thank you for reporting the issue! |
Hello again.
An other issue with the example : (4.2.1 and moc osx 10.12.5).
I cannot go threw the example on https://pypi.python.org/pypi/Pebble, see code below
It gives at the end of exectution :
Thank you again in advance for youy help ! :-)
The text was updated successfully, but these errors were encountered: