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

Roger Whitcomb commented on PIVOT-861:
--------------------------------------

Hi Sandro,
   Last night while working on a totally unrelated issue in our code, there was 
thrown a ConcurrentModificationException from ArrayList$Itr from the 
ComponentKeyListenerList....  So, this issue isn't totally done yet.  I could 
not reproduce the problem, but I think it was from the Tooltip skin adding 
itself to the key listener list while we were iterating through calling the 
"keyPressed" listeners.  If that is the case, it would be a rare event (getting 
the "keyPressed" event at just the tooltip delay time) but I need to figure out 
a way not to have this happen.  And I'm not completely sure this was the cause 
either.....
                
> 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
>              Labels: cache, image, leak, listener, memory
>             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