% emerge -pqv imagemagick [ebuild R ] media-gfx/imagemagick-6.8.4.9:0/6.8.4.9 USE="X bzip2 cxx fontconfig graphviz jpeg lcms lzma openmp pango png raw svg tiff truetype xml zlib -autotrace -corefonts -djvu -fftw -fpx -hdri -jbig -jpeg2k -lqr -opencl -openexr -perl -postscript -q32 -q64 -q8 -static-libs {-test} -webp -wmf" 0 kB % convert ~/doc/gobook/creative_commons/cc_pd_30.svg cc_pd_30.png (process:32710): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init() (process:32710): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed <hangs here> Tried several png's. Blocks app-doc/devmanual building. Works fine in 6.7.9.9
Works here with: # wget "http://www.gentoo.org/images/artwork/larry-the-cow-full-udder.svg" # convert larry-the-cow-full-udder.svg larry-the-cow-full-udder.png What version of librsvg cairo imagemagick libpng gdk-pixbuf you have? [ebuild R ] gnome-base/librsvg-2.36.4:2 USE="gtk introspection -tools -vala" 502 kB [ebuild R ] x11-libs/cairo-1.12.14-r2 USE="X glib opengl svg xcb (-aqua) -debug -directfb -doc (-drm) (-gallium) -legacy-drivers -openvg (-qt4) -static-libs" 0 kB [ebuild R ] media-gfx/imagemagick-6.8.4.9:0/6.8.4.9 USE="X bzip2 cxx djvu fontconfig hdri jpeg jpeg2k lcms lzma openmp pango perl png postscript raw svg tiff truetype webp wmf xml zlib -autotrace -corefonts -fftw -fpx -graphviz -jbig -lqr -opencl -openexr -q32 -q64 -q8 -static-libs {-test}" 0 kB [ebuild R ] media-libs/libpng-1.6.2:0/16 USE="apng (-neon) -static-libs" 0 kB [ebuild R ] x11-libs/gdk-pixbuf-2.28.1:2 USE="X introspection jpeg jpeg2k tiff -debug {-test}" 0 kB
And if you upgraded to >=media-libs/libpng-1.6 just now, is `revdep-rebuild --library libpng15.so.15` complete?
Hmm. From ChangeLog: 2013-04-16 6.8.5-0 Glenn Randers-Pehrson <glennrp@image...> Handle benign errors as warnings in the PNG coder. Added 6.8.5.4 to Portage, please give it a try, reopen this if it still doesn't work with latest version + revdep-rebuilded system
(In reply to comment #1) > Works here with: > > # wget "http://www.gentoo.org/images/artwork/larry-the-cow-full-udder.svg" > # convert larry-the-cow-full-udder.svg larry-the-cow-full-udder.png Converting hangs with this file as well. > What version of librsvg cairo imagemagick libpng gdk-pixbuf you have? Here're my packages (an up-to-date ~amd64 system): [ebuild R ] gnome-base/librsvg-2.36.4 USE="gtk -introspection -tools -vala" [ebuild R ] x11-libs/cairo-1.12.14-r2 USE="X directfb glib opengl svg xcb (-aqua) -debug -doc (-drm) (-gallium) -legacy-drivers -openvg (-qt4) -static-libs" [ebuild R ] media-gfx/imagemagick-6.8.5.4 USE="X bzip2 cxx fontconfig graphviz jpeg lcms lzma openmp pango png raw svg tiff truetype xml zlib -autotrace -corefonts -djvu -fftw -fpx -hdri -jbig -jpeg2k -lqr -opencl -openexr -perl -postscript -q32 -q64 -q8 -static-libs {-test} -webp -wmf" [ebuild R ] media-libs/libpng-1.6.2 USE="apng static-libs (-neon)" [ebuild R ] x11-libs/gdk-pixbuf-2.28.1 USE="X jpeg tiff -debug -introspection -jpeg2k {-test}" (In reply to comment #2) > And if you upgraded to >=media-libs/libpng-1.6 just now, > is `revdep-rebuild --library libpng15.so.15` complete? Yep, everything was fine, nothing was rebuilt. I've updated IM and still no luck, so I'm reopening. Attaching my `emerge --info`…
Created attachment 347308 [details] emerge --info
Created attachment 347380 [details] Graphite-free --info and backtrace Same here. Backtrace (along with emerge --info) attached to show possible culprits - librsvg, glib or imagemagick itself. All ricing flags explicitly disabled for all three prior to checking.
Fails for me too, 6.8.4.9 and 6.8.5.4.
I've got the same problem converting SVG to PDF.
6.8.6.1 in Portage; tested multiple conversions with convert and all worked here...
Nope, still hangs here.
I've compiled IM 6.8.6-1 manually (tar xf && ./configure && make) and convert there works fine. Weird. Should investigate.
(In reply to Nikolaj Sjujskij from comment #11) > I've compiled IM 6.8.6-1 manually (tar xf && ./configure && make) and > convert there works fine. Weird. Should investigate. I can't reproduce your results. I've tried plain './configure --with-rsvg' and it still fails. Well, unless you actually tried without rsvg support enabled ;) (--without-rsvg is the default, and imagemagick uses something else to decode SVG then).
> Well, unless you actually tried without rsvg support enabled ;) As a matter of fact, I did :)
*** Bug 481042 has been marked as a duplicate of this bug. ***
Created attachment 355994 [details, diff] imagemagick-6.8.6.8-glib_check_in_svg.patch This patch should fix the bug. @maintainers, please forward the patch upstream. I explained the source of this problem in the dupe bug...
Thanks. This is in Portage as 6.8.6.8-r1 and I've reported it to upstream too, using the form in the upstream homepage... Hopefully that's enough...