Created attachment 144593 sample image that is causing the crash
Here is jpg file that is causing the the crash. It is clear that libexiv is throwing exception when it tries to parse date. This exception is not catched in gwenview.
$ exiv2 -P X print test.jpg Xmp.tiff.Software XmpText 13 digiKam-7.1.0 Xmp.tiff.DateTime XmpText 19 2014-09-13T14:36:40 Xmp.tiff.ImageWidth XmpText 4 3110 Xmp.tiff.ImageLength XmpText 4 1553 Xmp.xmp.CreatorTool XmpText 13 digiKam-3.5.0 Xmp.xmp.CreateDate XmpText 19 2014-09-13T14:36:40 Xmp.xmp.MetadataDate XmpText 19 2014-09-13T14:36:40 Xmp.xmp.ModifyDate XmpText 19 2014-09-13T14:36:40 Xmp.xmp.Rating XmpText 1 2 Xmp.exif.DateTimeOriginal XmpText 19 Uncaught exception: basic_string::at: __n (which is 19) >= this->size() (which is 19)
$ echo $? 1
So, fix is obvious. But where it should be fixed? In libexiv or gwenview?
Ubuntu 21.10 exiv2 0.27.3 gwenview 21.08.1
Created attachment 144593
sample image that is causing the crash
Here is jpg file that is causing the the crash. It is clear that libexiv is throwing exception when it tries to parse date. This exception is not catched in gwenview.
$ exiv2 -P X print test.jpg ImageLength XmpText 4 1553 MetadataDate XmpText 19 2014-09-13T14:36:40 DateTimeOrigina l XmpText 19 Uncaught exception: basic_string::at: __n (which is 19) >= this->size() (which is 19)
Xmp.tiff.Software XmpText 13 digiKam-7.1.0
Xmp.tiff.DateTime XmpText 19 2014-09-13T14:36:40
Xmp.tiff.ImageWidth XmpText 4 3110
Xmp.tiff.
Xmp.xmp.CreatorTool XmpText 13 digiKam-3.5.0
Xmp.xmp.CreateDate XmpText 19 2014-09-13T14:36:40
Xmp.xmp.
Xmp.xmp.ModifyDate XmpText 19 2014-09-13T14:36:40
Xmp.xmp.Rating XmpText 1 2
Xmp.exif.
$ echo $?
1
So, fix is obvious. But where it should be fixed? In libexiv or gwenview?
Ubuntu 21.10
exiv2 0.27.3
gwenview 21.08.1