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

Sharing an effect among multiple nodes causes memory leak

    XMLWordPrintable

    Details

      Description

      In the Media Browser tutorial, we use a reflection effect on the bottom row of thumbnails. The effect is defined as

      def reflection : Effect = Reflection {
              fraction: 0.6
              topOpacity: 0.6
              bottomOpacity: 0
              topOffset: 3
      }

      If this is defined as a script var, then I get Image instances that aren't getting gc'd. If it is an instance var, then the Image instances do get gc'd.

      I've attached the NetBeans project. The code of interest is in Thumbnail.fx.

        Attachments

          Activity

            People

            Assignee:
            kcr Kevin Rushforth
            Reporter:
            dgrieve David Grieve
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: