[FIXED] Fatal error on OS X 10.9.2 with LWJGL 2.9.1

Started by lhkbob, March 10, 2014, 19:54:09

Previous topic - Next topic

lhkbob

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?

Cornix

Try setting a display mode first before creating the display. (By the way, it works for me on Windows 7 64bit)

lhkbob

I tried that and tried updating to 1.7.0_51 (since I was on 0_40) and neither of those fixed it. 

broumbroum

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
native library

kappa

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.

lhkbob


broumbroum

@kappa Nice from you to have merged it !  :)