xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hans Stoessel" <hstoes...@pm-medici.ch>
Subject Re: JSVGCanvas: java.lang.OutOfMemoryError
Date Wed, 09 Apr 2003 14:16:22 GMT
I think its definitely a bug in JSVGCanvas. You can reproduce it with the
application batik-squiggle who uses JSVGCanvas to display SVG files. If you
open a SVG file in it and reload this file a few times, you see in the task
manager of Windows 2000 how the memory is increasing...

Has nobody the same experience like me with JSVGCanvas?
Is there a workaround?

Thanks for any help.


"Thomas E Deweese" <thomas.deweese@kodak.com> schrieb im Newsbeitrag
> >>>>> "HS" == Hans Stoessel <hstoessel@pm-medici.ch> writes:
> HS> Hi I use the following source code to display a svg file with a
> HS> chart in a dialog:
>     You are only showing the init code.  Since you create a new
> JSVGCanvas each time, I suspect that you are somehow holding on to a
> reference to the JSVGCanvas (or the dialog) somewhere in your code
> (often this can be hidden in a listener or something).
>     While I can't rule out memory leaks in Batik (in fact I'd be
> surprised if there weren't at least a few) I don't think there are
> _gross_ memory leaks (I often view >100 SVG files in squiggle w/o a
> problem).
> HS> If I do that a few times, then I have the java error:
> HS> java.lang.OutOfMemoryError <<no stack trace available>>
> HS> I use Batik 1.5 Beta 5 and Windows 2000. If I have a look in the
> HS> task manager of windows, I see that the memory is increasing with
> HS> every time I display a SVG file in my dialog.
> HS> What could be wrong?
> HS> Thanks for help

To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org

View raw message