-
Notifications
You must be signed in to change notification settings - Fork 59
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 in gp_camera_get_config #67
Comments
I think I've worked out what's happening. Whenever it receives a |
Doing so causes a memory leak, see bug #67.
If you'd prefer I'm happy to give it a try without a release, that'll let me confirm that it's fixed, as long as I'm not going to have too much trouble with the "Install from GitHub" instructions from the readme - will that overwrite the version installed by pip? or should I remove the pip version first? |
Ah, I've just remembered that's a bit of a hassle. You'd need to install SWIG. I'll do a release. |
ok. thanks :) |
Now released as v1.8.5. |
and confirmed fixed. My hero! Thanks so much! |
Thank you for finding and reporting the bug. |
This is similar to the leak in gp_camera_get_config (bug #67) so I've implemented a more general solution that should be more robust.
Further problems raised by bug #67. Now using more explicit typemap signatures to select which functions increment the ref count on the root widget of their result widget.
This simple script consumes ever larger amounts of memory.
I've established that removing the
gp_widget_ref
call in the Python interface gets rid of the leak, but leaves the Python interface vulnerable to the C object getting deleted prematurely.The text was updated successfully, but these errors were encountered: