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

Calling setItems() multiple time creates massive memory leak in ChoiceBox

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • None
    • javafx
    • Windows (XP, 7)

    Description

      I have a choicebox with 1000 items.
      I call setItems with the observablelist of items.
      Everything is fine
      I call setItems on same component (with smaller ObservableList)
      Everything is fine(?)
      I call setItems on same component with the original list

      The JVM goes wild and runs out of memory

      Including code to replicate. pressing button creates the issue, you can see it on Profiler.

      Similiar behavior occurs if one just reloads the obervable list with new data.

      Attachments

        Activity

          People

            psomashe Parvathi Somashekar (Inactive)
            ethompsonjfx Edward Thompson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: