Bug #2267
closedSVG - Memory Usage
0%
Description
Currently, if Batik has to display more than about 150 SVG icons, it causes a
JVM crash with an OutOfMemoryError. This is also an issue when showing actor
thumbnail icons in the actor library, since these are also rendered using Batik.
So for example doing a search for a very common term that returns many actors
(eg "a") causes an OutOfMemoryError.
Have looked for obvious places to save memory, but now i think we're just
limited by what batik can do. Obvious solution is to start caching icons, since
many of them may be the same, yet they all get rendered from scratch
Related issues
Updated by Matthew Brooke about 19 years ago
This is partly exacerbated by the current large size of the actor SVG icons.
After hand-editiing the director icon, and then runnign kepler and cutting and
pasting multiple copies of the director onto the canvas, it will support 316
actors instead of the previous 150.
Thsi bug obviously still needs fixing (still gets OutOfMemoryError doing a
search for a very common term that returns many actors (eg "a")), but adding
this info here for posterity.
Updated by Matthew Brooke about 19 years ago
OutOfMemoryError doing a
search for a very common term that returns many actors (eg "a")) - this is now
fixed by changes to XMLIcon.java, including selective renderign using vergil vs
batik, and use of raster thumbnails for library icons.
Lareg size of svg icons addressed under separate bug
closing