openvinotoolkit / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
247 stars 39 forks source link

[Bug]: Incompatible with TCMalloc #71

Open palant opened 8 months ago

palant commented 8 months ago

Is there an existing issue for this?

What happened?

When running with TCMalloc installed, generating an image crashes the process with memory-related error messages. The errors I’ve seen:

Steps to reproduce the problem

  1. Install TCMalloc
  2. Start WebUI
  3. Try to generate an image with OpenVINO script.

What should have happened?

TCMalloc is typical for a WebUI setup because without it the Python process will leak memory. Ideally, OpenVINO should support it. Never mind that the bugs causing it to crash with TCMalloc are likely present without it as well, merely masked.

At the very least, the installation instructions should suggest export NO_TCMALLOC=1 as a work-around.

Sysinfo

OS is Ubuntu 23.04. Relevant packages: torch 2.0.1, torchvision 0.15.2, openvino 2023.1.0.

Console logs

There is no Python backtrace, the error happens in native code.

armynew commented 8 months ago

same error on intel iris XE graphic

armynew commented 8 months ago

Is this project in going on ?