Hi all!
I started to learn jMonkeyEngine, so far so good! But I have a problem when I use SimpleApplication.update()
manually. I use the engine in Clojure programming language.
Here is the problem;
SEVERE: Uncaught exception thrown in Thread[jME3 Main,5,main]
java.nio.BufferOverflowException
at java.base/java.nio.DirectFloatBufferU.put(DirectFloatBufferU.java:457)
at java.base/java.nio.FloatBuffer.put(FloatBuffer.java:1040)
at com.jme3.font.BitmapTextPage.assemble(BitmapTextPage.java:208)
at com.jme3.font.BitmapText.assemble(BitmapText.java:429)
at com.jme3.font.BitmapText.updateLogicalState(BitmapText.java:421)
at com.jme3.scene.Node.updateLogicalState(Node.java:241)
at com.jme3.app.SimpleApplication.update(SimpleApplication.java:243)
at jm_clj.core.proxy$com.jme3.app.SimpleApplication$ff19274a.update(Unknown Source)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:151)
at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:197)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:232)
at java.base/java.lang.Thread.run(Thread.java:832)
Execution error at org.lwjgl.opengl.GLContext/getCapabilities (GLContext.java:124).
No OpenGL context found in the current thread.
I think OpenGL wants me to run the code in his scope, is there any method that I could use for that?
Also, created a Github Gist for the source code: jmonkey.clj · GitHub