Package: digikam Version: 4:5.2.0-2 Severity: normal Hi,
First, note that my digikam version is 4:5.2.0-2.1 instead of 4:5.2.0-2 because I recompile it locally with -DENABLE_MEDIAPLAYER=on (see #834131). I'm using digikam with a mysql database (since a long time). Today, I noticed a bug when renaming albums. It seems that this renaming is not taken into account in all internal data structure. Here is what happen for example: 1) I renamed an album from Bricolage2 to Bricolage Everything seems working. I still see the 3 photos in this album. 2) I renamed the 3 photos in this album (using 'F2' and automatic rules for mass renaming). The result is strange: * digikam still shows the thumbnails with the old name * on disk, the pictures have really be renames (with their *.xmp files too) * when trying to see the photo in big size, I get a blank page * In log log below, you can see that after the rename from IMG_* to date_time_IMG_* of photo filenames, digikam print: digikam.database: Starting scan! digikam.database: Folder does not exist or is not readable: "/home/vdanjean/photos/albums/Activités/Bricolage2" This is not normal that a reference to Bricolage2 still exists at this time. Then, access to photos (with the old name) fail: digikam.dimg: File "/home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134231.jpg" does not exist digikam.metaengine: Cannot load metadata from file (Error # 9 : /home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134231.jpg : Impossible d'ouvrir la source de données : Aucun fichier ou dossier de ce type (errno = 2) ... If I quit digikam and restart it, it cleans up the mess itself, printing in the logs: ==== digikam.metaengine: Cannot load metadata from file (Error # 9 : /home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134231.jpg : Impossible d'ouvrir la source de données : Aucun fichier ou dossier de ce type (errno = 2) digikam.general: scan mode: ScanDeferredFiles digikam.general: total scan value : 73181 digikam.dimg: "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-42-31_img_20130731_134231.jpg" : JPEG file identified digikam.database: Adding new item "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-42-31_img_20130731_134231.jpg" digikam.database: Recognized "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-42-31_img_20130731_134231.jpg" as identical to item 245847 digikam.database: Scanning took 2 ms digikam.database: Finishing took 4 ms digikam.dimg: "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-31_img_20130731_134331.jpg" : JPEG file identified digikam.database: Adding new item "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-31_img_20130731_134331.jpg" digikam.database: Recognized "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-31_img_20130731_134331.jpg" as identical to item 245848 digikam.database: Scanning took 1 ms digikam.database: Finishing took 2 ms digikam.dimg: "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-35_img_20130731_134335.jpg" : JPEG file identified digikam.database: Adding new item "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-35_img_20130731_134335.jpg" digikam.database: Recognized "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-35_img_20130731_134335.jpg" as identical to item 245849 digikam.database: Scanning took 2 ms digikam.database: Finishing took 2 ms digikam.database: Removed items: (245847, 245849, 245848) related items: () digikam.database: items to tag () digikam.database: Complete scan took: 1091 msecs. ==== Now, my album correctly show the 3 photos with the new name. Regards, Vincent Logs after I did the album rename: digikam.general: Detected change, triggering rescan of "/home/vdanjean/photos/albums/Activités/" digikam.database: Starting scan! digikam.general: SELECTED URLS TO RENAME: (QUrl("file:///home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134231.jpg"), QUrl("file:///home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134331.jpg"), QUrl("file:///home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134335.jpg")) digikam.database: No location could be retrieved for "" digikam.database: No location could be retrieved for "" digikam.database: No location could be retrieved for "" digikam.general: QUrl("file:///home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134231.jpg") digikam.general: QUrl("file:///home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134331.jpg") digikam.general: QUrl("file:///home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134335.jpg") digikam.database: No location could be retrieved for "" digikam.database: No location could be retrieved for "" digikam.database: No location could be retrieved for "" digikam.geoiface: ---- digikam.general: Using 8 CPU core to run threads digikam.general: Using 8 CPU core to run threads digikam.general: Action Thread run 1 new jobs digikam.general: Action Thread run 1 new jobs digikam.iojob: Destination Url: QUrl("file:///home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-42-31_img_20130731_134231.jpg.xmp") Destination Url path: "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-42-31_img_20130731_134231.jpg.xmp" digikam.iojob: Trying to rename "/home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134231.jpg.xmp" to "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-42-31_img_20130731_134231.jpg.xmp" digikam.iojob: Destination Url: QUrl("file:///home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-42-31_img_20130731_134231.jpg") Destination Url path: "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-42-31_img_20130731_134231.jpg" digikam.iojob: Trying to rename "/home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134231.jpg" to "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-42-31_img_20130731_134231.jpg" digikam.database: No itemShortInfo could be retrieved from the database for image "2013-07-31_13-42-31_img_20130731_134231.jpg.xmp" digikam.iojob: Thread Finished digikam.general: One job is done digikam.general: Detected change, triggering rescan of "/home/vdanjean/photos/albums/Activités/Bricolage2" digikam.database: No itemShortInfo could be retrieved from the database for image "2013-07-31_13-42-31_img_20130731_134231.jpg" digikam.iojob: Thread Finished digikam.general: One job is done digikam.database: No itemShortInfo could be retrieved from the database for image "2013-07-31_13-42-31_img_20130731_134231.jpg" digikam.dimg: "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-42-31_img_20130731_134231.jpg" : JPEG file identified digikam.general: Using 8 CPU core to run threads digikam.general: Using 8 CPU core to run threads digikam.general: Action Thread run 1 new jobs digikam.iojob: Destination Url: QUrl("file:///home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-31_img_20130731_134331.jpg.xmp") Destination Url path: "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-31_img_20130731_134331.jpg.xmp" digikam.general: Action Thread run 1 new jobs digikam.iojob: Trying to rename "/home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134331.jpg.xmp" to "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-31_img_20130731_134331.jpg.xmp" digikam.iojob: Destination Url: QUrl("file:///home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-31_img_20130731_134331.jpg") Destination Url path: "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-31_img_20130731_134331.jpg" digikam.iojob: Trying to rename "/home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134331.jpg" to "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-31_img_20130731_134331.jpg" digikam.general: Detected change, triggering rescan of "/home/vdanjean/photos/albums/Activités/Bricolage2" digikam.database: No itemShortInfo could be retrieved from the database for image "2013-07-31_13-43-31_img_20130731_134331.jpg.xmp" digikam.iojob: Thread Finished digikam.general: One job is done digikam.database: No itemShortInfo could be retrieved from the database for image "2013-07-31_13-43-31_img_20130731_134331.jpg" digikam.iojob: Thread Finished digikam.general: One job is done digikam.general: Detected change, triggering rescan of "/home/vdanjean/photos/albums/Activités/Bricolage2" digikam.database: No itemShortInfo could be retrieved from the database for image "2013-07-31_13-42-31_img_20130731_134231.jpg" digikam.metaengine: Orientation => Exif.Image.Orientation => 6 digikam.database: No itemShortInfo could be retrieved from the database for image "2013-07-31_13-43-31_img_20130731_134331.jpg" digikam.dimg: "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-31_img_20130731_134331.jpg" : JPEG file identified digikam.database: No itemShortInfo could be retrieved from the database for image "2013-07-31_13-43-31_img_20130731_134331.jpg" digikam.metaengine: Orientation => Exif.Image.Orientation => 6 digikam.database: No itemShortInfo could be retrieved from the database for image "2013-07-31_13-43-31_img_20130731_134331.jpg.xmp" digikam.general: Trying to load Embedded preview with libraw digikam.rawengine: Failed to load embedded RAW preview digikam.general: Trying to load half preview with libraw digikam.general: Trying to load Embedded preview with Exiv2 digikam.dimg: "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-31_img_20130731_134331.jpg.xmp" : QIMAGE file identified digikam.dimg.qimage: Can not load " "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-31_img_20130731_134331.jpg.xmp" " using DImg::QImageLoader! digikam.general: mimetype = "SVG" ext = "XMP" digikam.general: Cannot create thumbnail for "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-31_img_20130731_134331.jpg.xmp" digikam.general: Thumbnail is null for "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-31_img_20130731_134331.jpg.xmp" digikam.general: Request to get thumbnail for "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-31_img_20130731_134331.jpg.xmp" digikam.database: No itemShortInfo could be retrieved from the database for image "2013-07-31_13-42-31_img_20130731_134231.jpg.xmp" digikam.general: Trying to load Embedded preview with libraw digikam.rawengine: Failed to load embedded RAW preview digikam.general: Trying to load half preview with libraw digikam.general: Trying to load Embedded preview with Exiv2 digikam.general: Mime type is not video from "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-31_img_20130731_134331.jpg.xmp" digikam.general: Failed to extract video thumbnail for "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-31_img_20130731_134331.jpg.xmp" digikam.dimg: "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-42-31_img_20130731_134231.jpg.xmp" : QIMAGE file identified digikam.dimg.qimage: Can not load " "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-42-31_img_20130731_134231.jpg.xmp" " using DImg::QImageLoader! digikam.general: mimetype = "SVG" ext = "XMP" digikam.general: Cannot create thumbnail for "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-42-31_img_20130731_134231.jpg.xmp" digikam.general: Thumbnail is null for "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-42-31_img_20130731_134231.jpg.xmp" digikam.general: Request to get thumbnail for "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-42-31_img_20130731_134231.jpg.xmp" digikam.general: Mime type is not video from "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-42-31_img_20130731_134231.jpg.xmp" digikam.general: Failed to extract video thumbnail for "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-42-31_img_20130731_134231.jpg.xmp" digikam.general: Using 8 CPU core to run threads digikam.general: Using 8 CPU core to run threads digikam.general: Action Thread run 1 new jobs digikam.iojob: Destination Url: QUrl("file:///home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-35_img_20130731_134335.jpg.xmp") Destination Url path: "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-35_img_20130731_134335.jpg.xmp" digikam.general: Action Thread run 1 new jobs digikam.iojob: Trying to rename "/home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134335.jpg.xmp" to "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-35_img_20130731_134335.jpg.xmp" digikam.iojob: Destination Url: QUrl("file:///home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-35_img_20130731_134335.jpg") Destination Url path: "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-35_img_20130731_134335.jpg" digikam.iojob: Trying to rename "/home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134335.jpg" to "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-35_img_20130731_134335.jpg" digikam.database: No itemShortInfo could be retrieved from the database for image "2013-07-31_13-43-35_img_20130731_134335.jpg.xmp" digikam.iojob: Thread Finished digikam.general: One job is done digikam.general: Detected change, triggering rescan of "/home/vdanjean/photos/albums/Activités/Bricolage2" digikam.database: No itemShortInfo could be retrieved from the database for image "2013-07-31_13-43-35_img_20130731_134335.jpg" digikam.iojob: Thread Finished digikam.general: One job is done digikam.database: No itemShortInfo could be retrieved from the database for image "2013-07-31_13-43-35_img_20130731_134335.jpg.xmp" digikam.general: Trying to load Embedded preview with libraw digikam.rawengine: Failed to load embedded RAW preview digikam.general: Trying to load half preview with libraw digikam.general: Trying to load Embedded preview with Exiv2 digikam.dimg: "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-35_img_20130731_134335.jpg.xmp" : QIMAGE file identified digikam.dimg.qimage: Can not load " "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-35_img_20130731_134335.jpg.xmp" " using DImg::QImageLoader! digikam.general: mimetype = "SVG" ext = "XMP" digikam.general: Cannot create thumbnail for "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-35_img_20130731_134335.jpg.xmp" digikam.general: Thumbnail is null for "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-35_img_20130731_134335.jpg.xmp" digikam.general: Request to get thumbnail for "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-35_img_20130731_134335.jpg.xmp" digikam.database: No itemShortInfo could be retrieved from the database for image "2013-07-31_13-43-35_img_20130731_134335.jpg" digikam.dimg: "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-35_img_20130731_134335.jpg" : JPEG file identified digikam.general: Mime type is not video from "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-35_img_20130731_134335.jpg.xmp" digikam.general: Failed to extract video thumbnail for "/home/vdanjean/photos/albums/Activités/Bricolage/2013-07-31_13-43-35_img_20130731_134335.jpg.xmp" digikam.database: No itemShortInfo could be retrieved from the database for image "2013-07-31_13-43-35_img_20130731_134335.jpg" digikam.metaengine: Orientation => Exif.Image.Orientation => 6 digikam.database: Starting scan! digikam.database: Folder does not exist or is not readable: "/home/vdanjean/photos/albums/Activités/Bricolage2" digikam.metaengine: Cannot load metadata from file (Error # 9 : /home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134231.jpg : Impossible d'ouvrir la source de données : Aucun fichier ou dossier de ce type (errno = 2) digikam.general: Using 8 CPU core to run threads digikam.general: Action Thread run 1 new jobs digikam.general: One job is done digikam.dimg: File "/home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134231.jpg" does not exist digikam.dimg: File "/home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134231.jpg" does not exist digikam.metaengine: Cannot load metadata from file (Error # 9 : /home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134231.jpg : Impossible d'ouvrir la source de données : Aucun fichier ou dossier de ce type (errno = 2) digikam.dimg: File "/home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134231.jpg" does not exist digikam.dimg: "/home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134231.jpg" : Unknown image format !!! digikam.general: Cannot extract preview for "/home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134231.jpg" digikam.general: Cannot extract preview for "/home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134231.jpg" digikam.general: Stacked View Mode : 1 digikam.metaengine: Cannot load metadata from file (Error # 9 : /home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134231.jpg : Impossible d'ouvrir la source de données : Aucun fichier ou dossier de ce type (errno = 2) digikam.general: Stacked View Mode : 0 digikam.metaengine: Cannot load metadata from file (Error # 9 : /home/vdanjean/photos/albums/Activités/Bricolage/IMG_20130731_134231.jpg : Impossible d'ouvrir la source de données : Aucun fichier ou dossier de ce type (errno = 2) -- System Information: Debian Release: stretch/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (200, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386, armel, mipsel Kernel: Linux 4.7.0-1-amd64 (SMP w/8 CPU cores) Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages digikam depends on: ii digikam-data 4:5.2.0-2.1 ii digikam-private-libs 4:5.2.0-2.1 ii libc6 2.24-5 ii libgcc1 1:6.2.0-9 ii libkf5configcore5 5.27.0-1 ii libkf5coreaddons5 5.27.0-1 ii libkf5filemetadata3 5.27.0-1 ii libkf5i18n5 5.27.0-2 ii libqt5core5a 5.6.1+dfsg-3+b1 ii libqt5gui5 5.6.1+dfsg-3+b1 ii libqt5sql5 5.6.1+dfsg-3+b1 ii libqt5sql5-mysql 5.6.1+dfsg-3+b1 ii libqt5sql5-sqlite 5.6.1+dfsg-3+b1 ii libqt5widgets5 5.6.1+dfsg-3+b1 ii libstdc++6 6.2.0-9 pn perl:any <none> Versions of packages digikam recommends: ii chromium [www-browser] 53.0.2785.143-1 ii epiphany-browser [www-browser] 3.22.1-2 ii ffmpegthumbs 4:16.08.0-1 ii firefox [www-browser] 49.0-4 ii firefox-esr [www-browser] 45.4.0esr-2 ii konqueror [www-browser] 4:16.08.2-1 ii w3m [www-browser] 0.5.3-31 Versions of packages digikam suggests: pn digikam-doc <none> ii systemsettings 4:5.8.2-1 -- no debconf information