Page 1 of 1

assertion failed on TIFFWriteDirectoryTagCheckedRational

Posted: 2012-10-21T01:56:06-07:00
by mack3457
Hello,

I encounter the same problem as in viewtopic.php?f=3&t=20287&p=81577&hilit ... nal#p81577 with the current ImageMagick version on FreeBSD.

On above bug report it's written, the problem should have been resolved with version 6.7.5-4, so the problem here might be different.

Code: Select all

[mack@admin ~]$ convert in.tif -rotate 90 out.tif
Assertion failed: (value>=0.0), function TIFFWriteDirectoryTagCheckedRational, file tif_dirwrite.c, line 2084.
Abort trap: 6 (core dumped)

Code: Select all

[mack@admin ~]$ identify in.tif
in.tif TIFF 5100x7000 5100x7000+0+7000 8-bit sRGB 90.15MB 0.000u 0:00.000
BTW.: Endianness on this file is reported to be MSB, tiff:endian as lsb

Code: Select all

[mack@admin ~]$ uname -v
FreeBSD 8.3-RELEASE #0: Wed Oct  3 13:17:35 CEST 2012     [...]
[mack@admin ~]$ convert -version
Version: ImageMagick 6.7.9-4 2012-10-03 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features:
So, does the FreeBSD version still have the "old" bug?

Thanks all,
Thomas Mack

Re: assertion failed on TIFFWriteDirectoryTagCheckedRational

Posted: 2012-10-21T12:39:06-07:00
by mack3457
So, just did some tests:

- ImageMagick 6.8.0-2 on Windows XP works fine on this image
- Reinstalled 6.7.9-4 from sources on FreeBSD, and it didn't work either
- Installed from same sources and identical configure options on Linux, and it did work correctly
- ImageMagick 6.6.5-8 on Linux didn't have any problems either

So something is special to FreeBSD disallowing convert in.tif -rotate 90 out.tif to work correctly with some tif files?

Re: assertion failed on TIFFWriteDirectoryTagCheckedRational

Posted: 2012-10-21T12:41:50-07:00
by fmw42
Can you post a link to your image so that others can test?

Re: assertion failed on TIFFWriteDirectoryTagCheckedRational

Posted: 2012-10-21T13:07:44-07:00
by mack3457
Use ftp://th-mack.de with p6791371-bugs as user and bugreports as password.

Just got the idea, ImageMagick might have used existing libraries, as I didn't change LD_LIBRARY_PATH when testing with different ImageMagick versions. So maybe I will test again tomorrow.

Re: assertion failed on TIFFWriteDirectoryTagCheckedRational

Posted: 2012-10-21T13:44:47-07:00
by magick
It looks like TIFF does not accept negative positional information. Recent versions of the TIFF delegate library returns a warning, older versions an assertion. The next point release of ImageMagick will check for negative positions. In the mean-time add the -page +0+0 to your command line.

Re: assertion failed on TIFFWriteDirectoryTagCheckedRational

Posted: 2012-10-22T13:40:48-07:00
by mack3457
So this resolves the problem - thank you very much!

I never found any community or developer resolving bugs or problems so fast and taking care of problems practically immediatelly - very nice.

Thomas (Mack)