SjoerdL/BioMAV — Issue #3: SDL initialized multiple times and not from main thread
Author: MrApplejuice
Created: 2011-10-20 09:58:11+00:00
State: open

On some systems this causes the simulator not to work and crash. The reason for this is that SDL requires accoring to the official documentation that functions from the library are only invoked by the main thread of an application. Seemingly, espcially with different graphics drivers, this causes problems with OpenGL, where no valid OpenGL context can be initialized.

Another problem regarding SDL is that the Joystick JNI and the Simulator JNI, if used together are initializing SDL two times, causing errors and crashes on most systems. This has to be fixed by either integrating the joystick JNI with the simulator JNI, or by letting them both use a shared meta-SDL library that only initializes SDL once per process.