pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandro Martini (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIVOT-861) Memory leak: Window icon ImageListenerList retains reference to closed windows, preventing garbage collection
Date Thu, 26 Jul 2012 17:39:34 GMT

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

Sandro Martini commented on PIVOT-861:
--------------------------------------

Just committed the fix for the second, smaller leak: Committed revision 1366096.

Note that other (much smaller) memory leaks still seems to happen, but we can see them later
if needed (some seems too much complex to track).
To have an idea, after approx. 10.000 dialog open/close tests with Pivot861, now the memory
still use near 40 / 45 MB (using the latest JRE 6 under Windows 32) , you can see this even
from Task Manager, or for example VisualVM.

David, thank you again very much for your help here.

                
> 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: Pivot861.launch, leaktest.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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message