Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Incompatible with TCMalloc #71

Open
1 task done
palant opened this issue Oct 30, 2023 · 2 comments
Open
1 task done

[Bug]: Incompatible with TCMalloc #71

palant opened this issue Oct 30, 2023 · 2 comments

Comments

@palant
Copy link

palant commented Oct 30, 2023

Is there an existing issue for this?

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

What happened?

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

  • munmap_chunk(): invalid pointer
  • double free or corruption (out)
  • Segmentation fault
  • free(): invalid size

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
Copy link

armynew commented Nov 1, 2023

same error on intel iris XE graphic

@armynew
Copy link

armynew commented Nov 1, 2023

Is this project in going on ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants