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

Exception in PlatformImpl.checkIdle with glass thread checks enabled

    XMLWordPrintable

    Details

      Description

      When glass thread checks are enabled, the following test failures occur:

      com.sun.javafx.application.SingleExitExplicit2Test > testExplicitExitReEnable FAILED
          java.lang.IllegalStateException: This operation is permitted on the event thread only; currentThread = Test worker
              at com.sun.glass.ui.Application.checkEventThread(Application.java:423)
              at com.sun.glass.ui.Application.isNestedLoopRunning(Application.java:524)
              at com.sun.javafx.tk.quantum.QuantumToolkit.isNestedLoopRunning(QuantumToolkit.java:1067)
              at com.sun.javafx.application.PlatformImpl.checkIdle(PlatformImpl.java:399)
              at com.sun.javafx.application.PlatformImpl.setImplicitExit(PlatformImpl.java:352)
              at javafx.application.Platform.setImplicitExit(Platform.java:104)
              at com.sun.javafx.application.SingleExitCommon.doTestCommon(SingleExitCommon.java:213)
              at com.sun.javafx.application.SingleExitCommon.doTestCommon(SingleExitCommon.java:138)
              at com.sun.javafx.application.SingleExitCommon.doTestExplicitExitReEnable(SingleExitCommon.java:259)
              at com.sun.javafx.application.SingleExitExplicit2Test.testExplicitExitReEnable(SingleExitExplicit2Test.java:37)


      com.sun.javafx.application.SingleExitExplicitError2Test > testExplicitExitReEnableWithError FAILED
          java.lang.IllegalStateException: This operation is permitted on the event thread only; currentThread = Test worker
              at com.sun.glass.ui.Application.checkEventThread(Application.java:423)
              at com.sun.glass.ui.Application.isNestedLoopRunning(Application.java:524)
              at com.sun.javafx.tk.quantum.QuantumToolkit.isNestedLoopRunning(QuantumToolkit.java:1067)
              at com.sun.javafx.application.PlatformImpl.checkIdle(PlatformImpl.java:399)
              at com.sun.javafx.application.PlatformImpl.setImplicitExit(PlatformImpl.java:352)
              at javafx.application.Platform.setImplicitExit(Platform.java:104)
              at com.sun.javafx.application.SingleExitCommon.doTestCommon(SingleExitCommon.java:213)
              at com.sun.javafx.application.SingleExitCommon.doTestExplicitExitReEnableWithError(SingleExitCommon.java:331)
              at com.sun.javafx.application.SingleExitExplicitError2Test.testExplicitExitReEnableWithError(SingleExitExplicitError2Test.java:37)


      com.sun.javafx.application.SingleExitExplicitException2Test > testExplicitExitReEnableWithException FAILED
          java.lang.IllegalStateException: This operation is permitted on the event thread only; currentThread = Test worker
              at com.sun.glass.ui.Application.checkEventThread(Application.java:423)
              at com.sun.glass.ui.Application.isNestedLoopRunning(Application.java:524)
              at com.sun.javafx.tk.quantum.QuantumToolkit.isNestedLoopRunning(QuantumToolkit.java:1067)
              at com.sun.javafx.application.PlatformImpl.checkIdle(PlatformImpl.java:399)
              at com.sun.javafx.application.PlatformImpl.setImplicitExit(PlatformImpl.java:352)
              at javafx.application.Platform.setImplicitExit(Platform.java:104)
              at com.sun.javafx.application.SingleExitCommon.doTestCommon(SingleExitCommon.java:213)
              at com.sun.javafx.application.SingleExitCommon.doTestExplicitExitReEnableWithException(SingleExitCommon.java:295)
              at com.sun.javafx.application.SingleExitExplicitException2Test.testExplicitExitReEnableWithException(SingleExitExplicitException2Test.java:37)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported: