Stage with Text do not come up, exception thrown

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P2
    • fx1.3
    • Affects Version/s: fx1.3
    • Component/s: javafx
    • Environment:

      Mac 10.5, soma integration b18, prism, jdk1.6

      This is reproducible with soma integration b18 with prism. Not reproducible with swing toolkit. This is seen on mac 10.5

      Trying to show a Stage with a Text node present throws the following exception. Stage is not shown and the app waits

      java.lang.NullPointerException
      at com.sun.javafx.sg.prism.NGText.getContentBounds(NGText.java:64)
      at com.sun.javafx.sg.prism.NGNode.getEffectBounds(NGNode.java:486)
      at com.sun.javafx.sg.prism.NGNode.getClippedBounds(NGNode.java:465)
      at com.sun.javafx.sg.prism.NGNode.getCompleteBounds(NGNode.java:438)
      at com.sun.javafx.sg.prism.NGGroup.getContentBounds(NGGroup.java:156)
      at com.sun.javafx.sg.prism.NGNode.getEffectBounds(NGNode.java:486)
      at com.sun.javafx.sg.prism.NGNode.getClippedBounds(NGNode.java:465)
      at com.sun.javafx.sg.prism.NGNode.getCompleteBounds(NGNode.java:438)
      at javafx.scene.Scene.userInit$(Scene.fx:314)
      at com.sun.javafx.runtime.FXBase.complete$(FXBase.java:56)
      at test1.javafx$run$(test1.fx:8)


      Testcase:
      import javafx.stage.*;
      import javafx.scene.*;
      import javafx.scene.text.*;

      Stage {
          width: 250
          height: 250
          scene: Scene {
              content: Text {
                  content: "Some Label"
                  translateX: 30
                  translateY: 100
              }
          }
      }


            Assignee:
            Dmitri Trembovetski (Inactive)
            Reporter:
            Girish Ramachandran (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: