Hello Guest

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

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

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


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  :)