Several test failures after fix for JDK-8159048

XMLWordPrintable

    • b05

      We are seeing the following test failures after the fix for JDK-8159048:

      > Task :systemTests:test

      PlatformTest > testCanNotStartNestedEventLoopInTimeline() FAILED
          java.lang.IllegalStateException: Not on FX application thread; currentThread = Test worker
              at javafx.graphics@22-ea/com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:294)
              at javafx.graphics@22-ea/com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:475)
              at javafx.graphics@22-ea/javafx.animation.Animation.play(Animation.java:990)
              at test.javafx.application.PlatformTest.testCanNotStartNestedEventLoopInTimeline(PlatformTest.java:123)

      ShowAndWaitTest > [0] > test.javafx.stage.ShowAndWaitTest.testTimeline[0] FAILED
          java.lang.IllegalStateException: Not on FX application thread; currentThread = Test worker
              at javafx.graphics@22-ea/com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:294)
              at javafx.graphics@22-ea/com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:475)
              at javafx.graphics@22-ea/javafx.animation.Animation.play(Animation.java:990)
              at test.javafx.stage.ShowAndWaitTest.testTimeline(ShowAndWaitTest.java:686)

      ShowAndWaitTest > [0] > test.javafx.stage.ShowAndWaitTest.testTimelineDialog[0] FAILED
          java.lang.IllegalStateException: Not on FX application thread; currentThread = Test worker
              at javafx.graphics@22-ea/com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:294)
              at javafx.graphics@22-ea/com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:475)
              at javafx.graphics@22-ea/javafx.animation.Animation.play(Animation.java:990)
              at test.javafx.stage.ShowAndWaitTest.testTimelineDialog(ShowAndWaitTest.java:736)

      ShowAndWaitTest > [1] > test.javafx.stage.ShowAndWaitTest.testTimeline[1] FAILED
          java.lang.IllegalStateException: Not on FX application thread; currentThread = Test worker
              at javafx.graphics@22-ea/com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:294)
              at javafx.graphics@22-ea/com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:475)
              at javafx.graphics@22-ea/javafx.animation.Animation.play(Animation.java:990)
              at test.javafx.stage.ShowAndWaitTest.testTimeline(ShowAndWaitTest.java:686)

      ShowAndWaitTest > [1] > test.javafx.stage.ShowAndWaitTest.testTimelineDialog[1] FAILED
          java.lang.IllegalStateException: Not on FX application thread; currentThread = Test worker
              at javafx.graphics@22-ea/com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:294)
              at javafx.graphics@22-ea/com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:475)
              at javafx.graphics@22-ea/javafx.animation.Animation.play(Animation.java:990)
              at test.javafx.stage.ShowAndWaitTest.testTimelineDialog(ShowAndWaitTest.java:736)

      ShowAndWaitTest > [2] > test.javafx.stage.ShowAndWaitTest.testTimeline[2] FAILED
          java.lang.IllegalStateException: Not on FX application thread; currentThread = Test worker
              at javafx.graphics@22-ea/com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:294)
              at javafx.graphics@22-ea/com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:475)
              at javafx.graphics@22-ea/javafx.animation.Animation.play(Animation.java:990)
              at test.javafx.stage.ShowAndWaitTest.testTimeline(ShowAndWaitTest.java:686)

      ShowAndWaitTest > [2] > test.javafx.stage.ShowAndWaitTest.testTimelineDialog[2] FAILED
          java.lang.IllegalStateException: Not on FX application thread; currentThread = Test worker
              at javafx.graphics@22-ea/com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:294)
              at javafx.graphics@22-ea/com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:475)
              at javafx.graphics@22-ea/javafx.animation.Animation.play(Animation.java:990)
              at test.javafx.stage.ShowAndWaitTest.testTimelineDialog(ShowAndWaitTest.java:736)

      > Task :systemTests:test FAILED

      858 tests completed, 7 failed, 68 skipped


      > Task :web:test

      LeakTest > testOleg FAILED
          java.lang.IllegalStateException: Not on FX application thread; currentThread = Test worker
              at javafx.graphics@22-ea/com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:294)
              at javafx.graphics@22-ea/com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:475)
              at javafx.graphics@22-ea/javafx.animation.Animation.play(Animation.java:990)
              at test.javafx.scene.web.LeakTest.testOleg(LeakTest.java:77)

      > Task :web:test FAILED

      471 tests completed, 1 failed, 113 skipped

      I suspect that all of these are test bugs exposed by enforcing the restriction that Animation and AnimationTimer methods must be called on the JavaFX Application thread.

            Assignee:
            Jose Pereda
            Reporter:
            Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: