Login  Register

Java 3D crash or flickering

Posted by Adrien on Aug 20, 2015; 8:44am
URL: https://forum.jogamp.org/Java-3D-crash-or-flickering-tp4035074.html

This problem has probably already been treated but I just can't find a solution.

Here is my test code:
SimpleUniverse universe = new SimpleUniverse();

I got some flickering so I added the following option:
System.setProperty("sun.java2d.d3d", "false");

It works fine with Java 1.6, but with Java 1.7 and higher it crashes with the following message:

com.jogamp.opengl.GLException: J3D-Renderer-1: createImpl ctx !ARB but ARB is used, profile > GL2 requested (OpenGL >= 3.1). Requested: GLProfile[GL4bc/GL4bc.hw], current: 1.1 (Compat profile, compat[], hardware) - 1.1.0
	at jogamp.opengl.windows.wgl.WindowsWGLContext.createImpl(WindowsWGLContext.java:377)
	at jogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:759)
	at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:642)
	at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:580)
	at javax.media.j3d.JoglPipeline.createNewContext(JoglPipeline.java:6412)
	at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:4602)
	at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:2376)
	at javax.media.j3d.Renderer.doWork(Renderer.java:881)
	at javax.media.j3d.J3dThread.run(J3dThread.java:271)

DefaultRenderingErrorListener.errorOccurred:
CONTEXT_CREATION_ERROR: Renderer: Error creating Canvas3D graphics context
graphicsDevice = Win32GraphicsDevice[screen=0]
canvas = javax.media.j3d.Canvas3D[canvas0,0,0,240x217]

Thank you.