You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2012/05/15 09:07:43 UTC

[Bug 53232] New: Memory Leak after using event listeners via script

https://issues.apache.org/bugzilla/show_bug.cgi?id=53232

          Priority: P2
            Bug ID: 53232
          Assignee: batik-dev@xmlgraphics.apache.org
           Summary: Memory Leak after using event listeners via script
          Severity: normal
    Classification: Unclassified
          Reporter: csebishop@gmail.com
          Hardware: PC
            Status: NEW
           Version: 1.7
         Component: Scripting
           Product: Batik

Created attachment 28778
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28778&action=edit
Example Java App and SVG to demonstrate the memory leak

I have an application uses dynamic SVG craphics controlled via script from
within the DOM.

I've noticed a significant memory leak in JSVGCanvas which occurs whenever I
have used event listeners on elements in the DOM.

I remove all listeners before disposing the canvas but this has no affect.

I have attached a simple example to demonstrate the issue.

To perform the test, run the app, click the "No Events" button three times and
close each window that appears.  Use JVisualVM (or something similar) to check
instances of JSVGCanvas.

Repeat the test by pressing the "With Events" button three times and closing
each window.  Notice that JSVGCanvas doesn't dispose correctly after events
were used.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 53232] Memory Leak after using event listeners via script

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53232

csebishop@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All
           Severity|normal                      |critical

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 53232] Memory Leak after using event listeners via script

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53232

csebishop@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #1 from csebishop@gmail.com ---
After further testing it has been found that the problem was outside of Batik
after all and even though the GC doesn't seem to want to clear up the canvases
until the last minute, its not an actual memory leak.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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