Skip to content

SDL initialized multiple times and not from main thread #3

@MrApplejuice

Description

@MrApplejuice

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions