Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-861

Memory leak: Window icon ImageListenerList retains reference to closed windows, preventing garbage collection

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      When a window or dialog is opened which has an icon, after it is closed it cannot be garbage collected because a reference is retained to it through the icon. Removing the icon resolves the issue.

      As far as I've investigated, the issue appears to the in the ImageListenerList which each Image contains. I've done a heapdump of my application and used the IBM HeapAnalyzer which shows this list containing a reference to the window/dialog through the ImageViewSkin, but I don't know the Pivot internals well enough to see where or how it should be released.

      I'll attach a simple test application to show the issue.

      Attachments

        1. leaktest.zip
          3 kB
          David Keen
        2. Pivot861.launch
          0.9 kB
          Sandro Martini
        3. PivotSample.zip
          7 kB
          Łukasz Hanusiak

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            smartini Sandro Martini
            dkeen David Keen
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment