Skip to content
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

Crashes in Windows 10 #12089

Open
alencodes opened this issue Jan 17, 2020 · 6 comments
Open

Crashes in Windows 10 #12089

alencodes opened this issue Jan 17, 2020 · 6 comments
Labels

Comments

@alencodes
Copy link

Frequently this happens with command shell opened in windows 10.
Just tried repeatedly printing a variable

Unhandled exception in event loop:
  File "c:\users\nishabuk1\appdata\local\programs\python\python38\lib\asyncio\proactor_events.py", line 768, in _loop_self_reading
    f.result()  # may raise
  File "c:\users\nishabuk1\appdata\local\programs\python\python38\lib\asyncio\windows_events.py", line 808, in _poll
    value = callback(transferred, key, ov)
  File "c:\users\nishabuk1\appdata\local\programs\python\python38\lib\asyncio\windows_events.py", line 457, in finish_recv
    raise ConnectionResetError(*exc.args)

Exception [WinError 995] The I/O operation has been aborted because of either a thread exit or an application request
Press ENTER to continue...

C:\Users\nishabuk1>python -c "import IPython; print(IPython.sys_info())"
{'commit_hash': '3544c180b',
'commit_source': 'installation',
'default_encoding': 'utf-8',
'ipython_path': 'C:\Users\nishabuk1\AppData\Local\Programs\Python\Python38\Lib\site-packages\IPython',
'ipython_version': '7.11.1',
'os_name': 'nt',
'platform': 'Windows-10-10.0.17763-SP0',
'sys_executable': 'C:\Users\nishabuk1\AppData\Local\Programs\Python\Python38\python.exe',
'sys_platform': 'win32',
'sys_version': '3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC '
'v.1916 64 bit (AMD64)]'}

@meeseeksdev tag windows

@Carreau
Copy link
Member

Carreau commented Jan 18, 2020

It might be a duplicate of #12049

and (mr meeseeks only reply to comments, not to original issues when you submit)

@farisachugthai
Copy link
Contributor

Hey so I've been running into this issue as well. This is by no means an actual fix; however, does the problem seem to stop if you do the following?


import asyncio
asyncio.log.logger.setLevel(50)

I'm still not sure why the eventloop complains so often; however using the PYTHONASYNCIODEBUG environment variable allows you to inspect what's going on a little bit more, and there I realized that the default logger for asyncio has it's level set to INFO which causes incessant blocks to the REPL. I think.

@alencodes
Copy link
Author

I tried that way @farisachugthai , Still the same error pop up.

@alencodes
Copy link
Author

Issue is reproducible in updated version also

In [1]: import IPython

In [2]: IPython.sys_info()
Out[2]: "{'commit_hash': '8bda98619',\n 'commit_source': 'installation',\n 'default_encoding': 'utf-8',\n 'ipython_path': 'C:\\\\Users\\\\nishabuk1\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python38\\\\Lib\\\\site-packages\\\\IPython',\n 'ipython_version': '7.12.0',\n 'os_name': 'nt',\n 'platform': 'Windows-10-10.0.17763-SP0',\n 'sys_executable': 'c:\\\\users\\\\nishabuk1\\\\appdata\\\\local\\\\programs\\\\python\\\\python38\\\\python.exe',\n 'sys_platform': 'win32',\n 'sys_version': '3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC '\n                'v.1916 64 bit (AMD64)]'}"

In [3]:


Unhandled exception in event loop:
  File "c:\users\nishabuk1\appdata\local\programs\python\python38\lib\asyncio\proactor_events.py", line 768, in _loop_self_reading
    f.result()  # may raise
  File "c:\users\nishabuk1\appdata\local\programs\python\python38\lib\asyncio\windows_events.py", line 808, in _poll
    value = callback(transferred, key, ov)
  File "c:\users\nishabuk1\appdata\local\programs\python\python38\lib\asyncio\windows_events.py", line 457, in finish_recv
    raise ConnectionResetError(*exc.args)

Exception [WinError 995] The I/O operation has been aborted because of either a thread exit or an application request
Press ENTER to continue...
In [3]:

@pl-marasco
Copy link

@alencodes
try the solution mentioned here:

#12049 (comment)

@alencodes
Copy link
Author

Thanks @PhenoloBoy That worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants