Bug 98227 - huge memory leak when downloading from camera
Summary: huge memory leak when downloading from camera
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Import-Gphoto2 (show other bugs)
Version: 0.7.0
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-30 20:45 UTC by Paul Telford
Modified: 2019-12-24 08:56 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Telford 2005-01-30 20:45:25 UTC
Version:           0.7 (using KDE KDE 3.3.2)
Installed from:    Debian testing/unstable Packages
OS:                Linux

Following is a bug report from Debian user Richard Lamont (richard@lamont.me.uk), please CC him on any reponse if you need additional info.  Thanks.

---
Today I took over 1000 photos with my Canon Powershot S60 (USB PTP class 
camera), each about 700 KB in size (jpg). Digikam quite happily got the 
thumbnails for all of these, so I tried to download all the full-size 
images from the 1GB flash card.

After a while the machine started thrashing horribly and it was 
impossible to switch virtual desktops. (The mouse cursor moved, 
jerkily, but that was my lot.) About 20 minutes later digikam died. 
(The machine then behaved OK.) It had downloaded about 400 pictures by 
then.

I started it again and looked at what was happening with top, and found 
that digikam was reserving memory of the same order of magnitude as the 
total size of the files downloaded. (After downloading about 130 
pictures it had hogged about an extra 100 MB of RAM.) Closing the 
camera window freed the memory.

The machine uses 512MB RAM and no swap. (Yes I know, but I'm just a 
clueless luser so I don't understand why changing from 256 RAM + 256 
swap to 512 RAM + 0 swap was a retrograde step. I'm going to stick my 
fingers in my ears and sing la la la until Linus explains this.) 

$ dpkg --status digikam
Package: digikam
Status: install ok installed
Priority: optional
Section: graphics
Installed-Size: 8756
Maintainer: Paul Telford <pxt@debian.org>
Architecture: i386
Version: 0.7-3
Depends: kdelibs4 (>= 4:3.2.3), libc6 (>= 2.3.2.ds1-4), libgcc1 (>= 
1:3.4.1-3), libgdbm3, libgphoto2-2 (>= 2.1.4-8), libgphoto2-port0 (>= 
2.1.4-8), libimlib2, libjpeg62, libkexif0 (>= 0.1), libkipi0 (>= 0.1), 
libqt3c102-mt (>= 3:3.3.3), libstdc++5 (>= 1:3.3.4-1), libtiff4, 
libx11-6 | xlibs (>> 4.1.0), libimlib2-dev
Recommends: digikamimageplugins, kipi-plugins

ii  kdelibs4                              3.3.2-1
ii  libc6                                 2.3.2.ds1-20
ii  libgcc1                               3.4.3-6
ii  libgdbm3                              1.8.3-2 
ii  libgphoto2-2                          2.1.5-2
ii  libgphoto2-port0                      2.1.5-2
ii  libimlib2                             1.1.2-3 
ii  libjpeg62                             6b-9
ii  libkexif0                             0.1-2
ii  libkipi0                              0.1-2
ii  libqt3c102-mt                         3.3.3-7
ii  libstdc++5                            3.3.5-5
ii  libtiff4                              3.7.1-2
ii  libx11-6                              4.3.0.dfsg.1-10
ii  xlibs                                 4.3.0.dfsg.1-10
ii  libimlib2-dev                         1.1.2-3
un  digikamimageplugins                   <none>
un  kipi-plugins                          <none>

(I didn't know about the two recommended packages and have not tried 
installing them yet. KDE installed digikam, not me (IIRR)! I assume it 
isn't relevant to this bug. If it is, maybe this should be a 
dependancy, not a recommendation.)

Debian sarge
ii  kernel-image-2.6.8-1-k7               2.6.8-10
ii  libc6                                 2.3.2.ds1-20

I hope this info is useful. My apologies if it isn't.
Comment 1 Renchi Raju 2005-01-31 19:16:03 UTC
this is a problem with libgphoto2, which caches all files you access from the camera. You will want to report this problem to the gphoto2 developers. I will leave this open for a couple of weeks or till I hear back from you 
Comment 2 Paul Telford 2005-01-31 19:39:27 UTC
I have reassigned the debian bug report accordingly and notified the
submitter.  You can close this bug if you wish.

Thanks.
Comment 3 Renchi Raju 2005-01-31 20:25:21 UTC
reassigned to gphoto2
Comment 4 Renchi Raju 2005-01-31 23:14:14 UTC
just as a reference, this has already been reported to gphoto2 developers:
http://sourceforge.net/tracker/index.php?func=detail&aid=1098166&group_id=8874&atid=108874