> > Does any one have the same "memory leak" problem
> > in using 3D? I have attached a copy of modified program
> > for HelloUniverse. Thanks in advance for any help.
>
> Yes. This is a known problem with 1.1.X. Basically the
> Shape3D instances
> are not being garbage collected. Apparently 1.2 has fixed this problem
> (haven't personally tested it yet).
I mentioned the memory leak problem in last week JavaOne Sun's 3D exhibition
engineer.
He did mention there is some problem in garbage collection on 1.1.X version
of 3D. He asked me to try on 1.2. I try the J3D 1.2 with JDK1.3. The
same program give me nullpointer exception even before it reaches
"out of memory" exception.

I notice, if I move the creation of Canvas3D and SimpleUniverse
out of "for" loop. That means if I only create one Canvas3D and
SimpleUniverse and just create and detach the scene graph to
SimpleUniverse. The program seems to work OK, no matter how many
creation/detach of scene graph. The total memory of virtual machine
did not increase. So It looks to me the garbage collected
work on Shape3D object (in 1.1.x J3D). I suspect it might have
something to do with the garbage collection of Canvas3D and
SimpleUniverse objects.

Ching

> -----Original Message-----
> From: Discussion list for Java 3D API
> [mailto:[EMAIL PROTECTED]]On Behalf Of Justin Couch
> Sent: Monday, June 12, 2000 5:39 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA3D] out of memory error in java 3D
>
>
> Ching Lai wrote:
>
> > out of memory exception.  I am running on NT4.0 with
> > 256M byte of RAM on Jdk1.2.2 and J3d 1.13 release.
> > I did not use -Xmx options to increase heap size.
>
> > Does any one have the same "memory leak" problem
> > in using 3D? I have attached a copy of modified program
> > for HelloUniverse. Thanks in advance for any help.
>
> Yes. This is a known problem with 1.1.X. Basically the
> Shape3D instances
> are not being garbage collected. Apparently 1.2 has fixed this problem
> (haven't personally tested it yet).
>
> --
> Justin Couch                                   Author, Java Hacker
> Software Architect                                [EMAIL PROTECTED]
> rbuzz.net                           http://www.vlc.com.au/~justin/
> Java3D FAQ                                 http://www.j3d.org/faq/
> -------------------------------------------------------------------
> "Look through the lens, and the light breaks down into many lights.
>  Turn it or move it, and a new set of arrangements appears... is it
>  a single light or many lights, lights that one must know how to
>  distinguish, recognise and appreciate? Is it one light with many
>  frames or one frame for many lights?"      -Subcomandante Marcos
> -------------------------------------------------------------------
>
> ==============================================================
> =============
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> of the message "signoff JAVA3D-INTEREST".  For general help,
> send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to