AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
140.98k stars 26.67k forks source link

[Bug]: Stuck on orange loading icon (any process is not working) | Please help :3 #15213

Closed akerem1661 closed 7 months ago

akerem1661 commented 7 months ago

Checklist

What happened?

Since I installed the app, no matter what I try to do on a1111, the program gets stuck as soon as the orange loading icon appears. There is no loading, no generate operation. I searched a lot for this error on the internet. But I could not find any solution

Steps to reproduce the problem

Start the A1111 (any version) Start any process (must see orange installation icon)

And: Endless waiting....

What should have happened?

The loading icon should not appear in one spot and other functions should work.

An image should be generated when Generate is pressed, when I try to add a plugin, the plugin should be installed within 1 minute at the latest. But there is an endless waiting.

What browsers do you use to access the UI ?

Google Chrome, Other

Sysinfo

sysinfo-2024-03-11-05-01.txt

Console logs

venv "C:\Users\PC\Desktop\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.5.0
Commit hash: a3ddf464a2ed24c999f67ddfef7969f8291567be
Launching Web UI with arguments:
C:\Users\PC\Desktop\stable-diffusion-webui\venv\lib\site-packages\gradio_client\documentation.py:103: UserWarning: Could not get documentation group for <class 'gradio.mix.Parallel'>: No known documentation group for module 'gradio.mix'
  warnings.warn(f"Could not get documentation group for {cls}: {exc}")
C:\Users\PC\Desktop\stable-diffusion-webui\venv\lib\site-packages\gradio_client\documentation.py:103: UserWarning: Could not get documentation group for <class 'gradio.mix.Series'>: No known documentation group for module 'gradio.mix'
  warnings.warn(f"Could not get documentation group for {cls}: {exc}")
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Loading weights [6ce0161689] from C:\Users\PC\Desktop\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 13.9s (launcher: 5.6s, import torch: 3.3s, import gradio: 1.0s, setup paths: 1.0s, other imports: 1.0s, load scripts: 1.4s, create ui: 0.3s, gradio launch: 0.3s).
Creating model from config: C:\Users\PC\Desktop\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying attention optimization: Doggettx... done.
Model loaded in 3.1s (load weights from disk: 0.6s, create model: 0.4s, apply weights to model: 0.7s, apply half(): 0.6s, move model to device: 0.6s, calculate empty prompt: 0.1s).

Additional information

I tried all ways... I tried to installing this versions of a1111: V1.5.0, V1.6.0, V1.8.0

image image

w-e-w commented 7 months ago

you got your answer allready

akerem1661 commented 7 months ago

you got your answer allready

No, that's just what it looked like when I took a screenshot. I get the same result when I try with the correct URL.

w-e-w commented 7 months ago

No, that's just what it looked like when I took a screenshot. I get the same result when I try with the correct URL.

the why the heck do you decide to use the same screenshot you do realize that we cannot read your mind right, we can only see what you show us right we need correct information in order to do anything if you think spending one second to take a new screenshot is too much of hassle then why should anyone help you

and why you did not replay missionfloyd you are talking with real humans not with LLM chatbot even if the response you got did not solve your issue you should respond to them this is basic etiquette

there is absolutely no reason that you should ghosting the original reply and repost that is extremely rude

akerem1661 commented 7 months ago

No, that's just what it looked like when I took a screenshot. I get the same result when I try with the correct URL.

the why the heck do you decide to use the same screenshot you do realize that we cannot read your mind right, we can only see what you show us right we need correct information in order to do anything if you think spending one second to take a new screenshot is too much of hassle then why should anyone help you

and why you did not replay missionfloyd you are talking with real humans not with LLM chatbot even if the response you got did not solve your issue you should respond to them this is basic etiquette

there is absolutely no reason that you should ghosting the original reply and repost that is extremely rude

I didn't realize it was an erroneous screenshot. Now I'm sending you all the screenshots I can. I tried to report this error directly instead of taking a screenshot to show that I know it's not the problem. And you know what, you're being rude. I don't speak English and my messages are written by Deepl translator. I also replied to the message of the friend who wrote that reply, by the way. Was it really worth the heartbreak?

Is there a decent person who can help? I really can't figure it out and I'm spending hours on this.

akerem1661 commented 7 months ago

image image image image

The program hangs on all operations.

akerem1661 commented 7 months ago

And there is console log again:

venv "D:\Ai Resim\StabilityMatrix-win-x64\Data\Packages\Stable Diffusion WebUI\venv\Scripts\Python.exe"
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: v1.8.0
Commit hash: bef51aed032c0aaa5cfd80445bc4cf0d85b408b5
D:\Ai Resim\StabilityMatrix-win-x64\Data\Packages\Stable Diffusion WebUI\extensions\SD-CN-Animation\install.py:3: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
Launching Web UI with arguments:
No module 'xformers'. Proceeding without it.
Loading weights [9ae52c3039] from D:\Ai Resim\StabilityMatrix-win-x64\Data\Packages\Stable Diffusion WebUI\models\Stable-diffusion\darkSugarPotAnimeType_v30.safetensors
Creating model from config: D:\Ai Resim\StabilityMatrix-win-x64\Data\Packages\Stable Diffusion WebUI\configs\v1-inference.yaml
D:\Ai Resim\StabilityMatrix-win-x64\Data\Packages\Stable Diffusion WebUI\extensions\SD-CN-Animation\scripts\base_ui.py:172: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  with gr.Row(elem_id='sdcn-core').style(equal_height=False, variant='compact'):
D:\Ai Resim\StabilityMatrix-win-x64\Data\Packages\Stable Diffusion WebUI\extensions\SD-CN-Animation\scripts\base_ui.py:194: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  img_preview_curr_frame = gr.Image(label='Current frame', elem_id=f"img_preview_curr_frame", type='pil').style(height=240)
D:\Ai Resim\StabilityMatrix-win-x64\Data\Packages\Stable Diffusion WebUI\extensions\SD-CN-Animation\scripts\base_ui.py:195: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  img_preview_curr_occl = gr.Image(label='Current occlusion', elem_id=f"img_preview_curr_occl", type='pil').style(height=240)
D:\Ai Resim\StabilityMatrix-win-x64\Data\Packages\Stable Diffusion WebUI\extensions\SD-CN-Animation\scripts\base_ui.py:197: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  img_preview_prev_warp = gr.Image(label='Previous frame warped', elem_id=f"img_preview_curr_frame", type='pil').style(height=240)
D:\Ai Resim\StabilityMatrix-win-x64\Data\Packages\Stable Diffusion WebUI\extensions\SD-CN-Animation\scripts\base_ui.py:198: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  img_preview_processed = gr.Image(label='Processed', elem_id=f"img_preview_processed", type='pil').style(height=240)
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 15.7s (prepare environment: 5.2s, import torch: 4.8s, import gradio: 1.1s, setup paths: 1.2s, initialize shared: 0.5s, other imports: 0.7s, load scripts: 1.4s, create ui: 0.4s, gradio launch: 0.5s).
Applying attention optimization: Doggettx... done.
Model loaded in 19.7s (load weights from disk: 0.2s, create model: 0.7s, apply weights to model: 16.6s, move model to device: 0.3s, calculate empty prompt: 1.7s).
w-e-w commented 7 months ago

I also replied to the message of the friend who wrote that reply, by the way. Was it really worth the heartbreak?

I'm not angry at you posting an erroneous screenshot I'm angry at you because you ghosted the first reply and repost you issagain without replying to or acknowledging the first reply the fact that the screenshot is erroneous just makes the situation worse, as it demonstrate that you did not even read the first reply

timeline initial post 2 days ago https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/15196#discussion-6346728 missionfloyd rely abut 3 hr after https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/15196#discussioncomment-8732131

14 hours ago you open this issue post without replying to missionfloyd providing essentially the same information in other words reposting the question in ghosting the original reply you did try and provide extra information (this is good) but unfortunately the extra information you provide does not match yor screenshot which is the same screenshot from the original and one that you have been already given an answer to a possible cause of the issue from the log information we can see you are using an old version of webui

it is only after I have close this post https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/15213#issuecomment-1988147605 you decide to start providing information that might be actually useful including the critical information that the screenshot is WRONG

if you did you do not understand why someone been reading your post would react the way I did then I really don't have anything to say



now I finish my rent I will try to help

please clarify what do you mean by "Since I installed the app", "app" as in webui or and extention? if webui, you meant you was not able to gen single image since the a fresh install or if you ment an extention, the issue only happen after installa extention reading from the previous post I'm guessing you mean that after you install your extension with UI is broken

