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

StackedAreaChart has exceptions when setCreateSymbols(false) & setAnimated(true)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P5
    • Resolution: Incomplete
    • Affects Version/s: 8u20
    • Fix Version/s: 9
    • Component/s: javafx
    • Labels:
    • Environment:

      Windows 7 64-bit
      Java JDK 8u20, 64-bit
      Eclipse Luna

      Description

      I have a StackedAreaChart<Number, Number> with setCreateSymbols(false) & setAnimated(true) that outputs to the console the following exception:

      java.lang.NullPointerException: Children: child node is null: parent = Group@2efb5ffb[styleClass=plot-content]
      at javafx.scene.Parent$2.onProposedChange(Unknown Source)
      at com.sun.javafx.collections.VetoableListDecorator.add(Unknown Source)
      at javafx.scene.chart.StackedAreaChart.lambda$dataItemAdded$555(Unknown Source)
      at javafx.scene.chart.StackedAreaChart$$Lambda$185/726731690.handle(Unknown Source)
      at com.sun.scenario.animation.shared.TimelineClipCore.visitKeyFrame(Unknown Source)
      at com.sun.scenario.animation.shared.TimelineClipCore.playTo(Unknown Source)
      at javafx.animation.Timeline.impl_playTo(Unknown Source)
      at javafx.animation.AnimationAccessorImpl.playTo(Unknown Source)
      at com.sun.scenario.animation.shared.SingleLoopClipEnvelope.timePulse(Unknown Source)
      at javafx.animation.Animation.impl_timePulse(Unknown Source)
      at javafx.animation.Animation$1.lambda$timePulse$25(Unknown Source)
      at javafx.animation.Animation$1$$Lambda$168/1619881974.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at javafx.animation.Animation$1.timePulse(Unknown Source)
      at com.sun.scenario.animation.AbstractMasterTimer.timePulseImpl(Unknown Source)
      at com.sun.scenario.animation.AbstractMasterTimer$MainLoop.run(Unknown Source)
      at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
      at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
      at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$363(Unknown Source)
      at com.sun.javafx.tk.quantum.QuantumToolkit$$Lambda$41/789558128.run(Unknown Source)
      at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.lambda$null$141(Unknown Source)
      at com.sun.glass.ui.win.WinApplication$$Lambda$37/2052915500.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

      If I set animate to false, or set create symbols to true, it works fine.

      The actual chart works OK, it's just very hard to see other trace in the console when thousands of lines of call stacks are being output.

        Attachments

          Activity

            People

            • Assignee:
              msladecek Martin Sládeček
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: