-
Notifications
You must be signed in to change notification settings - Fork 550
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
Pathlib throws "Bad file descriptor", but only with uvloop
.
#414
Comments
Is this fixed by #408 ? |
Doesn't seem to be, I just tested on 0.15.3, and I get the same results |
Update: on 16.0 I no longer get the core dump, but the 'bad file descriptor' persists. I wonder if there's something wrong with my system, is there some way to debug the system side of file descriptors? |
Fyi: I don't know if this is related to that issue, but we see similar log entries of |
We are seeing this a lot with
|
@decorator-factory can you try my patch #466 ? |
Yes I’ll putt this through it’s paces and report back
…On Wed, May 11, 2022 at 3:24 AM Thomas Grainger ***@***.***> wrote:
@decorator-factory <https://github.com/decorator-factory> can you try my
patch #466 <#466> ?
—
Reply to this email directly, view it on GitHub
<#414 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEFQS5DKW7J6FUMDT7CR6TVJODFRANCNFSM45KX23UA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@graingert Yes this fixes it for me. Thanks for finding the issue |
@graingert I can confirm that your one-liner fixes the issue for me as well. I've been running my application for the last few days with your fix, and I haven't had any Thanks! |
PYTHONASYNCIODEBUG
in env?: nouvloop
, the script works just fine.When spawning processes and creating file, an
OSError: [Errno 9] Bad file descriptor
sometimes appears.Script and output: https://gist.github.com/decorator-factory/6b5276ab5fb87f4c009f1d22dc4b20a9
Sometimes it also just hangs, with 0 CPU consumption. When I press CTRL+C, I get this traceback: https://gist.github.com/decorator-factory/888a584cbc4d44600ea62f5e7e344b66
Sometimes it completes successfully.
The text was updated successfully, but these errors were encountered: