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

Gtk: [Popup, Stage] SIGSEGV, when stage is hiden, when popup was shown.


    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7u6
    • Fix Version/s: 7u6
    • Component/s: javafx
    • Labels:
    • Environment:

      Linux Ubuntu 12.04 LTE x86 x32, JDK7 JavaFX 2.2.0b08


      # A fatal error has been detected by the Java Runtime Environment:
      # SIGSEGV (0xb) at pc=0x69506461, pid=9682, tid=1785752384
      # JRE version: 7.0_06-b09
      # Java VM: Java HotSpot(TM) Server VM (23.0-b21 mixed mode linux-x86 )
      # Problematic frame:
      # C 0x69506461
      # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
      # An error report file with more information is saved as:
      # /home/fx/NetBeansProjects/MenuButton/hs_err_pid9682.log
      Phoning home...
      Using server:, port 4711
      # If you would like to submit a bug report, please visit:
      # http://bugreport.sun.com/bugreport/crash.jsp
      Java Result: 134

      Run Code:

      import javafx.animation.KeyFrame;
      import javafx.animation.Timeline;
      import javafx.application.Application;
      import javafx.beans.InvalidationListener;
      import javafx.beans.Observable;
      import javafx.event.ActionEvent;
      import javafx.event.EventHandler;
      import javafx.scene.Group;
      import javafx.scene.Scene;
      import javafx.scene.control.Button;
      import javafx.scene.control.CheckBox;
      import javafx.scene.layout.StackPane;
      import javafx.scene.layout.VBox;
      import javafx.scene.paint.Color;
      import javafx.scene.shape.Ellipse;
      import javafx.scene.text.Text;
      import javafx.stage.Popup;
      import javafx.stage.Stage;
      import javafx.util.Duration;

      public class MenuButtonApp extends Application {

          private Stage stageLocal;
          private CheckBox checkBox = new CheckBox();
          final private Timeline tl = new Timeline();
          private Popup p1;
          private Button parentButton;

          public static void main(String[] args) {

          public void start(final Stage stage) throws Exception {
              this.stageLocal = stage;

              p1 = new Popup();

              checkBox.selectedProperty().addListener(new InvalidationListener() {

                  public void invalidated(Observable ov) {
                      if (checkBox.isSelected()) {
                      } else {

              KeyFrame kf1 = new KeyFrame(Duration.ZERO);
              KeyFrame kf2 = new KeyFrame(Duration.millis(3000), new EventHandler<ActionEvent>() {

                  public void handle(ActionEvent t) {
                      System.out.println("Stage is visible now");
              tl.getKeyFrames().addAll(kf1, kf2);

              parentButton = new Button("Parent");
              parentButton.setOnAction(new EventHandler<ActionEvent>() {

                  public void handle(ActionEvent t) {
                      p1.show(stage, 100, 100);

              checkBox.setText("Make Stage Invisible");


              StackPane stack = new StackPane();
              Ellipse ellipse = new Ellipse(70.0F, 50.0F);
              stack.getChildren().addAll(ellipse, new Text("Popup!!"));

              Scene scene = new Scene(new Group(), 300, 300);
              VBox vbox = new VBox(5.0F);
              vbox.getChildren().addAll(checkBox, parentButton);
              ((Group) scene.getRoot()).getChildren().clear();
              ((Group) scene.getRoot()).getChildren().addAll(vbox);

      Click Button and check the checkBox.




            • Assignee:
              msladecek Martin Sládeček
              akirov Alexander Kirov (Inactive)
            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created: