Posted by
Sven Gothel on
Aug 20, 2015; 11:03am
URL: https://forum.jogamp.org/Java-3D-crash-or-flickering-tp4035074p4035078.html
On 08/20/2015 10:44 AM, Adrien [via jogamp] wrote:
> 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
While its not crashing here, Java >= 7 seems not to support
our AWT GLCanvas disableBackgroundErase() anymore:
<
https://jogamp.org/bugzilla/show_bug.cgi?id=1182>
One may try system property 'sun.awt.noerasebackground=true'.
If anybody has a solution to this 'background erase' issue
and Java >= 7 .. pls respond to Bug 1182 (link above)
and reopen it!
> 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
Indeed, it has been observed by many, that fiddling w/ 'sun.java2d.d3d'
property causes havoc on Windows machines w/ Java >= 7.
> 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.