-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
asyncio.create_subprocess_shell().communicate() hangs #433
Comments
Can you provide a minimum reproducing example so I can take a look at it? |
Ok here you go. Looks like it has to do with subprocessing out to python as well. (Using an echo command doesn't have the same issue.) Viztracer version is In print("hello viztracer") In import asyncio
async def run_echo():
process = await asyncio.create_subprocess_shell(
"python subpython.py",
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE)
stdout, stderr = await process.communicate()
print(stdout)
asyncio.run(run_echo()) Run
Run
|
The root cause is my monkey patch to |
Thank you so much! |
I installed from source and it works. Thanks again! |
No problem :) |
I'm trying viztracer with an asyncio program that spawns many processes via
asyncio.create_subprocess_shell()
. It works when run with python but hangs at the first.communicate()
call under viztracer.Any tips on where to look when debugging this? Thanks!
The text was updated successfully, but these errors were encountered: