[FIXED] Display.reshape blocking (recent changes of 2.9.0 build)

Started by jouvieje, April 13, 2013, 16:27:32

Previous topic - Next topic

jouvieje

I've upgraded from 2.9.0 #1902 ('old jenkins') to 2.9.0 #44 (jenkins LWJGL-git-dist) and now encounter some threading issue/blocking between Display.update (called from my render loop thread) and the awt-eventqueue thread (edt/event dispatch thread).

I have a Display inside a Canvas. The lock happens early (probably first frame) after the canvas being resized and requestFocus (by code).
os: windows 7 x64, gpu: nvidia 560 gtx with driver 310.70, java 7 update 13

The piece of code which block my render loop is SwingUtilities.convertPointToScreen from Display.reshape (called internally by Display.update), which was added by the commit:
https://github.com/LWJGL/lwjgl/commit/5400bb27db612e88c4b4700951997012866c22cf
The edt thread is blocked at the call Component.requestFocus, the component being the canvas parent of the display (requestFocus called using SwingUtilities.invokeLater ).

Should I change the way I call requestFocus or is it a bug in lwjgl ?

spasi


jouvieje

Using the build 2.9.0 #53 fix the thread locking problem.
Thanks for the quick fix  :)