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

[Bug]: Generate forever pauses when browser tab has not focus/minimized

Open Webtransformer opened this issue 1 year ago • 1 comments

Checklist

  • [ ] The issue exists after disabling all extensions
  • [ ] 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?

Generate forever pauses when the Stable Diffusion tab has not focus or browser is minimized. I was also running XYZ Plot. Not sure if this is related.

Steps to reproduce the problem

Use generate forever in txt2img Optionally XYZ Plot? Minimize Browser After current iteration it pauses Select active browser tab and it continues again

What should have happened?

Generation should not pause

What browsers do you use to access the UI ?

No response

Sysinfo

not available

Console logs

No messages.

Additional information

No response

Webtransformer avatar Apr 29 '24 11:04 Webtransformer

by Generate forever I supposed to referring to the right click generation button and there's a generator forever option

how this feature is implemented is literally makeing the browser click the generate button for you using code when it sees the last job has ended It's function is totally depends on the webpage being active, if you close the browser or the browser is somehow frozen or sleeping, is going to stop working browsers these days may decide to pause / sleep / kill/ webpage in order to conserve resource I believe this is what's happening, when your tab is minimized, your browser decides that it needs conserve resources and then you don't seem to be using this page and decides to sleep this tab

depending on the browser you're using they might be different settings or methods that you can try to prevent this from happening if you are using chrome then you may try to setting > performance chrome://settings/performance

w-e-w avatar Apr 29 '24 12:04 w-e-w

You were right, thank you! I excluded the url in the settings and now its working continuously!

Webtransformer avatar Apr 30 '24 13:04 Webtransformer