[Bug 1222320] [NEW] Digikam 3.3.0 slow, constantly looking for icons in wrong place

Chris Samuel chris at csamuel.org
Sun Sep 8 03:29:23 UTC 2013


Public bug reported:

Digikam 3.3.0 from the backports PPA for Kubuntu 13.04 (apt-cache policy
info at the end).

It seems really slow compared to previous versions, perf top shows it
spending ~10% of its time in KLocalePrivate::encodeFileNameUTF8.  When
you check with strace it seems to be spending most of its time looking
for icons that don't exist:

access("/usr/share/icons/hicolor/22x22/animations/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/22x22/apps/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/22x22/categories/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/22x22/devices/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/22x22/emblems/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/22x22/emotes/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/22x22/filesystems/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/22x22/intl/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/22x22/mimetypes/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/22x22/places/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/22x22/status/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/24x24/actions/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/24x24/animations/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/24x24/apps/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/24x24/categories/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/24x24/devices/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/24x24/emblems/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/24x24/emotes/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/24x24/filesystems/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/24x24/intl/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/24x24/mimetypes/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/24x24/places/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/24x24/status/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/32x32/actions/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/32x32/animations/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/32x32/apps/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/32x32/categories/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/32x32/devices/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/32x32/emblems/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/32x32/emotes/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/32x32/filesystems/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/32x32/intl/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/32x32/mimetypes/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/icons/hicolor/32x32/places/tag.xpm", R_OK) = -1 ENOENT (No such file or directory)

root at quad:~# strace -c -p $(pidof digikam)
Process 7815 attached - interrupt to quit
^CProcess 7815 detached
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 99.43    0.003152           0    179019    178949 access
  0.57    0.000018           0        69        45 recvfrom
  0.00    0.000000           0        10           read
  0.00    0.000000           0         1           write
  0.00    0.000000           0         5           open
  0.00    0.000000           0         5           close
  0.00    0.000000           0        70        70 stat
  0.00    0.000000           0        25           fstat
  0.00    0.000000           0        20           poll
  0.00    0.000000           0         5           lseek
  0.00    0.000000           0        10           writev
  0.00    0.000000           0        12           select
  0.00    0.000000           0         5           fcntl
------ ----------- ----------- --------- --------- ----------------
100.00    0.003170                179256    179064 total


Version info:

root at quad:~# lsb_release -rd
Description:    Ubuntu 13.04
Release:        13.04

root at quad:~# apt-cache policy digikam
digikam:                                                                                                                                                                                                                                     
  Installed: 4:3.3.0-0ubuntu1~ubuntu13.04+KDE4.11~ppa1                                                                                                                                                                                       
  Candidate: 4:3.3.0-0ubuntu1~ubuntu13.04+KDE4.11~ppa1                                                                                                                                                                                       
  Version table:                                                                                                                                                                                                                             
 *** 4:3.3.0-0ubuntu1~ubuntu13.04+KDE4.11~ppa1 0                                                                                                                                                                                             
        500 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/ raring/main amd64 Packages                                                                                                                                                
        100 /var/lib/dpkg/status                                                                                                                                                                                                             
     4:3.2.0-0ubuntu1~ubuntu13.04+KDE4.11~ppa1 0                                                                                                                                                                                             
        500 http://ppa.launchpad.net/kubuntu-ppa/beta/ubuntu/ raring/main amd64 Packages                                                                                                                                                     
     4:3.1.0-0ubuntu1 0                                                                                                                                                                                                                      
        500 http://mirror.internode.on.net/pub/ubuntu/ubuntu/ raring/universe amd64 Packages                                                                                                                                                 

root at quad:~# apt-cache policy digikam-data                                                                                                                                                                                                   
digikam-data:                                                                                                                                                                                                                                
  Installed: 4:3.3.0-0ubuntu1~ubuntu13.04+KDE4.11~ppa1                                                                                                                                                                                       
  Candidate: 4:3.3.0-0ubuntu1~ubuntu13.04+KDE4.11~ppa1                                                                                                                                                                                       
  Version table:                                                                                                                                                                                                                             
 *** 4:3.3.0-0ubuntu1~ubuntu13.04+KDE4.11~ppa1 0                                                                                                                                                                                             
        500 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/ raring/main amd64 Packages                                                                                                                                                
        100 /var/lib/dpkg/status                                                                                                                                                                                                             
     4:3.2.0-0ubuntu1~ubuntu13.04+KDE4.11~ppa1 0                                                                                                                                                                                             
        500 http://ppa.launchpad.net/kubuntu-ppa/beta/ubuntu/ raring/main amd64 Packages
     4:3.2.0-0ubuntu1~ubuntu13.04~ppa1 0
        500 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/ raring/main amd64 Packages
     4:3.1.0-0ubuntu1 0
        500 http://mirror.internode.on.net/pub/ubuntu/ubuntu/ raring/universe amd64 Packages

** Affects: digikam (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to digikam in Ubuntu.
https://bugs.launchpad.net/bugs/1222320

Title:
  Digikam 3.3.0 slow, constantly looking for icons in wrong place

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/digikam/+bug/1222320/+subscriptions




More information about the kubuntu-bugs mailing list