[prev in list] [next in list] [prev in thread] [next in thread] 

List:       batik-dev
Subject:    DO NOT REPLY [Bug 41988]  - DOMScrambler torture test causes heap space OutOfMemoryError
From:       bugzilla () apache ! org
Date:       2007-04-23 20:42:35
Message-ID: 20070423204235.A2B9B714062 () brutus ! apache ! org
[Download RAW message or body]

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41988>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41988





------- Additional Comments From archie@dellroad.org  2007-04-23 13:42 -------
Created an attachment (id=20022)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20022&action=view)
Fix for this bug.

I think I've found the problem. The SVGTextElementBridge class must override
the dispose() method to unregister the listeners, but it was not doing this.

The attached patch fixes this particular memory leak bug for me.

NOTE however that there may be other instances of this kind of bug in the code.
The thing to do it seems would be to look for subclasses of
AbstractGraphicsNodeBridge that allocate resources in
initializeDynamicSupport()  but don't free them in dispose() (or don't override
dispose() at all).

In particular, does SVG12TextElementBridge have this same bug?


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic