-
Notifications
You must be signed in to change notification settings - Fork 6
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? #1
Comments
Does it in fact crash after a while, or does memory use just get really big but it keeps running? |
It does crash. That's why I noticed it. On Oct 18, 2016 3:50 PM, "Paint Your Dragon" notifications@github.com
|
There seems to be an issue also with the RGB order. Setting it does affect Ed Tannenbaum On Tue, Oct 18, 2016 at 6:08 PM, Ed Tannenbaum et@et-arts.com wrote:
|
Python modules are new territory for me, so I might be handling references wrong WRT allocation and deallocation. Looking at some others' code, here's something that might be worth trying...in lightpaint.c, toward the end of the LightPaint_new() function, comment out this line: |
That seems to have plugged it! I just commented out the Py_INCREF(self). The RGB order bug still stands but for me is solved. I can't tell where Ed Tannenbaum On Wed, Oct 19, 2016 at 2:43 PM, Paint Your Dragon <notifications@github.com
|
I modified the code slightly to just go through a bunch of images and repeat. This is for a museum installation and must run continuously. It seems that the imagebuf doesn't get freed so eventually I run out of memory. I don't know enough about how Python manages memory to fix this. Can you confirm this leak exists and find a fix? Just run "top" along side it and watch the memory usage as you load new images.
Thanks for the great software!
Ed
The text was updated successfully, but these errors were encountered: