OGL OOM

The worst monsters in the Hearthlands warp the fabric of space and time...

OGL OOM

Postby animary » Mon Jul 07, 2025 8:29 am

I've been running Haven on this system for two years now with no problems. It also runs MS Flightsim and other such games nicely. Starting a few days ago haven is throwing javaw "OpenGL driver has run out of memory" errors and crashing. It seems random, I may play an hour or so with no problem, or fifteen minutes in it crashes with that error; tonight I logged in and it wasn't more than a couple of minutes before it crashed, yet a couple of days ago I had a marathon three hour session without issue.

Have you done something with java memory management in a recent update?
animary
 
Posts: 298
Joined: Wed Feb 23, 2011 4:05 am
Location: Ohio

Re: OGL OOM

Postby animary » Mon Jul 07, 2025 9:17 am

FWIW, this happened twice since posting that, each time i wasn't in the game more than 20-30 seconds.

This is the error message:

java.lang.RuntimeException: com.jogamp.opengl.GLException: Caught BGLException: haven.render.gl.GLException$GLOutOfMemoryException: GL Error: 1285 (GL_OUT_OF_MEMORY) on thread AWT-EventQueue-0
at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:103)
at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:201)
at com.jogamp.opengl.Threading.invokeOnOpenGLThread(Threading.java:202)
at com.jogamp.opengl.Threading.invoke(Threading.java:221)
at com.jogamp.opengl.awt.GLCanvas.display(GLCanvas.java:503)
at haven.JOGLPanel.uglyjoglhack(JOGLPanel.java:210)
at haven.JOGLPanel.renderloop(JOGLPanel.java:231)
at java.lang.Thread.run(Unknown Source)
Caused by: com.jogamp.opengl.GLException: Caught BGLException: haven.render.gl.GLException$GLOutOfMemoryException: GL Error: 1285 (GL_OUT_OF_MEMORY) on thread AWT-EventQueue-0
at com.jogamp.opengl.GLException.newGLException(GLException.java:76)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1327)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
at com.jogamp.opengl.awt.GLCanvas$12.run(GLCanvas.java:1442)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(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)
Caused by: haven.render.gl.BGL$BGLException: haven.render.gl.GLException$GLOutOfMemoryException: GL Error: 1285 (GL_OUT_OF_MEMORY)
at haven.render.gl.BufferBGL.run(BufferBGL.java:62)
at haven.render.gl.GLEnvironment.process(GLEnvironment.java:339)
at haven.JOGLPanel.redraw(JOGLPanel.java:174)
at haven.JOGLPanel.access$000(JOGLPanel.java:41)
at haven.JOGLPanel$1.display(JOGLPanel.java:93)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)
at com.jogamp.opengl.awt.GLCanvas$11.run(GLCanvas.java:1428)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)
... 16 more
Caused by: haven.render.gl.GLException$GLOutOfMemoryException: GL Error: 1285 (GL_OUT_OF_MEMORY)
at haven.render.jogl.JOGLWrap.xlatejoglexc(JOGLWrap.java:182)
at haven.render.jogl.JOGLWrap.xlateexc(JOGLWrap.java:201)
at haven.render.gl.BufferBGL.run(BufferBGL.java:58)
... 24 more
Caused by: com.jogamp.opengl.GLException: Thread[AWT-EventQueue-0,6,main] glGetError() returned the following error codes after a call to glTexImage2D(<int> 0xDE1, <int> 0x0, <int> 0x8058, <int> 0x200, <int> 0x200, <int> 0x0, <int> 0x1908, <int> 0x1401, <java.nio.Buffer> java.nio.HeapByteBuffer[pos=0 lim=1048576 cap=1048576]): GL_OUT_OF_MEMORY ( 1285 0x505),
at com.jogamp.opengl.DebugGL4bc.writeGLError(DebugGL4bc.java:31781)
at com.jogamp.opengl.DebugGL4bc.glTexImage2D(DebugGL4bc.java:23204)
at haven.render.jogl.JOGLWrap.glTexImage2D(JOGLWrap.java:142)
at haven.render.gl.BGL$77.run(BGL.java:699)
at haven.render.gl.BufferBGL.run(BufferBGL.java:56)
... 24 more
animary
 
Posts: 298
Joined: Wed Feb 23, 2011 4:05 am
Location: Ohio


Return to Bugs

Who is online

Users browsing this forum: Claude [Bot], Dotbot [Bot] and 73 guests