AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
131.69k stars 25.27k forks source link

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

Closed Webtransformer closed 3 weeks ago

Webtransformer commented 3 weeks ago

Checklist

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

w-e-w commented 3 weeks ago

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

Webtransformer commented 3 weeks ago

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