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

BarChart layouting freezes application UI for minutes (or forever)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: fx2.1
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:

      Description

      BarChart layouting takes VERY long (or is stuck in an endless loop) if a series name is too long and does not fit into the chart client area. This is quite a problem because the series name can be set up by the user and I don't know how to make sure that it won't lead to a frozen application. I did not check whether other charts are affected, too.

      Please find attached two examples based on the ensemble barchart example:
      1. "BarChartSample.java": same as ensemble with just two changes: a long series name and a maxwidth for the chart. The application takes about 15s to eventually display an empty window.
      2. "BarChartSample2.java": this time the data was changed and the chart is placed inside a small stackpane with maximum size. The application does not show a window after four minutes when I killed it. See "BarChartSample2-Trace.txt" for a trace before the kill.

      It would be nice to have a workaround or some way to decide what the maximum length is for a series name.

        Attachments

          Activity

            People

            Assignee:
            psomashe Parvathi Somashekar (Inactive)
            Reporter:
            wlehmann Werner Lehmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: