AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: Unable to generate image. Frontend do not appear to communicate with backend, #14036

Open mcDandy opened 10 months ago

mcDandy commented 10 months ago

Is there an existing issue for this?

What happened?

I started automatic1111. I did not do anything to it since last time it worked. Now I am unable to generate images load LORAs, hypernetworks or list plugins.

When clicking generate the usual things happen untill the bar which normally shows progress in the GUI. CLI does not show the bar and GUI reverts to a stete when where you click generate to generate a new image.

Steps to reproduce the problem

  1. Load automatic1111 throught run.bat
  2. wait
  3. write prompt and click generate
  4. wait for a fail

What should have happened?

Image should be generated

Sysinfo

sysinfo-2023-11-19-22-05.txt

What browsers do you use to access the UI ?

Mozilla Firefox

Console logs

Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.6.0-2-g4afaaf8a
Commit hash: 4afaaf8a020c1df457bcf7250cb1c7f609699fa7
#######################################################################################################
Initializing Civitai Link
If submitting an issue on github, please provide the below text for debugging purposes:

Python revision: 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Civitai Link revision: 136983e89859fd0477b4a437ed333142a6aa29a4
SD-WebUI revision: 4afaaf8a020c1df457bcf7250cb1c7f609699fa7

Checking Civitai Link requirements...
[+] python-socketio[client] version 5.7.2 installed.

#######################################################################################################
Installing requirements for Seed Travel
Installing requirements for Shift Attention
Launching Web UI with arguments: --lowvram --xformers
Using sqlite file: F:\sd\webui\extensions\sd-webui-agent-scheduler\task_scheduler.sqlite3
Civitai: API loaded
Loading weights [31e35c80fc] from F:\sd\webui\models\Stable-diffusion\sd_xl_base_1.0.safetensors
Creating model from config: F:\sd\webui\repositories\generative-models\configs\inference\sd_xl_base.yaml
F:\sd\webui\extensions\infinite-zoom-automatic1111-webui\iz_helpers\ui.py:253: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  output_video = gr.Video(label="Output").style(width=512, height=512)
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Civitai: Check resources for missing info files
Civitai: Check resources for missing preview images
Startup time: 458.1s (prepare environment: 242.5s, launcher: 0.2s, import torch: 60.5s, import gradio: 22.9s, setup paths: 27.3s, import ldm: 0.3s, initialize shared: 3.2s, other imports: 23.8s, setup codeformer: 3.5s, setup gfpgan: 0.8s, list SD models: 0.8s, load scripts: 26.0s, load upscalers: 0.1s, reload hypernetworks: 0.4s, initialize extra networks: 0.2s, create ui: 43.7s, gradio launch: 2.2s, app_started_callback: 1.7s).
Calculating sha256 for F:\sd\webui\models\Lora\mermaid7_epicrealism2.safetensors: Calculating sha256 for F:\sd\webui\models\Lora\mermaid7_epicrealism2.safetensors: c0e156bc0f297cbbe5085d728d1ed809df81b48e8f5b79d462b8f42e2ccc1625
c0e156bc0f297cbbe5085d728d1ed809df81b48e8f5b79d462b8f42e2ccc1625
Calculating sha256 for F:\sd\webui\models\Lora\mermaid7_epicrealism2.safetensors: Calculating sha256 for F:\sd\webui\models\Lora\mermaid7_epicrealism2.safetensors: c0e156bc0f297cbbe5085d728d1ed809df81b48e8f5b79d462b8f42e2ccc1625
c0e156bc0f297cbbe5085d728d1ed809df81b48e8f5b79d462b8f42e2ccc1625
Civitai: Found 4 resources missing info files
Civitai: Found 25 resources missing preview images
Civitai: Found 1 hash matches
Civitai: Updated 1 info files
Civitai: Found 12 hash matches
Civitai: Updated 0 preview images
Applying attention optimization: xformers... done.
Model loaded in 281.2s (load weights from disk: 28.3s, load config: 0.1s, create model: 13.0s, apply weights to model: 200.4s, apply half(): 0.5s, load textual inversion embeddings: 0.8s, calculate empty prompt: 37.9s).

Additional information

obrazek Another restart and it now works (tried replicate bug with packet capture running in background)... This happens sometimes, not allways.

SoulxSlayer commented 9 months ago

has been happening to me as well. Nothing seems to fix it. Reinstalled 3 times...

ashish-aesthisia commented 9 months ago

I suppose automatic1111 has made --gradio-queue command line arg dysfunctional. It may have caused this. Screenshot 2023-11-21 at 10 18 11 AM I have been struggling with same issue since past 2 weeks.

mcDandy commented 9 months ago

So the queue plugin is the cause?

There does not seem to be any communication (or idk how to use wireshark) image Running on local URL: http://127.0.0.1:7860

ashish-aesthisia commented 9 months ago

I suppose automatic1111 has made --gradio-queue command line arg dysfunctional. It may have caused this. Screenshot 2023-11-21 at 10 18 11 AM I have been struggling with same issue since past 2 weeks.

I have found a temporary fix, if webui frontend is launched immidietely then there is no communication between frontend & backend. If you launch webui after 5 sec of delay, it works fine. I would rather avoid --autolaunch

mcDandy commented 9 months ago

Owwww

image

sd_notwork.pcapng.gz

mcDandy commented 9 months ago

Managed to exactly recreate the bug with capture. The errors are only there becouse nothing is communicating on the port at that moment. sd_network.pcapng.gz

Madwand99 commented 9 months ago

Is there any fix for this? I tried to add a sleep(5) to launch.py but I don't think I'm doing it right.

mcDandy commented 9 months ago

It can be temporalry fixed by removing extensions, launching, closing adding extensions And launching.

I do not use --gradio-queue parameters