Demos all crash with GL out of memory error

Hi,



When I try to run any of the demos in jME 2.0 r4093 using run_jME.bat, I get

org.lwjgl.opengl.OpenGLException: Out of memory (1285)
        at org.lwjgl.opengl.Util.checkGLError(Util.java:54)
        at org.lwjgl.opengl.Display.swapBuffers(Display.java:617)
        at org.lwjgl.opengl.Display.update(Display.java:637)
        at com.jme.renderer.lwjgl.LWJGLRenderer.displayBackBuffer(LWJGLRenderer.java:517)
        at com.jme.app.BaseGame.start(BaseGame.java:90)
        at jmetest.renderer.TestTorus.main(TestTorus.java:70)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at jmetest.TestChooser.start(TestChooser.java:465)
        at jmetest.TestChooser.main(TestChooser.java:444)



I get the error regardless of which demo I choose, and which resolution / bit depth I choose. I'm selecting the jlwgl rendering method. If I download jlwgl and run their demos, they work fine. Any ideas what might be wrong?

I'm using Windows Vista on a laptop with an ATI Radeon mobile 1400 card and 2 GB of RAM. I searched the forums for this error but couldn't find anyone else that had encountered it while running the demos.

can you check if you have recent video drivers?

That fixed it. Thanks!

:-o  :smiley:

Hi

I have the same problem. Whenever i try to run any of the demos i got the following error message:


SEVERE: Exception in game loop
org.lwjgl.opengl.OpenGLException: Out of memory (1285)
        at org.lwjgl.opengl.Util.checkGLError(Util.java:54)
        at org.lwjgl.opengl.Display.swapBuffers(Display.java:640)
        at org.lwjgl.opengl.Display.update(Display.java:660)
        at com.jme.renderer.lwjgl.LWJGLRenderer.displayBackBuffer(LWJGLRenderer.
java:532)
        at com.jme.app.BaseGame.start(BaseGame.java:90)
        at jmetest.effects.TestDynamicSmoker.main(TestDynamicSmoker.java:79)



system: windows vista
graphics card: ati radeon xpress 200m series
opengl version: 6.14.10.0660

I have the latest driver. I also enabled triple buffering and 24bit depth of Z buffer in my graphics card settings for OpenGL.

Please help.

I updated my JVM and tried to get JME running once again. I opened the first demo program and after the screen with resolution selection my screen turned all black and remained that way till i rebooted my computer. I wanted to try this little trick one more time, but i got the following error message:



2009-05-19 17:34:51 com.jme.app.BaseGame start

INFO: Application started.

2009-05-19 17:34:51 com.jme.system.PropertiesGameSettings <init>

INFO: PropertiesGameSettings created

2009-05-19 17:34:51 com.jme.system.PropertiesGameSettings load

INFO: Read properties

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: [Lorg/lwj

gl/opengl/DisplayMode;

        at java.lang.Class.getDeclaredMethods0(Native Method)

        at java.lang.Class.privateGetDeclaredMethods(Unknown Source)

        at java.lang.Class.getDeclaredMethod(Unknown Source)

        at java.awt.Component.isCoalesceEventsOverriden(Unknown Source)

        at java.awt.Component.access$400(Unknown Source)

        at java.awt.Component$4.run(Unknown Source)

        at java.awt.Component$4.run(Unknown Source)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.awt.Component.checkCoalescing(Unknown Source)

        at java.awt.Component.<init>(Unknown Source)

        at java.awt.Container.<init>(Unknown Source)

        at java.awt.Window.<init>(Unknown Source)

        at java.awt.Window.<init>(Unknown Source)

        at java.awt.Dialog.<init>(Unknown Source)

        at java.awt.Dialog.<init>(Unknown Source)

        at javax.swing.JDialog.<init>(Unknown Source)

        at javax.swing.JDialog.<init>(Unknown Source)

        at javax.swing.JDialog.<init>(Unknown Source)

        at com.jme.system.lwjgl.LWJGLPropertiesDialog.<init>(LWJGLPropertiesDial

og.java:184)

        at com.jme.app.AbstractGame$1.run(AbstractGame.java:236)

        at java.awt.event.InvocationEvent.dispatch(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: java.lang.ClassNotFoundException: org.lwjgl.opengl.DisplayMode

        at java.net.URLClassLoader$1.run(Unknown Source)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at java.lang.ClassLoader.loadClassInternal(Unknown Source)

        … 28 more

Seems like the version of LWJGL that you're using is different from the one jME uses. Make sure you include the LWJGL jars that are given with jME2, or you can get LWJGL version 2.1 from their website:

http://www.lwjgl.org/