Login  Register

Re: Animator : SWTException: Invalid thread access on thread main-Animator

Posted by gouessej on Sep 09, 2014; 6:31pm
URL: https://forum.jogamp.org/Animator-SWTException-Invalid-thread-access-on-thread-main-Animator-tp4033104p4033109.html

Hi

Don't call any method that requires to be called on the SWT thread inside your implementation of GLEventListener. The constructor of org.goko.gcode.viewer.camera.PerspectiveCamera seems to call org.eclipse.swt.widgets.Control.addMouseListener(). You shouldn't mix the SWT initialization with the OpenGL initialization.
Julien Gouesse | Personal blog | Website