memory leak when resizing font via the toolbar
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Inkscape 0.48.4 r9939
Windows 7 x64 SP1
Just happened to see a memory leak while resizing a font using the "Width of selection" box on the toolbar. It seems on the particular font I'm using every time I bump up the width of the font by .100 via the "up" arrow keys in the "width of selection" box, Inkscape uses ~668k of ram. While testing this, I was able to get Inkscape almost up to 1GB of memory used by just enlarging this font from a width of 207 up to ~350.
The font is called "Army Wide", and can be downloaded at the following location: http://
Anyways, here's the steps to reproduce this memory leak (and yes, this was duplicated with a fresh profile and my normal profile, so it isn't a profile bug):
1. Download and install the "Army Wide" font above.
2. If you have Windows, open up the task manager and set it to "always on top" so you can see the leak in action.
3. Once the font is installed, open the attached file in Inkscape.
4. Select the "0" on your screen.
5. Go up to the "width of selection" box and left click in it.
6. Now, hold down on the "up" key on your keyboard and watch the memory usage for Inkscape in the task manager.
7. Keep holding down the "up" key till the new width of the "0" is ~300.
What happens:
While watching the task manager, you can notice that Inkscape's memory profile is shooting up like crazy. Garbage collection does trigger once around the first time it hits ~200MB when the width is around 240, but if you keep holding down the "up" key, by the time you get to around 300 width, the memory usage for Inkscape is around 400MB.
I've never seen this happen with any other font, but I haven't tried all the fonts I have installed on my system.
tags: | added: fonts performance win32 |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
Reproduced on Windows XP, Inkscape 0.48.4.
It affects all fonts I have tested (Army Wide, but also Consolas, and even Arial) but it's far more noticeable with some characters (O and X) than with others.
Not reproduced on Inkscape trunk revision 12501.
I'll test on Crunchbang later to confirm.