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

Sequence of Toolkit.pauseScenes() -> Toolkit.resumeScenes() breaks the application

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P1 P1
    • None
    • fx2.0
    • javafx

      For tooling needs (VisualDebugger, JMX) the methods pauseScenes() and resumeScenes() were introduced. Using them it is possible to access the graphics and scenegraph information in a consistent state (eg. not being modified by the user or an animation).

      Unfortunately, this functionality has been broken recently - between b40-b43. Now calling these methods in sequence results in virtually killing the target application as each call to Toolkit.firePulse() results in NPE.

      The behavior can be observed by launching the attached test and clicking "Pause/Resume" button.

        1. TestPause.java
          1 kB
          Jaroslav Bachorík

            kcr Kevin Rushforth
            jbachorik Jaroslav Bachorík
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: