Bug 382002 - Lazy synchronization not working
Summary: Lazy synchronization not working
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Hub (show other bugs)
Version: 5.6.0
Platform: Appimage Linux
: NOR major
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-04 22:57 UTC by Andrius
Modified: 2017-07-18 16:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.7.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrius 2017-07-04 22:57:29 UTC
Hello,
I am continuing this thread here:
http://digikam.1695700.n4.nabble.com/Lazy-sync-in-5-6-0-td4696891.html

I don't think Lazy Synchronization is working.

Very easy to reproduce:
1. Select 100 or 200 images
2. Add a title or a caption to all of them
3. Press Apply

Expected behavior:
digiKam isn't doing anything right way waiting for user to "Apply pending changes to metadata"

Actual behavior:
digiKam rescanning the images and regenerating thumbnails.
Program is not responding while this happening which slows down the workflow.

Terminal looks like this for each file:

First this:

digikam.dimg: "/mnt/data/FamilyPictures/2017/2017-07/2017-07-03/20170703_115517_117.DNG"  : RAW file identified
digikam.database: Finishing took 683 ms
digikam.database: Scanning took 2068 ms
digikam.database: Finishing took 579 ms
digikam.database: Scanning took 1820 ms
digikam.database: Finishing took 471 ms

then this:

kipi.plugins: KIPI host send thumb ( QSize(256, 170) ) for  QUrl("file:///mnt/data/FamilyPictures/2017/2017-07/2017-07-03/20170703_115517_117.DNG")
digikam.general: Received new thumbnail for url  QUrl("file:///mnt/data/FamilyPictures/2017/2017-07/2017-07-03/20170703_115517_117.DNG") . My view is  Digikam::DImagesListView(0x555ed9a0f8a0)
Comment 1 Maik Qualmann 2017-07-05 10:42:13 UTC
Problem with Lazy Synchronization is not reproducible. Lazy Synchronization writes only to the files if the sync button pressed on the status bar. Or when you close at end digiKam.

Maik
Comment 2 Andrius 2017-07-05 16:00:54 UTC
(In reply to Maik Qualmann from comment #1)
> Problem with Lazy Synchronization is not reproducible. Lazy Synchronization
> writes only to the files if the sync button pressed on the status bar. Or
> when you close at end digiKam.
> 
> Maik

Hello Maik,

Thanks for looking at this issue.
For your convenience I have recorded a video.
Here is the link: https://youtu.be/hMD4-fomSVc
Hopefully it helps.
Comment 3 Anders Lund 2017-07-15 13:41:33 UTC
I can confirm the rescanning, which I believe is completely unnessecary in this case. I am not running digikam in a terminal, so I don't know what digikam prints.
Comment 4 Maik Qualmann 2017-07-15 18:40:22 UTC
Git commit 7c9bc9e186346aef30b3fa83570c8e0cf4e8298b by Maik Qualmann.
Committed on 15/07/2017 at 18:38.
Pushed by mqualmann into branch 'master'.

disable rescan of images when Lazy Sync is enabled
FIXED-IN: 5.7.0

M  +2    -1    NEWS
M  +23   -8    libs/fileactionmanager/fileworkeriface.cpp

https://commits.kde.org/digikam/7c9bc9e186346aef30b3fa83570c8e0cf4e8298b
Comment 5 Andrius 2017-07-18 16:13:24 UTC
Please let me know when can I try an updated appimage
Comment 6 caulier.gilles 2017-07-18 16:36:51 UTC
Well the problem still here with new AppImage generated : it crash in libudev. I must fix this before...

Gilles Caulier