[vtk-developers] Offscreen rendering OpenGL, linux, leaks memory

Dan Lipsa dan.lipsa at kitware.com
Mon Jun 13 12:42:49 EDT 2016


As Dave suggested: comment bits out, rerun the test, repeat.
The leak was caused by display lists not being freed when the renderer was
removed from the render window.

On Mon, Jun 13, 2016 at 12:32 PM, Sankhesh Jhaveri <
sankhesh.jhaveri at kitware.com> wrote:

> Awesome Dan.
>
> How did you end up debugging?
>
> ​Sankhesh
>
>
>
> On Mon, Jun 13, 2016 at 11:23 AM, Dan Lipsa <dan.lipsa at kitware.com> wrote:
>
>> I merged in a fix for this
>> https://gitlab.kitware.com/vtk/vtk/merge_requests/1556
>>
>>
>> On Fri, Jun 10, 2016 at 3:54 PM, Dan Lipsa <dan.lipsa at kitware.com> wrote:
>>
>>> We tried the test program on two platforms:
>>>
>>> 1. OpenGL vendor string: VMware, Inc.
>>> OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.6, 256 bits)
>>> OpenGL version string: 2.1 Mesa 11.0.7
>>>
>>> Here the leak is about 70MB for 10000. Here our collaborator run the
>>> equivalent python program.
>>> He connected to a linux machine using TigerVNC.
>>>
>>> 2. OpenGL vendor string: NVIDIA Corporation
>>> OpenGL renderer string: Quadro K2000/PCIe/SSE2
>>> OpenGL core profile version string: 4.2.0 NVIDIA 304.131
>>> OpenGL core profile shading language version string: 4.20 NVIDIA via Cg
>>> compiler
>>>
>>> Here the leak is about 20 MB for 10000 iterations.
>>>
>>> On Fri, Jun 10, 2016 at 9:40 AM, Dan Lipsa <dan.lipsa at kitware.com>
>>> wrote:
>>>
>>>> Thanks Dave. This is a great idea. I will test this and report back.
>>>>
>>>> Beyond that, the debugging tools are failing us and I don't see many
>>>>> other options than to start cutting out bits of the code to locate the
>>>>> problem. See if the leak goes away when, e.g.
>>>>> vtkOpenGLRenderer::DeviceRender is bypassed and go from there.
>>>>>
>>>>
>>>> Indeed. Thanks for the pointer.
>>>>
>>>> Dan
>>>>
>>>>
>>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtk-developers
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20160613/92cd8e18/attachment.html>


More information about the vtk-developers mailing list