Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: generate button does nothing #7359

Closed
1 task done
gsgoldma opened this issue Jan 29, 2023 · 13 comments
Closed
1 task done

[Bug]: generate button does nothing #7359

gsgoldma opened this issue Jan 29, 2023 · 13 comments
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@gsgoldma
Copy link

Is there an existing issue for this?

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

What happened?

generate button does not and causes no output on console. ive restarted and removed all extensions.

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...

What should have happened?

normal

Commit where the problem happens

00dab8f

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Mozilla Firefox

Command Line Arguments

--api --cors-allow-origins http://localhost:5173 --administrator --no-half-vae --no-half --disable-safe-unpickle --force-cpu --xformers

List of extensions

happens with with just dreambooth and unprompted

Console logs

doesnt give any logs at all

Additional information

No response

@gsgoldma gsgoldma added the bug-report Report of a bug, yet to be confirmed label Jan 29, 2023
@gsgoldma
Copy link
Author

neither does the trash prompt icon, apply/save prompt buttons dont respond either

@mezotaken
Copy link
Collaborator

mezotaken commented Jan 29, 2023

Probably unrelated, but there is no such cl argument --force-cpu
And i do not understand what this means: doesnt give any logs at all
Does your cmd always look like this? If not, please copy the content of it.
image

@gsgoldma
Copy link
Author

gsgoldma commented Jan 29, 2023

the argument was for dreambooth extension, and i meant there was no errors when i clicked the unrepsonsive buttons.
i've reinstalled the venv and restarted my pc and removed all extensions

