Hello :<div><br></div><div>First i am using </div><div>OpenSUSE</div><div>Graphic NVIDIA Quaddro FX1700 </div><div>Dont know the exact nvidia driver version, but recent.</div><div><br></div><div>I am using a QVTKWidget.</div>
<div>I cannot delete vtkRenderWindow and vtkRenderWindowInteractor because it's done in the QVTKWidget desctructor.</div><div>(i get a crash if i try)</div><div><br></div><div>I have tried to use the mapper :: ImmediateRenderingOn() function. it's partially solve the problem because there is no more display lists loaded in the x server, so no memory at the exit, but it's very slow (very slow frame rate ~2), and cannot be used for real time rendering.</div>
<div><br></div><div>I have also tried to make the rendering window inside the QVTKWidget current, and call glDeleteLists(0,0xFFFFFFFF). But no result. I have always my 300MB of lung tree datas in the X Server.</div><div><br>
</div><div>I have no any problem with other 3D applications...</div><div><br></div><div><br clear="all">Cordialement,<br><br>-- Mathieu PICCIN<br><br><br>
<br><br><div class="gmail_quote">On Tue, Apr 6, 2010 at 4:19 PM, Francois Bertel <span dir="ltr"><<a href="mailto:francois.bertel@kitware.com" target="_blank">francois.bertel@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
If there is a leak in the Xserver after the vtk based program exit<br>
then this is out of the scope of VTK.<br>
<br>
It can be a bug in your X server or it can be some result that the X<br>
server caches (it can cache a database of fonts and symbols).<br>
<br>
What happen when you start/exit another application regarding the X<br>
server memory consumption (try a big app like Firefox, try an<br>
OpenGL-based app like glxgears)? How do you measure this memory<br>
consumption?<br>
<br>
What's your OS, graphics cards, graphics card driver?<br>
<div><div></div><div><br>
<br>
On Fri, Apr 2, 2010 at 8:33 AM, Mathieu P <<a href="mailto:mtp.vtk@gmail.com" target="_blank">mtp.vtk@gmail.com</a>> wrote:<br>
> Actually i cannot delete vtkRenderWindow or vtkRenderWindowInteractor<br>
> without program crash.<br>
><br>
> I am using QVTKWidget, and i cannot understand why my X Server continue to<br>
> have 300MB loaded in memory after program exit...<br>
><br>
> I have already tried some vtkRenderWindow->Finalize() and<br>
> vtkRenderWindowInteractor->Start()...<br>
><br>
><br>
> Cordialement,<br>
><br>
> -- Mathieu PICCIN<br>
><br>
><br>
><br>
><br>
> On Thu, Apr 1, 2010 at 5:52 PM, Mathieu P <<a href="mailto:mtp.vtk@gmail.com" target="_blank">mtp.vtk@gmail.com</a>> wrote:<br>
>><br>
>> Hi all,<br>
>><br>
>> I am loading a huge data set of points (to display lungtrees) with VTK.<br>
>> When i exit the application i have 300 MB of memory used by my X Server.<br>
>><br>
>> I have tried to Delete renderer, renderWindow, renderWindowInteractor,<br>
>> without any change.<br>
>><br>
>> I have also tried to use the VTK WIKI way to delte point, but no<br>
>> success...<br>
>><br>
>> Is there a specific way to free memory from the X Server when exiting vtk<br>
>> ?<br>
>><br>
>> Thanks,<br>
>><br>
>> Cordialement,<br>
>><br>
>> -- Mathieu PICCIN<br>
>><br>
>><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
François Bertel, PhD | Kitware Inc. Suite 204<br>
1 (518) 371 3971 x113 | 28 Corporate Drive<br>
| Clifton Park NY 12065, USA<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>