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

Gtk: FX doesn't start on Linux when a Stage is shown without a Scene

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7u6
    • fx2.1
    • javafx
    • Ubuntu 10.04 LTS x32
      FX 2.1 b04
      java version "1.6.0_20"
      OpenJDK Runtime Environment (IcedTea6 1.9.10) (6b20-1.9.10-0ubuntu1~10.04.2)
      OpenJDK Server VM (build 19.0-b09, mixed mode)

      on the box ubuntu was installed headless, but x server was added later on.

      Swing works correctly on that box, but JavaFX fails with next exception:


      Exception in Application start method
      Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
      at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:379)
      at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:28)
      at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:98)
      at java.lang.Thread.run(Thread.java:636)
      Caused by: java.lang.NullPointerException
      at com.sun.glass.ui.gtk.GtkWindow.syncWithXServer(Native Method)
      at com.sun.glass.ui.gtk.GtkWindow._setVisible(GtkWindow.java:122)
      at com.sun.glass.ui.Window.setVisible(Window.java:371)
      at com.sun.javafx.tk.quantum.WindowStage.setVisible(WindowStage.java:346)
      at javafx.stage.Window$13.invalidated(Window.java:704)
      at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:88)
      at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:122)
      at javafx.stage.Window.setShowing(Window.java:744)
      at javafx.stage.Window.show(Window.java:759)
      at javafx.stage.Stage.show(Stage.java:129)
      at dofx.start(dofx.java:11)
      at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:299)
      at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:153)
      at com.sun.javafx.application.PlatformImpl$3.run(PlatformImpl.java:120)
      at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
      at com.sun.glass.ui.gtk.GtkApplication$1$1.run(GtkApplication.java:36)
      ... 1 more

            ekrejcir Eva Krejčířová (Inactive)
            sgrinev Sergey Grinev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: