Hello Guest

[FIXED] Can't call Display.update() on EDT under Linux

  • 2 Replies
  • 7792 Views
*

Offline NateS

  • **
  • 91
    • Esoteric Software
[FIXED] Can't call Display.update() on EDT under Linux
« on: August 16, 2011, 06:42:38 »
For integration with Swing apps, libgdx uses OpenGL on the EDT. Apparently this explodes under Linux. LWJGL 2.7.1. Code:
http://code.google.com/p/libgdx/source/browse/trunk/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglCanvas.java#164

Exception:
Code: [Select]
Exception in thread "AWT-EventQueue-0" java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1025)
at org.lwjgl.opengl.LinuxDisplay.edtSetCanvasFocus(LinuxDisplay.java:915)
at org.lwjgl.opengl.LinuxDisplay.setFocused(LinuxDisplay.java:905)
at org.lwjgl.opengl.LinuxDisplay.processEvents(LinuxDisplay.java:762)
at org.lwjgl.opengl.LinuxDisplay.update(LinuxDisplay.java:797)
at org.lwjgl.opengl.Display.processMessages(Display.java:634)
at org.lwjgl.opengl.Display.update(Display.java:692)
at org.lwjgl.opengl.Display.update(Display.java:662)
...

Any ideas?

*

Offline kappa

  • *****
  • 1319
Re: [BUG] Can't call Display.update() on EDT under Linux
« Reply #1 on: August 16, 2011, 08:46:47 »
can you try with the nightly builds of LWJGL 2.8? I believe there was something fixed in this area not too long ago. That method LinuxDisplay.edtSetCanvasFocus() no longer even exists.
« Last Edit: August 17, 2011, 11:18:56 by kappa »

*

Offline kappa

  • *****
  • 1319
Re: [BUG] Can't call Display.update() on EDT under Linux
« Reply #2 on: September 07, 2011, 22:00:40 »
marking this as fixed as its essentially the same issue as this report.