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

Generate button freezes have to restart gradio app and log in again

Open G-force78 opened this issue 3 years ago • 6 comments

Describe the bug generate button freezes on interrupt, settings menu also hangs on loading

To Reproduce Steps to reproduce the behavior:

  1. Load up gradio app in voldemort collab
  2. Log in to Gradio app
  3. Enter prompt and generate
  4. Notice when its finished that the button doesnt change from interrupt/skip

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • windows 10
  • chrome
  • Commit revision c1093b8051606f0ac90506b7114c4b55d0447c70

Additional context Voldemort v.12 collab

G-force78 avatar Oct 18 '22 15:10 G-force78

Can confirm, started a few commits back, it might have something to do with the Prompt still being Tokenized while you pressed Generate (not sure tho but that's one way how it almost always ends up frozen like this). But yeah settings reload only after several refreshes for me

Cyphco avatar Oct 18 '22 15:10 Cyphco

Something that i have noticed about this bug is that sometimes when it freezes (not always, although most of the time) i check the console in the google collab and i notice that the thing is constantly generating 34 or 40 step images with no output and then it stops after an inderterminate ammount of "generations" (last time it was 150 despite just wanting it to generate 3) and after that the gradio app seems to update and let you generate again. but it falls back to that infinite "fake generation" loop again.

It is also strange that those 150 unwanted generations do not only have no outputs into the app but they are also much faster (not by a lot) than real normal generations with outputs so yhea. not great

ciclon5 avatar Oct 18 '22 17:10 ciclon5

issue 2889 mentions the same problem. i have it as well. it seems to be related to shareable gradio links timing out at some point when using the --share option in webui-user.bat. (therefore it's an issue with gradio servers)

in the meantime, use localtunnel, it should work since it routes the local webui instance to a separate server than gradio.app

ghost avatar Oct 18 '22 19:10 ghost

(therefore it's an issue with gradio servers) in local mode, works fine without freezes

konservat0r avatar Oct 19 '22 07:10 konservat0r

issue 2889 mentions the same problem. i have it as well. it seems to be related to shareable gradio links timing out at some point when using the --share option in webui-user.bat. (therefore it's an issue with gradio servers)

in the meantime, use localtunnel, it should work since it routes the local webui instance to a separate server than gradio.app

How does one do that? What commands are needed? Thanks

G-force78 avatar Oct 19 '22 08:10 G-force78

How does one do that? What commands are needed? Thanks

There is a small tick box in the google collab version that allows you to use localtunnel, its much more stable. it does have its hiccups every now and then and needs a reset but its far less often than gradio

ciclon5 avatar Oct 19 '22 16:10 ciclon5

https://github.com/gradio-app/gradio/issues/2260 Fixed by gradio team

mezotaken avatar Jan 17 '23 13:01 mezotaken