Hi all
I’m profiling my application to check out memory usage, and memory consumption seems to stay well below the max heap size (80% of the max heap size). However, occasionaly, I get this:
Exception in thread “AWT-EventQueue-0” javax.media.opengl.GLException: java.lang.OutOfMemoryError: Java heap space
at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:268)
at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:245)
at javax.media.opengl.GLCanvas.display(GLCanvas.java:130)
at javax.media.opengl.GLCanvas.paint(GLCanvas.java:142)
at gr.talent.viewer3d.Viewer3D$4.paint(Viewer3D.java:197)
at javax.media.opengl.GLCanvas.update(GLCanvas.java:202)
at sun.awt.RepaintArea.updateComponent(Unknown Source)
at sun.awt.RepaintArea.paint(Unknown Source)
at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
When this happens, the whole application freezes. The strange thing about it is that even if I clear the memory used (using the profiler), the application still stays frozen.
Has anyone came up to this problem? I use a nightly build of JSR231-beta03, built in early March.
N