Hello Guest

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

  • 6 Replies
  • 14363 Views
[FIXED] Fatal error on OS X 10.9.2 with LWJGL 2.9.1
« on: March 10, 2014, 19:54:09 »
With the following simple app:
Code: [Select]
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?

*

Offline Cornix

  • *****
  • 488
Re: Fatal error on OS X 10.9.2 with LWJGL 2.9.1
« Reply #1 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)
« Last Edit: March 10, 2014, 20:33:08 by Cornix »

Re: Fatal error on OS X 10.9.2 with LWJGL 2.9.1
« Reply #2 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. 

Re: Fatal error on OS X 10.9.2 with LWJGL 2.9.1
« Reply #3 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
native library

*

Offline kappa

  • *****
  • 1319
Re: Fatal error on OS X 10.9.2 with LWJGL 2.9.1
« Reply #4 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.
« Last Edit: March 27, 2014, 01:01:11 by kappa »

Re: Fatal error on OS X 10.9.2 with LWJGL 2.9.1
« Reply #5 on: March 27, 2014, 17:58:01 »
Awesome! Thanks guys!

Re: Fatal error on OS X 10.9.2 with LWJGL 2.9.1
« Reply #6 on: March 28, 2014, 16:52:28 »
@kappa Nice from you to have merged it !  :)