if this is the case have you tried to physically deleting or at least removing all extensions from the extensions directory it's possible that some files in certain extensions are causing the issues and the issues are even preventing you from disabling the extensions since the issue is Apparently after you install an extension it seem to be stuck install, and I am assuming that after waiting for a while you decide to kill restart web UI, if this is the case then it is possible that everything was normal it was just taking a long time installing the particular extension and the action of you killing and restarting webui in mid-install broke something horribly to the point that it was not able to recover

if this is case I will suggest trying to delete the venv dir with all extentons removed

also how fast is your internet connection and are you in certain locations say like China that has particular internet restrictions might prevent you from connecting to certain sites such as Google

some extensions may require to download large files from these sites, if your connection is slow then I might take a long time for the install process ot finished, if you are unable to access those websites then you might have trouble installing particular extensions without manual intervention, and depending on how the extension is coded if the download process is interrupted you might be left with a corrupt file, that extension is trying to use but is unable to because the file is corrupted


From my testing I belive the https://github.com/volotat/SD-CN-Animation is the cause

as it crash my webui instance in other words the webui is not creshes seconds after the webpage shows up, and so you see that the wepage is perpetually loading because the serverd has crashed

Fix: you should remove SD-CN-Animation for you extention dir


following the information you provided I was able to test if whether or not this particular extension causes issue if you have provided what extension you have installed then we wouldn't have this conversation business the issue would be solved and everyone can go on their except the ones who are maintaining SD-CN-Animation

with the original information you provide the most information we can see is that you try to install control net but using the wrong URL, which is not the case good information = possibly good diagnosis bad information = wasting people's time

akerem1661 commented 7 months ago

please clarify what do you mean by "Since I installed the app", "app" as in webui or and extention? if webui, you meant you was not able to gen single image since the a fresh install or if you ment an extention, the issue only happen after installa extention reading from the previous post I'm guessing you mean that after you install your extension with UI is broken

Yes, i mean "app". I don't have any extention (at the first time)


since the issue is Apparently after you install an extension it seem to be stuck install, and I am assuming that after waiting for a while you decide to kill restart web UI, if this is the case then it is possible that everything was normal it was just taking a long time installing the particular extension and the action of you killing and restarting webui in mid-install broke something horribly to the point that it was not able to recover

I tried to generating in a simple way without installing a plugin, but unfortunately that didn't help either. The same issue i mean.


if this is case I will suggest trying to delete the venv dir with all extentons removed

I tried it already... same issue continuing


also how fast is your internet connection and are you in certain locations say like China that has particular internet restrictions might prevent you from connecting to certain sites such as Google

I am not in a country like China, but I am under certain internet restrictions. There is a safe internet restriction because I have a teenager bro at home. Adult content, games, etc. are blocked. But you can access blocked content with a VPN. I also tried using a VPN but it didn't work. But it seems to me that it is a problem with the internet connection.

I have also done several clean installations, uninstalling VENV and add-ons, installing with several different methods, even installing with an interface program (Stability Matrix).


Fix: you should remove SD-CN-Animation for you extention dir

I've tried this before, but I'll try again just to be sure. I'll let you know.


with the original information you provide the most information we can see is that you try to install control net but using the wrong URL, which is not the case good information = possibly good diagnosis bad information = wasting people's time

I'm not angry at you posting an erroneous screenshot I'm angry at you because you ghosted the first reply and repost you issagain without replying to or acknowledging the first reply the fact that the screenshot is erroneous just makes the situation worse, as it demonstrate that you did not even read the first reply

Yes, you're right, I apologize for rushing into this. It's the first time I'm talking about a problem on GitHub and I've already forgotten that comment I made. I didn't see the reply because I didn't get a notification on my device. I saw it when you mentioned it under this topic, so I've explained the same problem twice.

I just wanted to explain myself, I didn't want to waste your time and I apologize for not expressing myself well.

Thank you :3

w-e-w commented 7 months ago

I seem to me for what ever reason the server has stop after the webpage loads, that is mostly why you see the inf loading to test if this is the case, launch webui and after you see the inf loading try opening another webui webpage if the server is dead, then we need to find out why the server is dead could be any reason, but as you have said you done clean install it is unlikey it is cause by webui file corruption

also look in the borwser debug consol, (press F12 in most browsers), after the debug consol is open reload the webui webpage look in the Networks section of the debug consol, see if thers any connection issues

if you want to try an clean install again try using the install method 1, https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-NVidia-GPUs#windows-method-1 this should be the simplest way to install webui without extra tools

akerem1661 commented 7 months ago

Okay, i will try it in my avaliable time


Can you check this console logs? I got this console logs when i start a Generation with no extention.

venv "C:\Users\PC\Downloads\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: v1.8.0
Commit hash: bef51aed032c0aaa5cfd80445bc4cf0d85b408b5
Launching Web UI with arguments:
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Loading weights [cc6cb27103] from C:\Users\PC\Downloads\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.ckpt
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 20.1s (prepare environment: 5.8s, import torch: 6.0s, import gradio: 2.0s, setup paths: 2.5s, initialize shared: 0.6s, other imports: 1.4s, load scripts: 1.2s, create ui: 0.4s, gradio launch: 0.3s).
Creating model from config: C:\Users\PC\Downloads\stable-diffusion-webui\configs\v1-inference.yaml
Applying attention optimization: Doggettx... done.
Model loaded in 60.8s (load weights from disk: 5.3s, create model: 0.3s, apply weights to model: 23.5s, apply dtype to VAE: 24.3s, move model to device: 5.5s, calculate empty prompt: 1.8s).
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\uvicorn\protocols\websockets\websockets_impl.py", line 240, in run_asgi
    result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 69, in __call__
    return await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\applications.py", line 273, in __call__
    await super().__call__(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\applications.py", line 122, in __call__
    await self.middleware_stack(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 149, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\cors.py", line 76, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 26, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 79, in __call__
    raise exc
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in __call__
    raise e
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 341, in handle
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 82, in app
    await func(session)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\routing.py", line 289, in app
    await dependant.call(**values)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 604, in join_queue
    session_info = await asyncio.wait_for(
  File "C:\Users\PC\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 445, in wait_for
    return fut.result()
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\websockets.py", line 133, in receive_json
    self._raise_on_disconnect(message)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\websockets.py", line 105, in _raise_on_disconnect
    raise WebSocketDisconnect(message["code"])
starlette.websockets.WebSocketDisconnect: 1006
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\uvicorn\protocols\websockets\websockets_impl.py", line 240, in run_asgi
    result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 69, in __call__
    return await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\applications.py", line 273, in __call__
    await super().__call__(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\applications.py", line 122, in __call__
    await self.middleware_stack(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 149, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\cors.py", line 76, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 26, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 79, in __call__
    raise exc
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in __call__
    raise e
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 341, in handle
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 82, in app
    await func(session)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\routing.py", line 289, in app
    await dependant.call(**values)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 604, in join_queue
    session_info = await asyncio.wait_for(
  File "C:\Users\PC\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 445, in wait_for
    return fut.result()
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\websockets.py", line 133, in receive_json
    self._raise_on_disconnect(message)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\websockets.py", line 105, in _raise_on_disconnect
    raise WebSocketDisconnect(message["code"])
starlette.websockets.WebSocketDisconnect: 1006
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\uvicorn\protocols\websockets\websockets_impl.py", line 240, in run_asgi
    result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 69, in __call__
    return await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\applications.py", line 273, in __call__
    await super().__call__(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\applications.py", line 122, in __call__
    await self.middleware_stack(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 149, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\cors.py", line 76, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 26, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 79, in __call__
    raise exc
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in __call__
    raise e
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 341, in handle
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 82, in app
    await func(session)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\routing.py", line 289, in app
    await dependant.call(**values)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 604, in join_queue
    session_info = await asyncio.wait_for(
  File "C:\Users\PC\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 445, in wait_for
    return fut.result()
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\websockets.py", line 133, in receive_json
    self._raise_on_disconnect(message)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\websockets.py", line 105, in _raise_on_disconnect
    raise WebSocketDisconnect(message["code"])
starlette.websockets.WebSocketDisconnect: 1001
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\uvicorn\protocols\websockets\websockets_impl.py", line 240, in run_asgi
    result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 69, in __call__
    return await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\applications.py", line 273, in __call__
    await super().__call__(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\applications.py", line 122, in __call__
    await self.middleware_stack(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 149, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\cors.py", line 76, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 26, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 79, in __call__
    raise exc
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in __call__
    raise e
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 341, in handle
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 82, in app
    await func(session)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\routing.py", line 289, in app
    await dependant.call(**values)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 604, in join_queue
    session_info = await asyncio.wait_for(
  File "C:\Users\PC\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 445, in wait_for
    return fut.result()
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\websockets.py", line 133, in receive_json
    self._raise_on_disconnect(message)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\websockets.py", line 105, in _raise_on_disconnect
    raise WebSocketDisconnect(message["code"])
starlette.websockets.WebSocketDisconnect: 1006
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\uvicorn\protocols\websockets\websockets_impl.py", line 240, in run_asgi
    result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 69, in __call__
    return await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\applications.py", line 273, in __call__
    await super().__call__(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\applications.py", line 122, in __call__
    await self.middleware_stack(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 149, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\cors.py", line 76, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 26, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 79, in __call__
    raise exc
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in __call__
    raise e
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 341, in handle
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 82, in app
    await func(session)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\routing.py", line 289, in app
    await dependant.call(**values)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 604, in join_queue
    session_info = await asyncio.wait_for(
  File "C:\Users\PC\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 445, in wait_for
    return fut.result()
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\websockets.py", line 133, in receive_json
    self._raise_on_disconnect(message)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\websockets.py", line 105, in _raise_on_disconnect
    raise WebSocketDisconnect(message["code"])
starlette.websockets.WebSocketDisconnect: 1006
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\uvicorn\protocols\websockets\websockets_impl.py", line 240, in run_asgi
    result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 69, in __call__
    return await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\applications.py", line 273, in __call__
    await super().__call__(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\applications.py", line 122, in __call__
    await self.middleware_stack(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 149, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\cors.py", line 76, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 26, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 79, in __call__
    raise exc
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in __call__
    raise e
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 341, in handle
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 82, in app
    await func(session)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\routing.py", line 289, in app
    await dependant.call(**values)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 604, in join_queue
    session_info = await asyncio.wait_for(
  File "C:\Users\PC\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 445, in wait_for
    return fut.result()
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\websockets.py", line 133, in receive_json
    self._raise_on_disconnect(message)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\websockets.py", line 105, in _raise_on_disconnect
    raise WebSocketDisconnect(message["code"])
starlette.websockets.WebSocketDisconnect: 1006
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\uvicorn\protocols\websockets\websockets_impl.py", line 240, in run_asgi
    result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 69, in __call__
    return await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\applications.py", line 273, in __call__
    await super().__call__(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\applications.py", line 122, in __call__
    await self.middleware_stack(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 149, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\cors.py", line 76, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 26, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 79, in __call__
    raise exc
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in __call__
    raise e
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 341, in handle
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 82, in app
    await func(session)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\routing.py", line 289, in app
    await dependant.call(**values)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 604, in join_queue
    session_info = await asyncio.wait_for(
  File "C:\Users\PC\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 445, in wait_for
    return fut.result()
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\websockets.py", line 133, in receive_json
    self._raise_on_disconnect(message)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\websockets.py", line 105, in _raise_on_disconnect
    raise WebSocketDisconnect(message["code"])
starlette.websockets.WebSocketDisconnect: 1006
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\uvicorn\protocols\websockets\websockets_impl.py", line 240, in run_asgi
    result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 69, in __call__
    return await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\applications.py", line 273, in __call__
    await super().__call__(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\applications.py", line 122, in __call__
    await self.middleware_stack(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 149, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\cors.py", line 76, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 26, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 79, in __call__
    raise exc
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in __call__
    raise e
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 341, in handle
    await self.app(scope, receive, send)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 82, in app
    await func(session)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\fastapi\routing.py", line 289, in app
    await dependant.call(**values)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 604, in join_queue
    session_info = await asyncio.wait_for(
  File "C:\Users\PC\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 445, in wait_for
    return fut.result()
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\websockets.py", line 133, in receive_json
    self._raise_on_disconnect(message)
  File "C:\Users\PC\Downloads\stable-diffusion-webui\venv\lib\site-packages\starlette\websockets.py", line 105, in _raise_on_disconnect
    raise WebSocketDisconnect(message["code"])
starlette.websockets.WebSocketDisconnect: 1006
w-e-w commented 7 months ago

starlette.websockets.WebSocketDisconnect: 1006

this is cause be the connection betwen steh web page client and webui server disconnect this error basically means that the server knows that the connection was disconnected but the cause is unknow

I have seen this happen a couple of times due to me doing strange things like closing the webpage before it fully loads but other than that I've never seen this happen consistently at least with my network setup

at this point I'm just randomly guessing you mentioned you have Network restrictions and stuff could that be interfering or maybe an antivirus of something thinks that the web page connection was attack of some sort and then kill the connection

have you tried using a different browser?

for testing normally you won't do this try using the --share cmd arg, this should create a externally accessible link for web UI, maybe something is preventing your local network form working