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

Memory leak with media objects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • fx2.1.1, 7u6
    • javafx

      Some of the memory allocated by the media objects (Media, MediaPlayer, MediaView) is not released upon stopping and clearing all references to it.

      I've included an example application wich will indefinitly open and close a JDialog which contains a JFXPanel containing a mediaplayer. When you run this you will see that memory consumption slowly rises.

      If you try to use dispose on close of the JDialog, memory is released but one can not open the JFXPanel again because the platform has been exited.

            almatvee Alexander Matveev
            duke J. Duke
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: