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

Memory leak when using embedded SVG fonts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.5
    • None
    • GVT Text
    • None
    • Operating System: All
      Platform: PC

    Description

      We have this simple application where we have a time display
      (hours:minutes:seconds:hundreths) that we update 100 times per second (as a
      test) using the SVG DOM from Java. It worked out fine (well, except for a high
      CPU usage - we're using an overlay in the actual application), until we tried
      using an embedded SVG font (exported from Corel Draw). After that change, the
      application invariably crashed in less than a minute with an OutOfMemoryError.
      The application memory usage grew roughly by 1MB/sec, until it couldn't grow any
      more. Reverting to a non-SVG font eliminated the problem completely.

      Attachments

        1. LCDPanel.svg
          7 kB
          Mario Cormier
        2. LCDPanel.java
          3 kB
          Mario Cormier

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: