[digikam] [Bug 372093] New: corrupts image file when crashing

Kai bugzilla_noreply at kde.org
Sat Nov 5 00:34:07 GMT 2016


            Bug ID: 372093
           Summary: corrupts image file when crashing
           Product: digikam
           Version: unspecified
          Platform: Kubuntu Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: NOR
         Component: Metadata
          Assignee: digikam-devel at kde.org
          Reporter: kazwo at posteo.eu
  Target Milestone: ---

After having seen a few mid-work crashes, some image files are corrupted in the
sense that they load, but only contain the upper part of the image. It seems
the write to the image file stopped mid-file, presumably caused by a program

In most of the crash situations digikam was in the process of changing metadata
to a bunch of images. My guess is that it was not only changing this metadata
in its database, but also inside the image files itself. When the process
crashes while rewriting an image file, this file doesn't seem to be protected
against corruption. (I. e. it seems the file gets overwritten directly instead
of writing a copy and replacing the former file only when he new copy was
written correctly.)

[NB: It would take me weeks to find my way through the source code. If someone
might point me to the src file taking care of overwriting image file in the
relevant cases, I _might_ be able to submit a code proposal.]

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

More information about the Digikam-devel mailing list