Bug 221281 - Crash in Image Editor after editing multiple (100+) pictures
Summary: Crash in Image Editor after editing multiple (100+) pictures
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-RAW (show other bugs)
Version: 1.1.0
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-04 21:49 UTC by Simon
Modified: 2017-08-08 09:46 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 1.3.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon 2010-01-04 21:49:06 UTC
Application that crashed: digikam
Version of the application: 1.1.0 (rev.: 1066990)
KDE Version: 4.3.4 (KDE 4.3.4)
Qt Version: 4.5.3
Operating System: Linux 2.6.32-2.slh.3-sidux-686 i686
Distribution: Debian GNU/Linux unstable (sid)

What I was doing when the application crashed:
I've been editing lots of images with 12 MP. I got this crash while the NEF importer was opening a .NEF file (not converting yet). Most of the images edited were simple .JPG files, only the last few were .NEF.

Perhaps related to 207893.

 -- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
[Current thread is 1 (Thread 0xb2efb700 (LWP 3125))]

Thread 30 (Thread 0xb1873b70 (LWP 3129)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb47800a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb4b8d82d in __pthread_cond_wait (cond=0x8d21fd0, mutex=0x8d21fb8) at forward.c:139
#3  0xb4da45c2 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0x082f6800 in Digikam::ScanController::run (this=0x8d77de0) at /data/cworkspace/graphics/digikam/digikam/scancontroller.cpp:502
#5  0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#6  0xb477c585 in start_thread (arg=0xb1873b70) at pthread_create.c:300
#7  0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 29 (Thread 0xb0bffb70 (LWP 3131)):
#0  0xb477de7a in __pthread_mutex_lock (mutex=0x8ff47d4) at pthread_mutex_lock.c:61
#1  0xb4b8d9f6 in pthread_mutex_lock (mutex=0x8ff47d4) at forward.c:182
#2  0xb33d33b2 in g_main_context_release () from /lib/libglib-2.0.so.0
#3  0xb33d5131 in ?? () from /lib/libglib-2.0.so.0
#4  0xb33d5503 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0xb4ebf05f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb4e9283a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0xb4e92c82 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0xb4da0309 in QThread::exec() () from /usr/lib/libQtCore.so.4
#9  0xb674fa19 in Digikam::ImageFilterModelWorker::Thread::run (this=0x8ffd168) at /data/cworkspace/graphics/build/digikam/digikam/../../../digikam/libs/models/imagefiltermodelthreads.h:66
#10 0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#11 0xb477c585 in start_thread (arg=0xb0bffb70) at pthread_create.c:300
#12 0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 28 (Thread 0xae1b5b70 (LWP 3132)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb4b72b47 in *__GI___poll (fds=0x8ff4980, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0xb33e203b in g_poll () from /lib/libglib-2.0.so.0
#3  0xb33d520b in ?? () from /lib/libglib-2.0.so.0
#4  0xb33d5503 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0xb4ebf05f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb4e9283a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0xb4e92c82 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0xb4da0309 in QThread::exec() () from /usr/lib/libQtCore.so.4
#9  0xb674fa19 in Digikam::ImageFilterModelWorker::Thread::run (this=0x900c420) at /data/cworkspace/graphics/build/digikam/digikam/../../../digikam/libs/models/imagefiltermodelthreads.h:66
#10 0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#11 0xb477c585 in start_thread (arg=0xae1b5b70) at pthread_create.c:300
#12 0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
The current source language is "auto; currently c".

Thread 27 (Thread 0xad934b70 (LWP 3133)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb47800a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb4b8d82d in __pthread_cond_wait (cond=0x9127ea8, mutex=0x9127e90) at forward.c:139
#3  0xb4da45c2 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb69a91bf in Digikam::LoadSaveThread::run (this=0x9127438) at /data/cworkspace/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#5  0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#6  0xb477c585 in start_thread (arg=0xad934b70) at pthread_create.c:300
#7  0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 26 (Thread 0xad133b70 (LWP 3134)):
#0  0xb477de7a in __pthread_mutex_lock (mutex=0x912fc6c) at pthread_mutex_lock.c:61
#1  0xb4b8d9f6 in pthread_mutex_lock (mutex=0x912fc6c) at forward.c:182
#2  0xb33d54e9 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0xb4ebf05f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0xb4e9283a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0xb4e92c82 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb4da0309 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x082eddbb in Digikam::MetadataManagerWorker::Thread::run (this=0x912e548) at /data/cworkspace/graphics/build/digikam/digikam/../../../digikam/digikam/metadatamanager_p.h:143
#8  0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#9  0xb477c585 in start_thread (arg=0xad133b70) at pthread_create.c:300
#10 0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 25 (Thread 0xac932b70 (LWP 3135)):
#0  0xb477f3c4 in __pthread_mutex_unlock_usercnt (mutex=0x913106c, decr=1) at pthread_mutex_unlock.c:52
#1  0xb4b8da36 in pthread_mutex_unlock (mutex=0x913106c) at forward.c:184
#2  0xb33d4c1e in g_main_context_prepare () from /lib/libglib-2.0.so.0
#3  0xb33d4ff1 in ?? () from /lib/libglib-2.0.so.0
#4  0xb33d5503 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0xb4ebf05f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb4e9283a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0xb4e92c82 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0xb4da0309 in QThread::exec() () from /usr/lib/libQtCore.so.4
#9  0x082eddbb in Digikam::MetadataManagerWorker::Thread::run (this=0x912f108) at /data/cworkspace/graphics/build/digikam/digikam/../../../digikam/digikam/metadatamanager_p.h:143
#10 0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#11 0xb477c585 in start_thread (arg=0xac932b70) at pthread_create.c:300
#12 0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 24 (Thread 0xac131b70 (LWP 3136)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb47800a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb4b8d82d in __pthread_cond_wait (cond=0x913aca0, mutex=0x913ac88) at forward.c:139
#3  0xb4da45c2 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb69a91bf in Digikam::LoadSaveThread::run (this=0x8f0e348) at /data/cworkspace/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#5  0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#6  0xb477c585 in start_thread (arg=0xac131b70) at pthread_create.c:300
#7  0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 23 (Thread 0xa919cb70 (LWP 3140)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb47803d2 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179
#2  0xb4b8d884 in __pthread_cond_timedwait (cond=0x9238510, mutex=0x92384f8, abstime=0xa919c35c) at forward.c:152
#3  0xb01369f7 in ?? () from /usr/lib/libxine.so.1

Thread 22 (Thread 0xa841eb70 (LWP 3141)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb4b795b1 in select () from /lib/i686/cmov/libc.so.6
#2  0xb016056a in xine_usec_sleep () from /usr/lib/libxine.so.1
#3  0x00000000 in ?? ()

Thread 21 (Thread 0xa7c1db70 (LWP 3142)):
#0  0xb4ec121a in ?? () from /usr/lib/libQtCore.so.4
#1  0xb4ebf220 in ?? () from /usr/lib/libQtCore.so.4
#2  0xb33d4c30 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#3  0xb33d4ff1 in ?? () from /lib/libglib-2.0.so.0
#4  0xb33d5503 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0xb4ebf05f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb4e9283a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0xb4e92c82 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0xb4da0309 in QThread::exec() () from /usr/lib/libQtCore.so.4
#9  0xb032848a in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so
#10 0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#11 0xb477c585 in start_thread (arg=0xa7c1db70) at pthread_create.c:300
#12 0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 20 (Thread 0xa741cb70 (LWP 3144)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb47800a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb4b8d82d in __pthread_cond_wait (cond=0x9685ac8, mutex=0x9685ab0) at forward.c:139
#3  0xb0147c66 in ?? () from /usr/lib/libxine.so.1
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 19 (Thread 0xa5b1cb70 (LWP 3154)):
#0  0xb477de9c in __pthread_mutex_lock (mutex=0x9975164) at pthread_mutex_lock.c:131
#1  0xb4b8d9f6 in pthread_mutex_lock (mutex=0x9975164) at forward.c:182
#2  0xb33d06b4 in g_main_context_query () from /lib/libglib-2.0.so.0
#3  0xb33d503c in ?? () from /lib/libglib-2.0.so.0
#4  0xb33d5503 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0xb4ebf05f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb4e9283a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0xb4e92c82 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0xb4da0309 in QThread::exec() () from /usr/lib/libQtCore.so.4
#9  0xa6c0aeec in ?? () from /usr/lib/kde4/plugins/marble/GpsdPositionProviderPlugin.so
#10 0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#11 0xb477c585 in start_thread (arg=0xa5b1cb70) at pthread_create.c:300
#12 0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 18 (Thread 0xa531bb70 (LWP 3155)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb47800a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb4b8d82d in __pthread_cond_wait (cond=0xa1ca41b8, mutex=0xa1ca41a0) at forward.c:139
#3  0xb4da45c2 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb69a91bf in Digikam::LoadSaveThread::run (this=0xa1ca3260) at /data/cworkspace/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#5  0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#6  0xb477c585 in start_thread (arg=0xa531bb70) at pthread_create.c:300
#7  0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 17 (Thread 0xa631db70 (LWP 3162)):
#0  0xb33d19c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#1  0xb33d53d0 in ?? () from /lib/libglib-2.0.so.0
#2  0xb33d5503 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0xb4ebf05f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0xb4e9283a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0xb4e92c82 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb4da0309 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0xa6c0aeec in ?? () from /usr/lib/kde4/plugins/marble/GpsdPositionProviderPlugin.so
#8  0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#9  0xb477c585 in start_thread (arg=0xa631db70) at pthread_create.c:300
#10 0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 16 (Thread 0xa6b75b70 (LWP 3163)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb47800a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb4b8d82d in __pthread_cond_wait (cond=0x9c01588, mutex=0x9c01570) at forward.c:139
#3  0xb4da45c2 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb69a91bf in Digikam::LoadSaveThread::run (this=0x9c07a80) at /data/cworkspace/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#5  0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#6  0xb477c585 in start_thread (arg=0xa6b75b70) at pthread_create.c:300
#7  0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 15 (Thread 0xa0cffb70 (LWP 3182)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb47800a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb4b8d82d in __pthread_cond_wait (cond=0xa8d5c88, mutex=0xa8d5c70) at forward.c:139
#3  0xb4da45c2 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb69a91bf in Digikam::LoadSaveThread::run (this=0xa8d03a0) at /data/cworkspace/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#5  0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#6  0xb477c585 in start_thread (arg=0xa0cffb70) at pthread_create.c:300
#7  0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 14 (Thread 0x9b9a7b70 (LWP 3183)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb47800a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb4b8d82d in __pthread_cond_wait (cond=0xa8d5cf0, mutex=0xa8d5cd8) at forward.c:139
#3  0xb4da45c2 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb69a91bf in Digikam::LoadSaveThread::run (this=0xa8d0868) at /data/cworkspace/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#5  0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#6  0xb477c585 in start_thread (arg=0x9b9a7b70) at pthread_create.c:300
#7  0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 13 (Thread 0xa3b18b70 (LWP 3185)):
[KCrash Handler]
#6  0xb68d5535 in Digikam::RAWLoader::loadedFromDcraw (this=0xa3b17b18, data=..., width=4310, height=2868, rgbmax=65535, observer=0xe6b9a40)
    at /data/cworkspace/graphics/digikam/libs/dimg/loaders/rawloader.cpp:186
#7  0xb68d4fc7 in Digikam::RAWLoader::load (this=0xa3b17b18, filePath=..., observer=0xe6b9a40) at /data/cworkspace/graphics/digikam/libs/dimg/loaders/rawloader.cpp:106
#8  0xb68b3abd in Digikam::DImg::load (this=0xa3b18218, filePath=..., loadFlagsInt=31, observer=0xe6b9a40, rawDecodingSettings=...) at /data/cworkspace/graphics/digikam/libs/dimg/dimg.cpp:444
#9  0xb68b2bf7 in Digikam::DImg::load (this=0xa3b18218, filePath=..., observer=0xe6b9a40, rawDecodingSettings=...) at /data/cworkspace/graphics/digikam/libs/dimg/dimg.cpp:345
#10 0xb68b1b00 in DImg (this=0xa3b18218, filePath=..., observer=0xe6b9a40, rawDecodingSettings=...) at /data/cworkspace/graphics/digikam/libs/dimg/dimg.cpp:104
#11 0xb69b7589 in Digikam::SharedLoadingTask::execute (this=0xe6b9a38) at /data/cworkspace/graphics/digikam/libs/threadimageio/loadsavetask.cpp:180
#12 0xb69a920c in Digikam::LoadSaveThread::run (this=0xb0e5880) at /data/cworkspace/graphics/digikam/libs/threadimageio/loadsavethread.cpp:134
#13 0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#14 0xb477c585 in start_thread (arg=0xa3b18b70) at pthread_create.c:300
#15 0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 12 (Thread 0x9fcfdb70 (LWP 3186)):
#0  0xb33d34a1 in g_main_context_release () from /lib/libglib-2.0.so.0
#1  0xb33d5131 in ?? () from /lib/libglib-2.0.so.0
#2  0xb33d5503 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0xb4ebf05f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0xb4e9283a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0xb4e92c82 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb4da0309 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0xa6c0aeec in ?? () from /usr/lib/kde4/plugins/marble/GpsdPositionProviderPlugin.so
#8  0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#9  0xb477c585 in start_thread (arg=0x9fcfdb70) at pthread_create.c:300
#10 0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 11 (Thread 0x973f6b70 (LWP 3187)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb47800a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb4b8d82d in __pthread_cond_wait (cond=0xa23f1280, mutex=0xa23f1268) at forward.c:139
#3  0xb4da45c2 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb69a91bf in Digikam::LoadSaveThread::run (this=0xa24d97a0) at /data/cworkspace/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#5  0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#6  0xb477c585 in start_thread (arg=0x973f6b70) at pthread_create.c:300
#7  0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 10 (Thread 0x95038b70 (LWP 4017)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb47800a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb4b8d82d in __pthread_cond_wait (cond=0xb0098e94, mutex=0xb0098e7c) at forward.c:139
#3  0xb013a0f6 in ?? () from /usr/lib/libxine.so.1
#4  0x00000000 in ?? ()

Thread 9 (Thread 0x93034b70 (LWP 4018)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb47800a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb4b8d82d in __pthread_cond_wait (cond=0xb0cb41a4, mutex=0xb0cb418c) at forward.c:139
#3  0xb013a0f6 in ?? () from /usr/lib/libxine.so.1
#4  0x00000000 in ?? ()

Thread 8 (Thread 0x94837b70 (LWP 4019)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb47800a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb4b8d82d in __pthread_cond_wait (cond=0xb004510c, mutex=0xb00450f4) at forward.c:139
#3  0xb014aa8e in ?? () from /usr/lib/libxine.so.1
#4  0x00000000 in ?? ()

Thread 7 (Thread 0x58a59b70 (LWP 4685)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb47800a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb4b8d82d in __pthread_cond_wait (cond=0xcc32b10, mutex=0xcc32af8) at forward.c:139
#3  0xb4da45c2 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb69a91bf in Digikam::LoadSaveThread::run (this=0xe583b78) at /data/cworkspace/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#5  0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#6  0xb477c585 in start_thread (arg=0x58a59b70) at pthread_create.c:300
#7  0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 6 (Thread 0x94036b70 (LWP 4697)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb47800a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb4b8d82d in __pthread_cond_wait (cond=0xea27e40, mutex=0xea27e28) at forward.c:139
#3  0xb4da45c2 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb69a91bf in Digikam::LoadSaveThread::run (this=0xc2598e8) at /data/cworkspace/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#5  0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#6  0xb477c585 in start_thread (arg=0x94036b70) at pthread_create.c:300
#7  0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 5 (Thread 0x3c00ab70 (LWP 4709)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb47800a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb4b8d82d in __pthread_cond_wait (cond=0xdb8a7e8, mutex=0xdb8a7d0) at forward.c:139
#3  0xb4da45c2 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb69a91bf in Digikam::LoadSaveThread::run (this=0x10244590) at /data/cworkspace/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#5  0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#6  0xb477c585 in start_thread (arg=0x3c00ab70) at pthread_create.c:300
#7  0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 4 (Thread 0x3eb8bb70 (LWP 4714)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb47800a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb4b8d82d in __pthread_cond_wait (cond=0x10511c08, mutex=0x10511bf0) at forward.c:139
#3  0xb4da45c2 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb69a91bf in Digikam::LoadSaveThread::run (this=0x105a7248) at /data/cworkspace/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#5  0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#6  0xb477c585 in start_thread (arg=0x3eb8bb70) at pthread_create.c:300
#7  0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0x1c3dcb70 (LWP 4718)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb47800a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb4b8d82d in __pthread_cond_wait (cond=0xa24633a8, mutex=0xa2463390) at forward.c:139
#3  0xb4da45c2 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb69a91bf in Digikam::LoadSaveThread::run (this=0xa2c0a458) at /data/cworkspace/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#5  0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#6  0xb477c585 in start_thread (arg=0x1c3dcb70) at pthread_create.c:300
#7  0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0x213deb70 (LWP 4722)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb47800a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb4b8d82d in __pthread_cond_wait (cond=0x10be2780, mutex=0x10be2768) at forward.c:139
#3  0xb4da45c2 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb69a91bf in Digikam::LoadSaveThread::run (this=0x10a61f80) at /data/cworkspace/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#5  0xb4da35e2 in ?? () from /usr/lib/libQtCore.so.4
#6  0xb477c585 in start_thread (arg=0x213deb70) at pthread_create.c:300
#7  0xb4b802be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb2efb700 (LWP 3125)):
#0  0xb7823424 in __kernel_vsyscall ()
#1  0xb47800a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb4b8d82d in __pthread_cond_wait (cond=0x9651d58, mutex=0x9651d40) at forward.c:139
#3  0xb4da45c2 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb032d5f7 in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so
#5  0xb0342d72 in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so
#6  0xb77b506c in Phonon::MediaNodePrivate::deleteBackendObject() () from /usr/lib/libphonon.so.4
#7  0xb77c4577 in ?? () from /usr/lib/libphonon.so.4
#8  0xb77c3255 in ?? () from /usr/lib/libphonon.so.4
#9  0xb77c07bb in ?? () from /usr/lib/libphonon.so.4
#10 0xb4ae0481 in __run_exit_handlers (status=1, listp=0xb4bf4324, run_list_atexit=true) at exit.c:78
#11 0xb4ae04df in *__GI_exit (status=1) at exit.c:100
#12 0xb53e602b in ?? () from /usr/lib/libQtGui.so.4
#13 0xb5f7bfda in KApplication::xioErrhandler(_XDisplay*) () from /usr/lib/libkdeui.so.5
#14 0xb5f7c016 in ?? () from /usr/lib/libkdeui.so.5
#15 0xb4955b66 in _XIOError () from /usr/lib/libX11.so.6
#16 0xb495d0e1 in ?? () from /usr/lib/libX11.so.6
#17 0xb495daa6 in _XEventsQueued () from /usr/lib/libX11.so.6
#18 0xb494669f in XEventsQueued () from /usr/lib/libX11.so.6
#19 0xb54224cd in ?? () from /usr/lib/libQtGui.so.4
#20 0xb33d4971 in g_main_context_check () from /lib/libglib-2.0.so.0
#21 0xb33d511c in ?? () from /lib/libglib-2.0.so.0
#22 0xb33d5503 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#23 0xb4ebf041 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#24 0xb5422305 in ?? () from /usr/lib/libQtGui.so.4
#25 0xb4e9283a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#26 0xb4e92c82 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#27 0xb4e950d9 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#28 0xb5382917 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#29 0x0838389a in main (argc=5, argv=0xbfa793e4) at /data/cworkspace/graphics/digikam/digikam/main.cpp:195

Reported using DrKonqi
Comment 1 Mark Purcell 2010-01-04 22:12:26 UTC
On Tuesday 05 January 2010 07:49:09 Simon wrote:
> What I was doing when the application crashed:
> I've been editing lots of images with 12 MP. I got this crash while the NEF
> importer was opening a .NEF file (not converting yet). Most of the images
> edited were simple .JPG files, only the last few were .NEF.

Simon,

This maybe fixed with the new exiv2  (0.19) uploaded to Debian sid recently.
I suspect this is a duplicate report to Bug 220322.

http://packages.debian.org/exiv2

Could I ask you to try and access your .NEF file using exiv2 0.18.2 (squeeze) 
first and confirm the problem and then try and access your file 
using exiv2 0.19 (sid) to confirm the issue has been solved.

If that is the case, then you can either await digikam being rebuilt
against the new exiv2 libs in sid, or you can rebuild the package yourself.

Thanks,
Mark
Comment 2 Andreas Huggel 2010-01-05 02:10:38 UTC
This bug is not an exiv2 issue. The relevant part of the crash is this:

Thread 13 (Thread 0xa3b18b70 (LWP 3185)):
[KCrash Handler]
#6  0xb68d5535 in Digikam::RAWLoader::loadedFromDcraw (this=0xa3b17b18,
data=..., width=4310, height=2868, rgbmax=65535, observer=0xe6b9a40)
    at /data/cworkspace/graphics/digikam/libs/dimg/loaders/rawloader.cpp:186
#7  0xb68d4fc7 in Digikam::RAWLoader::load (this=0xa3b17b18, filePath=...,
observer=0xe6b9a40) at
/data/cworkspace/graphics/digikam/libs/dimg/loaders/rawloader.cpp:106
#8  0xb68b3abd in Digikam::DImg::load (this=0xa3b18218, filePath=...,
loadFlagsInt=31, observer=0xe6b9a40, rawDecodingSettings=...) at
/data/cworkspace/graphics/digikam/libs/dimg/dimg.cpp:444

"Exiv2" will show up in the backtrace if the crash happens in libexiv2 (but not all backtraces which contain Exiv2 are crashes from libexiv2 :).

Andreas
Comment 3 caulier.gilles 2010-01-05 07:59:12 UTC
Which libkdcraw version you use ?

Gilles Caulier
Comment 4 Simon 2010-01-05 12:08:18 UTC
$ apt-cache policy libkdcraw7-dev
libkdcraw7-dev:
  Installiert: 4:4.3.4-1
  Kandidat: 4:4.3.4-1
  Versions-Tabelle:
 *** 4:4.3.4-1 0
        500 http://ftp.ch.debian.org unstable/main Packages
        100 /var/lib/dpkg/status
Comment 5 caulier.gilles 2010-01-05 12:27:58 UTC
Go to Help/components Info dialog, and give me the contents...

Gilles Caulier
Comment 6 Simon 2010-01-05 12:46:43 UTC
digiKam version 1.1.0 (rev.: 1066990)
Exiv2 can write to Jp2: Yes
Exiv2 can write to Jpeg: Yes
Exiv2 can write to Pgf: No
Exiv2 can write to Png: Yes
Exiv2 can write to Tiff: Yes
Exiv2 supports XMP metadata: Yes
LibCImg: 130
LibExiv2: 0.18.2
LibJPEG: 62
LibJasper: 1.900.1
LibKDE: 4.3.4 (KDE 4.3.4)
LibKExiv2: 0.6.0
LibKdcraw: 0.5.0
LibLCMS: 118
LibPGF: 6.09.44
LibPNG: 1.2.41
LibQt: 4.5.3
LibRaw: 0.7.2
LibTIFF: LIBTIFF, Version 3.9.2 Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc.
Marble widget: 0.8.1
Parallelized demosaicing: Yes
LibGphoto2: 2.4.6
LibKipi: 0.4.0
Comment 7 Marcel Wiesweg 2010-01-05 21:57:05 UTC
Simon, can you provide one sample image causing the crash?
Comment 8 Simon 2010-01-25 15:08:17 UTC
No, sorry, I cannot. It wasn't caused by one specific image. After digikam crashed I restarted it and could edit it without any problems.
Comment 9 caulier.gilles 2010-01-25 21:52:34 UTC
digiKam 1.1. release will be done in few days. Please check if this entry still valid.

Thanks in advance

Gilles Caulier
Comment 10 caulier.gilles 2010-04-04 10:46:05 UTC
digiKam and Kipi-plugins 1.2.0 are out. Please check if crash is still valid there.

Thanks in advance

Gilles Caulier
Comment 11 Simon 2010-05-25 11:55:54 UTC
Just edited some images again, and ...

digikam(2912)/digikam (core) Digikam::HistogramPainterPriv::scaleToPixmapHeight: Scaling value < 0:  0 . Falling back to 1.0 
digikam(2912)/digikam (core) Digikam::HistogramPainterPriv::scaleToPixmapHeight: Scaling value < 0:  0 . Falling back to 1.0 
digikam(2912)/digikam (core) Digikam::EditorToolThreaded::slotFilterFinished: Final "Gradation"  completed...
./env_svn.sh: Zeile 11:  2912 Getötet                $@
simon@lapL:/data/cworkspace/digikam-trunk$ QSqlDatabasePrivate::removeDatabase: connection 'digikamDatabase-38373008' is still in use, all queries will cease to work.
QSocketNotifier: Invalid socket 11 and type 'Read', disabling...
QSqlDatabasePrivate::removeDatabase: connection 'digikamDatabase-38373008' is still in use, all queries will cease to work.
QSocketNotifier: Invalid socket 12 and type 'Read', disabling...

I've disabled the swap partition. So that may be the reason for digikam having been killed by the kernel. 

Digikam not started:
$ free
             total       used       free     shared    buffers     cached
Mem:       2060704     687484    1373220          0      20804     105364


Anything I could do helping to locate the bug? valgrind?

Simon
Comment 12 Simon 2010-05-25 12:20:20 UTC
Quite reproducible. Just with 25 images à 12 MP. I usually closed the image editor after each edit, and the free RAM kept on decreasing. Little memory leak?

simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1583704     477000          0      28104     256276
-/+ buffers/cache:    1299324     761380
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1687272     373432          0      30264     271440
-/+ buffers/cache:    1385568     675136
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1644952     415752          0      23132     235020
-/+ buffers/cache:    1386800     673904
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1714768     345936          0      17536     180772
-/+ buffers/cache:    1516460     544244
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1904368     156336          0       2720     106172
-/+ buffers/cache:    1795476     265228
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1904660     156044          0       2720     106260
-/+ buffers/cache:    1795680     265024
Swap:            0          0          0
(crash)
Comment 13 Simon 2010-05-25 12:37:54 UTC
Okay, here is how to reproduce it (at least on my machine with deactivated swap; with activated swap it might take a little longer, so better use swapoff before trying to reproduce :) ):

1 In Image View: F4, Shift-Ctrl-M, Ctrl-W, Page Down.
  (Edit, Curves dialog, close editor, next image.)
  (Curve might have to be different from default, i.e. cause some effect.)
2 Repeat until free ram does not decrease anymore 
  (here some allocated RAM seems to be freed)
3 As soon as RAM no longer decreases: Apply Curves in Editor, Undo, or whatever.
  -> Crash.


simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1148856     911848          0      30308     263028
-/+ buffers/cache:     855520    1205184
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1181752     878952          0      30332     276776
-/+ buffers/cache:     874644    1186060
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1389504     671200          0      30756     302356
-/+ buffers/cache:    1056392    1004312
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1672024     388680          0      31132     482556
-/+ buffers/cache:    1158336     902368
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1711668     349036          0      31148     520744
-/+ buffers/cache:    1159776     900928
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1712368     348336          0      31296     520820
-/+ buffers/cache:    1160252     900452
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1712392     348312          0      31304     520820
-/+ buffers/cache:    1160268     900436
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1712436     348268          0      31312     520832
-/+ buffers/cache:    1160292     900412
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1638972     421732          0      31692     324924
-/+ buffers/cache:    1282356     778348
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1679480     381224          0      31828     330996
-/+ buffers/cache:    1316656     744048
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1783032     277672          0      31860     331344
-/+ buffers/cache:    1419828     640876
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1827000     233704          0      31868     331860
-/+ buffers/cache:    1463272     597432
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1867372     193332          0      31884     332504
-/+ buffers/cache:    1502984     557720
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1923464     137240          0      31900     333104
-/+ buffers/cache:    1558460     502244
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1949260     111444          0      31440     312536
-/+ buffers/cache:    1605284     455420
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1898116     162588          0      29780     268728
-/+ buffers/cache:    1599608     461096
Swap:            0          0          0
(no longer decreasing from here on)

simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1949820     110884          0      19272     240748
-/+ buffers/cache:    1689800     370904
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1947888     112816          0      15736     204136
-/+ buffers/cache:    1728016     332688
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1952064     108640          0      14508     165056
-/+ buffers/cache:    1772500     288204
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1960940      99764          0       1564     133340
-/+ buffers/cache:    1826036     234668
Swap:            0          0          0
simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704    1951920     108784          0       1364      87720
-/+ buffers/cache:    1862836     197868
Swap:            0          0          0

(pressed «Apply» in Curves)
(crash)

simon@lapL:~$ free
             total       used       free     shared    buffers     cached
Mem:       2060704     647652    1413052          0       1420      56024
-/+ buffers/cache:     590208    1470496
Swap:            0          0          0
Comment 14 Marcel Wiesweg 2010-05-25 20:34:03 UTC
valgrind --leak-check=full digikam
with the leak report given when shutting down (can be long)
and/or
valgrind --tool=massif digikam
with a massif.out.<pid> file created.

Both make digikam very slow, though. Only try a few iterations.
Comment 15 Simon 2010-05-26 12:31:55 UTC
The leak-check log is here:
http://granjow.net/uploads/bugs/digikam-valgrind-bug-221281.log
What I did is
* Start digikam
* Click a different folder
* Click on an image to display it
* F4 (Editor)
* Shift-Ctrl-M (Curves)
* Ctrl-W
* Alt-F4

Massif output:
http://granjow.net/uploads/bugs/digikam-bug221281-massif.out.3344
http://granjow.net/uploads/bugs/digikam-bug221281-massif.out.3418
Comment 16 Marcel Wiesweg 2010-05-28 14:56:21 UTC
SVN commit 1131569 by mwiesweg:

No editor tool (one exception) cared to delete the preview widget
and the settings widget. Usually, the preview widget hold a copy
of the image data, which explains a significant memory leak
each time a new tool is opened.

Delete the two pointers in EditorTool to fix all current tools.

CCBUG: 221281

 M  +0 -3      imageplugins/color/bwsepiatool.cpp  
 M  +3 -0      utilities/imageeditor/editor/editortool.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1131569
Comment 17 Marcel Wiesweg 2010-05-28 15:04:05 UTC
Thanks Simon. After thorough valgrinding, I have identified a major memory leak, see commit. I assume this bug is fixed, and will close it unless you still have problems.

Two off-topic remarks:
- Massif visualizer by Milian Wolff (http://milianw.de/blog/massif-visualizer-ready-for-testers-and-feedback) is extremely helpful for reading Massif output. Forget ms_print.
- keeping all ICC profiles open for fast access is a memory hog (though of constant size). Here, it's 42MB of memory with a collection of 50 profiles. Needs to be intelligently improved in the future.
Comment 18 Simon 2010-05-29 18:04:08 UTC
Cool, seems much better now! (Couldn't make the memory go constantly down anymore.) Thank you!