Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 468050 - media-gfx/imagemagick-6.8.4.9 - `convert` fails on any svg->png
Summary: media-gfx/imagemagick-6.8.4.9 - `convert` fails on any svg->png
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
: 481042 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-04-30 19:50 UTC by Nikolaj Šujskij
Modified: 2013-08-31 19:24 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (file_468050.txt,16.12 KB, text/plain)
2013-05-03 19:54 UTC, Nikolaj Šujskij
Details
Graphite-free --info and backtrace (backtrace.txt,15.34 KB, text/plain)
2013-05-04 19:55 UTC, Petr Polezhaev
Details
imagemagick-6.8.6.8-glib_check_in_svg.patch (imagemagick-6.8.6.8-glib_check_in_svg.patch,382 bytes, patch)
2013-08-14 13:46 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolaj Šujskij 2013-04-30 19:50:37 UTC
% 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
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2013-05-03 08:00:45 UTC
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
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2013-05-03 08:02:01 UTC
And if you upgraded to >=media-libs/libpng-1.6 just now,
is `revdep-rebuild --library libpng15.so.15` complete?
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2013-05-03 08:12:03 UTC
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
Comment 4 Nikolaj Šujskij 2013-05-03 19:53:45 UTC
(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`…
Comment 5 Nikolaj Šujskij 2013-05-03 19:54:20 UTC
Created attachment 347308 [details]
emerge --info
Comment 6 Petr Polezhaev 2013-05-04 19:55:21 UTC
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.
Comment 7 Maxim Koltsov (RETIRED) gentoo-dev 2013-05-05 06:13:16 UTC
Fails for me too, 6.8.4.9 and 6.8.5.4.
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-06-23 11:08:49 UTC
I've got the same problem converting SVG to PDF.
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2013-06-24 01:51:22 UTC
6.8.6.1 in Portage; tested multiple conversions with convert and all worked here...
Comment 10 Nikolaj Šujskij 2013-06-24 05:45:06 UTC
Nope, still hangs here.
Comment 11 Nikolaj Šujskij 2013-06-24 09:41:03 UTC
I've compiled IM 6.8.6-1 manually (tar xf && ./configure && make) and convert there works fine. Weird. Should investigate.
Comment 12 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-06-24 16:26:52 UTC
(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).
Comment 13 Nikolaj Šujskij 2013-06-24 16:33:17 UTC
> Well, unless you actually tried without rsvg support enabled ;)

As a matter of fact, I did :)
Comment 14 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-08-14 13:44:55 UTC
*** Bug 481042 has been marked as a duplicate of this bug. ***
Comment 15 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-08-14 13:46:22 UTC
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...
Comment 16 Samuli Suominen (RETIRED) gentoo-dev 2013-08-31 19:23:37 UTC
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...