[ https://issues.apache.org/jira/browse/PIVOT-934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13941713#comment-13941713 ]
Sandro Martini commented on PIVOT-934: -------------------------------------- Hi, I just found it, small but subtle bug: anytime a dialog is closed the listenerlist of Image (inside ImageView, used in the Alert) is not cleaned and increment its size by 1 ... now I'll try a fix for it in 2.0.x and say something. To see the behavious, add the (override) method dialogClosed in TerraAlertSkin, and put this in console: System.out.println("typeImageView.getImage().getImageListeners().getLength(): " + typeImageView.getImage().getImageListeners().getLength()); Let's update soon. > Prompt image causing memory leak > -------------------------------- > > Key: PIVOT-934 > URL: https://issues.apache.org/jira/browse/PIVOT-934 > Project: Pivot > Issue Type: Bug > Affects Versions: 2.0.3 > Reporter: Ćukasz Hanusiak > Assignee: Sandro Martini > Fix For: 2.0.4 > > > I am using Pivot 2.0.3. For a while now my application after several hours of > usage is crashing because of Java heap space OutOfMemoryError. After > analyzing heap dump I traced issue to some org.apache.pivot.wtk.media.Picture > used in org.apache.pivot.wtk.Prompt. However I am unable to reproduce problem > in my test environment but in production application crashes every 6 or so > hours. Can anybody give me some tips how to workaround this problem. > I attached some screenshots form leak suspect report made using Eclipse I > hope this will be helpful to you > https://www.dropbox.com/s/uo7fkeglq35x9nh/screenshot1.png > https://www.dropbox.com/s/01oepwqro9hszcg/screenshot2.png -- This message was sent by Atlassian JIRA (v6.2#6252)