anapnoe / stable-diffusion-webui-ux

Stable Diffusion web UI UX
GNU Affero General Public License v3.0
978 stars 59 forks source link

[Bug]: Generate button state gets stuck sometimes when switching tabs #60

Closed SirVeggie closed 1 year ago

SirVeggie commented 1 year ago

Is there an existing issue for this?

What happened?

Sometimes when I switch between tabs while generating, the button state for the Generate button gets stuck in the [Interrupt | Skip] making it impossible to continue generating without refreshing the page. This happens more frequently in the img2img tab.

Temporary fix suggestion: Add a button to manually bring back the Generate button, or clicking interrupt would force the generate button to appear.

Steps to reproduce the problem

I managed to reproduce the bug fairly(?) consistently by clicking generate in both txt2img and img2img (tested with inpaint) and then repeatedly switching between the tabs while they are generating.

What should have happened?

There should be a way to work around this without refreshing the browser.

Commit where the problem happens

2ac62ce241396939c387a221e20b0a7a8c399b6f

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Brave

Command Line Arguments

--xformers

List of extensions

Also happened without extensions

stable-diffusion-webui-embedding-merge a1111-sd-webui-tagcomplete prompt-fusion-extension sd_webui_stealth_pnginfo sd-dynamic-prompts sdweb-merge-block-weighted-gui sdweb-merge-board sd-webui-controlnet sd-webui-model-converter

Console logs

no weirdness in command line, but got these errors in browser console:

DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
    at removeProgressBar (http://localhost:7860/file=S:/Library/Files/Tools/sd-webui-ux/javascript/progressbar.js?1681200438.0641232:163:41)
    at http://localhost:7860/file=S:/Library/Files/Tools/sd-webui-ux/javascript/progressbar.js?1681200438.0641232:170:17
    at xhr.onreadystatechange (http://localhost:7860/file=S:/Library/Files/Tools/sd-webui-ux/javascript/progressbar.js?1681200438.0641232:86:21)
xhr.onreadystatechange @ progressbar.js?1681200438.0641232:88
progressbar.js?1681200438.0641232:162 Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
    at removeProgressBar (http://localhost:7860/file=S:/Library/Files/Tools/sd-webui-ux/javascript/progressbar.js?1681200438.0641232:162:27)
    at http://localhost:7860/file=S:/Library/Files/Tools/sd-webui-ux/javascript/progressbar.js?1681200438.0641232:248:13
    at xhr.onreadystatechange (http://localhost:7860/file=S:/Library/Files/Tools/sd-webui-ux/javascript/progressbar.js?1681200438.0641232:89:21)

Additional information

No response