Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8118695

Gtk: OpenGL with JavaFX causes Gthread error and halts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 7u25
    • javafx
    • Intel Processor, Centos 6.3 (Kernel 2.6.32-279.el6.x86_64), Gnome 2.28.2. I have also tested under Centos 6.4 and thesame issue occurs

      On Linux when I combine WorldWind and JavaFX I get the following error and the application halts.

      "GThread-ERROR: GThread system may only be initialized once"

      Looking at the dump I see the crash is in glass_general.cpp line 216 where it calls "g_thread_init(NULL)" you should always check g_thread_supported() before calling g_thread_init to ensure it is not already initialized" I downloaded javaFX 8 added the check recompiled and tested and it works.

      This only happens under Linux because on Windows I think either JavaFX or Worldwind (or both) use DirectX instead of g_thread so the issue does not happen.

      Need to be patched in java7 and updated in java8.

            azvegint Alexander Zvegintsev
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: