Memory Leak When Converting Large SVG Files to PNG/PDF
Submitted by Amit
Assigned to Emmanuel Pacaud
Description
Summary
I have a large PDF file from autocad that I imported into inkscape. After some editing I saved the file as an SVG. However, saving this as a PDF file causes extreme slow down to the OS. After some testing, I realized that the main cause was the memory leak. There was huge amounts of disk swapping going on.
Other Notes
- I tried using other programs that use the cairo graphics library to convert the svg to pdf/png and I get the same memory leak issue described above.
- Used rsvg-convert v. 2.22.2
- Used pdf2svg v. 0.2.1 (http://www.cityinthesky.co.uk/pdf2svg.html)
-
The memory leak eats up most of the CPU cycles and all the RAM. It also eats up around 1.5GB of swap until I killed it manually.
-
Machine specs
- Debian Etch
- Linux debian 2.6.18-6-686 #1 (closed) SMP Fri Jun 6 22:22:11 UTC 2008 i686 GNU/Linux
- Intel Pentium D 3.40GHz
- 1GB RAM
- 2.5GB Swap
- Version of software (all compiled from source)
- cairo-1.6.4
- cairomm-1.6.0
- inkscape 0.46
- pixman-0.11.4
Version: 1.6.4