Bug 277974 - Deleted images are still shown. Need manual Rescan.
Summary: Deleted images are still shown. Need manual Rescan.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Thumbs-Image (show other bugs)
Version: 2.0.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-17 21:05 UTC by Bruno Léon
Modified: 2012-06-27 09:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 2.5.0


Attachments
video showing the issue (429.99 KB, video/h264)
2011-07-17 21:30 UTC, Bruno Léon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Léon 2011-07-17 21:05:03 UTC
Version:           2.0.0 (using KDE 4.6.4) 
OS:                Linux

When I delete a picture from an album, it is still shown in the GUI.
I have to manually "scan for new images" in the tool menu to have it not shown any more.

Reproducible: Always

Steps to Reproduce:
Go into an album.
Delete a picture

Actual Results:  
The picture is deleted BUT it is still shown in the interface.

Expected Results:  
The picture should not be shown in the interface anymore.
Comment 1 Bruno Léon 2011-07-17 21:30:38 UTC
Created attachment 61949 [details]
video showing the issue
Comment 2 Marcel Wiesweg 2011-07-18 17:16:30 UTC
Please provide the console output beginning immediately before the delete operation is started, including some waiting time, without manual refresh.
Comment 3 Bruno Léon 2011-07-18 19:36:35 UTC
QSqlDatabasePrivate::removeDatabase: connection 'ConnectionTest' is still in use, all queries will cease to work.
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/users/bruno.leon/.config/ibus/bus
Below is the output. To be noted is that the folder is actually readable because when I refresh the picture is gone.

(digikam:30921): GStreamer-CRITICAL **: gst_debug_add_log_function: assertion `func != NULL' failed
No itemShortInfo could be retrieved from the database for image "img_0751.jpg" 
No itemShortInfo could be retrieved from the database for image "img_0752.jpg" 
No itemShortInfo could be retrieved from the database for image "img_0751.jpg" 
No itemShortInfo could be retrieved from the database for image "img_0752.jpg" 
digikam(30921)/digikam (core) Digikam::CollectionScanner::scanAlbum: Folder does not exist or is not readable:  "/home/users/bruno.leon/DocumentsMedias/PicturesVideoss/test" 
digikam(30921)/digikam (core) Digikam::CollectionScanner::scanAlbum: Folder does not exist or is not readable:  "/home/users/bruno.leon/DocumentsMedias/PicturesVideoss/test"
Comment 4 Bruno Léon 2011-07-18 21:05:17 UTC
I found something interesting. I have two folders named 
- PictureVideo
- PictureVideos

If I delete a picture in the first one it works.
In the second one it fails, telling me cannot access folder "PictureVideoss" (double ss is not a typo)

I tried deleting and readding the collection with the same result.

In the end, I manage to have it work by renaming "PictureVideos" to "PPictureVideos".
This means that there is a bug somewhere when two collections have similar name, one being a substring of the other.
Comment 5 Marcel Wiesweg 2011-07-30 12:57:44 UTC
So these are as you say collections (top-level under "My Albums", added in the setup) and not folders in one collection?
I have a minimal test case with two collections Document and Documents, but deleting a picture works:

digikam(16696)/digikam (core) Digikam::DeleteDialog::slotUser1Clicked: setShowTrashDeleteDialog  true
digikam(16696)/digikam (core) Digikam::DIO::del: Files to delete :  (KUrl("file:///home/marcel/Documents/openlogo-nd-test.png") )
digikam(16696)/digikam (core) Digikam::AlbumManager::slotKioFilesAdded: "/home/marcel/.local/share/Trash/files/openlogo-nd-test.png"
digikam(16696)/digikam (core) Digikam::AlbumManager::slotKioFileMoved: "file:///home/marcel/Documents/openlogo-nd-test.png" "trash:/openlogo-nd-test.png"
digikam(16696)/digikam (core) Digikam::AlbumManager::handleKioNotification: KDirNotify detected file change at "/home/marcel/Documents"
digikam(16696)/digikam (core) Digikam::AlbumManager::slotKioFilesAdded: "trash:/"
digikam(16696)/digikam (core) Digikam::AlbumManager::slotKioFilesDeleted: ("file:///home/marcel/Documents/openlogo-nd-test.png")
digikam(16696)/digikam (core) Digikam::AlbumManager::handleKioNotification: KDirNotify detected file change at "/home/marcel/Documents"
digikam(16696)/digikam (core) Digikam::CollectionScanner::itemsWereRemoved: Removed items: (52557) related items: ()
digikam(16696)/digikam (core) Digikam::AlbumManager::slotDirWatchDirty: KDirWatch detected change at "/home/marcel/Documents"
Comment 6 caulier.gilles 2011-12-19 13:57:23 UTC
Bruno,

This file still valid using digiKam 2.4 ?

Gilles Caulier
Comment 7 Bruno Léon 2011-12-19 14:44:03 UTC
No you can close it Gilles.

Thanks