LWJGL
May 23, 2013, 20:07:19 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.9.0 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: [FIXED] Can't call Display.update() on EDT under Linux  (Read 1354 times)
NateS
Regular nerd
**
Posts: 79


« on: August 15, 2011, 23: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:
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?
Logged
kappa
Administrator
Nerdus Imperius
*****
Posts: 1112



« Reply #1 on: August 16, 2011, 01: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.
Logged
kappa
Administrator
Nerdus Imperius
*****
Posts: 1112



« Reply #2 on: September 07, 2011, 15:00:40 »

marking this as fixed as its essentially the same issue as this report.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!