https://bugs.kde.org/show_bug.cgi?id=372093

            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-de...@kde.org
          Reporter: ka...@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
crash.

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 watching all bug changes.

Reply via email to