assertion failed on TIFFWriteDirectoryTagCheckedRational

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
mack3457
Posts: 10
Joined: 2012-10-21T01:12:07-07:00
Authentication code: 67789

assertion failed on TIFFWriteDirectoryTagCheckedRational

Post 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
mack3457
Posts: 10
Joined: 2012-10-21T01:12:07-07:00
Authentication code: 67789

Re: assertion failed on TIFFWriteDirectoryTagCheckedRational

Post 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?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: assertion failed on TIFFWriteDirectoryTagCheckedRational

Post by fmw42 »

Can you post a link to your image so that others can test?
mack3457
Posts: 10
Joined: 2012-10-21T01:12:07-07:00
Authentication code: 67789

Re: assertion failed on TIFFWriteDirectoryTagCheckedRational

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: assertion failed on TIFFWriteDirectoryTagCheckedRational

Post 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.
mack3457
Posts: 10
Joined: 2012-10-21T01:12:07-07:00
Authentication code: 67789

Re: assertion failed on TIFFWriteDirectoryTagCheckedRational

Post 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)
Post Reply