AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: As soon as I try anything after loading the UI in the browser (Windows), even like saving the configuration - the UI freezes in the tab. I see the issue #7095 mentioning that, too. #7211

Open mart-hill opened 1 year ago

mart-hill commented 1 year ago

Is there an existing issue for this?

What happened?

Just after starting WebUI (errors only in training_picker.py):

Error loading script: training_picker.py
Traceback (most recent call last):
  File "O:\AI\stable-diffusion-webui\modules\scripts.py", line 218, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "O:\AI\stable-diffusion-webui\modules\script_loading.py", line 13, in load_module
    exec(compiled, module.__dict__)
  File "O:\AI\stable-diffusion-webui\extensions\training-picker\scripts\training_picker.py", line 16, in <module>
    from modules.ui import create_refresh_button, folder_symbol
ImportError: cannot import name 'folder_symbol' from 'modules.ui' (O:\AI\stable-diffusion-webui\modules\ui.py)

...which didn't impact the usability of the UI for now. But the issue is that after just trying to apply the configuration in the Settings tab, refresh the page in Image Browser tab, well, anything, the WebUI freezes. Also, I don't see the syntax being checked anymore in the prompts fields (I managed to type a word in the prompt and it appeared after about a minute, but there are no counts of tokens): obraz Could that be, that some latest change choked the javascript execution? (If I'm understanding it correctly, I'm not a programmer :) ).

The browser, no matter which one I test, it's responsive by itself, just the insides of the tab with WebUI stops responding. There's a very short moment, when the choke loosens. Hence I was able to type it, but it's unusable at the moment. 🙂 obraz

No errors in the commandline window during the "choke". I'm also able to Ctrl+C the .bat execution.

Steps to reproduce the problem

  1. Go to Settings tab.
  2. Press Apply Settings.
  3. UI freezes in the tab, and uses 100% of 1 CPU thread.
  4. No matter the browser, be it Brave, Chrome or Firefox. UI can generate an image, but it won't appear because of this choke. Browsers report that the tab "slowed down the browser" and suggest either waiting or interrupting it.

What should have happened?

The UI should be responsive.

Commit where the problem happens

9f4d931a319056c537d24669cb950d146d1537b0

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Mozilla Firefox

Command Line Arguments

set SAFETENSORS_FAST_GPU=1
set COMMANDLINE_ARGS= --xformers --no-half-vae --api --deepdanbooru --theme dark

Additional information, context and logs

No response

mart-hill commented 1 year ago

I disabled the a1111-sd-webui-tagcomplete plugin in the config file, outside WebUI, to try, if that helps, and, it seems, at least under MS Edge, it did. Also, in Firefox as well. image Tokens and parenthesis checks also work.