Bug 186566 - crash while resizing svg image using ksvgtopng due to insane memory consumption
Summary: crash while resizing svg image using ksvgtopng due to insane memory consumption
Status: RESOLVED UNMAINTAINED
Alias: None
Product: ksvg2
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Nikolas Zimmermann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-08 17:24 UTC by mboss_82
Modified: 2011-09-19 12:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
country_AU.svg (83.69 KB, application/xml)
2009-03-08 17:27 UTC, mboss_82
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mboss_82 2009-03-08 17:24:20 UTC
Version:            (using KDE 3.5.9)
Compiler:          gcc-Version 4.3.3 (Gentoo 4.3.3 p1.0, pie-10.1.5) configured with --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --enable-cld --enable-java-awt=gtk --enable-languages=c,c++,java,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.3 p1.0, pie-10.1.5'
OS:                Linux
Installed from:    Gentoo Packages

I hit this bug compiling navit from source. Navit runs wants to convert a number of svgz-files to png using ksvgtopng (from the kdelibs package).

Symptoms:
Memory gets filled, swap gets filled, and the computer crashes.

Steps to reproduce this step:
1. prepare (h)top to monitor ram- and swap-usage
2. prepare a console with "kill -9 `pidof ksvgtopng`"
3. execute "ksvgtopng 32 32 test.svg test.png"

(steps one and two were used by me to prevent my computer from crashing.)

It also created this output: ASSERT: "i <= nodes" in /usr/qt/3/include/qvaluelist.h (373)

Note: This is not a duplicate of https://bugs.kde.org/show_bug.cgi?id=118498 . I tested the svg mentioned there and it converted just fine.
Another note: I asked on IRC if people could reproduce this bug with my provided SVG - the same symptoms appeared for kde 3.5.9 (amd64) and 3.5.10 (x86).

Also noteworthy is that svgdisplay seems to render it just fine.
Comment 1 mboss_82 2009-03-08 17:27:08 UTC
Created attachment 31910 [details]
country_AU.svg

This file is actually from the navit svn-repository, r2085, filename: country_AU.svgz.
It might very well be that other files from there are also broken. I didn't check that.
Comment 2 Christoph Feck 2011-09-19 12:38:17 UTC
This component has been replaced with the QtSvg based "svgpart" in KDE 4. If this issue still needs to be addressed, please add a comment.