Failed make pbuffer available

Hello All,

My JME crash itself.
I Launched the app ot 12:21:22 and when I comeback from breakfast i see this message “GRAVE: Failed make pbuffer available”

the app crash at 13:09:41, and I dont understand why.

Do you have an idea?
Thanks for your.

The error :

init:
Deleting: D:\Users\build\built-jar.properties
deps-jar:
Updating property file: D:\Users
Compiling 1 source file to D:\Users
compile:
run:
null
18 févr. 2014 12:21:22 com.jme3.system.JmeDesktopSystem initialize
INFO: Running on jMonkeyEngine 3.0.0 RC2
18 févr. 2014 12:21:22 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Lwjgl context running on thread LWJGL Renderer Thread
18 févr. 2014 12:21:22 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Adapter: Ai2Mdd
18 févr. 2014 12:21:22 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Driver Version: null
18 févr. 2014 12:21:22 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Vendor: Intel
18 févr. 2014 12:21:22 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: OpenGL Version: 3.1.0 - Build 9.17.10.3223
18 févr. 2014 12:21:22 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Renderer: Intel® HD Graphics 2000
18 févr. 2014 12:21:22 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: GLSL Ver: 1.40 - Intel Build 9.17.10.3223
18 févr. 2014 12:21:22 com.jme3.input.InputManager addMapping
ATTENTION: Attempted to add mapping “Shoot” twice to trigger.

18 févr. 2014 13:09:41 com.jme3.app.Application handleError
GRAVE: Failed make pbuffer available
org.lwjgl.LWJGLException: Could not make dummy context current
at org.lwjgl.opengl.WindowsPbufferPeerInfo.nCreate(Native Method)
at org.lwjgl.opengl.WindowsPbufferPeerInfo.<init>(WindowsPbufferPeerInfo.java:47)
at org.lwjgl.opengl.WindowsDisplay.createPbuffer(WindowsDisplay.java:718)
at org.lwjgl.opengl.Pbuffer.createPbuffer(Pbuffer.java:234)
at org.lwjgl.opengl.Pbuffer.<init>(Pbuffer.java:219)
at org.lwjgl.opengl.Pbuffer.<init>(Pbuffer.java:190)
at org.lwjgl.opengl.Pbuffer.<init>(Pbuffer.java:166)
at com.jme3.system.lwjgl.LwjglCanvas.makePbufferAvailable(LwjglCanvas.java:342)
at com.jme3.system.lwjgl.LwjglCanvas.destroyContext(LwjglCanvas.java:415)
at com.jme3.system.lwjgl.LwjglCanvas.pauseCanvas(LwjglCanvas.java:247)
at com.jme3.system.lwjgl.LwjglCanvas.runLoop(LwjglCanvas.java:203)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:228)
at java.lang.Thread.run(Thread.java:619)
18 févr. 2014 13:09:41 com.jme3.app.Application handleError
GRAVE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.lang.RuntimeException: No OpenGL context found in the current thread.
at org.lwjgl.opengl.GLContext.getCapabilities(GLContext.java:124)
at org.lwjgl.opengl.GL15.glDeleteBuffers(GL15.java:87)
at com.jme3.renderer.lwjgl.LwjglRenderer.deleteBuffer(LwjglRenderer.java:2138)
at com.jme3.scene.VertexBuffer.deleteObject(VertexBuffer.java:992)
at com.jme3.util.NativeObjectManager.deleteNativeObject(NativeObjectManager.java:141)
at com.jme3.util.NativeObjectManager.deleteAllObjects(NativeObjectManager.java:199)
at com.jme3.renderer.lwjgl.LwjglRenderer.cleanup(LwjglRenderer.java:413)
at com.jme3.system.lwjgl.LwjglCanvas.destroyContext(LwjglCanvas.java:376)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.deinitInThread(LwjglAbstractDisplay.java:194)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:233)
at java.lang.Thread.run(Thread.java:619)

Is the OpenGL window open in the SDK while you run it? Some drivers have issues with that.

I work in netbean and my application is in a panel of a big software.
so i have no OpenGL window open.

Does your “big software” use OpenGL or Swing? Then disable the opengl rendering for swing.

the software dont use opengl but swing and my JME app is in a swing panel

swing might use opengl, google for a command to force using software rendering it often solves problems.

But as I see that stacktrace, it might be that you manually deleted/disposed something the wrong way, and when a gc ran this crashed the native object manager.

ive gotten that error when running jmonkey in canvas mode in a swing application. i think it had something to do with the canvas running inside of a container that has no height/width. i fixed it by setting a minimum dimension for the container (and using a swing layout that respects minimum dimensions).

There could be other work arounds like delaying the start up of the canvas, but that was the general concept to how i solved it.