Page 1 of 1

GLib-GObject-CRITICAL problem

Posted: 2013-06-02T01:46:56-07:00
by jtneill
Hi - I'm using:

CentOS 5.4
Version: ImageMagick 6.8.5-9
Delegates: fontconfig freetype gslib jng jpeg lcms png ps rsvg tiff x xml zlib

rsvg test.svg -png
works

however
convert test.svg -png
produces

(process:16278): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function
(process:16278): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function
(process:16278): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed

Any ideas why?

Re: GLib-GObject-CRITICAL problem

Posted: 2013-06-02T05:19:08-07:00
by snibgo
I don't know what this command would try to do:

Code: Select all

convert test.svg -png
Better would be:

Code: Select all

convert test.svg testOut.png

Re: GLib-GObject-CRITICAL problem

Posted: 2013-06-02T05:52:11-07:00
by jtneill
Thanks for your help. This suggestion gives the same results. The complete output is:

(process:22351): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function

(process:22351): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function

(process:22351): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed
convert: memory allocation failed `/test.svg' @ error/svg.c/ReadSVGImage/2915.
convert: no images defined `/test.png' @ error/convert.c/ConvertImageCommand/3106.

Re: GLib-GObject-CRITICAL problem

Posted: 2013-06-02T06:14:38-07:00
by snibgo
What is in test.svg? It might specify a large number of pixels, so convert (or its delegate) tries to make a massive image, causing the memory allocation failure.

Re: GLib-GObject-CRITICAL problem

Posted: 2013-06-02T06:48:30-07:00
by jtneill
I was testing a 188kb svg file, so tried with a 6kb svg file with same results.

rsvg successfully converts both these svgs to png.

Re: GLib-GObject-CRITICAL problem

Posted: 2013-06-02T06:53:28-07:00
by snibgo
The size of the svg file in kb is probably irrelevant; but there might be a problem in the number of pixels.

Can you publish the smaller svg file? Upload to dropbox or similar and post the URL here.

Re: GLib-GObject-CRITICAL problem

Posted: 2013-06-02T06:59:18-07:00
by jtneill
OK - both images I am testing are from commons.wikimedia.org (I'm trying to get IM working with a MediaWiki install)

Smaller: http://commons.wikimedia.org/wiki/File:Searchtool.svg
Larger: http://commons.wikimedia.org/wiki/File: ... _Needs.svg

Re: GLib-GObject-CRITICAL problem

Posted: 2013-06-02T07:47:09-07:00
by snibgo
For me, IM v6.8.5-8 on Windows 7, the smaller SVG converts without complaint:

Code: Select all

convert Searchtool.svg s.png
Sadly, the result isn't correct. As I've commented on another thread today, Inkscape generally understands SVG more comprehensively:

Code: Select all

inkscape -f searchtool.svg -e s.png -y 1