You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0: Calling run
0: Running
0: Done
0: Throwing
1: Calling run
1: Running
And then it deadlocks. If you press Ctrl-C it seems to be stuck in Runner._cancel_all_tasks(). Unfortunately Debugpy couldn't even interrupt it at that point.
If you remove stdout=asyncio.subprocess.PIPE then it doesn't deadlock.
CPython versions tested on:
3.9, 3.11
Operating systems tested on:
Linux, Windows
The text was updated successfully, but these errors were encountered:
The problem seems to be that asyncio.gather is leaking tasks when one throws and then asyncio.run is running Runner._cancel_all_tasks, if you use a TaskGroup this doesn't have an issue:
Bug report
Bug description:
Output:
And then it deadlocks. If you press Ctrl-C it seems to be stuck in
Runner._cancel_all_tasks()
. Unfortunately Debugpy couldn't even interrupt it at that point.If you remove
stdout=asyncio.subprocess.PIPE
then it doesn't deadlock.CPython versions tested on:
3.9, 3.11
Operating systems tested on:
Linux, Windows
The text was updated successfully, but these errors were encountered: