[Bug 210259] New: Scan crashed on multi-layer TIFFs

classic Classic list List threaded Threaded
29 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[Bug 210259] Scan crashed on multi-layer TIFFs

Bugzilla from frith.foottit@gmail.com
https://bugs.kde.org/show_bug.cgi?id=210259





--- Comment #19 from  <frith foottit gmail com>  2010-03-04 03:35:57 ---
Okay, so I got exiv2 -V to show version 19.1

Then I tried to download and recompile the svn versions of both kdegraphics and
digikam. The compile seemed to work, but now digikam won't even start up. It
crashes on the 'loading kipi-plugins' part of the splash screen. I used the
automatic bug tracker to add it as a separate bug -
https://bugs.kde.org/show_bug.cgi?id=229344

Here is the output of those commands:

frith@sally:~/trouble_images/test$ ls -la
total 162468
drwxr-xr-x 2 frith frith      4096 2010-03-04 13:29 .
drwxr-xr-x 3 frith frith      4096 2010-03-04 13:27 ..
-rw-r--r-- 1 frith frith 164909860 2010-03-04 13:28 CardinalNewman_dinner.tif
-rwxr-xr-x 1 frith frith     75934 2009-06-17 14:02 import_010518.tif
-rwxr-xr-x 1 frith frith     76568 2009-06-17 14:02 import_010519.tif
-rwxr-xr-x 1 frith frith    171370 2009-06-17 14:04 import_011102.tif
-rwxr-xr-x 1 frith frith    440064 2009-06-16 12:12 pic_008434.tif
-rwxr-xr-x 1 frith frith    422358 2009-06-16 12:12 pic_009022.tif
-rwxr-xr-x 1 frith frith     18900 2009-06-16 21:53 pic_009335.tif
-rwxr-xr-x 1 frith frith    223594 2009-06-16 12:12 pic_009816.tif
frith@sally:~/trouble_images/test$ time exiv2 *.tif > /dev/null
exiv2: tiffvisitor.cpp:1188: virtual void
Exiv2::Internal::TiffReader::visitDirectory(Exiv2::Internal::TiffDirectory*):
Assertion `tc.get()' failed.
Aborted

real    0m0.013s
user    0m0.004s
sys    0m0.008s
frith@sally:~/trouble_images/test$

What is interesting is that the exiv2 command works fine on any of the images
individually, but something seems to happen when doing the whole lot.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210259] Scan crashed on multi-layer TIFFs

Bugzilla from ahuggel@gmx.net
In reply to this post by Franciscus
https://bugs.kde.org/show_bug.cgi?id=210259





--- Comment #20 from Andreas Huggel <ahuggel gmx net>  2010-03-04 04:31:38 ---
The failed assertion is an exiv2 bug. And it's very weird if that happens only
when the utility operates on all of the images, but not an individual one.

Can you run exiv2 -pa *.tif and post the output here? If possible with the last
image processed before the crash (unless it's the big one...)

Thanks,
Andreas

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210259] Scan crashed on multi-layer TIFFs

Bugzilla from frith.foottit@gmail.com
In reply to this post by Franciscus
https://bugs.kde.org/show_bug.cgi?id=210259





--- Comment #21 from  <frith foottit gmail com>  2010-03-04 04:51:53 ---
Created an attachment (id=41308)
 --> (http://bugs.kde.org/attachment.cgi?id=41308)
TIFF Image that makes digikam 1.2.0 crash

This is an image that seems to trigger a bug in exiv2.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210259] Scan crashed on multi-layer TIFFs

Bugzilla from ahuggel@gmx.net
In reply to this post by Franciscus
https://bugs.kde.org/show_bug.cgi?id=210259





--- Comment #22 from Andreas Huggel <ahuggel gmx net>  2010-03-04 14:47:19 ---
Thanks for the image.

I've created an Exiv2 bug for this: http://dev.exiv2.org/issues/show/684
and checked-in a quickfix with r2034. This change is binary compatible, all you
need to do is re-compile and re-install Exiv2, digiKam & Co don't need to be
re-built.

The quickfix removes the assertion failure but Exiv2 still only handles the
first for sub-IFDs. Further sub-IFDs are not decoded and, more important, if
you write to the sample TIFF image using this revision of Exiv2, it may remove
sub-IFDs beyond the first four.

Next I'll work on a better solution, but that will not be binary compatible
anymore.

Andreas

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210259] Scan crashed on multi-layer TIFFs

Bugzilla from ahuggel@gmx.net
In reply to this post by Franciscus
https://bugs.kde.org/show_bug.cgi?id=210259





--- Comment #23 from Andreas Huggel <ahuggel gmx net>  2010-03-04 15:47:55 ---
> Next I'll work on a better solution, but that will not be binary compatible
anymore.

Checked-in Exiv2 r2035 with extended sub-IFD support. Make sure you re-compile
digiKam & Co if you use this.

-ahu.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210259] Scan crashed on multi-layer TIFFs

Bugzilla from frith.foottit@gmail.com
In reply to this post by Franciscus
https://bugs.kde.org/show_bug.cgi?id=210259





--- Comment #24 from  <frith foottit gmail com>  2010-03-10 01:18:48 ---
Fixed.

I updated from the SVN the digikam/kdegraphics/exiv2 libraries and now it
compiles, installs, loads and correctly displays all the TIF files in my
collection.

Thanks for all your help and efforts, this is a great piece of software.

-Frith.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210259] Scan crashed on multi-layer TIFFs

Bugzilla from Julien@narboux.fr
In reply to this post by Franciscus
https://bugs.kde.org/show_bug.cgi?id=210259


Julien Narboux <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |[hidden email]
         Resolution|                            |FIXED




--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210259] Scan crashed on multi-layer TIFFs

Gilles Caulier-4
In reply to this post by Franciscus
https://bugs.kde.org/show_bug.cgi?id=210259

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |1.2.0

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 210259] Scan crashed on multi-layer TIFFs

bugzilla_noreply
In reply to this post by Franciscus
https://bugs.kde.org/show_bug.cgi?id=210259

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|setup                       |FilesIO-TIFF

--
You are receiving this mail because:
You are the assignee for the bug.
12