venv "D:\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)]
Commit hash: 00dab8f
Installing requirements for Web UI
Launching Web UI with arguments: --api --cors-allow-origins http://localhost:5173 --administrator --no-half-vae --no-half --disable-safe-unpickle --xformers
Loading weights [14e1e8d692] from D:\stable-diffusion-webui\models\Stable-diffusion\21SDModernBuildings_midjourneyBuildings.ckpt
Creating model from config: D:\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\configs\stable-diffusion\v2-inference-v.yaml
LatentDiffusion: Running in v-prediction mode
DiffusionWrapper has 865.91 M params.
Applying cross attention optimization (Doggettx).
Textual inversion embeddings loaded(28): ActionHelper, aslanscifi-v1, CarHelper, carphoto, CinemaHelper, HyperFluid,
Model loaded in 141.7s (load weights from disk: 108.7s, find config: 2.6s, create model: 0.4s, apply weights to model: 1.4s, move model to device: 2.0s, load textual inversion embeddings: 26.5s).
D:\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py:2263: UserWarning: The bytes type is deprecated and may not work as expected. Please use binary instead.
warnings.warn(
D:\stable-diffusion-webui\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Number, please remove them: {'minimum': 1, 'step': 1}
warnings.warn(
D:\stable-diffusion-webui\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Number, please remove them: {'minimum': 0, 'step': 1}
warnings.warn(
1280 720
670
Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch().

@mezotaken
Copy link
Collaborator

Ok, sorry, i was not aware of DB arguments. The problem is obviously gradio version mismatch.
What version do you have at the bottom of the page?
image

@gsgoldma
Copy link
Author

Ok, sorry, i was not aware of DB arguments. The problem is obviously gradio version mismatch. What version do you have at the bottom of the page? image

python: 3.10.6  •  torch: 1.13.1+cu117  •  xformers: 0.0.16rc425  •  gradio: 3.16.2  •  commit: 00dab8f1  •  checkpoint: N/A

@mezotaken
Copy link
Collaborator

mezotaken commented Jan 29, 2023

There's bound to be some errors in browser console (F12) when you press on unresponsive buttons. Could you check? This issue is weird, if you really reinstalled the venv and removed all extensions.

@gsgoldma
Copy link
Author

gsgoldma commented Jan 29, 2023

Uncaught (in promise) ReferenceError: submit is not defined
anonymous http://127.0.0.1:7860/assets/index.4395ab38.js line 75 > AsyncFunction:3
bc http://127.0.0.1:7860/assets/index.4395ab38.js:34
At http://127.0.0.1:7860/assets/index.4395ab38.js:76
le http://127.0.0.1:7860/assets/index.4395ab38.js:4
le http://127.0.0.1:7860/assets/index.4395ab38.js:4
_ http://127.0.0.1:7860/assets/index.b434f24a.js:1
le http://127.0.0.1:7860/assets/index.4395ab38.js:4
le http://127.0.0.1:7860/assets/index.4395ab38.js:4
B http://127.0.0.1:7860/assets/index.b434f24a.js:1

[svelte-i18n] The message "🔄" was not found in "en-US", "en". index.4395ab38.js:32:4134
a lot of these, but for each different button

and now finally a console error:

ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py", line 94, in receive
return self.receive_nowait()
File "D:\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py", line 89, in receive_nowait
raise WouldBlock
anyio.WouldBlock

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 77, in call_next
message = await recv_stream.receive()
File "D:\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py", line 114, in receive
raise EndOfStream
anyio.EndOfStream

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\stable-diffusion-webui\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 407, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "D:\stable-diffusion-webui\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "D:\stable-diffusion-webui\venv\lib\site-packages\fastapi\applications.py", line 270, in call
await super().call(scope, receive, send)
File "D:\stable-diffusion-webui\venv\lib\site-packages\starlette\applications.py", line 124, in call
await self.middleware_stack(scope, receive, send)
File "D:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 184, in call
raise exc
File "D:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 162, in call
await self.app(scope, receive, _send)
File "D:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 106, in call
response = await self.dispatch_func(request, call_next)
File "D:\stable-diffusion-webui\modules\api\api.py", line 96, in log_and_time
res: Response = await call_next(req)
File "D:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 80, in call_next
raise app_exc
File "D:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 69, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 24, in call
await responder(scope, receive, send)
File "D:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 43, in call
await self.app(scope, receive, self.send_with_gzip)
File "D:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\cors.py", line 84, in call
await self.app(scope, receive, send)
File "D:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "D:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "D:\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "D:\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "D:\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 706, in call
await route.handle(scope, receive, send)
File "D:\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "D:\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 69, in app
await response(scope, receive, send)
File "D:\stable-diffusion-webui\venv\lib\site-packages\starlette\responses.py", line 334, in call
raise RuntimeError(f"File at path {self.path} does not exist.")
RuntimeError: File at path D:\stable-diffusion-webui\venv\lib\site-packages\gradio\templates\frontend\assets/index.4395ab38.js:34 does not exist.

@mezotaken
Copy link
Collaborator

mezotaken commented Jan 29, 2023

I have no idea how to reproduce it on my end, but i would try it without any cl args too. What does this achieve --cors-allow-origins http://localhost:5173/ ?
It's certainly a gradio-related issue.

@ataa
Copy link

ataa commented Jan 29, 2023

Seems to be browser cache issue, Click on Reload UI, also clear browser cache and use Ctrl + F5 to reload the UI page.

@mezotaken
Copy link
Collaborator

mezotaken commented Jan 29, 2023

Wasnt this fixed recently? Or was it only for scripts in './javascript' folder?
e2c71a4

@gsgoldma
Copy link
Author

gsgoldma commented Jan 29, 2023

cache clearing didn't help. problem persists in other browsers too

in system info tab, it says it cannot find a checkpoint or vae. but it was working 30 minutes ago, for the past 4 months just fine...
haven't changed the folders..have 200+ checkpoints and multiple vaes for it to fallback to

@gsgoldma
Copy link
Author

had to reinstall everything from scratch. tis life.

@pYtoner
Copy link

pYtoner commented Oct 24, 2023

I fixed it by putting stable-diffusion-webui in a path that doesn't contain a folder name starting with a .

Related to this issue: #13292

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

4 participants