[ 
https://issues.apache.org/jira/browse/PIVOT-861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13579645#comment-13579645
 ] 

Sandro Martini edited comment on PIVOT-861 at 2/17/13 5:00 PM:
---------------------------------------------------------------

Sorry ... but now we need a test case to reproduce this new error.

My fear on the current (applied) workaround 2 was the clear of existing 
listeners that is causing problems now, so I think it would be better to remove 
the problematic part of that workaround.

So now probably the workaround 1 could be a better solution (a little more 
complex than the other, but more general).
I know that probably there is something which is not cleared in the right way 
before going out of scope, but didn't get the right point after debugging it a 
lot ... maybe for 2.1 we could add something to better debug listener-related 
things.

What do youn think ?
                
      was (Author: smartini):
    Sorry ... but now we need a test case to reproduce this new error.

                  
> Memory leak: Window icon ImageListenerList retains reference to closed 
> windows, preventing garbage collection
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: PIVOT-861
>                 URL: https://issues.apache.org/jira/browse/PIVOT-861
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk, wtk-media
>    Affects Versions: 2.0.2
>         Environment: Windows XP, Java 1.7.0_05
>            Reporter: David Keen
>            Assignee: Sandro Martini
>             Fix For: 2.0.3
>
>         Attachments: leaktest.zip, Pivot861.launch, PivotSample.zip
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to