Re: ERROR: function LockSemaphoreInfo, file magick/semaphore.c, line 525

Ron Lussier <[email protected]> Mon, 29 Mar 2010 14:39:26 -0700
Newsgroups gmane.comp.video.graphicsmagick.bugs
Message-ID <[email protected]>
On Mar 29, 2010, at 11:32 AM, Bob Friesenhahn wrote:

> What version of GraphicsMagick are you using (gm -version)?
> 
> Are you using a shared library build (--enable-shared) or a static build?

Static.


> What version of GCC did you use (gcc --version)?

i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646) (dot 1)


> Does the output of the command
> 
>  gm convert -list formats | grep PNG
> 
> show read/write ("rw") support for PNG.  This is what my build lists:
> 
> % gm convert -list formats | grep PNG
>      PNG P  rw-  Portable Network Graphics (libpng 1.2.43, zlib 1.2.3)
>            See http://www.libpng.org/ for information on PNG..
>    PNG24 P  rw-  24-bit RGB PNG, opaque only (libpng 1.2.43, zlib 1.2.3)
>    PNG32 P  rw-  32-bit RGBA PNG, semitransparency OK (libpng 1.2.43, zlib 1.2.3)
>     PNG8 P  rw-  8-bit indexed PNG, binary transparency only (libpng 1.2.43, zlib 1.2.3)


I get:
> trotter /opt/jagundi/devtools > gm convert -list formats | grep PNG
>       PNG P  rw-  Portable Network Graphics (libpng 1.4.1,1.2.41, zlib 1.2.3)

>             See http://www.libpng.org/ for information on PNG..
>     PNG24 P  rw-  24-bit RGB PNG, opaque only (libpng 1.4.1,1.2.41, zlib 1.2.3)
>     PNG32 P  rw-  32-bit RGBA PNG, semitransparency OK (libpng 1.4.1,1.2.41, zlib 1.2.3)
>      PNG8 P  rw-  8-bit indexed PNG, binary transparency only (libpng 1.4.1,1.2.41, zlib 1.2.3)

I'm not sure why I'm getting the double-libraries.  I uninstalled libpng and installed an earlier version (1.2.39):
>       PNG P  rw-  Portable Network Graphics (libpng 1.2.39,1.2.41, zlib 1.2.3)
>             See http://www.libpng.org/ for information on PNG..
>     PNG24 P  rw-  24-bit RGB PNG, opaque only (libpng 1.2.39,1.2.41, zlib 1.2.3)
>     PNG32 P  rw-  32-bit RGBA PNG, semitransparency OK (libpng 1.2.39,1.2.41, zlib 1.2.3)
>      PNG8 P  rw-  8-bit indexed PNG, binary transparency only (libpng 1.2.39,1.2.41, zlib 1.2.3)

With this earlier version, my PNG files convert as expected.

Ron



> On Mon, 29 Mar 2010, Ron Lussier wrote:
> 
>> When attempting to use the 'gm' command to convert a PNG to a JPG, I get the following error:
>> Assertion failed: (semaphore_info != (SemaphoreInfo *) NULL), function LockSemaphoreInfo, file
>> magick/semaphore.c, line 525.
>> The command I'm using is:
>>    gm convert -resize "500x500>" -quality 85 horses.png horses-med.jpg
>> I get the same exact error with the simplified command:
>>      gm convert horses.png horses-med.jpg
>> or  gm convert horses.png horses-med.png
>> Conversions with other file types seem to work, but PNG conversions do not.  I'm trying this on a Mac with
>> the latest OSX.  Is this a known bug?  Is there a work-around?
>> 'make check' also fails against the PNG images.  I've installed the Mac build of libpng.
>> Help?
>> Ron
> 
> --
> Bob Friesenhahn
> [email protected], http://www.simplesystems.org/users/bfriesen/
> GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
Graphicsmagick-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-bugs