Memory error with TestQ3

Hi!  I've been trying your excellent jMonkeyPlatform alpha 1 (a fresh download as of today) and I found a small problem:



I was using a slightly customized version of the TestQ3 (the only thing different is I downloaded and stuck the quake3level.zip in the execution path) and it ran fine.  But after running it the 2nd or 3rd time it gave me some kind of out of memory error and it shut down.  Is there some weird memory leak going on here?



Also, are there wiki pages on the Bullet classes or just javadoc?

Are you getting an HotSpot dump with the JVM crash ?

It could be the NIO buffers: http://bugs.sun.com/view_bug.do?bug_id=4469299



See also this post: http://www.jmonkeyengine.com/forum/index.php?topic=13908.msg100648#msg100648

"monkeyBrainz" wrote:
Hi!  I've been trying your excellent jMonkeyPlatform alpha 1 (a fresh download as of today) and I found a small problem:

I was using a slightly customized version of the TestQ3 (the only thing different is I downloaded and stuck the quake3level.zip in the execution path) and it ran fine.  But after running it the 2nd or 3rd time it gave me some kind of out of memory error and it shut down.  Is there some weird memory leak going on here?

Also, are there wiki pages on the Bullet classes or just javadoc?
Not that I know of a weird memory leak. The jvm being used by the tests should have its own memory settings, you can set it in the project settings. Theres no docs but javadoc on jme3 physics yet. However  at http://jbullet-jme.googlecode.com you can see the docs I wrote for the jme2 version, most things are the same.

What is the memory error? Does it have a stack trace?

You can enforce more frequent cleanup of native memory with this JVM arg: -XX:MaxDirectMemorySize=256m