Hi naresh, seems to me that these leaks occur each time i destroy a field container.
Michael -------- Original-Nachricht -------- > Datum: Tue, 31 Mar 2009 16:01:44 +0530 > Von: "naresh" <[email protected]> > An: [email protected] > Betreff: Re: [Opensg-users] memory leaks? > Hi Michael > > > I had also tested this leaks in OpenSG 1.8 but this leaks are only when > you > terminates the applications.because some object taken as global not > dereferanced. > > Specially Dirk and Geritt now doing changes in OpenSG 2.0 as major new > release so probably their aim on OpenSG 2.0 . Try to port on OpenSG 2.0 > > > ----- Original Message ----- > From: "Michael Raab" <[email protected]> > To: <[email protected]> > Sent: Tuesday, March 31, 2009 3:33 PM > Subject: Re: [Opensg-users] memory leaks? > > > Hi all, > > seems to be a leak of 8 Byte per FC, possibly 4Byte for 32bit pointer on > the > FC (or Null if not alive) and 4Byte for the ID? > If so, is it necessary to keep this information? > > many thanks, > Michael > > -------- Original-Nachricht -------- > > Datum: Tue, 31 Mar 2009 10:53:46 +0200 > > Von: "Michael Raab" <[email protected]> > > An: [email protected] > > Betreff: Re: [Opensg-users] memory leaks? > > > Hi all, > > > > 1.) I'm using OpenSG on Windows. > > > > 2.) FCFactory registry might be the problem. I've attached a sample > > application, in which i create und destroy a set of dummy objects each > > containing > > 3 nodes, 1 transform core and 2 group cores. > > For a set size of 50000 dummy objects, i can discover leaks of approx. > > 3MBs after unloading the objects. Does this size sound reasonable for > you? > > > > many thanks, > > Michael > > > > -------- Original-Nachricht -------- > > > Datum: Fri, 27 Mar 2009 10:56:25 -0500 > > > Von: Dirk Reiners <[email protected]> > > > An: [email protected] > > > Betreff: Re: [Opensg-users] memory leaks? > > > > > > > > Hi Michael, > > > > > > Michael Raab wrote: > > > > Hi all, > > > > > > > > i'm using openSG 1.8 as basis for our vr application. When loading > and > > > > unloading our scenarios i discovered some memory leaks. Searching in > > my > > > > source code helped not to close them. I wrote a small test benchmark > > in > > > which > > > > i create 50000 objects where each object creates 3 opensg nodes, 1 > > > transform > > > > core and 2 groups. After destroying my 50000 objects, the opensg > nodes > > > and > > > > cores are successfully destroyed, if i can trust the fc statistics > > > > (http://opensg.vrsource.org/trac/wiki/Tutorial/OpenSG1/Memleak). So > > are > > > there > > > > any known memory leaks that are caused by opensg? > > > > > > First: how big is the memleak? But a few KB or does grow without > bound? > > > > > > In general OpenSG 1 handles cleanup reasonably well, as long as you > use > > > RefPtrs > > > or manage the refcount yourself. > > > > > > I see two possibilities: > > > > > > - ChangeList is not cleared. If you set it to read/write at the > > beginning > > > of the > > > program you need to clear it occasionally or it will grow without > > bounds. > > > - FCFactory registry. The FCFactory keeps a registry, a simple vector, > > for > > > all > > > created FCs, which doesn't shrink when objects are deleted (to make > sure > > > IDs are > > > unique). If you create this many objects regularly even a few bytes in > > > that > > > vector can add up. > > > > > > Are you on Linux or Windows? If Linux I recommend running it through > > > valgrind, > > > which pretty reliably will find mem leaks. I don't know any equivalent > > > tools on > > > Windows though. > > > > > > Can you send us your test program? We can give it a look and see if > > there > > > is > > > something unusual. > > > > > > Yours > > > > > > Dirk > > > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > > > Opensg-users mailing list > > > [email protected] > > > https://lists.sourceforge.net/lists/listinfo/opensg-users > > > > -- > > Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + > > Telefonanschluss für nur 17,95 Euro/mtl.!* > > http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a > > -- > Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + > Telefonanschluss > für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a > > ------------------------------------------------------------------------------ > _______________________________________________ > Opensg-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/opensg-users > > > ------------------------------------------------------------------------------ > _______________________________________________ > Opensg-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/opensg-users -- Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a ------------------------------------------------------------------------------ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
