ImageMagick crashes on "random" .tif files
ImageMagick crashes on "random" .tif files
Hello,
I am using ImageMagick from my windows command prompt. I have 16 .tif files in a folder all of which have different file names and are less than 1MB in size.
I attempt to run convert filename.tif filename.png on each of these 16 .tif files. 5 out of the 16 .tif files continually cause ImageMagick to crash* every time I attempt to run this command on them. The other 11 .tif files work with no problem.
I then attempt to run identify -format "%W" filename.tif on each of these 16 .tif files. The same 5 .tif files cause ImageMagick to crash** again but with a different message.
I wanted to post an example .tif file which causes ImageMagick to crash. I had to edit out sensitive information by using paint.
What is interesting is that the edited paint .tif doesn't causes a crash anymore, just warnings:
convert causes-crash_PAINT-EDITED.tif new.png
Magick: incorrect count for field "MinSampleValue" (1, expecting 4); tag ignored. `C:\testdata\causes-crash_PAINT.tif' @ warning/tiff.c/TIFFWarnings/707.
Magick: incorrect count for field "MaxSampleValue" (1, expecting 4); tag ignored. `C:\testdata\causes-crash_PAINT.tif' @ warning/tiff.c/TIFFWarnings/707.
Magick: incorrect count for field "MinSampleValue" (1, expecting 4); tag ignored. `C:\testdata\causes-crash_PAINT.tif' @ warning/tiff.c/TIFFWarnings/707.
Magick: incorrect count for field "MaxSampleValue" (1, expecting 4); tag ignored. `C:\testdata\causes-crash_PAINT.tif' @ warning/tiff.c/TIFFWarnings/707.
Anyone know what is going on here??
Thank-you, Michelle
(1) CRASH MESSAGE when using 'convert'
Problem signature:
Problem Event Name: APPCRASH
Application Name: identify.exe
Application Version: 4.0.1.0
Application Timestamp: 4e52f3e2
Fault Module Name: CORE_RL_magick_.dll
Fault Module Version: 4.0.1.0
Fault Module Timestamp: 4e52f1b4
Exception Code: c0000005
Exception Offset: 00105c50
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 7177
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
(2) CRASH MESSAGE when using 'identify'
Problem signature:
Problem Event Name: APPCRASH
Application Name: identify.exe
Application Version: 4.0.1.0
Application Timestamp: 4e52f3e2
Fault Module Name: StackHash_2939
Fault Module Version: 6.1.7601.17514
Fault Module Timestamp: 4ce7ba58
Exception Code: c0000374
Exception Offset: 000ce653
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 7177
Additional Information 1: 2939
Additional Information 2: 2939252ef869fcc08435ab13fc83bed3
Additional Information 3: 6cf5
Additional Information 4: 6cf512e1528492d11fa5794e9381887b
I am using ImageMagick from my windows command prompt. I have 16 .tif files in a folder all of which have different file names and are less than 1MB in size.
I attempt to run convert filename.tif filename.png on each of these 16 .tif files. 5 out of the 16 .tif files continually cause ImageMagick to crash* every time I attempt to run this command on them. The other 11 .tif files work with no problem.
I then attempt to run identify -format "%W" filename.tif on each of these 16 .tif files. The same 5 .tif files cause ImageMagick to crash** again but with a different message.
I wanted to post an example .tif file which causes ImageMagick to crash. I had to edit out sensitive information by using paint.
What is interesting is that the edited paint .tif doesn't causes a crash anymore, just warnings:
convert causes-crash_PAINT-EDITED.tif new.png
Magick: incorrect count for field "MinSampleValue" (1, expecting 4); tag ignored. `C:\testdata\causes-crash_PAINT.tif' @ warning/tiff.c/TIFFWarnings/707.
Magick: incorrect count for field "MaxSampleValue" (1, expecting 4); tag ignored. `C:\testdata\causes-crash_PAINT.tif' @ warning/tiff.c/TIFFWarnings/707.
Magick: incorrect count for field "MinSampleValue" (1, expecting 4); tag ignored. `C:\testdata\causes-crash_PAINT.tif' @ warning/tiff.c/TIFFWarnings/707.
Magick: incorrect count for field "MaxSampleValue" (1, expecting 4); tag ignored. `C:\testdata\causes-crash_PAINT.tif' @ warning/tiff.c/TIFFWarnings/707.
Anyone know what is going on here??
Thank-you, Michelle
(1) CRASH MESSAGE when using 'convert'
Problem signature:
Problem Event Name: APPCRASH
Application Name: identify.exe
Application Version: 4.0.1.0
Application Timestamp: 4e52f3e2
Fault Module Name: CORE_RL_magick_.dll
Fault Module Version: 4.0.1.0
Fault Module Timestamp: 4e52f1b4
Exception Code: c0000005
Exception Offset: 00105c50
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 7177
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
(2) CRASH MESSAGE when using 'identify'
Problem signature:
Problem Event Name: APPCRASH
Application Name: identify.exe
Application Version: 4.0.1.0
Application Timestamp: 4e52f3e2
Fault Module Name: StackHash_2939
Fault Module Version: 6.1.7601.17514
Fault Module Timestamp: 4ce7ba58
Exception Code: c0000374
Exception Offset: 000ce653
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 7177
Additional Information 1: 2939
Additional Information 2: 2939252ef869fcc08435ab13fc83bed3
Additional Information 3: 6cf5
Additional Information 4: 6cf512e1528492d11fa5794e9381887b
Re: ImageMagick crashes on "random" .tif files
Post a URL to one or more of your TIFF images that cause the fault. We need to reproduce the problem before we can comment.
Re: ImageMagick crashes on "random" .tif files
Hi Magick, I wish I could post the original file before having to edit in paint. But it has sensitive information on it which I need to edit out.
All I can post you is a .tif file which was causing ImageMagick to crash but which I then had to edit in paint. This edited file no longer causes ImageMagick to crash, just the "incorrect count for field" erros as I posted above.
Here you go: http://www.michellepace.com/pics/causes ... _PAINT.tif
All I can post you is a .tif file which was causing ImageMagick to crash but which I then had to edit in paint. This edited file no longer causes ImageMagick to crash, just the "incorrect count for field" erros as I posted above.
Here you go: http://www.michellepace.com/pics/causes ... _PAINT.tif
Re: ImageMagick crashes on "random" .tif files
We need the original TIFF image. We must determine if the fault comes from ImageMagick or from within the TIFF delegate library. If its within the TIFF delegate library we could try upgrading the library to see if that fixes the problem. You could send us a private message with the URL.
Re: ImageMagick crashes on "random" .tif files
...sorry I really can't. We're under confidentiality contracts.
I found a tool called XnConvert. I'm going to try that. I'll post back the results for what its worth.
Thank-you nevertheless, Michelle
I found a tool called XnConvert. I'm going to try that. I'll post back the results for what its worth.
Thank-you nevertheless, Michelle
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: ImageMagick crashes on "random" .tif files
you could get the TIFF file info and verify it it is correct using EXIF tool. see http://www.sno.phy.queensu.ca/~phil/exiftool/
you also don't mention what version of IM, what platform and what version of libtif you are using! You may have old software.
convert -list format
...
TIFF* TIFF rw+ Tagged Image File Format (LIBTIFF, Version 3.9.5)
...
convert -version
Version: ImageMagick 6.7.1-10 2011-08-22 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
you also don't mention what version of IM, what platform and what version of libtif you are using! You may have old software.
convert -list format
...
TIFF* TIFF rw+ Tagged Image File Format (LIBTIFF, Version 3.9.5)
...
convert -version
Version: ImageMagick 6.7.1-10 2011-08-22 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Re: ImageMagick crashes on "random" .tif files
Oops!
ImageMagick-6.7.1-Q16
Windows 7
Exiftool output: http://www.michellepace.com/pics/exiftool-output.png ...is there any particular command you'd like me to run?
http://www.xnview.com/en/download_nc.html was able to convert the .tif files which cause ImageMagick to crash.
The resizing (down) however makes the drawing very fuzzy. ImageMagick seems to be much better at that for .tif files which can be processed.
ImageMagick-6.7.1-Q16
Windows 7
Exiftool output: http://www.michellepace.com/pics/exiftool-output.png ...is there any particular command you'd like me to run?
http://www.xnview.com/en/download_nc.html was able to convert the .tif files which cause ImageMagick to crash.
The resizing (down) however makes the drawing very fuzzy. ImageMagick seems to be much better at that for .tif files which can be processed.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: ImageMagick crashes on "random" .tif files
run
convert -list format
...
TIFF* TIFF rw+ Tagged Image File Format (LIBTIFF, Version 3.9.5)
What version of libtiff are you using?
Also run
convert -version
to see the full IM version.
convert -list format
...
TIFF* TIFF rw+ Tagged Image File Format (LIBTIFF, Version 3.9.5)
What version of libtiff are you using?
Also run
convert -version
to see the full IM version.
Re: ImageMagick crashes on "random" .tif files
How do I find out which version of libtiff I am using? I have no such filename in my installation folder C:\ImageMagick-6.7.1-Q16\
OUTPUT for "convert version" :-
Version: ImageMagick 6.7.1-10 2011-08-21 Q16 http ://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP
OUTPUT for "convert -list format" :-
see: http://www.michellepace.com/pics/format.output.txt
OUTPUT for "convert version" :-
Version: ImageMagick 6.7.1-10 2011-08-21 Q16 http ://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP
OUTPUT for "convert -list format" :-
see: http://www.michellepace.com/pics/format.output.txt
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: ImageMagick crashes on "random" .tif files
michelle wrote:How do I find out which version of libtiff I am using? I have no such filename in my installation folder C:\ImageMagick-6.7.1-Q16\
OUTPUT for "convert version" :-
Version: ImageMagick 6.7.1-10 2011-08-21 Q16 http ://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP
OUTPUT for "convert -list format" :-
see: http://www.michellepace.com/pics/format.output.txt
From your listing, you have
TIFF* TIFF rw+ Tagged Image File Format (LIBTIFF, Version 3.9.2)
whereas I have
TIFF* TIFF rw+ Tagged Image File Format (LIBTIFF, Version 3.9.5)
I am not sure that is enough difference to make it break, unless it is corrupt. You could reinstall libtiff and then IM. Or did you install from a binary?
Sorry I am out of ideas without having an example image to work with.
I think you are going to have to generate (or have generated) an un-restricted image that fails to provide for us to go any further.
Have you tried testing on some other system with IM?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: ImageMagick crashes on "random" .tif files
do you get a crash from
identify -verbose yourimage.tiff
If not show the listing.
identify -verbose yourimage.tiff
If not show the listing.
Re: ImageMagick crashes on "random" .tif files
I installed using this file: ImageMagick-6.7.1-10-Q16-windows-dll.exe ...so yes from binary because it was easy peasy.
If you can explain to me how to go about doing an installation so that I can get the later version of libtiff that would be great. Then we'll know if it is just a matter of an outdated libtiff?
If you can explain to me how to go about doing an installation so that I can get the later version of libtiff that would be great. Then we'll know if it is just a matter of an outdated libtiff?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: ImageMagick crashes on "random" .tif files
michelle wrote:I installed using this file: ImageMagick-6.7.1-10-Q16-windows-dll.exe ...so yes from binary because it was easy peasy.
If you can explain to me how to go about doing an installation so that I can get the later version of libtiff that would be great. Then we'll know if it is just a matter of an outdated libtiff?
Sorry, I am not a Windows user, so cannot help. I am on a Mac/unix system and know little about windows.
You could try uninstalling all versions of IM and re-installing. Are you sure you don't have an older version of IM installed. That may be confusing the system.
Re: ImageMagick crashes on "random" .tif files
How bizzare, the first time I ran identify -verbose C:\causes-crash.tif it caused a crash. I ran it a second time, it took about 25 seconds to output. But it worked.
Here you go: http://www.michellepace.com/indentify.v ... output.txt
Checking out the installation now... I'll do a install/re-install. Ja, I wish I could away with just mac at work. =)
Here you go: http://www.michellepace.com/indentify.v ... output.txt
Checking out the installation now... I'll do a install/re-install. Ja, I wish I could away with just mac at work. =)
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: ImageMagick crashes on "random" .tif files
Did you see the note at the bottom of the Windows binary install page about "If you have any problems, install the Visual C++ 2010 Redistributable Package (x86)"
see http://www.imagemagick.org/script/binar ... hp#windows
see http://www.imagemagick.org/script/binar ... hp#windows