java.lang.OutOfMemoryError
in
Contributed Library Questions
•
3 months ago
I have a lot of code.
To much to paste here.
When i run my sketch it goes fine but the memory is increasing till i get a memory leak.
Now my question is. How can i figure out where the problem is?
And is there anyone willing to look at my code?
It's for my graduation project which i have to finish in a few days.
Here is the red error text:
- java(296,0xbb183000) malloc: *** mmap(size=528384) failed (error code=12)
- *** error: can't allocate region
- *** set a breakpoint in malloc_error_break to debug
- java.lang.RuntimeException: java.lang.OutOfMemoryError
- at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
- at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:100)
- at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:205)
- at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)
- at javax.media.opengl.Threading.invoke(Threading.java:191)
- at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:483)
- at processing.opengl.PGL.requestDraw(PGL.java:1155)
- at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1602)
- at processing.core.PApplet.run(PApplet.java:2141)
- at java.lang.Thread.run(Thread.java:680)
- Caused by: java.lang.OutOfMemoryError
- at sun.misc.Unsafe.allocateMemory(Native Method)
- at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:110)
- at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
- at processing.opengl.PGL.allocateDirectIntBuffer(PGL.java:2382)
- at processing.opengl.PGL.updateIntBuffer(PGL.java:2409)
- at processing.opengl.Texture.updatePixelBuffer(Texture.java:839)
- at processing.opengl.Texture.set(Texture.java:339)
- at processing.opengl.Texture.set(Texture.java:301)
- at processing.opengl.PGraphicsOpenGL.initCache(PGraphicsOpenGL.java:5798)
- at processing.opengl.PGraphicsOpenGL.getTexture(PGraphicsOpenGL.java:5768)
- at processing.opengl.PGraphicsOpenGL$TexCache.getTexture(PGraphicsOpenGL.java:7424)
- at processing.opengl.PGraphicsOpenGL.flushPolys(PGraphicsOpenGL.java:2367)
- at processing.opengl.PGraphicsOpenGL.flush(PGraphicsOpenGL.java:2322)
- at processing.opengl.PGraphicsOpenGL.endDraw(PGraphicsOpenGL.java:1667)
- at v2606_processing201_151keystone$AbstractFeader.preProcessedImage(v2606_processing201_151keystone.java:616)
- at v2606_processing201_151keystone$MasterFeader.preProcessedImage(v2606_processing201_151keystone.java:2533)
- at v2606_processing201_151keystone$TangibleHandler.update(v2606_processing201_151keystone.java:3037)
- at v2606_processing201_151keystone$MPresent.display(v2606_processing201_151keystone.java:2007)
- at v2606_processing201_151keystone$MPresent.display(v2606_processing201_151keystone.java:1989)
- at v2606_processing201_151keystone.draw(v2606_processing201_151keystone.java:47)
- at processing.core.PApplet.handleDraw(PApplet.java:2270)
- at processing.opengl.PGL$PGLListener.display(PGL.java:2643)
- at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:576)
- at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:561)
- at javax.media.opengl.awt.GLCanvas$7.run(GLCanvas.java:1054)
- at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1024)
- at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:899)
- at javax.media.opengl.awt.GLCanvas$8.run(GLCanvas.java:1065)
- at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
- at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:708)
- at java.awt.EventQueue.access$400(EventQueue.java:82)
- at java.awt.EventQueue$2.run(EventQueue.java:669)
- at java.awt.EventQueue$2.run(EventQueue.java:667)
- at java.security.AccessController.doPrivileged(Native Method)
- at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
- at java.awt.EventQueue.dispatchEvent(EventQueue.java:678)
- at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
- at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
- at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
- at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
- at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
- at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
1