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

Fixed memory leak issue in Ubuntu 22.04 or modern linux environment #60

Closed
wants to merge 1 commit into from
Closed

Fixed memory leak issue in Ubuntu 22.04 or modern linux environment #60

wants to merge 1 commit into from

Conversation

analysisjp
Copy link
Contributor

Description

Fixed an issue where tcmalloc was not preloaded on recent Linux such as ubuntu 22.04, causing a memory leak.

This is because on modern linux libpthread is integrated into libc.so. and there is a problem with the tcmalloc search logic in webui.sh.

This merge checks the lib version in advance and sets tcmalloc to LD_PRELOAD appropriately.

see also -->
AUTOMATIC1111/stable-diffusion-webui#14227
(I think this merge is wrong....)

Screenshots/videos:

Checklist:

@huchenlei
Copy link
Contributor

I saw the PR in A1111 is merged. I am going to close this PR, and pull the change from A1111 upstream. (If I merge the PR, there will be merge conflict when we pull the same change from upstream.)

@huchenlei huchenlei closed this Feb 6, 2024
@analysisjp
Copy link
Contributor Author

Hmm, I understand.😿
A1111 Waiting for upstream to see this and do something about it...

@analysisjp
Copy link
Contributor Author

Good news:
Merged into A1111's dev branch

thank you

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

Successfully merging this pull request may close these issues.

2 participants