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

JavaFX app cannot be restored after iconified with a chooser dialog open

XMLWordPrintable

      ADDITIONAL SYSTEM INFORMATION :
      the next behavior was tested under macos 10.14.6 and 10.15.3, openjdk 13.0.1, openjavafx 13.0.1.

      A DESCRIPTION OF THE PROBLEM :
      the problem is that after we open a chooser dialog and then minimize the application primary stage into the application icon in dock(this setting must be enabled in dock preferences), from the minimize button from stage or double click in stage title, the application in turn gets iconified also with the chooser dialog, but then if i click in app icon then the app is not restored, i can only restore it from context menu app icon in the dock. is this a normal behavior or is this a new bug?

      note: when i open the chooser dialog the next message is displayed in eclipse console, not sure if has something with this: "objc[32372]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fffa52663d8) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x133c20f50). One of the two will be used. Which one is undefined.

      objc[32372]: NSSystemInfoPanel object 0x7facdaf7fc40 overreleased while already deallocating; break on objc_overrelease_during_dealloc_error to debug"

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. click on the button to open the FileChooser(can be reproduced also with a DirectoryChooser)
      2. minimize the main stage by click in the minimize button or double click in the stage title menu(this preference need to be set in dock configurations.)
      3. click on the dock app icon to restore app

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      the app gets retored
      ACTUAL -
      app cannote be restored

      ---------- BEGIN SOURCE ----------
      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.control.Button;
      import javafx.scene.layout.VBox;
      import javafx.stage.FileChooser;
      import javafx.stage.Stage;

      public class FileChooserExample extends Application {
          public static void main(String[] args) {
              launch(args);
          }

          @Override
          public void start(Stage primaryStage) {
              primaryStage.setTitle("JavaFX App");

              FileChooser fileChooser = new FileChooser();

              Button button = new Button("Select File");
              button.setOnAction(e -> {
                  File selectedFile = fileChooser.showOpenDialog(primaryStage);
              });

              VBox vBox = new VBox(button);
              Scene scene = new Scene(vBox, 960, 600);

              primaryStage.setScene(scene);
              primaryStage.show();
          }
      }
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      restore the app by using choosing the window under the app context menu in dock

      FREQUENCY : always


            kcr Kevin Rushforth
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: