<div dir="ltr">As Dave suggested: comment bits out, rerun the test, repeat.<div>The leak was caused by display lists not being freed when the renderer was removed from the render window.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 13, 2016 at 12:32 PM, Sankhesh Jhaveri <span dir="ltr"><<a href="mailto:sankhesh.jhaveri@kitware.com" target="_blank">sankhesh.jhaveri@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#0b5394">Awesome Dan.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#0b5394"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#0b5394">How did you end up debugging?</div><div class="gmail_extra"><span class="HOEnZb"><font color="#888888"><br clear="all"><div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="color:rgb(11,83,148);font-family:verdana,sans-serif;font-size:12.8px"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148);display:inline">​Sankhesh</div></span></div><div><b></b><br> </div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br></font></span><div class="gmail_quote"><div><div class="h5">On Mon, Jun 13, 2016 at 11:23 AM, Dan Lipsa <span dir="ltr"><<a href="mailto:dan.lipsa@kitware.com" target="_blank">dan.lipsa@kitware.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">I merged in a fix for this<div><a href="https://gitlab.kitware.com/vtk/vtk/merge_requests/1556" target="_blank">https://gitlab.kitware.com/vtk/vtk/merge_requests/1556</a><br></div><div><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 10, 2016 at 3:54 PM, Dan Lipsa <span dir="ltr"><<a href="mailto:dan.lipsa@kitware.com" target="_blank">dan.lipsa@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">We tried the test program on two platforms:<div><br></div><div><div>1. OpenGL vendor string: VMware, Inc.</div><div>OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.6, 256 bits)</div><div>OpenGL version string: 2.1 Mesa 11.0.7</div></div><div><br></div><div>Here the leak is about 70MB for 10000. Here our collaborator run the equivalent python program.</div><div>He connected to a linux machine using TigerVNC.</div><div><br></div><div><div>2. OpenGL vendor string: NVIDIA Corporation</div><div>OpenGL renderer string: Quadro K2000/PCIe/SSE2</div><div>OpenGL core profile version string: 4.2.0 NVIDIA 304.131</div><div>OpenGL core profile shading language version string: 4.20 NVIDIA via Cg compiler</div></div><div><br></div><div>Here the leak is about 20 MB for 10000 iterations.</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 10, 2016 at 9:40 AM, Dan Lipsa <span dir="ltr"><<a href="mailto:dan.lipsa@kitware.com" target="_blank">dan.lipsa@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Dave. This is a great idea. I will test this and report back.<div><br><div class="gmail_extra"><div class="gmail_quote"><span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>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.</div></div></div></div></blockquote><div><br></div></span><div>Indeed. Thanks for the pointer.</div><span><font color="#888888"><div><br></div><div>Dan</div><div><br></div></font></span></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br></div></div><span class="">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
<br>
<br></span></blockquote></div><br></div></div>
</blockquote></div><br></div>