You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Archie Cobbs <ad...@dellroad.org> on 2007/03/30 01:38:27 UTC

Batik memory leak

I've found a memory leak in Batik version 1.6...

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

I thought other people might be interested in looking at it. I don't
have the latest SVN version built right now so I can't test whether
it's fixed in the latest SVN code.

If not, it should be fairly easy to track down with this test (which
basically just does lots of DOM manipulations until an
OutOfMemoryError occurs).

As a side note, the bug I was actually trying to reproduce when I
wrote this test was this exception:

java.lang.NullPointerException
        at org.apache.batik.bridge.AbstractGraphicsNodeBridge.handleDOMNodeRemovedEvent(Unknown
Source)
        at org.apache.batik.bridge.BridgeContext$DOMNodeRemovedEventListener.handleEvent(Unknown
Source)
        at org.apache.batik.dom.events.EventSupport.fireEventListeners(Unknown
Source)
        at org.apache.batik.dom.events.EventSupport.dispatchEvent(Unknown
Source)
        at org.apache.batik.dom.AbstractNode.dispatchEvent(Unknown Source)
        at org.apache.batik.dom.AbstractParentNode.fireDOMNodeRemovedEvent(Unknown
Source)
        at org.apache.batik.dom.AbstractParentNode.removeChild(Unknown Source)

No progress on that one yet either :-(

See also this thread, which seems to relate to both exceptions:
  http://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-users/200304.mbox/%3cb85s81$pc3$1@main.gmane.org%3e

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com

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