Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
I'm trying to convert some old FlashPix images to something more portable. According to identify -list formats, my version of ImageMagick is read/write enabled for fpx files, but any operation with them hangs.
Post a URL to one or two of your FlashPix images. We need to determine if the process hangs within the FlashPix delegate library or within ImageMagick itself.
I upgraded both packages, and now there is no problem.
The latest versions in Gentoo's portage repository for ImageMagick and libfpx were 6.5.2-9 and 1.2.0-9, respectively. Usually portage has the most "bleeding edge" versions; this time I had to make my own overlays to reflect the latest sources.
(Btw, don't you mean libfpx-1.3.0-0 instead of libfpx-1.3.0-1?)
I may have spoken too soon. The previous file opens, now I have a few that won't. I see that the 1.3.0-1 version is now on the FTP server, and I have upgraded to it. Same deal as before; IM locks up.
To help you'll need to attach gdb to the process and post a stack trace. If the lock up is in the FlashPix delegate library you will need to post a bug report to the FlashPix folks. If you can identify the lock up is within ImageMagick we will certainly attempt to fix the problem.
$ identify t11_40xr.fpx &
[1] 24059
$ gdb identify 24059
GNU gdb 6.8
Copyright (C) 2008 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-pc-linux-gnu"...
(no debugging symbols found)
Attaching to program: /usr/bin/identify, process 24059
Reading symbols from /usr/lib64/libMagickCore.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libMagickCore.so.2
Reading symbols from /usr/lib64/libMagickWand.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libMagickWand.so.2
Reading symbols from /usr/lib64/libtiff.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libtiff.so.5
Reading symbols from /lib64/libc.so.6...
(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/lib64/libfreetype.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from /usr/lib64/libjpeg.so.62...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib64/libXext.so.6...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXext.so.6
Reading symbols from /usr/lib64/libXt.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXt.so.6
Reading symbols from /lib64/libbz2.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libbz2.so.1
Reading symbols from /lib64/libz.so.1...
(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.3/libgomp.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/libgomp.so.1
Reading symbols from /lib64/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib64/libpthread.so.0...
(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
[New Thread 0x7fd24287f790 (LWP 24059)]
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/lib64/libltdl.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libltdl.so.3
Reading symbols from /usr/lib64/libSM.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libSM.so.6
Reading symbols from /lib64/libuuid.so.1...
(no debugging symbols found)...done.
Loaded symbols for /lib/libuuid.so.1
Reading symbols from /usr/lib64/libICE.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libICE.so.6
Reading symbols from /usr/lib64/libX11.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libX11.so.6
Reading symbols from /usr/lib64/libXau.so.6...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXau.so.6
Reading symbols from /usr/lib64/libXdmcp.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXdmcp.so.6
Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib64/libm.so.6...
(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /usr/lib64/ImageMagick-6.5.4/modules-Q16/coders/fpx.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/ImageMagick-6.5.4/modules-Q16/coders/fpx.so
Reading symbols from /usr/lib64/libfpx.so.1...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libfpx.so.1
Reading symbols from /usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.3/libstdc++.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/libstdc++.so.6
Reading symbols from /lib64/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
(no debugging symbols found)
0x00007fd23ee2147c in CMSFPageTable::FindSwapPage () from /usr/lib/libfpx.so.1
(gdb) backtrace
#0 0x00007fd23ee2147c in CMSFPageTable::FindSwapPage () from /usr/lib/libfpx.so.1
#1 0x00007fd23ee214ff in CMSFPageTable::GetFreePage () from /usr/lib/libfpx.so.1
#2 0x00007fd23ee215b7 in CMSFPageTable::FindPage () from /usr/lib/libfpx.so.1
#3 0x00007fd23ee2162e in CMSFPageTable::GetPage () from /usr/lib/libfpx.so.1
#4 0x00007fd23ee2363d in CPagedVector::GetTable () from /usr/lib/libfpx.so.1
#5 0x00007fd23ee181bf in CDIFat::GetSect () from /usr/lib/libfpx.so.1
#6 0x00007fd23ee21737 in CMSFPageTable::GetPage () from /usr/lib/libfpx.so.1
#7 0x00007fd23ee2363d in CPagedVector::GetTable () from /usr/lib/libfpx.so.1
#8 0x00007fd23ee181bf in CDIFat::GetSect () from /usr/lib/libfpx.so.1
#9 0x00007fd23ee21737 in CMSFPageTable::GetPage () from /usr/lib/libfpx.so.1
#10 0x00007fd23ee2363d in CPagedVector::GetTable () from /usr/lib/libfpx.so.1
#11 0x00007fd23ee181bf in CDIFat::GetSect () from /usr/lib/libfpx.so.1
#12 0x00007fd23ee21737 in CMSFPageTable::GetPage () from /usr/lib/libfpx.so.1
#13 0x00007fd23ee2363d in CPagedVector::GetTable () from /usr/lib/libfpx.so.1
#14 0x00007fd23ee181bf in CDIFat::GetSect () from /usr/lib/libfpx.so.1
#15 0x00007fd23ee21737 in CMSFPageTable::GetPage () from /usr/lib/libfpx.so.1
#16 0x00007fd23ee2363d in CPagedVector::GetTable () from /usr/lib/libfpx.so.1
#17 0x00007fd23ee181bf in CDIFat::GetSect () from /usr/lib/libfpx.so.1
#18 0x00007fd23ee21737 in CMSFPageTable::GetPage () from /usr/lib/libfpx.so.1
#19 0x00007fd23ee2363d in CPagedVector::GetTable () from /usr/lib/libfpx.so.1
#20 0x00007fd23ee181bf in CDIFat::GetSect () from /usr/lib/libfpx.so.1
#21 0x00007fd23ee21737 in CMSFPageTable::GetPage () from /usr/lib/libfpx.so.1
#22 0x00007fd23ee2363d in CPagedVector::GetTable () from /usr/lib/libfpx.so.1
#23 0x00007fd23ee181bf in CDIFat::GetSect () from /usr/lib/libfpx.so.1
#24 0x00007fd23ee21737 in CMSFPageTable::GetPage () from /usr/lib/libfpx.so.1
#25 0x00007fd23ee2363d in CPagedVector::GetTable () from /usr/lib/libfpx.so.1
#26 0x00007fd23ee181bf in CDIFat::GetSect () from /usr/lib/libfpx.so.1
#27 0x00007fd23ee21737 in CMSFPageTable::GetPage () from /usr/lib/libfpx.so.1
#28 0x00007fd23ee2363d in CPagedVector::GetTable () from /usr/lib/libfpx.so.1
#29 0x00007fd23ee181bf in CDIFat::GetSect () from /usr/lib/libfpx.so.1
#30 0x00007fd23ee21737 in CMSFPageTable::GetPage () from /usr/lib/libfpx.so.1
#31 0x00007fd23ee2363d in CPagedVector::GetTable () from /usr/lib/libfpx.so.1
#32 0x00007fd23ee181bf in CDIFat::GetSect () from /usr/lib/libfpx.so.1
#33 0x00007fd23ee21737 in CMSFPageTable::GetPage () from /usr/lib/libfpx.so.1
#34 0x00007fd23ee2363d in CPagedVector::GetTable () from /usr/lib/libfpx.so.1
#35 0x00007fd23ee181bf in CDIFat::GetSect () from /usr/lib/libfpx.so.1
#36 0x00007fd23ee21737 in CMSFPageTable::GetPage () from /usr/lib/libfpx.so.1
#37 0x00007fd23ee2363d in CPagedVector::GetTable () from /usr/lib/libfpx.so.1
#38 0x00007fd23ee18274 in CDIFat::GetFatSect () from /usr/lib/libfpx.so.1
#39 0x00007fd23ee21717 in CMSFPageTable::GetPage () from /usr/lib/libfpx.so.1
#40 0x00007fd23ee2363d in CPagedVector::GetTable () from /usr/lib/libfpx.so.1
#41 0x00007fd23ee1dc56 in CFat::GetNext () from /usr/lib/libfpx.so.1
#42 0x00007fd23ee1de9d in CFat::GetLength () from /usr/lib/libfpx.so.1
#43 0x00007fd23ee1fe20 in CMStream::Init () from /usr/lib/libfpx.so.1
#44 0x00007fd23ee1f69d in DllMultiStreamFromStream () from /usr/lib/libfpx.so.1
#45 0x00007fd23ee22213 in CRootExposedDocFile::InitRoot () from /usr/lib/libfpx.so.1
#46 0x00007fd23ee1a047 in DfFromLB () from /usr/lib/libfpx.so.1
#47 0x00007fd23ee1a14e in DfOpenStorageOnILockBytesW () from /usr/lib/libfpx.so.1
#48 0x00007fd23ee16c74 in DfOpenStorageOnILockBytes () from /usr/lib/libfpx.so.1
#49 0x00007fd23ee23035 in StgOpenStorageOnILockBytes () from /usr/lib/libfpx.so.1
#50 0x00007fd23ee230c9 in StgOpenStorage () from /usr/lib/libfpx.so.1
#51 0x00007fd23edfd1c0 in OLEFile::OpenOLEFile () from /usr/lib/libfpx.so.1
#52 0x00007fd23edfd3d8 in OLEFile::GetCLSID () from /usr/lib/libfpx.so.1
#53 0x00007fd23edde5e0 in PFlashPixImageView::PFlashPixImageView () from /usr/lib/libfpx.so.1
#54 0x00007fd23ede315a in OpenImageByFilename () from /usr/lib/libfpx.so.1
#55 0x00007fd23ede335a in FPX_OpenImageByFilename () from /usr/lib/libfpx.so.1
#56 0x00007fd23f04a31a in ?? () from /usr/lib64/ImageMagick-6.5.4/modules-Q16/coders/fpx.so
#57 0x00007fd2422cfd00 in ReadImage () from /usr/lib/libMagickCore.so.2
#58 0x00007fd2423a315a in ReadStream () from /usr/lib/libMagickCore.so.2
#59 0x00007fd2422d0d5e in PingImage () from /usr/lib/libMagickCore.so.2
#60 0x00007fd2422d0f7b in PingImages () from /usr/lib/libMagickCore.so.2
#61 0x00007fd241fd1e81 in IdentifyImageCommand () from /usr/lib/libMagickWand.so.2
#62 0x0000000000401039 in ?? ()
#63 0x00007fd2419a95c6 in __libc_start_main () from /lib/libc.so.6
#64 0x0000000000400e69 in ?? ()
#65 0x00007fff4a8a86d8 in ?? ()
#66 0x000000000000001c in ?? ()
#67 0x0000000000000002 in ?? ()
#68 0x00007fff4a8aa12f in ?? ()
#69 0x00007fff4a8aa138 in ?? ()
#70 0x0000000000000000 in ?? ()
(gdb) quit
The program is running. Quit anyway (and detach it)? (y or n) y
Detaching from program: /usr/bin/identify, process 24059
$ kill 24059
The deadlock is in the FlashPix delegate library rather than ImageMagick. Unfortunately we cannot reproduce the problem. Your image converts without complaint on our Fedora system with ImageMagick 6.5.4-2 and Flashpix 1.3.0-1.