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

ProgressIndicator indeterminate transition initializated even in non visible controls

    XMLWordPrintable

Details

    • x86_64
    • windows_7

    Description

      FULL PRODUCT VERSION :
      java version "1.8.0_73"
      Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
      Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Windows 7 x64

      A DESCRIPTION OF THE PROBLEM :
      There is an animation started even if was not necessary.

      REGRESSION. Last worked in version 7u80

      ADDITIONAL REGRESSION INFORMATION:
      I was running in version prior listeners refactoring in ProgressIndicatorSkin

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Start the provided application in section: "Source code for an executable test case"


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      No animation running
      ACTUAL -
      The animation should not start. For example by profiling, com.sun.javafx.tk.Toolkit$$Lambda$111 is creating objects continuously.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      In a big application with JFXPanels in a 4K monitor occurs OutOfMemoryException.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      public class JFXMain extends Application{

          @Override
          public void start(Stage primaryStage) throws Exception {
              HBox root = new HBox();
              ToggleButton toggleButton = new ToggleButton();
              ProgressIndicator progressIndicator = new ProgressIndicator(ProgressIndicator.INDETERMINATE_PROGRESS);
              StackPane stackPane = new StackPane(progressIndicator);
              stackPane.visibleProperty().bind(toggleButton.selectedProperty());
              root.getChildren().addAll(toggleButton, stackPane);
              primaryStage.setScene(new Scene(root));
              primaryStage.show();
          }
      }

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Remove all ProgressIndicators and make use of another solution to show the unknown process.

      Attachments

        Issue Links

          Activity

            People

              jgiles Jonathan Giles
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: