LWJGL Forum

Archive => Resolved Bugs/RFE => Topic started by: lhkbob on March 10, 2014, 19:54:09

Title: [FIXED] Fatal error on OS X 10.9.2 with LWJGL 2.9.1
Post by: lhkbob on March 10, 2014, 19:54:09
With the following simple app:

import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.GL11;

public class LWJGLTest {
   public static void main(String[] args) throws Exception {
       Display.setFullscreen(false);
       Display.create();

       while(!Display.isCloseRequested()) {
           GL11.glClear(GL11.GL_COLOR_BUFFER_BIT);
           Display.update();
       }
   }
}


I produce the following fatal error: http://pastebin.com/Jbp9kNEB

This happens right away when it launches, I don't even see a window.  Any advice?  2.9.0 works perfectly fine, but since I'm using a retina mac, maybe specifics of that update for 2.9.1 are breaking it?
Title: Re: Fatal error on OS X 10.9.2 with LWJGL 2.9.1
Post by: Cornix on March 10, 2014, 20:30:52
Try setting a display mode first before creating the display. (By the way, it works for me on Windows 7 64bit)
Title: Re: Fatal error on OS X 10.9.2 with LWJGL 2.9.1
Post by: lhkbob on March 11, 2014, 02:03:37
I tried that and tried updating to 1.7.0_51 (since I was on 0_40) and neither of those fixed it. 
Title: Re: Fatal error on OS X 10.9.2 with LWJGL 2.9.1
Post by: broumbroum on March 18, 2014, 20:52:42
Hello!
I 've got a workaround on those similar issues on Mac Display implementation. It's still waiting as a pull request on the Hub.

https://github.com/LWJGL/lwjgl/pull/63/files

I compiled .jars and .jnilib of the latest source snapshot, which I added my patches to on MacOSXDisplay.
Find them linked below. Please tell me if it's solved your issue, too.

regards

library (http://sourceforge.net/p/sf3jswing/git/ci/master/tree/sf3jswing-jigaxtended/lib/all/lwjgl.jar?format=raw)
native library (http://sourceforge.net/p/sf3jswing/git/ci/master/tree/sf3jswing-jigaxtended/resources/properties/Mac/all/natives/liblwjgl.jnilib?format=raw)
Title: Re: Fatal error on OS X 10.9.2 with LWJGL 2.9.1
Post by: kappa on March 27, 2014, 00:59:31
above patch seems to work well in my testing therefore have merged it.

Its a difficult jre bug to workaround fully, guess the proper fix is upgrade to Java 8.

@broumbroum thanks for looking into this and for the patch, really nice work.
Title: Re: Fatal error on OS X 10.9.2 with LWJGL 2.9.1
Post by: lhkbob on March 27, 2014, 17:58:01
Awesome! Thanks guys!
Title: Re: Fatal error on OS X 10.9.2 with LWJGL 2.9.1
Post by: broumbroum on March 28, 2014, 16:52:28
@kappa Nice from you to have merged it !  :)