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

Gtk: SIGSEGV, when close windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 7u6, 7u10
    • javafx
    • 2.2.0b20, linux ubuntu 10.04x64, JDK7u6b22x64

      Run code:


      import javafx.application.Application;
      import javafx.event.ActionEvent;
      import javafx.event.EventHandler;
      import javafx.scene.Scene;
      import javafx.scene.control.Button;
      import javafx.scene.layout.VBox;
      import javafx.stage.Modality;
      import javafx.stage.Stage;

      public class JavaApplication1 extends Application {

          public static void main(String[] args) {
              launch(args);
          }

          @Override
          public void start(final Stage stage) throws Exception {
              final Stage stageWin = new Stage();
              
              stageWin.initModality(Modality.WINDOW_MODAL);
              stageWin.initOwner(stage);
              
              Button b = new Button("ClickMe");
              b.setOnAction(new EventHandler<ActionEvent>(){

                  @Override
                  public void handle(ActionEvent t) {
                      stageWin.show();
                  }
              });
              
                      Button b2 = new Button("Hide");
              b2.setOnAction(new EventHandler<ActionEvent>(){

                  @Override
                  public void handle(ActionEvent t) {
                      stage.close();
                      stageWin.close();
                  }
              });
              
              VBox vb = new VBox();
              vb.getChildren().addAll(b2);
              Scene scene = new Scene(vb, 300, 300);
              
              stageWin.setScene(scene);
              
              VBox vb2 = new VBox();
              vb2.getChildren().add(b);
              
              Scene scene2 = new Scene(vb2, 300, 300);
              
              stage.setScene(scene2);
              stage.show();
          }
      }

      click on button "click", click on button "hide" on the appeared stage.

      Fatal error:
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00007fb7280c29c1, pid=26662, tid=140424416970496
      #
      # JRE version: 7.0_06-b22
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.2-b09 mixed mode linux-amd64 compressed oops)
      # Problematic frame:
      # C [libglass.so+0x139c1] Java_com_sun_glass_ui_gtk_GtkWindow__1getNativeWindowImpl+0x1
      #
      # 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/JavaApplication1/hs_err_pid26662.log
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.sun.com/bugreport/crash.jsp
      # The crash happened outside the Java Virtual Machine in native code.
      # See problematic frame for where to report the bug.
      #
      Java Result: 134

            azvegint Alexander Zvegintsev
            akirov Alexander Kirov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: