Return-Path: X-Original-To: apmail-pivot-user-archive@www.apache.org Delivered-To: apmail-pivot-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7BF36DB37 for ; Wed, 18 Jul 2012 21:12:31 +0000 (UTC) Received: (qmail 65503 invoked by uid 500); 18 Jul 2012 21:12:31 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 65469 invoked by uid 500); 18 Jul 2012 21:12:31 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 65460 invoked by uid 99); 18 Jul 2012 21:12:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jul 2012 21:12:31 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Roger.Whitcomb@actian.com designates 69.18.216.40 as permitted sender) Received: from [69.18.216.40] (HELO mail.actian.com) (69.18.216.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jul 2012 21:12:23 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CD6529.F9A2FA1C" Subject: RE: OutOfMemoryError - after calling ImageView.setImage(url) 50 times Date: Wed, 18 Jul 2012 17:11:59 -0400 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: OutOfMemoryError - after calling ImageView.setImage(url) 50 times Thread-Index: Ac1lKMUAA+yjlbQnQ7CvXXl2+TSf5gAAKdZw References: From: "Roger L. Whitcomb" To: This is a multi-part message in MIME format. ------_=_NextPart_001_01CD6529.F9A2FA1C Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Sridhar, How is the ImageView being displayed in Pivot? How exactly does the update to the next image occur? Someone else logged a bug about images used as window icons not being released in the image listener list, so this sounds a lot like the same problem. So, could you provide a small sample program that demonstrates the problem? One of us will be looking at the problem. =20 Thank you for using Pivot, ~Roger Whitcomb =20 From: Sridhar Sarnobat [mailto:ss401533@gmail.com]=20 Sent: Wednesday, July 18, 2012 2:03 PM To: user@pivot.apache.org Subject: OutOfMemoryError - after calling ImageView.setImage(url) 50 times =20 I have created a slideshow application using Apache Pivot, and it works great. =20 But it reaches 285 MB after I cycle through about 50 jpg images, and starts throwing OOM errors. I have a memory leak that I don't know how to stop. I am manipulating java.io.File objects (not streams or readers) and I don't see any way to close these files. =20 I believe that I am not releasing resources of a File 1 before calling the following line with File 2: =20 org.apache.pivot.wtk.ImageView.setImage( java.io.File.toURI().toURL() ) =20 I hope that's enough information. What am I doing wrong? I don't want to increase the available heap space. This is supposed to be a simple app. ------_=_NextPart_001_01CD6529.F9A2FA1C Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi Sridhar,

           &nbs= p;    How is the ImageView being displayed in = Pivot?  How exactly does the update to the next image occur?  = Someone else logged a bug about images used as window icons not being = released in the image listener list, so this sounds a lot like the same = problem.

           &nbs= p;    So, could you provide a small sample program that = demonstrates the problem?  One of us will be looking at the = problem.

 

Thank you for using Pivot,

~Roger Whitcomb

 

From:= = Sridhar Sarnobat [mailto:ss401533@gmail.com]
Sent: Wednesday, = July 18, 2012 2:03 PM
To: = user@pivot.apache.org
Subject: OutOfMemoryError - after = calling ImageView.setImage(url) 50 times

 

I have created a slideshow application using Apache = Pivot, and it works great.

 

But it reaches 285 MB after I cycle through about 50 jpg images, and = starts throwing OOM errors. I have a memory leak that I don't = know how to stop. I am manipulating java.io.File objects (not = streams or readers) and I don't see any way to close these = files.

 

I believe that I am not releasing resources of a File 1 before calling = the following line with File 2:

 

  org.apache.pivot.wtk.ImageView.setImage( = java.io.File.toURI().toURL() )

 

I hope that's enough information. What am I doing wrong? I don't want = to increase the available heap space. This is supposed to be a simple = app.

------_=_NextPart_001_01CD6529.F9A2FA1C--