Bug 338949 - Importer window files selection takes ages
Summary: Importer window files selection takes ages
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-Gphoto2 (show other bugs)
Version: 4.2.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-09 16:15 UTC by David Kredba
Modified: 2021-04-04 09:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.3.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Kredba 2014-09-09 16:15:03 UTC
I have 32 GiB CF card. When I need to select last few tens of freshest pictures it selects one file and then I have to wait around 10-15 seconds until others are set. not depends on method used - by mouse click with Ctrl or holding Shift and one Up key pressed on keyboard to get one row selected. Even selecting one and then a second one takes these 10-15 seconds. When I roll the window there is no thumbnail shown and it seems that Digikam creates them from the scratch instead of reading contetnt of  thumbnails-digikam.db.
When I open a storage where older files are present and no new Digikam again not shows thumbnails present in thumbnails-digikam.db file and creates them again. Rolling with content  of the Import(er) window is fast without selecting anything, no thumbnails shown until Digikam creates them again. When rolled the list/window again thumbnails are gone and Digikam is creating them again.
My thumbnails-digikam.db file size is 152M, inside I can see pure text sql language. Digikam4.db file size is 3,7 MiB and contains pure text sql languge too.

In short selecting items for import is pain and Digikam seems to not save thumbnails for later use or does not use what it saved before.


Reproducible: Always




media-gfx/digikam-4.2.0 was built with the following:
USE="addressbook doc gphoto2 handbook mysql themedesigner thumbnails video (-aqua) -debug -nepomuk" ABI_X86="64" LINGUAS="cs -af -ar -az -be -bg -bn -br -bs -ca -csb -cy -da -de -el -en_GB -eo -es -et -eu -fa -fi -fo -fr -fy -ga -gl -ha -he -hi -hr -hsb -hu -id -is -it -ja -ka -kk -km -ko -ku -lb -lo -lt -lv -mi -mk -mn -ms -mt -nb -nds -ne -nl -nn -nso -oc -pa -pl -pt -pt_BR -ro -ru -rw -se -sk -sl -sq -sr -sr@Latn -ss -sv -ta -te -tg -th -tr -tt -uk -uz -uz@cyrillic -ven -vi -wa -xh -zh_CN -zh_HK -zh_TW -zu"

Portage 2.2.12 (python 2.7.8-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.4-alpha20140903, glibc-2.19-r1, 3.16.1-gentoo-1d x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.16.1-gentoo-1d-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.2
KiB Mem:     8169988 total,   3139460 free
KiB Swap:    8396796 total,   8396796 free
Timestamp of tree: Mon, 08 Sep 2014 21:00:01 +0000
ld GNU ld (Gentoo 2.24.51) 2.24.51.20140818
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24.51::x-portage
sys-devel/gcc:            4.6.4, 4.7.4, 4.8.4_alpha20140903::x-portage, 4.9.2_alpha20140903::x-portage, 4.10.0_alpha20140812::x-portage
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Comment 1 David Kredba 2014-09-09 16:19:46 UTC
Deselecting a second item in Importer window with all thumbnails present takes 10-15 seconds too.
Comment 2 caulier.gilles 2014-09-09 17:04:21 UTC
when item are selected from icon-view, metadata are get from files in device.

It's abnormal to have this kind of delay. Here i use SD card of 32 and 64 GB with any problem. I read card with a dedicated reader.

- Do you use your camera to read card ?
- Which camera model you use ?
- Which option do you enable in Setup/Camera/behavior section ?

Gilles Caulier
Comment 3 David Kredba 2014-09-09 17:21:11 UTC
My Canon EOS 450D is dumb and I think it still uses USB 1.1 so I am always taking the CF card out to reader.

(Bus 001 Device 002: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer)
(Hm, can be USB2 but the speed is like USB 1.1 and it is freezing often.
[  128.015022] usb 1-5: new high-speed USB device number 3 using ehci-pci
[  128.163764] usb 1-5: New USB device found, idVendor=04a9, idProduct=3110
[  128.163767] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  128.163769] usb 1-5: Product: Canon Digital Camera
[  128.163771] usb 1-5: Manufacturer: Canon Inc.)

For the record the real import after selection is done is very very fast. So it seems that the card and reader are OK. I tested speed of copying (copy CF card content to a hard drive) and it was good. And listing an Album content is having absolutely no delays too.

I do not have any camera selected in Settings. Import is done under Card reader sub-menu.

In another report I saw a link to web page how to take debug data. What will be interesting for you please?
Comment 4 caulier.gilles 2014-09-09 17:25:44 UTC
Please look on this file :

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

if your report is not a duplicate.

Gilles Caulier
Comment 5 David Kredba 2014-09-09 18:35:43 UTC
I do not have so long freezes but I will try to comment out those two lines and report back. No subfolders in my case but list of files is relatively long so it can be it.
Thank you.
Comment 6 David Kredba 2014-09-11 18:02:51 UTC
I commented those two lines (section folders) starting on line 495 in my case and it is way better. I can select one, then immediately other, third, roll window up and down, select seventh.... . After selected like twenty it started to slow down with showing what was selected. But in comparsion with original state this is great improvement. With more selected next selection draw slows down proportionaly.

Maybe the same can be fine tuned in other (files, metada) sections?
Thank you.

I do not know if I can mark my own report as duplicate but I will try it now.
Comment 7 David Kredba 2014-09-11 18:04:04 UTC

*** This bug has been marked as a duplicate of bug 338629 ***
Comment 8 caulier.gilles 2021-04-04 09:47:10 UTC
Fixed with #338629