Page 2 of 2

Re: svg to png errors

Posted: 2010-10-13T12:24:29-07:00
by dognose
I'll throw in an strace to see what it was doing last.. writing out colors.xml?

Code: Select all

brk(0x12f39000)                         = 0x12f39000
open("/usr/share/ImageMagick-6.6.1/config/colors.xml", O_RDONLY) = 4
lseek(4, 0, SEEK_END)                   = 1378
mmap(NULL, 1378, PROT_READ, MAP_PRIVATE, 4, 0) = 0x2b702f175000
munmap(0x2b702f175000, 1378)            = 0
close(4)                                = 0
open("/usr/lib64/ImageMagick-6.6.1/config/colors.xml", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/doc/ImageMagick-6.6.1/colors.xml", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/ImageMagick-6.6.1/colors.xml", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/root/.magick/colors.xml", O_RDONLY) = -1 ENOENT (No such file or directory)
open("colors.xml", O_RDONLY)            = -1 ENOENT (No such file or directory)
write(3, "<?xml version=\"1.0\" standalone=\""..., 4096) = 4096
write(3, "/>\n  <circle cx=\"2\" cy=\"1\" r=\"1\""..., 4096) = 4096
write(3, "2\" r=\"1\" fill=\"rgb(50,44,43)\"/>\n"..., 4096) = 4096
..
write(3, "=\"5\" cy=\"44\" r=\"1\" fill=\"rgb(107"..., 4096) = 4096
fstat(3, {st_mode=S_IFREG|0644, st_size=176128, ...}) = 0
write(3, "ill=\"rgb(101,108,89)\"/>\n  <circl"..., 3470) = 3470
close(3)                                = 0
munmap(0x2b702f174000, 4096)            = 0
munmap(0x2b702ef65000, 2157248)         = 0
....
munmap(0x2b702eb41000, 2210232)         = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

Re: svg to png errors

Posted: 2010-10-13T12:33:04-07:00
by magick
You claim to running ImageMagick 6.6.4 but notice your strace says its picking up 6.6.1, /usr/share/ImageMagick-6.6.1/config/colors.xml. Add -debug configure to your command line:
  • convert -debug configure rose: rose.svg
Ensure ImageMagick is picking up the 6.6.4 configuration files and modules.

Re: svg to png errors

Posted: 2010-10-13T12:41:13-07:00
by dognose
sorry, that was on a different machine that had strace... similar results with the new version..

Code: Select all

open("/usr/lib64/ImageMagick-6.6.4/config/colors.xml", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/doc/ImageMagick-6.6.4/colors.xml", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/ImageMagick-6.6.4/colors.xml", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/root/.magick/colors.xml", O_RDONLY) = -1 ENOENT (No such file or directory)
open("colors.xml", O_RDONLY)            = -1 ENOENT (No such file or directory)
write(3, "<?xml version=\"1.0\" standalone=\""..., 4096) = 4096
write(3, "/>\n  <circle cx=\"2\" cy=\"1\" r=\"1\""..., 4096) = 4096
write(3, "2\" r=\"1\" fill=\"rgb(50,44,43)\"/>\n"..., 4096) = 4096
write(3, "\"/>\n  <circle cx=\"13\" cy=\"3\" r=\""..., 4096) = 4096
...
write(3, "/>\n  <circle cx=\"69\" cy=\"41\" r=\""..., 4096) = 4096
write(3, "x=\"2\" cy=\"43\" r=\"1\" fill=\"rgb(10"..., 4096) = 4096
write(3, "=\"5\" cy=\"44\" r=\"1\" fill=\"rgb(107"..., 4096) = 4096
fstat(3, {st_mode=S_IFREG|0644, st_size=176128, ...}) = 0
write(3, "ill=\"rgb(101,108,89)\"/>\n  <circl"..., 3470) = 3470
close(3)                                = 0
munmap(0x2af100bd4000, 4096)            = 0
munmap(0x2af1009c5000, 2158480)         = 0
...
munmap(0x2af1005a1000, 2210184)         = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

Re: svg to png errors

Posted: 2010-10-13T13:13:35-07:00
by magick
Try a stack trace:
  • gdb convert
    run rose: rose.svg
    where
post the output here.

Re: svg to png errors

Posted: 2010-10-13T15:47:09-07:00
by dognose

Code: Select all

# gdb convert
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5_5.2)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/convert...(no debugging symbols found)...done.
(gdb) run rose: rose.svg
Starting program: /usr/bin/convert rose: rose.svg
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x0000003ad4236598 in ?? ()
(gdb) where
#0  0x0000003ad4236598 in ?? ()
#1  0x0000003ac8e333a5 in exit () from /lib64/libc.so.6
#2  0x0000003ac8e1d99b in __libc_start_main () from /lib64/libc.so.6
#3  0x0000000000400849 in _start ()

Re: svg to png errors

Posted: 2010-10-13T16:19:02-07:00
by magick
We've seen this problem before. Its caused when either the Cairo or RSVG delegate libraries are unwinding during the program exit for some versions of Cairo / RSVG / Linux. You might be able to fix it by commenting out the rsvg_term() call in coders/svg.c. We recall the problem may be related to an at_exit() call Cairo / RSVG makes when the program exits. Its possible the bug only occurs for the dynamics release of ImageMagick with modules. Add --disable-shared to your command line and see if that fixes the problem. This fault occurs at program exit, however, the ImageMagick command you issue should be complete before this bug is tickled.

Re: svg to png errors

Posted: 2013-11-23T01:03:48-07:00
by djest
Good day,

I have very similar issue on my mac (OSX Maverick)
But it looks so weird because all of modules are there.

So I have error:

Code: Select all

identify: unable to load module `/usr/local/Cellar/imagemagick/6.8.7-0/lib/ImageMagick//modules-Q16/coders/png.la': file not found @ error/module.c/OpenModule/1276.
identify: no decode delegate for this image format `files/Product_Mask/orig/00000/2.png' @ error/constitute.c/ReadImage/552.
So here we have very weird path to module //modules-Q16/coders/png.la
Why is there double slashes?

But I have all modules in next folder:

Code: Select all

ls /usr/local/Cellar/imagemagick/6.8.7-0/lib/ImageMagick/modules-Q16/coders/
aai.la		clip.la		fax.la		html.la		map.la		msl.la		pcx.la		ps.la		scr.la		tim.la		wpg.la
aai.so		clip.so		fax.so		html.so		map.so		msl.so		pcx.so		ps.so		scr.so		tim.so		wpg.so
art.la		cmyk.la		fd.la		icon.la		mask.la		mtv.la		pdb.la		ps2.la		sct.la		ttf.la		xbm.la
art.so		cmyk.so		fd.so		icon.so		mask.so		mtv.so		pdb.so		ps2.so		sct.so		ttf.so		xbm.so
avs.la		cut.la		fits.la		info.la		mat.la		mvg.la		pdf.la		ps3.la		sfw.la		txt.la		xc.la
avs.so		cut.so		fits.so		info.so		mat.so		mvg.so		pdf.so		ps3.so		sfw.so		txt.so		xc.so
bgr.la		dcm.la		gif.la		inline.la	matte.la	null.la		pes.la		psd.la		sgi.la		uil.la		xcf.la
bgr.so		dcm.so		gif.so		inline.so	matte.so	null.so		pes.so		psd.so		sgi.so		uil.so		xcf.so
bmp.la		dds.la		gradient.la	ipl.la		meta.la		otb.la		pict.la		pwp.la		stegano.la	url.la		xpm.la
bmp.so		dds.so		gradient.so	ipl.so		meta.so		otb.so		pict.so		pwp.so		stegano.so	url.so		xpm.so
braille.la	debug.la	gray.la		jnx.la		miff.la		palm.la		pix.la		raw.la		sun.la		uyvy.la		xps.la
braille.so	debug.so	gray.so		jnx.so		miff.so		palm.so		pix.so		raw.so		sun.so		uyvy.so		xps.so
cals.la		dib.la		hald.la		jpeg.la		mono.la		pango.la	plasma.la	rgb.la		svg.la		vicar.la	ycbcr.la
cals.so		dib.so		hald.so		jpeg.so		mono.so		pango.so	plasma.so	rgb.so		svg.so		vicar.so	ycbcr.so
caption.la	dng.la		hdr.la		label.la	mpc.la		pattern.la	png.la		rgf.la		tga.la		vid.la		yuv.la
caption.so	dng.so		hdr.so		label.so	mpc.so		pattern.so	png.so		rgf.so		tga.so		vid.so		yuv.so
cin.la		dot.la		histogram.la	mac.la		mpeg.la		pcd.la		pnm.la		rla.la		thumbnail.la	viff.la
cin.so		dot.so		histogram.so	mac.so		mpeg.so		pcd.so		pnm.so		rla.so		thumbnail.so	viff.so
cip.la		dpx.la		hrz.la		magick.la	mpr.la		pcl.la		preview.la	rle.la		tile.la		wbmp.la
cip.so		dpx.so		hrz.so		magick.so	mpr.so		pcl.so		preview.so	rle.so		tile.so		wbmp.so
So it does not work with any codecs, I'm pretty sure because it is about wrong path of modules ImageMagick trying to use.
I've installed ImageMagick with sudo port install ImageMagick.

Please help with this weird issue, I spent few days to install reinstall and figure out why does not it work :(