[vtkusers] Free x server memory

Mathieu P mtp.vtk at gmail.com
Tue Apr 6 11:31:00 EDT 2010


Hello :

First i am using
OpenSUSE
Graphic NVIDIA Quaddro  FX1700
Dont know the exact nvidia driver version, but recent.

I am using a QVTKWidget.
I cannot delete vtkRenderWindow and vtkRenderWindowInteractor because it's
done in the QVTKWidget desctructor.
(i get a crash if i try)

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.

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.

I have no any problem with other 3D applications...


Cordialement,

-- Mathieu PICCIN




On Tue, Apr 6, 2010 at 4:19 PM, Francois Bertel <francois.bertel at kitware.com
> wrote:

> Hello,
>
> If there is a leak in the Xserver after the vtk based program exit
> then this is out of the scope of VTK.
>
> It can be a bug in your X server or it can be some result that the X
> server caches (it can cache a database of fonts and symbols).
>
> What happen when you start/exit another application regarding the X
> server memory consumption (try a big app like Firefox, try an
> OpenGL-based app like glxgears)? How do you measure this memory
> consumption?
>
> What's your OS, graphics cards, graphics card driver?
>
>
> On Fri, Apr 2, 2010 at 8:33 AM, Mathieu P <mtp.vtk at gmail.com> wrote:
> > Actually i cannot delete vtkRenderWindow or vtkRenderWindowInteractor
> > without program crash.
> >
> > I am using QVTKWidget, and i cannot understand why my X Server continue
> to
> > have 300MB loaded in memory after program exit...
> >
> > I have already tried some vtkRenderWindow->Finalize() and
> > vtkRenderWindowInteractor->Start()...
> >
> >
> > Cordialement,
> >
> > -- Mathieu PICCIN
> >
> >
> >
> >
> > On Thu, Apr 1, 2010 at 5:52 PM, Mathieu P <mtp.vtk at gmail.com> wrote:
> >>
> >> Hi all,
> >>
> >> I am loading a huge data set of points (to display lungtrees) with VTK.
> >> When i exit the application i have 300 MB of memory used by my X Server.
> >>
> >> I have tried to Delete renderer, renderWindow, renderWindowInteractor,
> >> without any change.
> >>
> >> I have also tried to use the VTK WIKI way to delte point, but no
> >> success...
> >>
> >> Is there a specific way to free memory from the X Server when exiting
> vtk
> >> ?
> >>
> >> Thanks,
> >>
> >> Cordialement,
> >>
> >> -- Mathieu PICCIN
> >>
> >>
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
>
>
>
> --
> François Bertel, PhD  | Kitware Inc. Suite 204
> 1 (518) 371 3971 x113 | 28 Corporate Drive
>                      | Clifton Park NY 12065, USA
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100406/521aa130/attachment.htm>


More information about the vtkusers mailing list