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

[Bug]: The size of CanvasElement keep expand.

Open gitama2023 opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

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

What happened?

The size of CanvasElement keep expand. Ultimately, it leads to unresponsive and crash (web page)

Steps to reproduce the problem

  1. In txt2img generate 1 image
  2. click Send to img2img button
  3. click button - Copy image to: inpaint
  4. click button - Copy image to: inpaint sketch

use F12 check inpaint sketch canvas element, its width and height are constantly refreshing and increasing.

What should have happened?

just be normal like direct upload image to inpaint sketch

Version or Commit where the problem happens

commit 394ffa7b0a7fff3ec484bcd084e673a8b301ccc8

What Python version are you running on ?

Python 3.10.x

What platforms do you use to access the UI ?

Windows, Linux

What device are you running WebUI on?

Nvidia GPUs (GTX 16 below)

Cross attention optimization

Automatic

What browsers do you use to access the UI ?

Mozilla Firefox

Command Line Arguments

export COMMANDLINE_ARGS="--opt-sdp-no-mem-attention --no-half"
export PYTORCH_CUDA_ALLOC_CONF="max_split_size_mb:128"
export NO_TCMALLOC="True"

List of extensions

pass (already tried with disable all extensions option - all)

Console logs

pass

Additional information

No response

gitama2023 avatar Jun 28 '23 21:06 gitama2023

i ve got black pixels generated on last version xD

ThesiiNCey avatar Jun 29 '23 00:06 ThesiiNCey

@gitama2023 Are the display scales of Windows and browser both set to 100%?

I had the same problem a few hours ago, but when I set the display scale ratio of both my browser and Windows to 100%, the problem was resolved.

However, 100% display scale may not be suitable for users with high-resolution screens, or you may have other reasons for not wanting to set the Windows display scale to 100%. This could potentially solve your problem:

I tried keeping the scale of windows at my preferred 200%, while setting the browser's scale to 50% (multiplying still results in 100). This should also resolve the issue (if not, then revert back to 100%/100%).

Instead of adjusting the Windows display scale every time you use Sketch/Inpaint Sketch, I believe it is much easier to only adjust the browser's display scale.

cuffuuguu avatar Jul 07 '23 03:07 cuffuuguu

@gitama2023 Are the display scales of Windows and browser both set to 100%?

Well, I tried change the zoom to 100%, and this bug won't appear again. Thanks.

PS: not only Windows, Ubuntu can also trigger this bug.

gitama2023 avatar Jul 07 '23 04:07 gitama2023

I'm sorry, I'm not sure how to solve this problem on Ubuntu.

You can still try adjusting the display scale of your OS and browser.

cuffuuguu avatar Jul 07 '23 06:07 cuffuuguu

@cuffuuguu You don't need to sorry, the 'Change Browser Scale' is equally effective on Ubuntu.

gitama2023 avatar Jul 07 '23 07:07 gitama2023