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 in callback _ProactorBasePipeTransport._call_connection_lost(None) asyncio (Windows) #4788

Closed
1 task done
erew123 opened this issue Dec 2, 2023 · 2 comments
Closed
1 task done
Labels
bug Something isn't working stale

Comments

@erew123
Copy link
Contributor

erew123 commented Dec 2, 2023

Describe the bug

Pretty sure this is a windows only issue (from any research on the internet)

2023-12-02 03:15:36 ERROR:Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
File "C:\AI\text-generation-webui\installer_files\env\Lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\AI\text-generation-webui\installer_files\env\Lib\asyncio\proactor_events.py", line 165, in _call_connection_lost
self._sock.shutdown(socket.SHUT_RDWR)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

Is there an existing issue for this?

  • I have searched the existing issues

Reproduction

Load up the text-generation-webui on windows

Screenshot

image
image

Logs

2023-12-02 03:15:36 ERROR:Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
  File "C:\AI\text-generation-webui\installer_files\env\Lib\asyncio\events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "C:\AI\text-generation-webui\installer_files\env\Lib\asyncio\proactor_events.py", line 165, in _call_connection_lost
    self._sock.shutdown(socket.SHUT_RDWR)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

System Info

Windows 11. Nothing special about it. Tested with being fully up to date as of 2nd December. Google Chrome too (which may be somehow related, based on reports I saw on the internet that Edge doesnt cause this issue).

I however found someone listing a possible solution to this:

https://stackoverflow.com/questions/62412754/python-asyncio-errors-oserror-winerror-6-the-handle-is-invalid-and-runtim

Which seems to be related to this https://docs.python.org/3/library/asyncio-policy.html

I thought it could have been related to the extension I wrote, but I disabled the extension (as you can see in the screenshot) 

It doesn't seem to cause any problems, its just annoying. I think it started maybe 1-2 months ago (at a guess).
@erew123 erew123 added the bug Something isn't working label Dec 2, 2023
@Desm0nt
Copy link

Desm0nt commented Dec 15, 2023

Same bug with mixtral model. First call to model with long (about 3k+) context in dialogue produce this problem. If I regenerate response after this - it generates fine, but when I send next request (with context increased by previous response) - it's again fail with same error.

@github-actions github-actions bot added the stale label Jan 26, 2024
Copy link

This issue has been closed due to inactivity for 6 weeks. If you believe it is still relevant, please leave a comment below. You can tag a developer in your comment.

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

No branches or pull requests

2 participants