Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-1011

Memory Leak after using event listeners via script

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • 1.7
    • None
    • Scripting
    • None
    • Operating System: All
      Platform: PC

    Description

      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.

      Attachments

        1. MemoryLeakTest.zip
          2 kB
          csebishop

        Activity

          People

            batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
            csebishop@gmail.com csebishop
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: