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

VM crash when a Text is set to have a very large wrapping width

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3
    • 8u60
    • 8u31
    • javafx
    • OS X 10.10.1 (14B25)
      OpenJDK

    Description

      This hard-crashes the VM for me:

      {code}
      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.stage.Stage;
      import javafx.scene.text.Text;
      import javafx.scene.layout.GridPane;

      public class Test extends Application
      {

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

          @Override
          public void start(Stage primaryStage) throws Exception {
              final Text nameNode = new Text("hello");
              nameNode.setWrappingWidth(Double.MAX_VALUE);

              final GridPane grid = new GridPane();
              grid.add(nameNode, 0, 0, 1, 1);

              final Scene scene = new Scene(grid);

              primaryStage.setScene(scene);
              primaryStage.show();
          }

      }
      {code}

      {code}
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00007fff84ee2c59, pid=32345, tid=1299
      #
      # JRE version: Java(TM) SE Runtime Environment (8.0_31-b13) (build 1.8.0_31-b13)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.31-b07 mixed mode bsd-amd64 compressed oops)
      # Problematic frame:
      # C [CoreFoundation+0x26c59] CFDataGetBytePtr+0x19
      #
      # 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:
      # /Users/chrisseaton/Documents/ruby/ruby-performance-visualizer/hs_err_pid32345.log
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.java.com/bugreport/crash.jsp
      # The crash happened outside the Java Virtual Machine in native code.
      # See problematic frame for where to report the bug.
      #
      Abort trap: 6
      {code}

      Why am I setting the wrapping width to Double.MAX_VALUE? I'm new to JavaFX and was trying to make it fill its container, as in this tutorial http://docs.oracle.com/javafx/2/layout/size_align.htm.

      Attachments

        Issue Links

          Activity

            People

              ckyang Chien Yang (Inactive)
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: