[Digikam-users] Digikam Crash when changing metadata (rotating, assigning flags or keywords)

Alan Pater alan.pater at gmail.com
Fri Sep 11 15:12:06 BST 2015


Thank you Philip!

On Fri, Sep 11, 2015 at 8:56 AM, Philip Johnsson
<philip.johnsson at gmail.com> wrote:
> Styx,
>
> Can you test the updated exiv2 0.25 package on my PPA now and see if it
> fixes your crashes with casio images in digikam? I downloaded a sample Casio
> image from one of your problematic cameras and can now rotate them without
> crashes on my system.
>
> Alan,
>
> Thank you for your kind words. :)
>
> /Philip
>
>
> On Fri, Sep 11, 2015 at 12:54 AM, Alan Pater <alan.pater at gmail.com> wrote:
>>
>> Very cool Philip!
>>
>> And a big thank you for putting in all the work on your PPA's and
>> keeping everyone up-to-date on these packages.
>>
>> Saludos!
>>
>> On Thu, Sep 10, 2015 at 5:48 PM, Philip Johnsson
>> <philip.johnsson at gmail.com> wrote:
>> > Alan,
>> >
>> > I'll look into the requested patches you have tomorrow and hopefully get
>> > a
>> > patched and updated version of exiv2 this weekend. More likely on Sunday
>> > if
>> > I don't get the time to do it all tomorrow evening.
>> >
>> > /Philip
>> >
>> >
>> > On Thu, Sep 10, 2015 at 11:58 PM, Alan Pater <alan.pater at gmail.com>
>> > wrote:
>> >>
>> >> Hi Phillip
>> >>
>> >> Yes, understood. Might I suggest the following?
>> >>
>> >> These seem very safe, just adding additional lens and XMP properties.
>> >>
>> >> - Update Pentax lens list to match ExifTool version 9.99.
>> >>     http://dev.exiv2.org/projects/exiv2/repository/revisions/3881
>> >>
>> >> - Updated Nikon Lens lookup table to v4.4.483.01 of Robert
>> >> Rottmerhusen's fmountlens list.
>> >>     http://dev.exiv2.org/projects/exiv2/repository/revisions/3882
>> >>
>> >> - Updated Nikon Lens lookup table to v4.4.485.01 of Robert
>> >> Rottmerhusen's fmountlens list.
>> >>     http://dev.exiv2.org/projects/exiv2/repository/revisions/3886
>> >>
>> >> -Update camera and lens lists to match ExifTool version 10.00.
>> >>     http://dev.exiv2.org/projects/exiv2/repository/revisions/3887
>> >>
>> >> - Update Canon lens list to match ExifTool version 10.01.
>> >>     http://dev.exiv2.org/projects/exiv2/repository/revisions/3927
>> >>
>> >> - ExifEX for XMP namespace and properties
>> >>     http://dev.exiv2.org/projects/exiv2/repository/revisions/3884
>> >>     http://dev.exiv2.org/projects/exiv2/repository/revisions/3885
>> >>
>> >> These bug fixes look safe to me. The fix for Casio files are here.
>> >>
>> >> - Do not create a TIFF component for unexpected next IFD pointers.
>> >>     http://dev.exiv2.org/projects/exiv2/repository/revisions/3883
>> >>
>> >> - Fixed oversight that prevented writing Casio2 makernotes.
>> >>     http://dev.exiv2.org/projects/exiv2/repository/revisions/3889
>> >>     http://dev.exiv2.org/projects/exiv2/repository/revisions/3890
>> >>
>> >> - Fixed ExposureTime pretty-print function.
>> >>     http://dev.exiv2.org/projects/exiv2/repository/revisions/3893
>> >>
>> >> On Thu, Sep 10, 2015 at 4:39 PM, Philip Johnsson
>> >> <philip.johnsson at gmail.com> wrote:
>> >> > Alan,
>> >> >
>> >> > I have no problem patching and updating my packages as long as they
>> >> > are
>> >> > binary compatible fixes for things in exiv2 0.25 that are more or
>> >> > less
>> >> > critical but just updating everything with svn/git pulls until 0.26
>> >> > isn't
>> >> > the way to go as it might introduce other bugs if not careful and
>> >> > they
>> >> > have
>> >> > been tested. The patches are found as commits on the exiv2 site and
>> >> > source
>> >> > in svn. These patches are used on the exiv2 0.25 official tarball and
>> >> > then
>> >> > "just" rebuilt and packaged with updated deb-package version names
>> >> > for
>> >> > version control.
>> >> >
>> >> > /philip
>> >> >
>> >> > On Thu, Sep 10, 2015 at 9:17 PM, Alan Pater <alan.pater at gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> Philip, I can try to build and test a patched package on my system
>> >> >> with this and a few other cherry-picked fixes and lens updates. I'm
>> >> >> a
>> >> >> bit unclear on the steps to patch and rebuild your deb's. Would you
>> >> >> be
>> >> >> able to sent me a step-by-step guide?
>> >> >>
>> >> >> Cheers,
>> >> >> Alan
>> >> >>
>> >> >> On Thu, Sep 10, 2015 at 11:47 AM, Alan Pater <alan.pater at gmail.com>
>> >> >> wrote:
>> >> >> > The fix is simply to add a couple of overlooked lines to
>> >> >> > makernote.cpp
>> >> >> >
>> >> >> >             { "-",              casioId,     0,
>> >> >> > newIfdMn2
>> >> >> > },
>> >> >> >             { "-",              casio2Id,    0,
>> >> >> > newCasio2Mn2    }
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > http://dev.exiv2.org/projects/exiv2/repository/entry/trunk/src/makernote.cpp#L73
>> >> >> >
>> >> >> > On Thu, Sep 10, 2015 at 10:58 AM, Philip Johnsson
>> >> >> > <philip.johnsson at gmail.com> wrote:
>> >> >> >> Styx,
>> >> >> >>
>> >> >> >> Most likely when it comes to your troublesome Casio pictures. Or
>> >> >> >> that
>> >> >> >> there
>> >> >> >> is a relevant patch for the exiv2 0.25 source tree that makes
>> >> >> >> exiv2
>> >> >> >> 0.25
>> >> >> >> binary compatible with it. Then an update of exiv2 package with
>> >> >> >> the
>> >> >> >> patch or
>> >> >> >> rebuild of it buy yourself. Not sure if the Casio timestamp bug
>> >> >> >> is
>> >> >> >> what
>> >> >> >> makes your crash but if it is then it's an easy patch. If you
>> >> >> >> investigate if
>> >> >> >> that's so and not just for test and see then get back to me and I
>> >> >> >> can
>> >> >> >> update
>> >> >> >> exiv2 with that patch on my PPA.
>> >> >> >>
>> >> >> >> /Philip
>> >> >> >>
>> >> >> >>
>> >> >> >> On Thu, Sep 10, 2015 at 3:33 PM, <styx at ewetel.net> wrote:
>> >> >> >>>
>> >> >> >>> Hey Alan,
>> >> >> >>>
>> >> >> >>> thank you very much for the info! It saves me from spending even
>> >> >> >>> more
>> >> >> >>> time
>> >> >> >>> investigating a problem I can’t solve. Just a quick question:
>> >> >> >>> Does
>> >> >> >>> this also
>> >> >> >>> mean I have to wait until April 2016 (exiv2 0.26 release date)
>> >> >> >>> to
>> >> >> >>> work
>> >> >> >>> with
>> >> >> >>> my pictures in Digikam?
>> >> >> >>>
>> >> >> >>>
>> >> >> >>> Zitat von Alan Pater <alan.pater at gmail.com>:
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>> There is a bug related to Casio files in the exiv2 library,
>> >> >> >>>> which
>> >> >> >>>> is
>> >> >> >>>> what digikam uses to read and manipulate image metadata.
>> >> >> >>>>
>> >> >> >>>> http://dev.exiv2.org/issues/1106
>> >> >> >>>>
>> >> >> >>>> It was fixed and will be in the next version of the exiv2.
>> >> >> >>>>
>> >> >> >>>> On Thu, Sep 10, 2015 at 4:09 AM,  <styx at ewetel.net> wrote:
>> >> >> >>>>>
>> >> >> >>>>> Hello again!
>> >> >> >>>>>
>> >> >> >>>>> I’m replying to my own post, because I further downtraced my
>> >> >> >>>>> problem,
>> >> >> >>>>> which
>> >> >> >>>>> is becoming increasingly strange (to me at least), yet my new
>> >> >> >>>>> observations
>> >> >> >>>>> might shade some light on it:
>> >> >> >>>>>
>> >> >> >>>>> I have to correct my previous thought about the
>> >> >> >>>>> crash/non-crash
>> >> >> >>>>> issue
>> >> >> >>>>> due to
>> >> >> >>>>> internal harddisk/external usb harddisk: It seems that this is
>> >> >> >>>>> not
>> >> >> >>>>> the
>> >> >> >>>>> issue
>> >> >> >>>>> – I only thought so, because it overlapped (to huge extent)
>> >> >> >>>>> with
>> >> >> >>>>> another
>> >> >> >>>>> attribute, which is the camera model used to take the picture.
>> >> >> >>>>> A
>> >> >> >>>>> large
>> >> >> >>>>> portion of my pictures is shot with a Casio EX-Z80, which
>> >> >> >>>>> causes
>> >> >> >>>>> crashes. I
>> >> >> >>>>> then went through my collection to find pictures sent by
>> >> >> >>>>> friends,
>> >> >> >>>>> who
>> >> >> >>>>> used
>> >> >> >>>>> different cameras, to find out which pictures cause crashes
>> >> >> >>>>> and
>> >> >> >>>>> which do
>> >> >> >>>>> not. (I always tested rotating a picture) Here’s a list:
>> >> >> >>>>>
>> >> >> >>>>> Pictures of these cameras cause crashes:
>> >> >> >>>>>
>> >> >> >>>>> Casio EX-Z80
>> >> >> >>>>> Casio EX-Z21
>> >> >> >>>>> Casio EX-Z1
>> >> >> >>>>> Casio EX-Z550
>> >> >> >>>>>
>> >> >> >>>>>
>> >> >> >>>>> Pictures of these cameras are fine:
>> >> >> >>>>>
>> >> >> >>>>> Sony DSC-RX100
>> >> >> >>>>> Canon EOS 600D
>> >> >> >>>>> Canon EOS 400D
>> >> >> >>>>> Canon EOS 6D
>> >> >> >>>>> Canon Powershot A480
>> >> >> >>>>> Canon Digital IXUS 950 IS
>> >> >> >>>>> Nikon D90
>> >> >> >>>>> Nikon Coolpix S3100
>> >> >> >>>>> Nikon Coolpix S220
>> >> >> >>>>> Olympus C300Z
>> >> >> >>>>> Olympus E-400
>> >> >> >>>>> Panasonic DMC-FS3
>> >> >> >>>>> Panasonic DMC-TZ41
>> >> >> >>>>> Rollei Powerflex 210 HD
>> >> >> >>>>> Apple iPhone 4
>> >> >> >>>>> Apple iPhone 5
>> >> >> >>>>> Samsung L730
>> >> >> >>>>> HTC One Mini
>> >> >> >>>>>
>> >> >> >>>>>
>> >> >> >>>>> I have no idea, what the issue is, but it also seems that the
>> >> >> >>>>> information in
>> >> >> >>>>> the "Orientation Tag" does not really work for the EX-Z80,
>> >> >> >>>>> because
>> >> >> >>>>> it
>> >> >> >>>>> always
>> >> >> >>>>> shows 'top left', even for pictures that were obviously taken
>> >> >> >>>>> upright.
>> >> >> >>>>> And
>> >> >> >>>>> it’s also striking, that this obviously affects only the Casio
>> >> >> >>>>> models.
>> >> >> >>>>> (I
>> >> >> >>>>> tried to find other Casio models in my collection, but
>> >> >> >>>>> couldn’t
>> >> >> >>>>> find
>> >> >> >>>>> any.)
>> >> >> >>>>>
>> >> >> >>>>> Does this information help?
>> >> >> >>>>>
>> >> >> >>>>> Many thanks!
>> >> >> >>>>>
>> >> >> >>>>>
>> >> >> >>>>> Zitat von tobias.luebben at ewetel.net:
>> >> >> >>>>>
>> >> >> >>>>>
>> >> >> >>>>>> Hi Philip,
>> >> >> >>>>>>
>> >> >> >>>>>> damn – I was just writing an answer to the two previous
>> >> >> >>>>>> posts!
>> >> >> >>>>>> But
>> >> >> >>>>>> now,
>> >> >> >>>>>> I
>> >> >> >>>>>> can skip that: Thank you Gilles and Gian Paolo! Thanks to
>> >> >> >>>>>> your
>> >> >> >>>>>> remarks
>> >> >> >>>>>> I
>> >> >> >>>>>> stumpled upon this blog post and the comments:
>> >> >> >>>>>> https://www.digikam.org/node/719
>> >> >> >>>>>>
>> >> >> >>>>>> I checked yesterday and Digikam used "LibExiv2: 0.25". Since
>> >> >> >>>>>> the
>> >> >> >>>>>> crashes
>> >> >> >>>>>> still happened (and I was on KDE 4.13 (not using Kubuntu
>> >> >> >>>>>> backports)
>> >> >> >>>>>> and
>> >> >> >>>>>> only
>> >> >> >>>>>> using Philips "extra" ppa), I thought: Maybe by
>> >> >> >>>>>> updating/upgrading
>> >> >> >>>>>> 'everything', all the package issues will be solved: so I
>> >> >> >>>>>> added
>> >> >> >>>>>> the
>> >> >> >>>>>> Kubuntu
>> >> >> >>>>>> backports PPA as well as your (Philips) "kubuntu-backports"
>> >> >> >>>>>> ppa.
>> >> >> >>>>>> So
>> >> >> >>>>>> I
>> >> >> >>>>>> now
>> >> >> >>>>>> have all three ppa’s loaded. Unfortunately, the issue still
>> >> >> >>>>>> remains.
>> >> >> >>>>>>
>> >> >> >>>>>> I now have the (Philips) "kubuntu-backports" PPA version of
>> >> >> >>>>>> DigiKam
>> >> >> >>>>>> installed  (4:4.13.0-trusty~ppa1kde414). However, I still get
>> >> >> >>>>>> crashes
>> >> >> >>>>>> when
>> >> >> >>>>>> trying to rotate a picture that is on my external harddisk.
>> >> >> >>>>>> Strangely,
>> >> >> >>>>>> I can
>> >> >> >>>>>> rotate pictures on my laptop’s internal harddrive. (I wonder
>> >> >> >>>>>> why
>> >> >> >>>>>> that
>> >> >> >>>>>> is?)
>> >> >> >>>>>>
>> >> >> >>>>>> Attached is another gdb-report done with my current setup. I
>> >> >> >>>>>> kinda
>> >> >> >>>>>> get
>> >> >> >>>>>> the
>> >> >> >>>>>> impression that something with packages is now messed up due
>> >> >> >>>>>> to
>> >> >> >>>>>> all
>> >> >> >>>>>> the
>> >> >> >>>>>> different package installing in the last 2 days....
>> >> >> >>>>>>
>> >> >> >>>>>> Anyways, thanks so much for your help!
>> >> >> >>>>>>
>> >> >> >>>>>>
>> >> >> >>>>>>
>> >> >> >>>>>> Zitat von Philip Johnsson <philip.johnsson at gmail.com>:
>> >> >> >>>>>>
>> >> >> >>>>>>> Hi styx
>> >> >> >>>>>>>
>> >> >> >>>>>>> When you use my PPA with Digikam on Kubuntu 14.04 it's
>> >> >> >>>>>>> important
>> >> >> >>>>>>> that
>> >> >> >>>>>>> you
>> >> >> >>>>>>> check which version of KDE you are using. If you use KDE
>> >> >> >>>>>>> 4.14
>> >> >> >>>>>>> you
>> >> >> >>>>>>> also
>> >> >> >>>>>>> need
>> >> >> >>>>>>> to add my "kubuntu-backports" PPA with rebuilds of Digikam
>> >> >> >>>>>>> against
>> >> >> >>>>>>> the
>> >> >> >>>>>>> updated KDE version for Kubuntu 14.04. You will still need
>> >> >> >>>>>>> my
>> >> >> >>>>>>> "extra"
>> >> >> >>>>>>> PPA
>> >> >> >>>>>>> that have updated dependency packages that Digikam will
>> >> >> >>>>>>> need.
>> >> >> >>>>>>> If
>> >> >> >>>>>>> you
>> >> >> >>>>>>> use
>> >> >> >>>>>>> KDE 4.13 then you only need my "extra" PPA.
>> >> >> >>>>>>>
>> >> >> >>>>>>> Regards,
>> >> >> >>>>>>>
>> >> >> >>>>>>> Philip
>> >> >> >>>>>>>
>> >> >> >>>>>>>
>> >> >> >>>>>>> On Tue, Sep 8, 2015 at 12:29 PM, <styx at ewetel.net> wrote:
>> >> >> >>>>>>>
>> >> >> >>>>>>>> Hello!
>> >> >> >>>>>>>>
>> >> >> >>>>>>>> I’m new to the list, so forgive me, if this is not the
>> >> >> >>>>>>>> right
>> >> >> >>>>>>>> place to
>> >> >> >>>>>>>> ask
>> >> >> >>>>>>>> the question. ;-)
>> >> >> >>>>>>>>
>> >> >> >>>>>>>> I’m on Kubuntu 14.04 (DigiKam 3.5) and I have a strange
>> >> >> >>>>>>>> behavior:
>> >> >> >>>>>>>> I
>> >> >> >>>>>>>> can’t
>> >> >> >>>>>>>> do anything with the pictures, but watch them. Every time I
>> >> >> >>>>>>>> try
>> >> >> >>>>>>>> to
>> >> >> >>>>>>>> rotate a
>> >> >> >>>>>>>> picture or assign a keyword or a flag, DigiKam immediately
>> >> >> >>>>>>>> crashes. I
>> >> >> >>>>>>>> attached one of the KCrash reports, but KCrash says, that
>> >> >> >>>>>>>> the
>> >> >> >>>>>>>> collected
>> >> >> >>>>>>>> information is useless.
>> >> >> >>>>>>>>
>> >> >> >>>>>>>> I had this PPA
>> >> >> >>>>>>>> (https://launchpad.net/~philip5/+archive/ubuntu/extra)
>> >> >> >>>>>>>> added (DigiKam 4.12), but removed it again after
>> >> >> >>>>>>>> experiencing
>> >> >> >>>>>>>> the
>> >> >> >>>>>>>> problem
>> >> >> >>>>>>>> with the crasing DigiKam. However, the crashes also occur
>> >> >> >>>>>>>> in
>> >> >> >>>>>>>> the
>> >> >> >>>>>>>> Ubuntu
>> >> >> >>>>>>>> 14.04 repository version (v 3.5). Has anybody had or still
>> >> >> >>>>>>>> have
>> >> >> >>>>>>>> the
>> >> >> >>>>>>>> same
>> >> >> >>>>>>>> problem? Could it be related to some packages that were
>> >> >> >>>>>>>> installed
>> >> >> >>>>>>>> due
>> >> >> >>>>>>>> to
>> >> >> >>>>>>>> the newer version of DigiKam in the PPA and don’t behave
>> >> >> >>>>>>>> well
>> >> >> >>>>>>>> with
>> >> >> >>>>>>>> other
>> >> >> >>>>>>>> packages in Ubuntu 14.04?
>> >> >> >>>>>>>>
>> >> >> >>>>>>>> Some hint would be very appreciated. Thank you very much!
>> >> >> >>>>>>>>
>> >> >> >>>>>>>> - styx
>> >> >> >>>>>>>>
>> >> >> >>>>>>>> _______________________________________________
>> >> >> >>>>>>>> Digikam-users mailing list
>> >> >> >>>>>>>> Digikam-users at kde.org
>> >> >> >>>>>>>> https://mail.kde.org/mailman/listinfo/digikam-users
>> >> >> >>>>>>>>
>> >> >> >>>>>>>>
>> >> >> >>>>>
>> >> >> >>>>>
>> >> >> >>>>>
>> >> >> >>>>> _______________________________________________
>> >> >> >>>>> Digikam-users mailing list
>> >> >> >>>>> Digikam-users at kde.org
>> >> >> >>>>> https://mail.kde.org/mailman/listinfo/digikam-users
>> >> >> >>>>
>> >> >> >>>> _______________________________________________
>> >> >> >>>> Digikam-users mailing list
>> >> >> >>>> Digikam-users at kde.org
>> >> >> >>>> https://mail.kde.org/mailman/listinfo/digikam-users
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>> _______________________________________________
>> >> >> >>> Digikam-users mailing list
>> >> >> >>> Digikam-users at kde.org
>> >> >> >>> https://mail.kde.org/mailman/listinfo/digikam-users
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> _______________________________________________
>> >> >> >> Digikam-users mailing list
>> >> >> >> Digikam-users at kde.org
>> >> >> >> https://mail.kde.org/mailman/listinfo/digikam-users
>> >> >> >>
>> >> >
>> >> >
>> >
>> >
>
>



More information about the Digikam-users mailing list