[Digikam-devel] [Bug 288761] New: cached image corrupted after modifying metadata
kde at schreiber-rolf.de
kde at schreiber-rolf.de
Sun Dec 11 21:58:01 GMT 2011
https://bugs.kde.org/show_bug.cgi?id=288761
Summary: cached image corrupted after modifying metadata
Product: digikam
Version: 2.5.0
Platform: Compiled Sources
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: digikam-devel at kde.org
ReportedBy: kde at schreiber-rolf.de
Created an attachment (id=66641)
--> (http://bugs.kde.org/attachment.cgi?id=66641)
corrupted image
Version: 2.5.0 (using KDE 4.7.2)
OS: Linux
I've configured digikam to save metadata embedded in my picture files, which
are usually jpg. Now when I modify metadata, i.e. assign or modify tags or
ratings, the shown image gets updated, and often is corrupted, that is, only
part of the picture remains visible, the rest is only one gray color. The saved
file is not currupted, I guess you call it the cached image which is shown,
which is corrupted.
I assume that this is caused by reloading the cached image while the disk file
write hasn't completely finished. This happens about one out of 3 times, when
I'm modifying data. How much of the picture is corrupted varies from 0-100%,
but it's always a straight cut as shown in the attached screenshot.
This problem happens here at least with digikam 1.4, 1.7, 2.0, 2.5
Reproducible: Sometimes
Steps to Reproduce:
Assign rating by hitting Ctrl-1 or Ctrl-2, ...
It happens "easier" if you do this in a fast sequence, like press Ctrl-1 five
times in a second.
Actual Results:
The image on the screen is partially corrupted as shown in the screenshot.
The log shows for example (the messages "slotFileRemoved, slotFileDeleted,...
were created by me):
digikam(22644)/digikam (core) Digikam::DMetadata::getImageHistory: Loading
image history ""
digikam(22644)/digikam (core) Digikam::DMetadata::setImageTitles:
"/home/speicher/gqview/test/DSCN3798.JPG" ==> Title: QMap()
digikam(22644)/digikam (core) Digikam::DMetadata::setImageComments:
"/home/speicher/gqview/test/DSCN3798.JPG" ==> Comment: QMap()
digikam(22644)/digikam (core) Digikam::DMetadata::setImageRating:
"/home/speicher/gqview/test/DSCN3798.JPG" ==> Rating: 3
slotFileClosedAfterWrite: "/home/speicher/gqview/test/DSCN3798.JPG22644"
digikam(22644)/digikam (core) Digikam::AlbumWatch::rescanDirectory: Detected
change, triggering rescan of directory "/home/speicher/gqview/test"
slotFileClosedAfterWrite: "/home/speicher/gqview/test/DSCN3798.JPG"
digikam(22644)/digikam (core) Digikam::AlbumWatch::rescanDirectory: Detected
change, triggering rescan of directory "/home/speicher/gqview/test"
slotFileDeleted: "/home/speicher/gqview/test/DSCN3798.JPG"
digikam(22644)/digikam (core) Digikam::AlbumWatch::rescanDirectory: Detected
change, triggering rescan of directory "/home/speicher/gqview/test"
slotFileMoved: "/home/speicher/gqview/test/DSCN3798.JPG22644"
digikam(22644)/digikam (core) Digikam::AlbumWatch::rescanDirectory: Detected
change, triggering rescan of directory "/home/speicher/gqview/test"
slotFileMoved: "/home/speicher/gqview/test/DSCN3798.JPG"
digikam(22644)/digikam (core) Digikam::AlbumWatch::rescanDirectory: Detected
change, triggering rescan of directory "/home/speicher/gqview/test"
digikam(22644)/digikam (core) Digikam::DImg::load:
"/home/speicher/gqview/test/DSCN3798.JPG" : JPEG file identified
digikam(22644)/digikam (core)
Digikam::ScanControllerLoadingCacheFileWatch::slotImageChanged: 27689
"/home/speicher/gqview/test/DSCN3798.JPG"
Expected Results:
image remains intact
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Digikam-devel
mailing list