This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cmeyer
Recipients Ben.Darnell, Jonathan Slenders, PeterL777, Rustam S., Segev Finer, asvetlov, cjrh, cmeyer, yselivanov
Date 2020-05-12.01:20:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589246402.37.0.815294949664.issue39010@roundup.psfhosted.org>
In-reply-to
Content
Here is another way to reproduce this (or an extremely similar) error without a loop. Since may be a race condition, I'm not sure this works 100% of the time on all machines - but it did on several machines I tried.

```
import asyncio

loop = asyncio.get_event_loop()

def func():
    pass

f = loop.run_in_executor(None, func)
loop.stop()
loop.run_forever()
loop.stop()
loop.run_forever()
loop.stop()
loop.run_forever()
```

```
Error on reading from the event loop self pipe
loop: <ProactorEventLoop running=True closed=False debug=False>
Traceback (most recent call last):
  File "C:\Miniconda3\envs\py38\lib\asyncio\windows_events.py", line 453, in finish_recv
    return ov.getresult()
OSError: [WinError 995] The I/O operation has been aborted because of either a thread exit or an application request

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Miniconda3\envs\py38\lib\asyncio\proactor_events.py", line 768, in _loop_self_reading
    f.result()  # may raise
  File "C:\Miniconda3\envs\py38\lib\asyncio\windows_events.py", line 808, in _poll
    value = callback(transferred, key, ov)
  File "C:\Miniconda3\envs\py38\lib\asyncio\windows_events.py", line 457, in finish_recv
    raise ConnectionResetError(*exc.args)
ConnectionResetError: [WinError 995] The I/O operation has been aborted because of either a thread exit or an application request
```
History
Date User Action Args
2020-05-12 01:20:02cmeyersetrecipients: + cmeyer, asvetlov, cjrh, Ben.Darnell, yselivanov, Segev Finer, PeterL777, Jonathan Slenders, Rustam S.
2020-05-12 01:20:02cmeyersetmessageid: <1589246402.37.0.815294949664.issue39010@roundup.psfhosted.org>
2020-05-12 01:20:02cmeyerlinkissue39010 messages
2020-05-12 01:20:02cmeyercreate