Hello Guest

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

  • 2 Replies
  • 4487 Views
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 ?
« Last Edit: April 18, 2013, 11:17:35 by kappa »

*

Offline spasi

  • *****
  • 2191
    • WebHotelier
Re: [Bug] Display.reshape blocking (recent changes of 2.9.0 build)
« Reply #1 on: April 17, 2013, 19:33:59 »
Please try the next nightly build.

Re: [Bug] Display.reshape blocking (recent changes of 2.9.0 build)
« Reply #2 on: April 18, 2013, 09:13:40 »
Using the build 2.9.0 #53 fix the thread locking problem.
Thanks for the quick fix  :)