Hello Guest

[BUG] ? Lwjgl 2.9.3 freeze on mac with java 7

  • 1 Replies
  • 2298 Views
[BUG] ? Lwjgl 2.9.3 freeze on mac with java 7
« on: February 25, 2015, 17:03:59 »
Hello,

I'm having trouble with AWTGLCanvas on mac, it freezes when calling the native code from MacOSXCanvasPeerInfo.java

(https://github.com/LWJGL/lwjgl/blob/4aac2319514b04d1d186cf7a38856c3580891f34/src/java/org/lwjgl/opengl/MacOSXCanvasPeerInfo.java#L85)

I'm running osx 10.10.2 and java 7u67 with lwjgl 2.9.3

Has anyone seen this before ?

Thanks for your help  :)


Re: [BUG] ? Lwjgl 2.9.3 freeze on mac with java 7
« Reply #1 on: March 02, 2015, 09:05:03 »
In case it helps anyone... it looks like the freeze has something to do with apple's accessibility options.

Can reproduce it by enabling VoiceOver or one of the other accessibility options and running this example http://www.massapi.com/source/lwjgl-source-2.7.1/src/java/org/lwjgl/test/opengl/awt/AWTTest.java.html

Happens with Java 7 & 8, if you take a thread dump you'll see something like sun.lwawt.macosx.CAccessibility.invokeAndWait(CAccessibility.java:75)

Delaying the creation of the canvas on the first paint call seems to help (if you can't just disable the accessibility options)

Thanks  :)