[vtk-developers] Leaks in vtkTkRenderWidget under python

David Gobbi david.gobbi at gmail.com
Tue Nov 1 09:58:05 EDT 2016


On Mon, Oct 31, 2016 at 3:30 PM, David Gobbi <david.gobbi at gmail.com> wrote:

> On Mon, Oct 31, 2016 at 1:56 PM, Ken Martin <ken.martin at kitware.com>
> wrote:
>
>>
>> So I recently fixed the leak reporting in VTK and with Will's help
>> cleaned up some leaks that had crept in recently. But.. there are some
>> leaks in vtkTkRenderWidget tests under Python that I'm a bit stuck on. I
>> added some error checking code and the
>>
>> vtkTkRenderWidget_Destroy(char *memPtr)
>>
>> is never getting invoked. As I don't know Python, the test example leaves
>> me a bit lost as to what should be calling that. If anyone has an idea for
>> a fix please go ahead. If not I'll suppress the errors on those four tests
>> so the nightlies are clean. etc.
>>
>
> I'll take a look.  The trick will be to ensure it isn't destroyed too
> soon...
>

The following MR fixes the leaks by explicitly calling destroy():
http://gitlab.kitware.com/vtk/vtk/merge_requests/2125
It's not an ideal solution, but it's a workable one.

 - David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20161101/ff3c08be/attachment.html>


More information about the vtk-developers mailing list