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

Setting max:50000.0 in Slider causes OutOfMemoryError.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Cannot Reproduce
    • Affects Version/s: fx1.3
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Labels:
    • Environment:

      Mac OS, SoMa build 243

      Description


      java.lang.OutOfMemoryError: Java heap space
              at com.sun.javafx.runtime.location.Locations$IndirectChangeListener.<init>(Locations.java:320)
              at com.sun.javafx.runtime.location.Locations.makeIndirectHelper(Locations.java:306)
              at com.sun.javafx.runtime.location.Locations.makeBoundSelect(Locations.java:243)
              at javafx.scene.layout.Container.getNodeBaselineOffset$$bound$javafx_scene_Node(Container.fx:423)
              at javafx.scene.control.Control.applyDefaults$(Control.fx:116)
              at javafx.scene.control.Label.applyDefaults$(Label.fx:45)
              at com.sun.javafx.runtime.FXBase.applyDefaults$(FXBase.java:65)
              at javafx.scene.control.Label.initialize$(Label.fx:45)
              at javafx.scene.control.Label.<init>(Label.fx:45)
              at javafx.scene.chart.part.Axis$TickMark.applyDefaults$(Axis.fx:437)
              at javafx.scene.chart.part.NumberAxis.updateTickMarks(NumberAxis.fx:59)
              at javafx.scene.chart.part.Axis.layoutAxis(Axis.fx:188)
              at javafx.scene.chart.part.ValueAxis.layoutAxis(ValueAxis.fx:125)
              at javafx.scene.chart.part.Axis.getPrefHeight(Axis.fx:335)
              at javafx.scene.layout.Container.getNodePrefHeight(Container.fx:195)
              at javafx.scene.layout.Container.getNodePrefHeight(Container.fx:174)
              at com.sun.javafx.scene.control.caspian.SliderSkin.getMinHeight(SliderSkin.fx:223)
              at com.sun.javafx.scene.control.caspian.SliderSkin.getPrefHeight(SliderSkin.fx:231)
              at javafx.scene.control.Control.getPrefHeight(Control.fx:107)
              at javafx.scene.control.Control.postInit$(Control.fx:134)
              at com.sun.javafx.runtime.FXBase.complete$(FXBase.java:57)
              at slider.Main.javafx$run$(Main.fx:34)
              at slider.Main.javafx$run$(Main.fx:34)

      Here is the program: just compile & run:

      /*
       * Main.fx
       *
       * Created on Feb 1, 2010, 6:02:17 PM
       */

      package slider;

      import javafx.stage.Stage;
      import javafx.scene.Scene;
      import javafx.scene.text.Text;
      import javafx.scene.text.Font;

      import javafx.scene.control.Slider;

      Stage {
          title: "Application title"
          width: 250
          height: 80
          scene: Scene {
              content: [
                  Text {
                      font : Font {
                          size : 16
                      }
                      x: 10
                      y: 30
                      content: "Application content"
                  }
                  Slider {
                      max:50000.0
                  }

              ]
          }
      }

        Attachments

          Activity

            People

            • Assignee:
              psomashe Parvathi Somashekar (Inactive)
              Reporter:
              dfuchs Daniel Fuchs
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: