stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: ERROR:asyncio:Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
Not sure what this means, anyone have any idea?
ERROR:asyncio:Exception in callback _ProactorBasePipeTransport._call_connection_lost(None) handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)> Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64__qbz5n2kfra8p0\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, *self._args) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64__qbz5n2kfra8p0\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
Steps to reproduce the problem
Git pull Start webui
What should have happened?
No errors.
Commit where the problem happens
Latest
What platforms do you use to access the UI ?
Windows
What browsers do you use to access the UI ?
Mozilla Firefox, Google Chrome
Command Line Arguments
COMMANDLINE_ARGS=--port 7878 --listen --api --cors-allow-origins=http://127.0.0.1:3456 --xformers
List of extensions
https://imgur.com/a/yP2KecM
Console logs
venv "C:\Users\chlyw\Desktop\Automatic1111\venv\Scripts\Python.exe"
Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec 6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)]
Commit hash: 3e0f9a75438fa815429b5530261bcf7d80f3f101
Installing requirements for Web UI
Installing requirements for Batch Face Swap
Installing requirements for scikit_learn
loading Smart Crop reqs from C:\Users\chlyw\Desktop\Automatic1111\extensions\sd_smartprocess\requirements.txt
Checking Smart Crop requirements.
Installing imageio-ffmpeg requirement for depthmap script
Installing pyqt5 requirement for depthmap script
Launching Web UI with arguments: --port 7878 --listen --api --cors-allow-origins=http://127.0.0.1:3456 --xformers
Error loading script: sd_save_intermediate_images.py
Traceback (most recent call last):
File "C:\Users\chlyw\Desktop\Automatic1111\modules\scripts.py", line 229, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "C:\Users\chlyw\Desktop\Automatic1111\modules\script_loading.py", line 11, in load_module
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "C:\Users\chlyw\Desktop\Automatic1111\extensions\sd_save_intermediate_images\scripts\sd_save_intermediate_images.py", line 12, in <module>
from modules.sd_samplers import KDiffusionSampler, sample_to_image
ImportError: cannot import name 'KDiffusionSampler' from 'modules.sd_samplers' (C:\Users\chlyw\Desktop\Automatic1111\modules\sd_samplers.py)
Error loading script: sonar.py
Traceback (most recent call last):
File "C:\Users\chlyw\Desktop\Automatic1111\modules\scripts.py", line 229, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "C:\Users\chlyw\Desktop\Automatic1111\modules\script_loading.py", line 11, in load_module
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "C:\Users\chlyw\Desktop\Automatic1111\extensions\stable-diffusion-webui-sonar\scripts\sonar.py", line 17, in <module>
KDiffusionSampler, CFGDenoiser, SamplerData, setup_img2img_steps, inspect
NameError: name 'KDiffusionSampler' is not defined
Loading weights [cc6cb27103] from C:\Users\chlyw\Desktop\Automatic1111\model.ckpt
Creating model from config: C:\Users\chlyw\Desktop\Automatic1111\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(16): ALATSuckFace, andtat, art by EMB_skstest3, bad_prompt_version2, blowjobpose, corneo_side_doggy, dpthrt, durerr, jcon-subject, m-geo, malikafarver, margot-robbie-subject, midjourneystyle, NG_DeepNegative_V1_75T, realcumAI, samdoesarts
Textual inversion embeddings skipped(43): ActionHelper, AnimeScreenCap, anthro, CandyPunk, cartoonish_doll, CGI_Animation-185, CGI_Animation-245, CGI_Animation, ChemPunk-96, CinemaHelper, CutAway-500, cyberArmor, Deneuve Station, fragmenv2, HyperSmoke, kc32-v4-5000, Kipaki-150, laxpeintV2, NegLowRes-500, NegMutation-500, PaintStyle4, PhotoHelper, pixelart-2, pixelart-3, pixelart-hard, pixelart-soft, pixelart, pixelizer, PortraitHelper, protogemb, protogemb2, rzminjourney, SCG768-Euphoria, SCG768-Nebula, tf86movie-550, tfboxart, Tod_Ryan, TyyliTyyli-101, Verdict Rubicon, VikingPunk, VintageHelper-600, VintageHelper, vray-2
Model loaded in 6.6s (load weights from disk: 3.1s, create model: 0.5s, apply weights to model: 0.6s, apply half(): 0.6s, move model to device: 0.6s, load textual inversion embeddings: 1.0s).
Running on local URL: http://0.0.0.0:7878
To create a public link, set `share=True` in `launch()`.
ERROR:asyncio:Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64__qbz5n2kfra8p0\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64__qbz5n2kfra8p0\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
Additional information
No response
Same -- it's been happening to me for weeks and never got around to posting. Seems harmless but is very annoying if I wanted to find something in the console as it repeats often.
I had a hypothesis it was caused by auto-tls extension, but I don't think you hav that one @bbecausereasonss ?
Error persists from py3.9 to 3.10.
Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
File "C:\Users\hal\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\hal\AppData\Local\Programs\Python\Python310\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
yep same happening here too, what is trying to connect remotely and why and why is it failing.
yep same happening here too, what is trying to connect remotely and why and why is it failing.
Likely there's nothing connecting remotely, but instead the front end code running in your web browser connecting to the back end code running in your terminal window. Pretty common thing.
I poked around a bit but I'm not the best Python guy. The error message is actually pretty unhelpful as the calling function is not shown in the console. What we need is a full stack trace, which would require running a debugger. Not my cup of tea, hoping someone else picks this up.
I have the same mistake:
Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
File "C:\Games\stable-diffusion-portable-main\python\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\Games\stable-diffusion-portable-main\python\lib\asyncio\proactor_events.py", line 162, in _call_connection_lost
self._sock.shutdown(socket.SHUT_RDWR)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
The same question. Exception in callback _ProactorBasePipeTransport._call_connection_lost(None) 提示:Python 运行时抛出了一个异常。请检查疑难解答页面。 handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)> Traceback (most recent call last): File "F:\Software\Python3106\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, *self._args) File "F:\Software\Python3106\lib\asyncio\proactor_events.py", line 162, in _call_connection_lost self._sock.shutdown(socket.SHUT_RDWR) ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。 提示:Python 运行时抛出了一个异常。请检查疑难解答页面。
I just change my default browser from Edge to Edge Dev,and then the problem didnt occur. But actually before this problem occured, the Edge was already damaged, it couldnt open the website, so I dont know if there are any connection between the Edge and SD-WebUI. Maybe this method can help you.
I just change my default browser from Edge to Edge Dev,and then the problem didnt occur. But actually before this problem occured, the Edge was already damaged, it couldnt open the website, so I dont know if there are any connection between the Edge and SD-WebUI. Maybe this method can help you.
Tried to repro in dev Edge, and it seemed the problem went away at first. But after a couple minutes of clicking around, it has come back. :(
Unsure if related to anything, but the browser js console is full of errors e.g.
s:32 [svelte-i18n] The message "Change checkpoint" was not found in "en-US", "en". pd @ index.4395ab38.js:32
and now +1
Traceback (most recent call last): File "\python\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, *self._args) File "\python\lib\asyncio\proactor_events.py", line 162, in _call_connection_lost self._sock.shutdown(socket.SHUT_RDWR) ConnectionResetError: [WinError 10054]
preview not view.
I just started getting it after keeping my installation fairly clean for a while. I was downloading a bunch of extensions and scripts so I am not sure exactly which one is doing it unfortunately. If I figure it out I will let you know which one- I am not a coder so my fix will be removing the script lol.
https://stackoverflow.com/questions/8814802/python-errno-10054-an-existing-connection-was-forcibly-closed-by-the-remote-h?rq=2
yep same happening here too.
Exception in callback _ProactorBasePipeTransport._call_connection_lost(None) 提示:Python 运行时抛出了一个异常。请检查疑难解答页面。 handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)> Traceback (most recent call last): File "asyncio\events.py", line 80, in _run File "asyncio\proactor_events.py", line 165, in _call_connection_lost ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。 提示:Python 运行时抛出了一个异常。请检查疑难解答页面。 Exception in callback _ProactorBasePipeTransport._call_connection_lost(None) 提示:Python 运行时抛出了一个异常。请检查疑难解答页面。 handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)> Traceback (most recent call last): File "asyncio\events.py", line 80, in _run File "asyncio\proactor_events.py", line 165, in _call_connection_lost ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。 提示:Python 运行时抛出了一个异常。请检查疑难解答页面。 Exception in callback _ProactorBasePipeTransport._call_connection_lost(None) 提示:Python 运行时抛出了一个异常。请检查疑难解答页面。 handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)> Traceback (most recent call last): File "asyncio\events.py", line 80, in _run File "asyncio\proactor_events.py", line 165, in _call_connection_lost ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。 提示:Python 运行时抛出了一个异常。请检查疑难解答页面。
I also had the same problem. I took a screenshot of the source code. I can't understand the python code here. I hope I can take a look at this problem when I am free. Is it the reason why VPN is started?
+1
2023-11-29 17:56:55 ERROR:Exception in callback _ProactorBasePipeTransport._call_connection_lost(None) handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)> Traceback (most recent call last): File "I:\Chat-AI-2311\text-generation-webui-snapshot-2023-11-05\installer_files\env\Lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, *self._args) File "I:\Chat-AI-2311\text-generation-webui-snapshot-2023-11-05\installer_files\env\Lib\asyncio\proactor_events.py", line 165, in _call_connection_lost self._sock.shutdown(socket.SHUT_RDWR) ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。
I had similar issue using aiohttp and mysql connector. I ended up using : asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()), to stop error loggings (issue was only arising on Windows, not linux). https://stackoverflow.com/questions/62412754/python-asyncio-errors-oserror-winerror-6-the-handle-is-invalid-and-runtim