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

[Bug]: UI is stuck and not working.UI operations cannot

Open sicatt opened this issue 1 year ago • 8 comments

Checklist

  • [x] The issue exists after disabling all extensions
  • [X] The issue exists on a clean installation of webui
  • [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • [x] The issue exists in the current version of the webui
  • [x] The issue has not been reported before recently
  • [ ] The issue has been reported before but has not been fixed yet

What happened?

WS001352

When editing the prompt, the image generation button suddenly says "Interrupting...". The UI stops working. It does not come back and nothing can be done.

I have to restart the UI to fix the problem.

Steps to reproduce the problem

Frequently occurs when typing prompts

What should have happened?

It's odd that the UI displays "Interrupting..." while typing prompts. " and the UI freezes, I want to generate an image so the UI doesn't freeze.

What browsers do you use to access the UI ?

Google Chrome
opera

Sysinfo

sysinfo-2024-02-07-03-35.json

Console logs

To load target model SDXLClipModel
Begin to load 1 model
Moving model(s) has taken 1.13 seconds
Model loaded in 17.4s (unload existing model: 1.8s, calculate hash: 8.7s, load weights from disk: 0.1s, forge load real models: 4.5s, calculate empty prompt: 2.2s).
To load target model SDXLClipModel
Begin to load 1 model
unload clone 0
Moving model(s) has taken 1.25 seconds
To load target model SDXL
Begin to load 1 model
Moving model(s) has taken 1.68 seconds
100%|██████████████████████████████████████████| 30/30 [00:04<00:00,  6.35it/s]
To load target model AutoencoderKL█████████████| 30/30 [00:04<00:00,  6.63it/s]
Begin to load 1 model

0: 640x512 2 faces, 127.0ms
Speed: 2.5ms preprocess, 127.0ms inference, 1.5ms postprocess per image at shape (1, 3, 640, 512)
100%|██████████████████████████████████████████| 13/13 [00:02<00:00,  6.17it/s]
100%|██████████████████████████████████████████| 13/13 [00:02<00:00,  6.09it/s]
Total progress: 100%|██████████████████████████| 30/30 [00:11<00:00,  2.60it/s]
Total progress: 100%|██████████████████████████| 30/30 [00:11<00:00,  6.63it/s]

Additional information

No response

sicatt avatar Feb 07 '24 03:02 sicatt

It is a very serious bug and does not generate images at all. This makes it unusable. This is a bug that was not in the original web ui.

sicatt avatar Feb 08 '24 11:02 sicatt

I have to agree that this is a serious bug and issue that's not present in the original web-ui. Luckily, I've managed to be able to reproduce it:

  1. Press the escape key while you're editing the prompt or searching for a Lora (it has happened to me in both contexts).
  2. The UI seems to try to interrupt something and gets stuck as @sicatt mentioned.

It's really an incredible UI so far, but unless a fix or workaround is found... this makes it basically unusable. You're always a single keystroke away from having to reload the entire UI.

PureUnadulteratedEgo avatar Feb 13 '24 04:02 PureUnadulteratedEgo

This feature comes from upstream A1111 repo here: https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/1d42babd324b933bae317cb427fe0513138954f4

Do you notice the same behaviour in original A1111? (You need to checkout dev branch)

huchenlei avatar Feb 13 '24 04:02 huchenlei

I'll try to clone the dev branch of A1111 as I don't want to fuck up my main install. Other people were able to recreate the issue by just using the escape key in the prompt.

PureUnadulteratedEgo avatar Feb 13 '24 04:02 PureUnadulteratedEgo

@huchenlei I was indeed able to recreate it on the dev branch of A1111.

PureUnadulteratedEgo avatar Feb 13 '24 04:02 PureUnadulteratedEgo

If anybody else is having a problem, my current workaround is just directly editing the line 165 in script.js.

if (isEsc) { For if (isAltKey && isCtrlKey && isEnter) {

Not sure if this doesn't break anything else, but it prevented the whole UI from getting stuck which was my main concern.

PureUnadulteratedEgo avatar Feb 13 '24 05:02 PureUnadulteratedEgo

If anybody else is having a problem, my current workaround is just directly editing the line 165 in script.js.

if (isEsc) { For if (isAltKey && isCtrlKey && isEnter) {

Not sure if this doesn't break anything else, but it prevented the whole UI from getting stuck which was my main concern.

Yes, thank you for this workaround, I JUST realized today that the ESC keypress was the key to triggering this bug and was coming here to add it to the bug report, but then saw that I wasn't the first to realize it, haha! A workaround is amazing!

daPhie79 avatar Feb 15 '24 01:02 daPhie79

The simplest way to reproduce this is just press the Esc key when the UI is opened.

PR made upstream to fix here: https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14932

catboxanon avatar Feb 15 '24 18:02 catboxanon

Upstream has been merged with this repo now, so this should be fixed, closing. Feel free to re-open if it still occurs.

catboxanon avatar Feb 17 '24 17:02 catboxanon