stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

OSError: Socket is closed

Open Flonixcorn opened this issue 3 years ago • 1 comments

Exception in thread Thread-1503 (handler): Traceback (most recent call last): File "C:\Users\Flonixcorn\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\Flonixcorn\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "X:\AI\SUPER SD 2.0 Dependencies\stable-diffusion-webui\venv\lib\site-packages\gradio\tunneling.py", line 39, in handler chan.send(data) File "X:\AI\SUPER SD 2.0 Dependencies\stable-diffusion-webui\venv\lib\site-packages\paramiko\channel.py", line 801, in send return self._send(s, m) File "X:\AI\SUPER SD 2.0 Dependencies\stable-diffusion-webui\venv\lib\site-packages\paramiko\channel.py", line 1198, in _send raise socket.error("Socket is closed") OSError: Socket is closed

To Reproduce using arguments —fullprecison and —nohalf and —share Using gradio webapp as remote access not local Since gradio changed to more web sockets getting errors similar and like this

Desktop (please complete the following information):

  • Windows
  • Browser [e.g. chr
  • cccc5a20fce4bde9a4299f8790366790735f1d05

Flonixcorn avatar Oct 17 '22 08:10 Flonixcorn

Been experiencing this issue myself.

Exception in thread Thread-13806 (handler):
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/home/sam/Desktop/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/tunneling.py", line 39, in handler
    chan.send(data)
  File "/home/sam/Desktop/stable-diffusion-webui/venv/lib/python3.10/site-packages/paramiko/channel.py", line 801, in send
    return self._send(s, m)
  File "/home/sam/Desktop/stable-diffusion-webui/venv/lib/python3.10/site-packages/paramiko/channel.py", line 1198, in _send
    raise socket.error("Socket is closed")
OSError: Socket is closed
Exception in thread Thread-13819 (handler):
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/home/sam/Desktop/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/tunneling.py", line 39, in handler
    chan.send(data)
  File "/home/sam/Desktop/stable-diffusion-webui/venv/lib/python3.10/site-packages/paramiko/channel.py", line 801, in send
    return self._send(s, m)
  File "/home/sam/Desktop/stable-diffusion-webui/venv/lib/python3.10/site-packages/paramiko/channel.py", line 1198, in _send
    raise socket.error("Socket is closed")
OSError: Socket is closed

it never happens when im generating things locally but if im letting friends use my server remotely then it appears constantly till eventually something causes the server to crash and i have to restart it. soemtimes it will happen quickly and frequently and others it wont happen for hours/days

this happens in Windows, Linux mint, and Majaro.

Nvidia 3080 10GB, 1080 or 1660 all have the same issue Intel 6700K or AMD R9 3900x. both CPUs have issue so im pretty confident its a software issue somehow 16GB or ram in one system 32GB in the other DDR4

Wolfmaster112 avatar Dec 15 '22 09:12 Wolfmaster112