I have recently noticed this issue in my jME3 application: when changing antialiasing and attempting to restart the display to apply the new settings, the program crashes. I am not sure whether the antialiasing change alone is the issue, it is simply how I experienced this issue for the first time.
I was able to duplicate the problem with the TestContextRestart demo by adding one line of code. Add the following after settings.setFullscreen(true):
[java]settings.setSamples(4);[/java]
The application crashes with the following error:
Jul 18, 2011 6:24:23 PM com.jme3.app.Application handleError
SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,6,main]
java.lang.IllegalStateException: The Drawable has no context available.
at org.lwjgl.opengl.AbstractDrawable.checkDestroyed(AbstractDrawable.java:86)
at org.lwjgl.opengl.AbstractDrawable.releaseContext(AbstractDrawable.java:50)
at org.lwjgl.opengl.Display.releaseContext(Display.java:718)
at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:130)
at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:177)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:218)
at java.lang.Thread.run(Thread.java:662)
I have no idea what it means, but I know someone will be able to shed some light on this issue. Thanks.