[Digikam-devel] [digikam] [Bug 307219] Very slow work when any tag have defined user icon

krienke at uni-koblenz.de krienke at uni-koblenz.de
Sat Oct 4 16:53:15 BST 2014


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

krienke at uni-koblenz.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |krienke at uni-koblenz.de

--- Comment #7 from krienke at uni-koblenz.de ---
Hi,

I had the same slowness problem since quite a while but thought I had to many
tags assigned. 
The problem is only visible when tag sidetab is visible. Then even selecting
one photo takes about 2sec until the tags assigned are shown in the sidetab and
during this time digikam does not react on any mouse input. Other actions took
even much longer. I did an strace at this time on the digikam process and found
many many lines where digikam searches  eg kgeography.png which is not where it
is searched (/usr/share/icons) but instead lives in
/usr/share/doc/kde/HTML/de/kgeography/kgeography.png where KDE does not search:

pid 30088] access("/usr/share/icons/hicolor/32x32/status/kgeography.png", R_OK)
= -1 ENOENT (No such file or directory)
[pid 30088] access("/usr/share/icons/hicolor/36x36/actions/kgeography.png",
R_OK) = -1 ENOENT (No such file or directory)
[pid 30088] access("/usr/share/icons/hicolor/36x36/animations/kgeography.png",
R_OK) = -1 ENOENT (No such file or directory)
[pid 30088] access("/usr/share/icons/hicolor/36x36/apps/kgeography.png", R_OK)
= -1 ENOENT (No such file or directory)

There are many more other icons that are not found as well which cause the same
search delay.

After I read about this bug I opened my sqlite3 digikam4.db database and did a:

sqlite> update Tags set iconkde='' where iconkde not null;

After this modification all the tag icons have of course gone but digikam is
much, much faster.
So  missing kde icons seem to have caused this slowness. Probably a (possibly)
long while ago these icons were in another place and kde could find them and
some upgrades moved them away. 

I run digikam 4.3.0 on openSuSE 13.1 with KDE 4.11

So what would be needed to get out of this problem is a database cleanup
procedure for tag icons that no longer exist.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Digikam-devel mailing list