LWJGL Forum

Archive => Resolved Bugs/RFE => Topic started by: jouvieje on April 13, 2013, 16:27:32

Title: [FIXED] Display.reshape blocking (recent changes of 2.9.0 build)
Post by: jouvieje on April 13, 2013, 16:27:32
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 ?
Title: Re: [Bug] Display.reshape blocking (recent changes of 2.9.0 build)
Post by: spasi on April 17, 2013, 19:33:59
Please try the next nightly build (http://ci.newdawnsoftware.com/job/LWJGL-git-dist/).
Title: Re: [Bug] Display.reshape blocking (recent changes of 2.9.0 build)
Post by: jouvieje on April 18, 2013, 09:13:40
Using the build 2.9.0 #53 fix the thread locking problem.
Thanks for the quick fix  :)