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

Exception ignored in: <function BaseEventLoop.__del__ ...> #451

Open
ptsl opened this issue Jul 28, 2023 · 4 comments
Open

Exception ignored in: <function BaseEventLoop.__del__ ...> #451

ptsl opened this issue Jul 28, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@ptsl
Copy link

ptsl commented Jul 28, 2023

Bug:
A strange traceback is produced with syntactically correct Python code.

How to reproduce:
Sometimes I type in a syntactically valid Python code (which ends with print(vars(myobj)) and the following traceback is produced. To get rid of the traceback, I just type any key (which makes the code syntactically incorrect), delete it with Backspace and whoa - the traceback disappears.

Traceback:

Exception ignored in: <function BaseEventLoop.__del__ at 0x7fdf013c12d0>
Traceback (most recent call last):
  File "/build/vw-master-native-gen5-gcc11-linux-server-mm-dev-master/lib/python3.10/asyncio/base_events.py", line 688, in __del__
    _warn(f"unclosed event loop {self!r}", ResourceWarning, source=self)
ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=False>
Exception ignored in: <socket.socket fd=6, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0>
Traceback (most recent call last):
  File "/home/me/.vscode/extensions/almenon.arepl-2.0.5/node_modules/arepl-backend/python/arepl_python_evaluator.py", line 243, in exec_input
    run_context.run(exec, exec_args.evalCode, eval_locals)
ResourceWarning: unclosed <socket.socket fd=6, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0>
Exception ignored in: <socket.socket fd=7, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0>
Traceback (most recent call last):
  File "/home/me/.vscode/extensions/almenon.arepl-2.0.5/node_modules/arepl-backend/python/arepl_python_evaluator.py", line 243, in exec_input
    run_context.run(exec, exec_args.evalCode, eval_locals)
ResourceWarning: unclosed <socket.socket fd=7, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0>
Exception ignored in: <function BaseEventLoop.__del__ at 0x7fdf013c12d0>
Traceback (most recent call last):
  File "/build/vw-master-native-gen5-gcc11-linux-server-mm-dev-master/lib/python3.10/asyncio/base_events.py", line 688, in __del__
    _warn(f"unclosed event loop {self!r}", ResourceWarning, source=self)
ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=False>
Exception ignored in: <socket.socket fd=18, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0>
Traceback (most recent call last):
  File "/home/me/.vscode/extensions/almenon.arepl-2.0.5/node_modules/arepl-backend/python/arepl_python_evaluator.py", line 243, in exec_input
    run_context.run(exec, exec_args.evalCode, eval_locals)
ResourceWarning: unclosed <socket.socket fd=18, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0>
Exception ignored in: <socket.socket fd=19, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0>
Traceback (most recent call last):
  File "/home/me/.vscode/extensions/almenon.arepl-2.0.5/node_modules/arepl-backend/python/arepl_python_evaluator.py", line 243, in exec_input
    run_context.run(exec, exec_args.evalCode, eval_locals)
ResourceWarning: unclosed <socket.socket fd=19, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0>

Other Information (please complete the following information):

  • OS: Linux 5.15.0-78-generic
  • Python Version: 3.10.8
@Almenon
Copy link
Owner

Almenon commented Jul 29, 2023

wierd..... never seen that one before. Might be fixed by #439

@Almenon Almenon added the bug Something isn't working label Jul 29, 2023
@ptsl
Copy link
Author

ptsl commented Jul 31, 2023

In the meanwhile... does AREPL produce a log or something that I could send in to help understand the issue?

@ptsl
Copy link
Author

ptsl commented Jul 31, 2023

I've also noticed that in:

from arepl_dump import dump

the identifier arepl_dump is not resolved, that is, it is underlined with a red wobbly line. Could it be connected to the problem somehow? (It definitely means that VSCode cannot see some stuff it should see.)

@Almenon
Copy link
Owner

Almenon commented Aug 1, 2023

No log. If you want, you could try different versions of python and see what happens.

I've also noticed

No, not connected. The VSCode python extension doesn't like arepl_dump because it's unaware that it's available in the context of AREPL. You can ignore the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants