-
-
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
webp decoder is leaking memory #586
Comments
Thanks, I'll take a look at it. |
Notes from pycon -- look at pep 454, in py3.4, using tracemalloc. In session on memory leaks. Ubunbu package backport for 2.7 and 3.3 and have to recompile extensions.
|
More exploration:
So. New thought, we're not decrefing something. Not sure why it's not showing up in the garbage collection counter though. |
Would be nice to get a fix for this in to 2.5.0 |
Targeting future |
#1114 fixes this OMM. |
@wiredfool Thanks for the fix. I have tested about a GB's pictures, and there is no longer obvious leaking. |
You must also free the pixel buffer when dealing with RGB data, just after calling PyBytes_FromStringAndSize.
I have written a simple standalone test case you can run to see the damage for yourself:
http://xpra.org/trac/browser/xpra/trunk/src/tests/xpra/codecs/test_Pillow.py
And you can see our fix here (for Cython code, but you get the idea):
http://xpra.org/trac/changeset/5945/xpra
The text was updated successfully, but these errors were encountered: