Login  Register

Re: Java 3D crash or flickering

Posted by gouessej on Aug 21, 2015; 11:17am
URL: https://forum.jogamp.org/Java-3D-crash-or-flickering-tp4035074p4035085.html

Hi Adrien

What happens when you don't set sun.java2d.d3d? Lingering it caused some problems with Java 1.6 update 12 but I thought it was something of the past.

Adrien wrote
Weirdly, in our program with my machine, the crash was only when opening the 3D view for the second time.
I observed a similar behavior several months ago.

I advise you to build JOGL, just replace this line:
https://github.com/sgothel/jogl/blob/master/src/jogl/classes/jogamp/opengl/GLContextImpl.java#L1980
by
if ( vendorVersion.compareTo(VersionNumberString.zeroVersion || glRenderer.equals("AMD Radeon (TM) R9 200 Series")) == 0 ) {

and this line:
https://github.com/sgothel/jogl/blob/master/src/jogl/classes/jogamp/opengl/GLContextImpl.java#L1982
by
if ( glRenderer.equals("AMD Radeon (TM) R9 200 Series") || (glVersionNumber.getSub() <= 8787 && glRenderer.equals("ATI Radeon 3100 Graphics") )) {

If it is too difficult for you, we'll have to find a way of getting the GLContext and then call GLContext.getRendererQuirks().addQuirk(GLRendererQuirks.NoARBCreateContext);

I'm currently looking at the source code of Java 3D to find a way of testing my workaround.
Julien Gouesse | Personal blog | Website