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

[Bug]: Occasionally displayed images do not update

Open GroxicTinch opened this issue 3 years ago • 9 comments

Is there an existing issue for this?

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

What happened?

I click generate, console shows its generating, images get made in the temporary image directory, but the display on the right does not change.

Sometimes it happens more than others, like currently I have generated with a batch count of 9 and after it finishes the right side shows nothing, I have tried 10 times and it hasn't updated at all so I cannot display any images.

This seems to vary greatly even if the code hasn't changed so I assume it is something conflicting, could be available ram, time of day, phase of the moon, not sure.

Important info maybe?

Occurs more often if batch count is higher than 6 images (batch size is 1 though) Getting Uncaught (in promise) Connection errored out. in Firefox dev console is when the issue arrises. The below shows lines that only show when the generation DOES end up updating the gallery. image

Steps to reproduce the problem

use Txt2img or img2img to generate an image wait for generation to finish be disappointed that nothing shows

What should have happened?

Images that are generated are shown in the gallery on the right.

Commit where the problem happens

has been happening since the start its worse today(though I assume its not because of changes in code) 46e3c00d

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Mozilla Firefox

GroxicTinch avatar Jan 19 '23 10:01 GroxicTinch

I believe you are experiencing #6898

AI-Casanova avatar Jan 19 '23 12:01 AI-Casanova

I'm not sure it is, lbeltrame says a side effect of it is that generate is no longer responsive whereas with my problem the only issue is that the generated images aren't put into the viewing window on the right. Not saying it isn't a similar issue because a messed up JSON response is a possible cause.

Odd examples:

  • I generate 9 images with preview set to 5 steps, it will go through showing the previews of the images being made but then on completion of the last one it will not show the generated images.
  • I use an img in img2img and generate images and it will show my results normally, I inpaint a different region and it will generate showing previews fine and then after completion it still has the gallery from the first generation not the latest.

GroxicTinch avatar Jan 19 '23 13:01 GroxicTinch

The newest commit seemed to fix that problem, perhaps give it a shot?

AI-Casanova avatar Jan 19 '23 14:01 AI-Casanova

I have the same problem and I'm also using the latest commit.

enbermudas avatar Jan 20 '23 20:01 enbermudas

If anything the issue has gotten worse in the passed week, can anyone direct me to the part of the code that causes that gallery on the right to update? maybe I can try work my way backwards to find the issue.

GroxicTinch avatar Jan 21 '23 01:01 GroxicTinch

@DarkVamprism I believe it's all in progress.py

AI-Casanova avatar Jan 21 '23 02:01 AI-Casanova

Thanks, I have noticed one thing, using the network tab of Firefox these lines don't show at all when the gallery fails to update image

GroxicTinch avatar Jan 21 '23 02:01 GroxicTinch

just an update since I'm still having the issue, if I generate images using Firefox with a high batch count or batch size they don't get sent to the gui after generation, but using Chrome straight after it is 100% fine with no loss.

GroxicTinch avatar Feb 11 '23 11:02 GroxicTinch