Page 1 of 1

PNG problem persists

Posted: 2011-10-13T09:10:36-07:00
by ianamason
Still on snow leopard:

Code: Select all

iam% convert  -version
Version: ImageMagick 6.7.3-1 2011-10-13 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP OpenCL   
and

Code: Select all

iam% convert captcha.gif captcha.png
Segmentation fault
with:

Code: Select all

(gdb) run captcha.gif captcha.png
Starting program: /usr/local/bin/convert captcha.gif captcha.png
Reading symbols for shared libraries .+++++++++++++++++++++.++++..++++.+++++++++++++++++++++.+............................................................................................... done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
CopyMagickString (destination=0x7fff5fbfe110 "Resource busy", source=0x0, length=4096) at magick/string.c:743
743	    *q=(*p++);
(gdb) bt
#0  CopyMagickString (destination=0x7fff5fbfe110 "Resource busy", source=0x0, length=4096) at magick/string.c:743
#1  0x00000001000b0a5a in GetExceptionMessage (error=<value temporarily unavailable, due to optimizations>) at magick/exception.c:463
#2  0x000000010014d604 in DestroySemaphoreInfo (semaphore_info=<value temporarily unavailable, due to optimizations>) at magick/semaphore.c:237
#3  0x0000000100157c1a in UnregisterStaticModules () at magick/static.c:436
#4  0x00000001000e9c02 in MagickCoreTerminus () at magick/magick.c:1394
#5  0x0000000100001e9d in main (argc=3, argv=<value temporarily unavailable, due to optimizations>) at utilities/convert.c:85
(gdb) 
6.7.3-2 maybe?

Re: PNG problem persists

Posted: 2011-10-13T09:30:01-07:00
by fmw42
probably best to post a link to your input image so others can test.

do you have libpng in your list of delegates? type

convert -list configure

and look at the line DELEGATES and see if png is listed

Re: PNG problem persists

Posted: 2011-10-13T14:38:03-07:00
by ianamason

Code: Select all

iam% convert -list configure

Path: /usr/local/share/ImageMagick-6.7.3/configure.xml

Name          Value
-------------------------------------------------------------------------------
CC            gcc -std=gnu99 -std=gnu99
CFLAGS        -D_THREAD_SAFE -I/opt/local/include/OpenEXR -D_THREAD_SAFE -D_THREAD_SAFE -pthread -fopenmp -g -O2 -Wall -D_THREAD_SAFE -pthread
CODER_PATH    /usr/local/lib/ImageMagick-6.7.3/modules-Q16/coders
CONFIGURE     ./configure 
CONFIGURE_PATH /usr/local/etc/ImageMagick/
COPYRIGHT     Copyright (C) 1999-2011 ImageMagick Studio LLC
CPPFLAGS      -I/usr/local/include/ImageMagick
CXX           g++
CXXFLAGS      -g -O2 -D_THREAD_SAFE -pthread
DEFS          -DHAVE_CONFIG_H
DELEGATES     bzlib fontconfig freetype gvc mpeg openexr png rsvg x11 xml zlib
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath= --with-perl=no
DOCUMENTATION_PATH /usr/local/share/doc/ImageMagick-6.7.3/
EXEC-PREFIX   /usr/local
EXECUTABLE_PATH /usr/local/bin
FEATURES      OpenCL OpenMP 
FILTER_PATH   /usr/local/lib/ImageMagick-6.7.3/modules-Q16/filters
HOST          x86_64-apple-darwin10.8.0
LDFLAGS       -L/usr/local/lib -L/usr/X11/lib -R/usr/X11/lib -L/usr/X11/lib
LIB_VERSION   0x673
LIB_VERSION_NUMBER 6,7,3,1
LIBRARY_PATH  /usr/local/lib/ImageMagick-6.7.3
LIBS          -lMagickCore -lfreetype -lpng -L/opt/local/lib -lfontconfig -lXext -lXt -lSM -lICE -lX11 -lbz2 -L/opt/local/lib -lIlmImf -lz -lImath -lHalf -lIex -lIlmThread -L/opt/local/lib -lrsvg-2 -lgio-2.0 -lgdk_pixbuf-2.0 -lm -lcairo -lgobject-2.0 -lgmodule-2.0 -lpng14 -lgthread-2.0 -lglib-2.0 -lintl -lxml2 -L/opt/local/lib -lgvc -lgraph -lcdt -lz -lm -lgomp -lclparser -Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries -lm -lpthread 
NAME          ImageMagick
PCFLAGS       -fopenmp
PREFIX        /usr/local
QuantumDepth  16
RELEASE_DATE  2011-10-13
SHARE_PATH    /usr/local/share/ImageMagick-6.7.3
SVN_REVISION  exported
TARGET_CPU    x86_64
TARGET_OS     darwin10.8.0
TARGET_VENDOR apple
VERSION       6.7.3
WEBSITE       http://www.imagemagick.org

Path: [built-in]

Name          Value
-------------------------------------------------------------------------------
NAME          ImageMagick
[visnet-83:code/rendezvous/freedom] iam% 


Re: PNG problem persists

Posted: 2011-10-13T17:53:52-07:00
by fmw42
At this point you probably should post an image that fails for you, so the IM developers can test with it to confirm it fails for them. I see png listed in your delegates.

Re: PNG problem persists

Posted: 2011-10-14T08:48:41-07:00
by ianamason
Actually this is a continuation of this thread:

http://www.imagemagick.org/discourse-s ... d5#p77184

and the hint of a fix in the 6.7.3-1 code base.