Page 1 of 1

Abort trap: 6

Posted: 2016-04-12T17:22:13-07:00
by djaquay
I'm getting:

Code: Select all

Abort trap: 6
as output from this command:

Code: Select all

convert FullSizeRender.jpg \( reverse-confetti-watermark.png -resize 480x \) -append FullSizeRender-watermark.jpg
This is from a Mac binary install of 6.9.3, installed from ImageMagick-x86_64-apple-darwin15.2.0.tar.gz. Here are the images in question:

https://dl.dropboxusercontent.com/u/339 ... Render.jpg
https://dl.dropboxusercontent.com/u/339 ... ermark.png

Thanks,
Dave

Re: Abort trap: 6

Posted: 2016-04-12T18:27:17-07:00
by fmw42
Works fine for me on IM 6.9.3.8 Q16 Mac OSX Snow Leopard. I install all my delegates from MacPorts, but install IM from source. See viewtopic.php?f=1&t=21502&p=88202&hilit ... rts#p88202

What do you get from

Code: Select all

convert logo: logo.png
convert logo.png logo.jpg
convert logo.jpg logo.gif
Any errors?

Also what do you get from

Code: Select all

convert -version

Re: Abort trap: 6

Posted: 2016-04-14T08:54:51-07:00
by djaquay
I'm on OSX 10.10.5 Yosemite. convert logo: logo.png gives "Abort trap: 6" messages as well. convert -version gives:

Code: Select all

Version: ImageMagick 6.9.3-1 Q16 x86_64 2016-01-09 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC 
Delegates (built-in): bzlib freetype jbig jng jpeg lcms png 
I'm guessing that I've got something setup wrong? convert logo: logo.jpg works, as does convert logo: logo.gif. But I've got another watermark file in .png that works fine. Confused...

Have the following in my .bash_profile:

Code: Select all

export MAGICK_HOME="$HOME/ImageMagick-6.9.3"
export PATH="$MAGICK_HOME/bin:$PATH"
export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib/"
export DISPLAY=:0
Thanks,
Dave

Re: Abort trap: 6

Posted: 2016-04-14T09:36:26-07:00
by fmw42
If

Code: Select all

convert logo: logo.jpg
convert logo: logo.gif
work, then it would appear to be a problem with your libpng. What is the version of libpng? Perhaps it is corrupt.

Code: Select all

convert -list format
PNG* PNG rw- Portable Network Graphics (libpng 1.6.20)
See http://www.libpng.org/ for details about the PNG format.


Where was IM installed? ( /usr/local/bin or /usr/bin ?)

Code: Select all

type -a convert
should tell you, if it is in your $PATH. If not, then you need to find out where it is installed and make sure it is in your $PATH (via your .bash_profile)

Code: Select all

echo $PATH

If everything above is fine, then all I can suggest is try installing again. Or install from Homebrew or MacPorts. Perhaps one of the IM developers can tell you what abort trap 6 means.

Re: Abort trap: 6

Posted: 2016-05-05T06:15:25-07:00
by dkbjornn
I'm getting the same issue on OS X El Capitan. I just installed ImageMagick using Mac Ports.

Code: Select all

sudo port install ImageMagick


When I try to run

Code: Select all

convert 1n.png -resize 700x700 resize_1n.png
I get "Abort trap: 6" as the output. I tried the suggestions in the posts here and everything looks the same:

Code: Select all

convert logo: logo.png
Abort trap: 6

Code: Select all

convert logo: logo.jpg
No errors

Code: Select all

convert logo: logo.gif
No errors

Code: Select all

convert -version
Version: ImageMagick 6.9.3-1 Q16 x86_64 2016-01-09 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC
Delegates (built-in): bzlib freetype jbig jng jpeg lcms png

Code: Select all

convert -list format
PNG* rw- Portable Network Graphics (libpng 1.6.20)
See http://www.libpng.org/ for details about the PNG format.

Code: Select all

type -a convert
convert is /opt/local/bin/convert
convert is /Users/dkbjornn/ImageMagick-6.9.3/bin/convert


Since everything seemed to check out, I reinstalled ImageMagic as per the last suggestion and still get the same results. Any other suggestions?

Re: Abort trap: 6

Posted: 2016-05-05T09:08:10-07:00
by fmw42
My understanding is that libpng requires zlib. From MacPorts

"libpng 1.6.21
Library for manipulating PNG images
Licenses: zlib
Maintained by: ryandesign
Categories: graphics
Platforms: darwin freebsd linux openbsd sunos
Dependencies: xz zlib "

Try installing these ports first, then install Imagemagick again. See if that works.

Otherwise, do what I do. Install all my desired ports and then install IM from source. See viewtopic.php?f=1&t=21502&p=88202&hilit ... rts#p88202

You might want to install other ports that IM uses often. See my list below with the red ones.


convert -version
Version: ImageMagick 6.9.3-10 Q16 x86_64 2016-05-04 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib cairo fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms lqr ltdl lzma openexr png ps rsvg tiff webp x xml zlib


Note gslib is Ghostscript, which is needed for reading PDF files

Re: Abort trap: 6

Posted: 2016-05-05T10:21:11-07:00
by fmw42
convert is /opt/local/bin/convert
convert is /Users/dkbjornn/ImageMagick-6.9.3/bin/convert
It appears that you have two versions of Imagemagick installed. Perhaps they are conflicting or you are not using the one that is properly installed.

try providing the full path to each of them.

Code: Select all

/opt/local/bin/convert logo: logo.png
and

Code: Select all

/Users/dkbjornn/ImageMagick-6.9.3/bin/convert logo: logo.png
Do either work?

If not, remove them both and start over.