-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Memory leak - drawing text #7540
Labels
Comments
I can reproduce the leak. |
Ok, I've created PR #7549 to resolve this. See what you think. |
yesrod
added a commit
to yesrod/fithinator
that referenced
this issue
Dec 30, 2023
there is a memory leak in the 10.x releases that should be fixed in 10.2.0, which isn't out yet, but this version specifier should allow 10.2.0 to be installed when it's released python-pillow/Pillow#7540
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi :)
I have found a memory leak when drawing text with Pillow.
How to reproduce
Docker run command (example)
docker run -it --rm --name pillow_python_test -v "$PWD":/usr/src/myapp -w /usr/src/myapp python_for_pillow python test_pillow.py
python_for_pillow is my docker python:3.8-slim image with Pillow (10.1.0) and psutils installed.
Python script to reproduce the memory leak (test_pillow.py)
This code outputs the RAM usage every 10 seconds. Example output:
The RAM usage is increasing by approximately 2 MB every 10 seconds. This does not happen when drawing rectangles. If you replace the for loop with while true, the memory leak can be observed as well.
The text was updated successfully, but these errors were encountered: