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

[Bug]: UI is broken after recent commits

Open alru opened this issue 1 year ago • 22 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

WebUI doesn't work, errors in browser console:

Uncaught DOMException: Failed to execute 'appendChild' on 'Node': Only one element on document allowed.
    at HTMLDocument.<anonymous> (https://my-domain.cc/file=/home/default/data/app/stablediffusion/javascript/imageviewer.js?1679728964.6552258:272:17)
    Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'. TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'.
    at generationParams.js?1679568324.2952483:13:17
    at runCallback (script.js?1679728964.6592262:38:9)
    at script.js?1679728964.6592262:44:31
    at Array.forEach (<anonymous>)
    at executeCallbacks (script.js?1679728964.6592262:44:11)
    at MutationObserver.<anonymous> (script.js?1679728964.6592262:56:9)

Steps to reproduce the problem

  1. Git pull
  2. Run webui.sh

What should have happened?

\\

Commit where the problem happens

https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/275834ca9702377747aba5d81badf7053d0eb4d6

What platforms do you use to access the UI ?

Linux

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

No

List of extensions

ControlNet, Dreambooth

Console logs

No errors in the app console

Additional information

Debian 11, the app is behind NGINX reverse proxy

alru avatar Mar 25 '23 08:03 alru

I'd suggest to roll back master to something stable and continue in a separate branch if possible, please

alru avatar Mar 25 '23 08:03 alru

I'd suggest to roll back master to something stable and continue in a separate branch if possible, please

how do you do that using git, and how do you go back to the main branch afterwards?

johneliot1978 avatar Mar 25 '23 08:03 johneliot1978

I mean, my suggestion is for the author of the repo @AUTOMATIC1111 since the master is unstable.

alru avatar Mar 25 '23 08:03 alru

seems to be sorted now for me. quick work fellas!

octoworld avatar Mar 25 '23 08:03 octoworld

generate forever right click still seems broken

johneliot1978 avatar Mar 25 '23 08:03 johneliot1978

generate forever right click still seems broken

Open browser dev tools console please. Are there any errors?

alru avatar Mar 25 '23 08:03 alru

generate forever right click still seems broken

Open browser dev tools console please. Are there any errors?

yeah few errors for a couple of the extensions including animator, dynamic prompting and generationParams

johneliot1978 avatar Mar 25 '23 09:03 johneliot1978

  1. When I press the Generate button, nothing happens
  2. The word (token) counter, which is next to the Generate button, always shows "0/75", even though a long prompt is entered.
  3. The browser console gives errors:

script.js?1679734144.3962412:5

Uncaught (in promise) RangeError: Maximum call stack size exceeded at elem.getElementById (script.js?1679734144.3962412:5:41) at elem.getElementById (script.js?1679734144.3962412:5:57) at elem.getElementById (script.js?1679734144.3962412:5:57) at elem.getElementById (script.js?1679734144.3962412:5:57) at elem.getElementById (script.js?1679734144.3962412:5:57) at elem.getElementById (script.js?1679734144.3962412:5:57) at elem.getElementById (script.js?1679734144.3962412:5:57) at elem.getElementById (script.js?1679734144.3962412:5:57) at elem.getElementById (script.js?1679734144.3962412:5:57) at elem.getElementById (script.js?1679734144.3962412:5:57)

kbystryakov avatar Mar 25 '23 09:03 kbystryakov

Same issue for me… The generate button does not respond, the words are not displayed in the counter, and the same errors in the browser (chrome)

yutani337 avatar Mar 25 '23 09:03 yutani337

Yep, I can't use it as well. Generate button doesn't work, updating addons doesn't work either. Lot's of console errors in the browser.

EDIT: Deactivating stable-diffusion-webui-images-browser extension at least makes updating and generating work again. Still some errors in the console (animator) and still problems like that the sampler dropdown shows "Euler a Euler a" till you click and CSS padding errors in the accordion elements for addons, even if animator extension is deactivated as well.

tripletto avatar Mar 25 '23 09:03 tripletto

Yep, I can't use it as well. Generate button doesn't work, updating addons doesn't work either. Lot's of console errors in the browser.

EDIT: Deactivating stable-diffusion-webui-images-browser extension at least makes updating and generating work again. Still some errors in the console (animator) and still problems like that the sampler dropdown shows "Euler a Euler a" till you click and CSS padding errors in the accordion elements for addons, even if animator extension is deactivated as well.

Yeah, that’s work! Thanks!

yutani337 avatar Mar 25 '23 10:03 yutani337

Upgrading the extensions manually for their respective folders using git pull worked for me.

rosenius avatar Mar 25 '23 10:03 rosenius

Upgrading the extensions manually for their respective folders using git pull worked for me.

Upgrading the extensions indeed fixes most of the issues, including ‘generate’, but the image-browser still seems to be broken. I will wait for an update for the extension.

silenf avatar Mar 25 '23 12:03 silenf

Settings tab and checkpoint dropdown box is broken image

Edit: I disabled some extensions and it seems to be fixed.

RaymondTracer avatar Mar 25 '23 13:03 RaymondTracer

Same here, UI crashed after this commit.

Error loading script: main.py Traceback (most recent call last): File "C:\Users\sings\Documents\AI-Graphics\stable-diffusion-webui\modules\scripts.py", line 256, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\sings\Documents\AI-Graphics\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\sings\Documents\AI-Graphics\stable-diffusion-webui\extensions\a1111-sd-webui-locon-main\scripts\main.py", line 10, in import lora ModuleNotFoundError: No module named 'lora'

No any actions can be taken inside the UI, including image browser and extensions update check.

ate214 avatar Mar 25 '23 13:03 ate214

Error still presents in imageviewer.js

alru avatar Mar 25 '23 15:03 alru

posex doesn't work today without posex itself changing. I suspect the changes in the last 24 hours. Opening up the 'Posex' thing and clicking send to control net no longer opens up the pose editor. If I revert the set of changes that dropped in the last day it works. Is it "THIS" bug that covers the issue or should I enter one?

aifartist avatar Mar 25 '23 17:03 aifartist

Quicksettings/settings page failing to load is caused by https://github.com/AlUlkesh/stable-diffusion-webui-images-browser/issues/96, update to latest version

space-nuko avatar Mar 25 '23 19:03 space-nuko

Bugs as hell today after updated.

"ModuleNotFoundError: No module named 'lora' " in webui-user.dat

endlessvn2604 avatar Mar 25 '23 19:03 endlessvn2604

same here, getting error from lora module missing

chikiu-san avatar Mar 26 '23 01:03 chikiu-san

same here, getting error from lora module missing

Actually let me take this back, after updating extensions and reboot the webui, it works fine.

chikiu-san avatar Mar 26 '23 01:03 chikiu-san

Still doesn't work for me, even after manually updating all extensions. Reverted to 64b7e838 and it works fine again.

monkeyvoodoo avatar Mar 26 '23 02:03 monkeyvoodoo

Still doesn't work for me, even after manually updating all extensions. Reverted to 64b7e83 and it works fine again.

I did too, got a usable UI back again. Here's what I did from the webui directory.

git reset --hard 64b7e83

Make sure you remove git pull out of your batch script if you normally have it update on startup, otherwise you're gonna get the broken UI right back again.

SanDiegoDude avatar Mar 26 '23 20:03 SanDiegoDude

UI after updating, is a lot slow and too many JS errors:

https://i.imgur.com/cnBTYWz.png

Sh4d0wHunt3rX avatar Mar 27 '23 12:03 Sh4d0wHunt3rX

UI after updating, is a lot slow and too many JS errors:

https://i.imgur.com/cnBTYWz.png

Sh4d0wHunt3rX avatar Mar 27 '23 12:03 Sh4d0wHunt3rX

still doesn't work, still running 64b7e83. I've pulled to present just now, and get console full of errors and nothing works.

Edit: i also individually updated all plugins via git pull. still very broken.

monkeyvoodoo avatar Mar 29 '23 07:03 monkeyvoodoo

After finally having time to do some poking around, it looks like my particular situation was using an nginx reverse proxy as the frontend. I had to add the following to the location / {} block to get things working properly, due to the new UI changes using web sockets (wss protocol), and those not being forwarded through properly.

      proxy_set_header        X-Real-IP $remote_addr;
      proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header        X-Forwarded-Proto $scheme;```

monkeyvoodoo avatar Mar 30 '23 08:03 monkeyvoodoo

any progress?

constant-null avatar Apr 01 '23 09:04 constant-null

I had similar problem - solved it by:

  1. disabling all custom extensions,
  2. restarting,
  3. (if after restart there are still errors - that's a problem, idk then),
  4. Update and enable extensions,
  5. At this point everything worked for me.

If there weren't any errors at step 3 but there are errors at step 5 - try to find which extension causes problems by disabling them one by one.

AndrewRocky avatar Apr 02 '23 09:04 AndrewRocky

Newer versions have fixed this. Open a new issue if the problem persists as of the latest version.

catboxanon avatar Aug 06 '23 17:08 catboxanon