Re: Resource Leak

I agree with Tom...I ran this on Windoz and the result was the same -- it just took longer to gobble up the memory...

Given Don's observation that if the window is displayed, the leak doesn't, well, leak, I cannot help wonder if this bug isn't related:

http://developer.java.sun.com/developer/bugParade/bugs/4727054.html

It says, in part:

"Current architecture allocate message and send to MasterControl
every time an attributes of scene graph changed.
This is most like done by behavior thread.

Under normal circumstance when window minizimize all Java3D threads
are put to sleep so there is no message passing in the system
from Behavior or other Java3D thread.

However if there is a free running thread which continously change
scene graph attributes the message will continously accumulate in
the system and MasterControl thread will not wake up to process
any message. This result in out of memory after a while.

It is not recommend to do so even though window is not minimize
since the thread may pump message to
java3d system too fast that java3d can't handle. Thus can dramatically
slow down the system. Besides, java3d can only change scene graph
as fast as the frame rate. So if the transform is changed 10 times
between each frame the first 9 time are ignored. The best way to
do so is to use behavior thread which gaurantee synchronized with
the Java3d system and frame rate.

This bug will most likely mark "will not fix" later."

tom
--
Tom Whittaker (tomw@xxxxxxxxxxxxx)
University of Wisconsin-Madison
Space Science and Engineering Center
Cooperative Institute for Meteorological Satellite Studies
Phone/VoiceMail: 608.262.2759