[vtkusers] Free x server memory

Mathieu P mtp.vtk at gmail.com
Wed Apr 7 04:05:40 EDT 2010


I'm using top or gnome integrated system monitor showing process memory
usage.

Cordialement,

-- Mathieu PICCIN




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

> How do you measure the memory consumption?
>
> On Tue, Apr 6, 2010 at 12:35 PM, Mathieu P <mtp.vtk at gmail.com> wrote:
> > So my Graphic card is a nvidia Quadro FX 1800, OpenGL v3
> > and Nvidia drivers 185.18.36
> > Another strange problem in my program and the X server :
> > I try to change the color of my lungtree, for example one color per
> > generation.
> > I use actor->GetProperty()->SetColor().
> > That's add 100MB on my server X memory. I dont understand why because my
> > actors for lungtrees branchs already exists, and they already have a
> default
> > color...
> > I have tested my program on several computers, with different X Server
> > system, and i always have the 2 problems.
> > Thanks for advices,
> > Cordialement,
> >
> > -- Mathieu PICCIN
> >
> >
> >
> >
> > On Tue, Apr 6, 2010 at 5:47 PM, Francois Bertel
> > <francois.bertel at kitware.com> wrote:
> >>
> >> you can get the version of your driver with:
> >>
> >> $ glxinfo | grep "OpenGL version"
> >>
> >> Again, if the application exited, then this is out of the scope of
> >> VTK. This is a leak on the driver side, this a bug in the nVidia
> >> driver, not in VTK.
> >>
> >>
> >> On Tue, Apr 6, 2010 at 11:31 AM, Mathieu P <mtp.vtk at gmail.com> wrote:
> >> > 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
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> 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
> >
> >
>
>
>
> --
> 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/20100407/1028d9f4/attachment.htm>


More information about the vtkusers mailing list