Bug 188334 - Crash when applying free rotation to TIF16 picture
Summary: Crash when applying free rotation to TIF16 picture
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Editor-Rotation (show other bugs)
Version: 1.0.0
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-28 13:34 UTC by Guenther M. Erhard
Modified: 2016-06-30 11:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 1.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guenther M. Erhard 2009-03-28 13:34:37 UTC
Version:            (using KDE 4.2.1)
OS:                Linux
Installed from:    Compiled From Sources

After applying a -0.5 degree free rotation to a TIF16 picture in the image editor I got a crash after I've pressed o.k. This bug occurs sporadically.

Here is the debug log:

Anwendung: digiKam (digikam), Signal SIGABRT
[?1034h[Thread debugging using libthread_db enabled]
[Current thread is 1 (Thread 0xb4579700 (LWP 4751))]

Thread 12 (Thread 0xb2faeb90 (LWP 4753)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb56f8c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5787872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0x0832178d in Digikam::ScanController::run (this=0x84f6318) at /home/guenni/tmp/kde4/graphics/digikam/digikam/scancontroller.cpp:412
#4  0xb578685e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb56f51b5 in start_thread () from /lib/libpthread.so.0
#6  0xb553738e in clone () from /lib/libc.so.6

Thread 11 (Thread 0xb1a67b90 (LWP 4756)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb56f8c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5787872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb7230681 in Digikam::LoadSaveThread::run (this=0x85ce090) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#4  0xb578685e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb56f51b5 in start_thread () from /lib/libpthread.so.0
#6  0xb553738e in clone () from /lib/libc.so.6

Thread 10 (Thread 0xb2268b90 (LWP 4757)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb56f8c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5787872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb7230681 in Digikam::LoadSaveThread::run (this=0x85ba308) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#4  0xb578685e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb56f51b5 in start_thread () from /lib/libpthread.so.0
#6  0xb553738e in clone () from /lib/libc.so.6

Thread 9 (Thread 0xaeadfb90 (LWP 4759)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb56f8f62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xafadb6f1 in ?? () from /usr/lib/libxine.so.1
#3  0xb56f51b5 in start_thread () from /lib/libpthread.so.0
#4  0xb553738e in clone () from /lib/libc.so.6

Thread 8 (Thread 0xade0ab90 (LWP 4760)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb56f8f62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xafaea17e in ?? () from /usr/lib/libxine.so.1
#3  0xb56f51b5 in start_thread () from /lib/libpthread.so.0
#4  0xb553738e in clone () from /lib/libc.so.6

Thread 7 (Thread 0xad609b90 (LWP 4761)):
#0  0xb4fe93da in clock_gettime () from /lib/librt.so.1
#1  0xb58a2beb in ?? () from /usr/lib/libQtCore.so.4
#2  0xb58a2dc1 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb58a45bc in ?? () from /usr/lib/libQtCore.so.4
#4  0xb58a1198 in ?? () from /usr/lib/libQtCore.so.4
#5  0xb4f5c8ba in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#6  0xb4f5cd4a in ?? () from /usr/lib/libglib-2.0.so.0
#7  0xb4f5d221 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#8  0xb58a0fd7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#9  0xb587501a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#10 0xb58751da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#11 0xb5783559 in QThread::exec() () from /usr/lib/libQtCore.so.4
#12 0xafb318f9 in ?? () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#13 0xb578685e in ?? () from /usr/lib/libQtCore.so.4
#14 0xb56f51b5 in start_thread () from /lib/libpthread.so.0
#15 0xb553738e in clone () from /lib/libc.so.6

Thread 6 (Thread 0xacdb4b90 (LWP 4764)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5533d27 in syscall () from /lib/libc.so.6
#2  0xb5460040 in v4l2_read () from /usr/lib/libv4l2.so.0
#3  0xb7ff58cb in read () from /usr/lib/libv4l/v4l2convert.so
#4  0xafdea992 in ?? () from /usr/lib/libasound.so.2
#5  0xafde7edd in snd_ctl_read () from /usr/lib/libasound.so.2
#6  0xafde428f in snd_hctl_handle_events () from /usr/lib/libasound.so.2
#7  0xafdf0401 in snd_mixer_handle_events () from /usr/lib/libasound.so.2
#8  0xae2c0051 in ?? () from /usr/lib/xine/plugins/1.25/xineplug_ao_out_alsa.so
#9  0xb56f51b5 in start_thread () from /lib/libpthread.so.0
#10 0xb553738e in clone () from /lib/libc.so.6

Thread 5 (Thread 0xac5b3b90 (LWP 4765)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb56f8c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xafaeddec in ?? () from /usr/lib/libxine.so.1
#3  0xb56f51b5 in start_thread () from /lib/libpthread.so.0
#4  0xb553738e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xab531b90 (LWP 4780)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb56f8c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5787872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb7230681 in Digikam::LoadSaveThread::run (this=0x9022bc8) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#4  0xb578685e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb56f51b5 in start_thread () from /lib/libpthread.so.0
#6  0xb553738e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xabd89b90 (LWP 4814)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb56f8c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5787872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb7230681 in Digikam::LoadSaveThread::run (this=0x9a09a78) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#4  0xb578685e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb56f51b5 in start_thread () from /lib/libpthread.so.0
#6  0xb553738e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xa98ffb90 (LWP 4829)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb56f8c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5787872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb7230681 in Digikam::LoadSaveThread::run (this=0x9c1d6c0) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#4  0xb578685e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb56f51b5 in start_thread () from /lib/libpthread.so.0
#6  0xb553738e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb4579700 (LWP 4751)):
[KCrash Handler]
#6  0xffffe430 in __kernel_vsyscall ()
#7  0xb5490990 in raise () from /lib/libc.so.6
#8  0xb54922c8 in abort () from /lib/libc.so.6
#9  0xb56b8af8 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#10 0xb56b6445 in ?? () from /usr/lib/libstdc++.so.6
#11 0xb56b6482 in std::terminate() () from /usr/lib/libstdc++.so.6
#12 0xb56b653b in __cxa_rethrow () from /usr/lib/libstdc++.so.6
#13 0xb58752ec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#14 0xb5877895 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#15 0xb5d30777 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#16 0x0834aa19 in main (argc=5, argv=0xbfe16a54) at /home/guenni/tmp/kde4/graphics/digikam/digikam/main.cpp:182
Comment 1 Guenther M. Erhard 2009-03-30 18:44:14 UTC
Crash just happened again:

Anwendung: digiKam (digikam), Signal SIGABRT
[?1034h[Thread debugging using libthread_db enabled]
[Current thread is 1 (Thread 0xb449e700 (LWP 11182))]

Thread 12 (Thread 0xb2ed3b90 (LWP 11184)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb561dc35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb56ac872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0x0832178d in Digikam::ScanController::run (this=0x84f65a0) at /home/guenni/tmp/kde4/graphics/digikam/digikam/scancontroller.cpp:412
#4  0xb56ab85e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb561a1b5 in start_thread () from /lib/libpthread.so.0
#6  0xb545c38e in clone () from /lib/libc.so.6

Thread 11 (Thread 0xb19c6b90 (LWP 11188)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb561dc35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb56ac872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb7155681 in Digikam::LoadSaveThread::run (this=0x8598218) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#4  0xb56ab85e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb561a1b5 in start_thread () from /lib/libpthread.so.0
#6  0xb545c38e in clone () from /lib/libc.so.6

Thread 10 (Thread 0xb21c7b90 (LWP 11189)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb561dc35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb56ac872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb7155681 in Digikam::LoadSaveThread::run (this=0x85a7910) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#4  0xb56ab85e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb561a1b5 in start_thread () from /lib/libpthread.so.0
#6  0xb545c38e in clone () from /lib/libc.so.6

Thread 9 (Thread 0xaea01b90 (LWP 11190)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb561df62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xafa3a6f1 in ?? () from /usr/lib/libxine.so.1
#3  0xb561a1b5 in start_thread () from /lib/libpthread.so.0
#4  0xb545c38e in clone () from /lib/libc.so.6

Thread 8 (Thread 0xadd2cb90 (LWP 11191)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb561df62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xafa4917e in ?? () from /usr/lib/libxine.so.1
#3  0xb561a1b5 in start_thread () from /lib/libpthread.so.0
#4  0xb545c38e in clone () from /lib/libc.so.6

Thread 7 (Thread 0xad52bb90 (LWP 11192)):
#0  0xb57c6130 in ?? () from /usr/lib/libQtCore.so.4
#1  0xb4e818ba in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#2  0xb4e81d4a in ?? () from /usr/lib/libglib-2.0.so.0
#3  0xb4e82221 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0xb57c5fd7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0xb579a01a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb579a1da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0xb56a8559 in QThread::exec() () from /usr/lib/libQtCore.so.4
#8  0xafa908f9 in ?? () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#9  0xb56ab85e in ?? () from /usr/lib/libQtCore.so.4
#10 0xb561a1b5 in start_thread () from /lib/libpthread.so.0
#11 0xb545c38e in clone () from /lib/libc.so.6

Thread 6 (Thread 0xaccd6b90 (LWP 11195)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5452677 in poll () from /lib/libc.so.6
#2  0xae1e6004 in ?? () from /usr/lib/xine/plugins/1.25/xineplug_ao_out_alsa.so
#3  0xb561a1b5 in start_thread () from /lib/libpthread.so.0
#4  0xb545c38e in clone () from /lib/libc.so.6

Thread 5 (Thread 0xac4d5b90 (LWP 11196)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb561dc35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xafa4cdec in ?? () from /usr/lib/libxine.so.1
#3  0xb561a1b5 in start_thread () from /lib/libpthread.so.0
#4  0xb545c38e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xaa0ffb90 (LWP 11248)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb561dc35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb56ac872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb7155681 in Digikam::LoadSaveThread::run (this=0x94bfc18) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#4  0xb56ab85e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb561a1b5 in start_thread () from /lib/libpthread.so.0
#6  0xb545c38e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xa8efdb90 (LWP 11596)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb561dc35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb56ac872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb7155681 in Digikam::LoadSaveThread::run (this=0x99cd040) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#4  0xb56ab85e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb561a1b5 in start_thread () from /lib/libpthread.so.0
#6  0xb545c38e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xab453b90 (LWP 12314)):
[KCrash Handler]
#6  0xffffe430 in __kernel_vsyscall ()
#7  0xb53b5990 in raise () from /lib/libc.so.6
#8  0xb53b72c8 in abort () from /lib/libc.so.6
#9  0xb55ddaf8 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#10 0xb55db445 in ?? () from /usr/lib/libstdc++.so.6
#11 0xb55db482 in std::terminate() () from /usr/lib/libstdc++.so.6
#12 0xb55db5ba in __cxa_throw () from /usr/lib/libstdc++.so.6
#13 0xb55dc1a3 in operator new(unsigned int) () from /usr/lib/libstdc++.so.6
#14 0xb55dc28d in operator new[](unsigned int) () from /usr/lib/libstdc++.so.6
#15 0xb708e324 in Digikam::DImg::allocateData (this=0xab4531dc) at /home/guenni/tmp/kde4/graphics/digikam/libs/dimg/dimg.cpp:293
#16 0xb708f634 in Digikam::DImg::putImageData (this=0xab4531dc, width=5648, height=3887, sixteenBit=true, alpha=false, data=0x0, copyData=true)
    at /home/guenni/tmp/kde4/graphics/digikam/libs/dimg/dimg.cpp:219
#17 0xb709490d in DImg (this=0xab4531dc, width=5648, height=3887, sixteenBit=true, alpha=false, data=0x0, copyData=true) at /home/guenni/tmp/kde4/graphics/digikam/libs/dimg/dimg.cpp:113
#18 0xa5d2bd52 in DigikamFreeRotationImagesPlugin::FreeRotation::filterImage (this=0xbd66f50) at /home/guenni/tmp/kde4/graphics/digikam/imageplugins/freerotation/freerotation.cpp:103
#19 0xb70cad37 in Digikam::DImgThreadedFilter::startFilterDirectly (this=0xbd66f50) at /home/guenni/tmp/kde4/graphics/digikam/libs/dimg/filters/dimgthreadedfilter.cpp:139
#20 0xb70c9a10 in Digikam::DImgThreadedFilter::run (this=0xbd66f50) at /home/guenni/tmp/kde4/graphics/digikam/libs/dimg/filters/dimgthreadedfilter.cpp:152
#21 0xb56ab85e in ?? () from /usr/lib/libQtCore.so.4
#22 0xb561a1b5 in start_thread () from /lib/libpthread.so.0
#23 0xb545c38e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb449e700 (LWP 11182)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb561df62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb56ab269 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb56ab39b in QThread::msleep(unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xafaaa96c in ?? () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#5  0xb7ec0712 in ?? () from /usr/lib/libphonon.so.4
#6  0xb7ebf555 in ?? () from /usr/lib/libphonon.so.4
#7  0xb7ebce8b in ?? () from /usr/lib/libphonon.so.4
#8  0xb53b89b1 in exit () from /lib/libc.so.6
#9  0xb5cb5e1b in ?? () from /usr/lib/libQtGui.so.4
#10 0xb67694ca in KApplication::xioErrhandler(_XDisplay*) () from /usr/lib/libkdeui.so.5
#11 0xb6769506 in ?? () from /usr/lib/libkdeui.so.5
#12 0xb51c63c2 in _XIOError () from /usr/lib/libX11.so.6
#13 0xb51ce3a5 in ?? () from /usr/lib/libX11.so.6
#14 0xb51cebc5 in _XEventsQueued () from /usr/lib/libX11.so.6
#15 0xb51b6b3f in XEventsQueued () from /usr/lib/libX11.so.6
#16 0xb5cee98d in ?? () from /usr/lib/libQtGui.so.4
#17 0xb4e815b8 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#18 0xb4e81f4d in ?? () from /usr/lib/libglib-2.0.so.0
#19 0xb4e82221 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#20 0xb57c5fb8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#21 0xb5cee7c5 in ?? () from /usr/lib/libQtGui.so.4
#22 0xb579a01a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#23 0xb579a1da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#24 0xb579c895 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#25 0xb5c55777 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#26 0x0834aa19 in main (argc=5, argv=0xbfb3dc54) at /home/guenni/tmp/kde4/graphics/digikam/digikam/main.cpp:182
Comment 2 Guenther M. Erhard 2009-04-12 19:30:11 UTC
Just happened again with Version 0.11.0-svn (rev.: 951942) using KDE 4.2.2 (KDE 4.2.2) "release 112":
Anwendung: digiKam (digikam), Signal SIGABRT
[?1034h[Thread debugging using libthread_db enabled]
[Current thread is 1 (Thread 0xb4484700 (LWP 11054))]

Thread 12 (Thread 0xb2eb9b90 (LWP 11056)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb55f5c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5685872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0x08320439 in Digikam::ScanController::run (this=0x84f2770) at /home/guenni/tmp/kde4/graphics/digikam/digikam/scancontroller.cpp:412
#4  0xb568485e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb55f21b5 in start_thread () from /lib/libpthread.so.0
#6  0xb543438e in clone () from /lib/libc.so.6

Thread 11 (Thread 0xb1967b90 (LWP 11060)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb55f5c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5685872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb713174d in Digikam::LoadSaveThread::run (this=0x8562fb0) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#4  0xb568485e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb55f21b5 in start_thread () from /lib/libpthread.so.0
#6  0xb543438e in clone () from /lib/libc.so.6

Thread 10 (Thread 0xb2168b90 (LWP 11061)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb55f5c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5685872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb713174d in Digikam::LoadSaveThread::run (this=0x855d1a8) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#4  0xb568485e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb55f21b5 in start_thread () from /lib/libpthread.so.0
#6  0xb543438e in clone () from /lib/libc.so.6

Thread 9 (Thread 0xae9eeb90 (LWP 11062)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb55f5f62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xafa21721 in ?? () from /usr/lib/libxine.so.1
#3  0xb55f21b5 in start_thread () from /lib/libpthread.so.0
#4  0xb543438e in clone () from /lib/libc.so.6

Thread 8 (Thread 0xadd18b90 (LWP 11063)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb55f5f62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xafa301ae in ?? () from /usr/lib/libxine.so.1
#3  0xb55f21b5 in start_thread () from /lib/libpthread.so.0
#4  0xb543438e in clone () from /lib/libc.so.6

Thread 7 (Thread 0xad517b90 (LWP 11064)):
#0  0xb4ef43da in clock_gettime () from /lib/librt.so.1
#1  0xb57a0beb in ?? () from /usr/lib/libQtCore.so.4
#2  0xb57a0dc1 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb57a25bc in ?? () from /usr/lib/libQtCore.so.4
#4  0xb579f198 in ?? () from /usr/lib/libQtCore.so.4
#5  0xb4e678ba in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#6  0xb4e67d4a in ?? () from /usr/lib/libglib-2.0.so.0
#7  0xb4e68221 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#8  0xb579efd7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#9  0xb577301a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#10 0xb57731da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#11 0xb5681559 in QThread::exec() () from /usr/lib/libQtCore.so.4
#12 0xafa788f9 in ?? () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#13 0xb568485e in ?? () from /usr/lib/libQtCore.so.4
#14 0xb55f21b5 in start_thread () from /lib/libpthread.so.0
#15 0xb543438e in clone () from /lib/libc.so.6

Thread 6 (Thread 0xaccc2b90 (LWP 11067)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb542a677 in poll () from /lib/libc.so.6
#2  0xae1cf004 in ?? () from /usr/lib/xine/plugins/1.26/xineplug_ao_out_alsa.so
#3  0xb55f21b5 in start_thread () from /lib/libpthread.so.0
#4  0xb543438e in clone () from /lib/libc.so.6

Thread 5 (Thread 0xac4c1b90 (LWP 11068)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb55f5c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xafa33f43 in ?? () from /usr/lib/libxine.so.1
#3  0xb55f21b5 in start_thread () from /lib/libpthread.so.0
#4  0xb543438e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xabc97b90 (LWP 11083)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb55f5c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5685872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb713174d in Digikam::LoadSaveThread::run (this=0x9124250) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#4  0xb568485e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb55f21b5 in start_thread () from /lib/libpthread.so.0
#6  0xb543438e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xa8dffb90 (LWP 11118)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb55f5c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5685872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb713174d in Digikam::LoadSaveThread::run (this=0x9831f48) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#4  0xb568485e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb55f21b5 in start_thread () from /lib/libpthread.so.0
#6  0xb543438e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xab43fb90 (LWP 11136)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb55f5c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5685872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb713174d in Digikam::LoadSaveThread::run (this=0x9c8a0d0) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#4  0xb568485e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb55f21b5 in start_thread () from /lib/libpthread.so.0
#6  0xb543438e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb4484700 (LWP 11054)):
[KCrash Handler]
#6  0xffffe430 in __kernel_vsyscall ()
#7  0xb538d990 in raise () from /lib/libc.so.6
#8  0xb538f2c8 in abort () from /lib/libc.so.6
#9  0xb55b5af8 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#10 0xb55b3445 in ?? () from /usr/lib/libstdc++.so.6
#11 0xb55b3482 in std::terminate() () from /usr/lib/libstdc++.so.6
#12 0xb55b353b in __cxa_rethrow () from /usr/lib/libstdc++.so.6
#13 0xb57732ec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#14 0xb5775895 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#15 0xb5c2f777 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#16 0x083495c5 in main (argc=5, argv=0xbfc2ced4) at /home/guenni/tmp/kde4/graphics/digikam/digikam/main.cpp:182
Comment 3 Marcel Wiesweg 2009-04-12 21:01:47 UTC
Excerpt from comment #1:

#6  0xffffe430 in __kernel_vsyscall ()
#7  0xb53b5990 in raise () from /lib/libc.so.6
#8  0xb53b72c8 in abort () from /lib/libc.so.6
#9  0xb55ddaf8 in __gnu_cxx::__verbose_terminate_handler() () from
/usr/lib/libstdc++.so.6
#10 0xb55db445 in ?? () from /usr/lib/libstdc++.so.6
#11 0xb55db482 in std::terminate() () from /usr/lib/libstdc++.so.6
#12 0xb55db5ba in __cxa_throw () from /usr/lib/libstdc++.so.6
#13 0xb55dc1a3 in operator new(unsigned int) () from /usr/lib/libstdc++.so.6
#14 0xb55dc28d in operator new[](unsigned int) () from /usr/lib/libstdc++.so.6
#15 0xb708e324 in Digikam::DImg::allocateData (this=0xab4531dc)

operator new() aborts when it fails, when it cannot allocate the memory requested. This could be because your memory is really full including swap space, or there is a bug somewhere eating amounts of memory.
(A large 16 bits image can eat lots of memory. Dont know about buffer needed by free rotation)

Usually there is error output on the console which might be helpful.
Please clarify your memory situation as well.
Comment 4 caulier.gilles 2009-04-12 21:12:56 UTC
Another way to investigaute memory leak, is to use valgrin cammand line program like this :

valgrind --tool=memcheck --leak-check=full --error-limit=no digikam

digiKam will be very slow, but valgrind will report a lots of debug info in the console. Use digiKam in free rotation tool and with your 16 bits TIFF.

When it crash, report all console messages in this file.

Gilles Caulier
Comment 5 Guenther M. Erhard 2009-04-12 22:11:10 UTC
Hi Marcel,

I've got a machine with 4GB memory - so I think this should be no problem. But your assumption of eating up memory can be a hint as the crash never happened with the first images after startup. Normally the crash occured after I rotated maybe 10 or 15 images. I will start digikam next time from console so I can check whether there is an error message.

Guenther
Comment 6 Guenther M. Erhard 2009-04-12 22:23:56 UTC
No crash up to now as running with valgrind is almost unusable (feels like having a 486 ;-), but this is what I got from top:

top - 22:18:30 up  4:35,  4 users,  load average: 1.59, 1.25, 0.85
Tasks: 166 total,   2 running, 164 sleeping,   0 stopped,   0 zombie
Cpu(s):  2.1%us,  0.5%sy,  0.0%ni, 97.2%id,  0.2%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   4025364k total,  3824936k used,   200428k free,    30628k buffers
Swap:  1060280k total,      128k used,  1060152k free,  1270656k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
15215 guenni    20   0 2395m 2.0g  40m S    5 53.4  10:09.25 memcheck

Takes really a lot of memory!

And on the console I got during rotation a bunch of these messages:

digikam(15215)/digikam (core) Digikam::EditorToolThreaded::slotOk: Final  "Free Rotation"  started...
==15215== Warning: set address range perms: large range 171739392 (undefined)
==15215== Warning: set address range perms: large range 171739392 (undefined)
==15215== Warning: set address range perms: large range 171739424 (noaccess)
==15215== Warning: set address range perms: large range 171739392 (undefined)
==15215== Warning: set address range perms: large range 171739392 (undefined)
==15215== Warning: set address range perms: large range 171739424 (noaccess)
==15215== Warning: set address range perms: large range 176894928 (undefined)
==15215== Warning: set address range perms: large range 171739424 (noaccess)

Is there a faster way to run with memory check? Checking with this valgrind command would takes hours to get a crash...

Guenther
Comment 7 caulier.gilles 2009-04-13 00:14:19 UTC
I cannot reproduce the crash here using 16 bits TIFF image into free rotation tool.

Also, running digiKam in valgrind do not help anymore : there is no memory leak

Here : PIV 1.6 Ghz double core with 1 Gb ram.

Gilles Caulier
Comment 8 Andi Clemens 2009-04-18 20:10:36 UTC
(In reply to comment #6)
> Is there a faster way to run with memory check? Checking with this valgrind
> command would takes hours to get a crash...
> 
> Guenther

A simpler (but also an imprecise) way is to use (h)top:

- sort the application list by memory usage
- take a look at digikam
- notice the mem usage before rotating
- rotate
- check again with (h)top
- rotate some more...

the memory usage should increase during rotation, but decrease when the image has been processed. If the mem usage is constantly increasing, something is wrong.

But without valgrind we wouldn't see where the mem is not freed again.

Andi
Comment 9 Guenther M. Erhard 2009-04-18 20:13:42 UTC
This time I had digikam (Version 0.11.0-svn (rev.: 955848) Using KDE 4.2.2 (KDE
4.2.2) "release 114") running from a console. The crash occured when I tried to
rotate a TIF16 picture (Size ~120MB) by -0.4 degrees:

digikam(27618)/digikam (core) Digikam::EditorToolThreaded::slotEffect: Preview 
"Free Rotation"  started...
digikam(27618)/digikam (core) Digikam::EditorToolThreaded::slotFilterFinished:
Preview  "Free Rotation"  completed...
digikam(27618)/digikam (core) Digikam::CollectionManager::locationForPath:
Testing location  1 "/home/ablage/Grafiken/Original Dia Scans/Barcelona_2006"
"/home/ablage/Grafiken/Digicam"
digikam(27618)/digikam (core) Digikam::CollectionManager::locationForPath:
Testing location  2 "/home/ablage/Grafiken/Original Dia Scans/Barcelona_2006"
"/home/ablage/Grafiken/Fotobuch"
digikam(27618)/digikam (core) Digikam::CollectionManager::locationForPath:
Testing location  3 "/home/ablage/Grafiken/Original Dia Scans/Barcelona_2006"
"/home/ablage/Grafiken/Original Dia Scans"
digikam(27618)/digikam (core) Digikam::EditorToolThreaded::slotOk: Final  "Free
Rotation"  started...
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
QSocketNotifier: Invalid socket 10 and type 'Read', disabling...
digikam: Fatal IO error: client killed
KCrash: Application 'digikam' crashing...
sock_file=/home/guenni/.kde4/socket-ratte/kdeinit4__0

And this is the debug log:

Anwendung: digiKam (digikam), Signal SIGABRT
[?1034h[Thread debugging using libthread_db enabled]
[Current thread is 1 (Thread 0xb44d8700 (LWP 27618))]

Thread 18 (Thread 0xb2f0db90 (LWP 27620)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5656c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb56e6872 in QWaitCondition::wait(QMutex*, unsigned long) () from
/usr/lib/libQtCore.so.4
#3  0x08326111 in Digikam::ScanController::run (this=0x84fc9f0) at
/home/guenni/tmp/kde4/graphics/digikam/digikam/scancontroller.cpp:412
#4  0xb56e585e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb56531b5 in start_thread () from /lib/libpthread.so.0
#6  0xb549538e in clone () from /lib/libc.so.6

Thread 17 (Thread 0xb1a02b90 (LWP 27624)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5656c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb56e6872 in QWaitCondition::wait(QMutex*, unsigned long) () from
/usr/lib/libQtCore.so.4
#3  0xb719be91 in Digikam::LoadSaveThread::run (this=0x85bf258) at
/home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0xb56e585e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb56531b5 in start_thread () from /lib/libpthread.so.0
#6  0xb549538e in clone () from /lib/libc.so.6

Thread 16 (Thread 0xb2203b90 (LWP 27625)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5656c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb56e6872 in QWaitCondition::wait(QMutex*, unsigned long) () from
/usr/lib/libQtCore.so.4
#3  0xb719be91 in Digikam::LoadSaveThread::run (this=0x8548c30) at
/home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0xb56e585e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb56531b5 in start_thread () from /lib/libpthread.so.0
#6  0xb549538e in clone () from /lib/libc.so.6

Thread 15 (Thread 0xae932b90 (LWP 27626)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5656f62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0xb112c721 in ?? () from /usr/lib/libxine.so.1
#3  0xb56531b5 in start_thread () from /lib/libpthread.so.0
#4  0xb549538e in clone () from /lib/libc.so.6

Thread 14 (Thread 0xadc5cb90 (LWP 27627)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5656f62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0xb113b1ae in ?? () from /usr/lib/libxine.so.1
#3  0xb56531b5 in start_thread () from /lib/libpthread.so.0
#4  0xb549538e in clone () from /lib/libc.so.6

Thread 13 (Thread 0xad45bb90 (LWP 27628)):
#0  0xb4f483da in clock_gettime () from /lib/librt.so.1
#1  0xb5801beb in ?? () from /usr/lib/libQtCore.so.4
#2  0xb5801dc1 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb58035bc in ?? () from /usr/lib/libQtCore.so.4
#4  0xb5800198 in ?? () from /usr/lib/libQtCore.so.4
#5  0xb4ebbcf0 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#6  0xb4ebc10a in ?? () from /usr/lib/libglib-2.0.so.0
#7  0xb4ebc598 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#8  0xb57fffd7 in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/libQtCore.so.4
#9  0xb57d401a in
QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from
/usr/lib/libQtCore.so.4
#10 0xb57d41da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/libQtCore.so.4
#11 0xb56e2559 in QThread::exec() () from /usr/lib/libQtCore.so.4
#12 0xb11838f9 in ?? () from
/usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#13 0xb56e585e in ?? () from /usr/lib/libQtCore.so.4
#14 0xb56531b5 in start_thread () from /lib/libpthread.so.0
#15 0xb549538e in clone () from /lib/libc.so.6

Thread 12 (Thread 0xacc06b90 (LWP 27631)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb548b677 in poll () from /lib/libc.so.6
#2  0xae11b004 in ?? () from /usr/lib/xine/plugins/1.26/xineplug_ao_out_alsa.so
#3  0xb56531b5 in start_thread () from /lib/libpthread.so.0
#4  0xb549538e in clone () from /lib/libc.so.6

Thread 11 (Thread 0xac405b90 (LWP 27632)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5656c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb113ef43 in ?? () from /usr/lib/libxine.so.1
#3  0xb56531b5 in start_thread () from /lib/libpthread.so.0
#4  0xb549538e in clone () from /lib/libc.so.6

Thread 10 (Thread 0xaa1ffb90 (LWP 27681)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5656c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb56e6872 in QWaitCondition::wait(QMutex*, unsigned long) () from
/usr/lib/libQtCore.so.4
#3  0xb719be91 in Digikam::LoadSaveThread::run (this=0x9a97520) at
/home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0xb56e585e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb56531b5 in start_thread () from /lib/libpthread.so.0
#6  0xb549538e in clone () from /lib/libc.so.6

Thread 9 (Thread 0xa8ffeb90 (LWP 27699)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5656c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb56e6872 in QWaitCondition::wait(QMutex*, unsigned long) () from
/usr/lib/libQtCore.so.4
#3  0xb719be91 in Digikam::LoadSaveThread::run (this=0x9b638b0) at
/home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0xb56e585e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb56531b5 in start_thread () from /lib/libpthread.so.0
#6  0xb549538e in clone () from /lib/libc.so.6

Thread 8 (Thread 0xa627eb90 (LWP 30454)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5656c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb56e6872 in QWaitCondition::wait(QMutex*, unsigned long) () from
/usr/lib/libQtCore.so.4
#3  0xb719be91 in Digikam::LoadSaveThread::run (this=0xa9bd9c8) at
/home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0xb56e585e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb56531b5 in start_thread () from /lib/libpthread.so.0
#6  0xb549538e in clone () from /lib/libc.so.6

Thread 7 (Thread 0xabbe1b90 (LWP 30455)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5656c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb56e6872 in QWaitCondition::wait(QMutex*, unsigned long) () from
/usr/lib/libQtCore.so.4
#3  0xb719be91 in Digikam::LoadSaveThread::run (this=0xa9be950) at
/home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0xb56e585e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb56531b5 in start_thread () from /lib/libpthread.so.0
#6  0xb549538e in clone () from /lib/libc.so.6

Thread 6 (Thread 0xa527cb90 (LWP 30456)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5656c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb56e6872 in QWaitCondition::wait(QMutex*, unsigned long) () from
/usr/lib/libQtCore.so.4
#3  0xb719be91 in Digikam::LoadSaveThread::run (this=0xa933748) at
/home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0xb56e585e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb56531b5 in start_thread () from /lib/libpthread.so.0
#6  0xb549538e in clone () from /lib/libc.so.6

Thread 5 (Thread 0xa5a7db90 (LWP 30457)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5656c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb56e6872 in QWaitCondition::wait(QMutex*, unsigned long) () from
/usr/lib/libQtCore.so.4
#3  0xb719be91 in Digikam::LoadSaveThread::run (this=0xa6f67a0) at
/home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0xb56e585e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb56531b5 in start_thread () from /lib/libpthread.so.0
#6  0xb549538e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xa0851b90 (LWP 30462)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5656c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb56e6872 in QWaitCondition::wait(QMutex*, unsigned long) () from
/usr/lib/libQtCore.so.4
#3  0xb719be91 in Digikam::LoadSaveThread::run (this=0xabf7328) at
/home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0xb56e585e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb56531b5 in start_thread () from /lib/libpthread.so.0
#6  0xb549538e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xa0050b90 (LWP 30464)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5656c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb56e6872 in QWaitCondition::wait(QMutex*, unsigned long) () from
/usr/lib/libQtCore.so.4
#3  0xb719be91 in Digikam::LoadSaveThread::run (this=0xa94ae30) at
/home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0xb56e585e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb56531b5 in start_thread () from /lib/libpthread.so.0
#6  0xb549538e in clone () from /lib/libc.so.6

Thread 2 (Thread 0x9f84fb90 (LWP 31256)):
[KCrash Handler]
#6  0xffffe430 in __kernel_vsyscall ()
#7  0xb53ee990 in raise () from /lib/libc.so.6
#8  0xb53f02c8 in abort () from /lib/libc.so.6
#9  0xb5616af8 in __gnu_cxx::__verbose_terminate_handler() () from
/usr/lib/libstdc++.so.6
#10 0xb5614445 in ?? () from /usr/lib/libstdc++.so.6
#11 0xb5614482 in std::terminate() () from /usr/lib/libstdc++.so.6
#12 0xb56145ba in __cxa_throw () from /usr/lib/libstdc++.so.6
#13 0xb56151a3 in operator new(unsigned int) () from /usr/lib/libstdc++.so.6
#14 0xb561528d in operator new[](unsigned int) () from /usr/lib/libstdc++.so.6
#15 0xb70cb404 in Digikam::DImg::allocateData (this=0x9f84f1dc) at
/home/guenni/tmp/kde4/graphics/digikam/libs/dimg/dimg.cpp:293
#16 0xb70cc714 in Digikam::DImg::putImageData (this=0x9f84f1dc, width=5632,
height=3784, sixteenBit=true, alpha=false, data=0x0, copyData=true)
    at /home/guenni/tmp/kde4/graphics/digikam/libs/dimg/dimg.cpp:219
#17 0xb70d19ed in DImg (this=0x9f84f1dc, width=5632, height=3784,
sixteenBit=true, alpha=false, data=0x0, copyData=true) at
/home/guenni/tmp/kde4/graphics/digikam/libs/dimg/dimg.cpp:113
#18 0xa6943b12 in DigikamFreeRotationImagesPlugin::FreeRotation::filterImage
(this=0xa32b008) at
/home/guenni/tmp/kde4/graphics/digikam/imageplugins/freerotation/freerotation.cpp:103
#19 0xb7110ec3 in Digikam::DImgThreadedFilter::startFilterDirectly
(this=0xa32b008) at
/home/guenni/tmp/kde4/graphics/digikam/libs/dimg/filters/dimgthreadedfilter.cpp:139
#20 0xb710fb9c in Digikam::DImgThreadedFilter::run (this=0xa32b008) at
/home/guenni/tmp/kde4/graphics/digikam/libs/dimg/filters/dimgthreadedfilter.cpp:152
#21 0xb56e585e in ?? () from /usr/lib/libQtCore.so.4
#22 0xb56531b5 in start_thread () from /lib/libpthread.so.0
#23 0xb549538e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb44d8700 (LWP 27618)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5656f62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0xb56e5269 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb56e539b in QThread::msleep(unsigned long) () from
/usr/lib/libQtCore.so.4
#4  0xb119d96c in ?? () from
/usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#5  0xb7eff712 in ?? () from /usr/lib/libphonon.so.4
#6  0xb7efe555 in ?? () from /usr/lib/libphonon.so.4
#7  0xb7efbe8b in ?? () from /usr/lib/libphonon.so.4
#8  0xb53f19b1 in exit () from /lib/libc.so.6
#9  0xb5cf0e1b in ?? () from /usr/lib/libQtGui.so.4
#10 0xb67a579a in KApplication::xioErrhandler(_XDisplay*) () from
/usr/lib/libkdeui.so.5
#11 0xb67a57d6 in ?? () from /usr/lib/libkdeui.so.5
#12 0xb51ff3c2 in _XIOError () from /usr/lib/libX11.so.6
#13 0xb52073a5 in ?? () from /usr/lib/libX11.so.6
#14 0xb5207bc5 in _XEventsQueued () from /usr/lib/libX11.so.6
#15 0xb51efb3f in XEventsQueued () from /usr/lib/libX11.so.6
#16 0xb5d2998d in ?? () from /usr/lib/libQtGui.so.4
#17 0xb4ebba1e in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#18 0xb4ebc30d in ?? () from /usr/lib/libglib-2.0.so.0
#19 0xb4ebc598 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#20 0xb57fffb8 in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/libQtCore.so.4
#21 0xb5d297c5 in ?? () from /usr/lib/libQtGui.so.4
#22 0xb57d401a in
QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from
/usr/lib/libQtCore.so.4
#23 0xb57d41da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/libQtCore.so.4
#24 0xb57d6895 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#25 0xb5c90777 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#26 0x0834f281 in main (argc=1, argv=0xbfc7a4e4) at
/home/guenni/tmp/kde4/graphics/digikam/digikam/main.cpp:182
Comment 10 Andi Clemens 2009-04-24 20:04:07 UTC
Again it seems to crash during a new() operator call. This could mean you have run out of memory.
Is the image you are rotating a very "private" one?
If not, can you pack it and put it on rapidshare or something like that?
I'd like to test it but I don't have such a big TIF16 file.

My system has only 2GB RAM, so the crash should also happen if it is a memory issue.

Andi
Comment 11 Guenther M. Erhard 2009-04-27 19:21:32 UTC
Sorry for replying so late - was busy the last weeks...

> A simpler (but also an imprecise) way is to use (h)top:
> ...
> 
Yes it is increasing, but it not very much!

Rotating different files (that is also my use case):
====================================================
Digikam (Version 0.11.0-svn (rev.: 955848)) without editor started: 477 MB
Loaded in editor before rotating: 826 MB
after 1st rotation: 843 MB
2nd file: 866 MB
3rd file: 889 MB
4th file: 913 MB
after closing that file (i.e. also the image editor): 789 MB
Starting the editor again: 968 MB

During the rotation process the memory footprint is about 150 MB larger, but in any case there is over 2,5 GB free memory available on my system.

HTH
Guenther
Comment 12 Andi Clemens 2009-04-27 19:26:54 UTC
This looks normal, so I guess no memory leak is causing this problem.
Hmmm...
Comment 13 Guenther M. Erhard 2009-04-27 19:29:06 UTC
> Is the image you are rotating a very "private" one?
>
No, these are professional scans of my 35mm color slides (48bit TIFF, 4000dpi)

> If not, can you pack it and put it on rapidshare or something like that?
> I'd like to test it but I don't have such a big TIF16 file.
> 
No problem. I have one uploaded to rapidshare (21,5Mpx, 123MB):
http://rapidshare.com/files/226403070/Bild_M4b_054.tiff.html

My use case is:
- Start digikam
- load file into editor
- rotate the file by -0,x degrees, because the slides are normally not aligned
- crop the picture
- do some adjustment to color etc.
- save it under a new name
- load next picture
- ...

Guenther
Comment 14 Andi Clemens 2009-04-27 20:00:03 UTC
I have an idea (because it happened to me right now):
Maybe you are running out of disk space on the /var partition?
If you are using Linux of course...
digiKam image editor (and showFoto) will save the undo-steps in a tmp folder, that is in my case /var/tmp/kde-andi/showfoto.
If this cache runs full, showfoto crashes here. Maybe this is the problem. Memory footprint seems to be ok, I never ran out of memory on my 2GB RAM. And as I tested your image, I also had a virtual machine running so actually I have only 1.2GB RAM free.
I will investigate further, because actually this shouldn't crash when disk is full. Maybe I need to do more rotation steps...

Andi
Comment 15 Guenther M. Erhard 2009-04-27 20:08:00 UTC
> Maybe you are running out of disk space on the /var partition?
> If you are using Linux of course...
> 
Yes of course Linux! I have OpenSuse 11.1 with KDE4.2.2 installed (but using KDE3.5.10 as my desktop).

I have /var on a separate partition with over 18G free space, so I don't think is the root cause.

Guenther
Comment 16 Andi Clemens 2009-05-30 22:51:03 UTC
Hm I tried this again with your example image, I can not find a problem here.

Guenther, is it ok for you that I upload your image to our digikam image repository? So that other devs can test this, too?

Andi
Comment 17 Marcel Wiesweg 2009-06-29 20:11:27 UTC
SVN commit 989198 by mwiesweg:

There are a few strategic places where a chunk memory is allocated the size of which was read
from an image file. By trying to load a very big image or an image with a corrupt header
the allocation may fail, leading to std::bad_alloc thrown and abort() called.
Wrap these allocations in try { } catch (std::bad_alloc) in the hope of converting
such crashes into mere failures.

CCBUG: 188334, 190593, 197254

 M  +6 -1      dimg.cpp  
 M  +20 -0     loaders/dimgloader.cpp  
 M  +3 -0      loaders/dimgloader.h  
 M  +2 -2      loaders/jp2kloader.cpp  
 M  +2 -2      loaders/jpegloader.cpp  
 M  +12 -0     loaders/pgfloader.cpp  
 M  +4 -3      loaders/pngloader.cpp  
 M  +8 -1      loaders/ppmloader.cpp  
 M  +6 -1      loaders/qimageloader.cpp  
 M  +13 -2     loaders/rawloader.cpp  
 M  +12 -16    loaders/tiffloader.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=989198
Comment 18 Guenther M. Erhard 2009-07-21 21:55:48 UTC
Hi,

It happened again with build 1.0.0-beta3 (rev.: 1000076)
Using KDE 4.2.4 (KDE 4.2.4) "release 2".

I did the usual procedure:
- load the large picture
- assigned the AdobeRGB profile
- selected free rotation
- selected the correct degree of rotation
- pressed o.k. to start the rotation -> crash

This was at the sixth picture I was editing. The first five caused no problems.

Here is the crash log:

Anwendung: digiKam (digikam), Signal SIGSEGV
[?1034h[Thread debugging using libthread_db enabled]
[Current thread is 1 (Thread 0xb4426700 (LWP 16149))]

Thread 18 (Thread 0xb2e5db90 (LWP 16431)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5526c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb55b7872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0x08353929 in Digikam::ScanController::run (this=0x85618c8) at /home/guenni/tmp/kde4/graphics/digikam/digikam/scancontroller.cpp:483
#4  0xb55b685e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb55231b5 in start_thread () from /lib/libpthread.so.0
#6  0xb536638e in clone () from /lib/libc.so.6

Thread 17 (Thread 0xb1a62b90 (LWP 17079)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb535c677 in poll () from /lib/libc.so.6
#2  0xb4db09fb in g_poll () from /usr/lib/libglib-2.0.so.0
#3  0xb4da331d in ?? () from /usr/lib/libglib-2.0.so.0
#4  0xb4da35d8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#5  0xb56d0fd7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb56a501a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0xb56a51da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0xb55b3559 in QThread::exec() () from /usr/lib/libQtCore.so.4
#9  0xb6e96e47 in Digikam::ImageFilterModelWorker::Thread::run (this=0x860e908) at /home/guenni/tmp/kde4/graphics/digikam/libs/models/imagefiltermodelthreads.h:66
#10 0xb55b685e in ?? () from /usr/lib/libQtCore.so.4
#11 0xb55231b5 in start_thread () from /lib/libpthread.so.0
#12 0xb536638e in clone () from /lib/libc.so.6

Thread 16 (Thread 0xb2263b90 (LWP 17080)):
#0  0xb4e2f3da in clock_gettime () from /lib/librt.so.1
#1  0xb56d2beb in ?? () from /usr/lib/libQtCore.so.4
#2  0xb56d2dc1 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb56d45bc in ?? () from /usr/lib/libQtCore.so.4
#4  0xb56d1198 in ?? () from /usr/lib/libQtCore.so.4
#5  0xb4da2d60 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#6  0xb4da3124 in ?? () from /usr/lib/libglib-2.0.so.0
#7  0xb4da35d8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#8  0xb56d0fd7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#9  0xb56a501a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#10 0xb56a51da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#11 0xb55b3559 in QThread::exec() () from /usr/lib/libQtCore.so.4
#12 0xb6e96e47 in Digikam::ImageFilterModelWorker::Thread::run (this=0x8650a78) at /home/guenni/tmp/kde4/graphics/digikam/libs/models/imagefiltermodelthreads.h:66
#13 0xb55b685e in ?? () from /usr/lib/libQtCore.so.4
#14 0xb55231b5 in start_thread () from /lib/libpthread.so.0
#15 0xb536638e in clone () from /lib/libc.so.6

Thread 15 (Thread 0xb10ccb90 (LWP 17087)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5526c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb55b7872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb70cfa5d in Digikam::LoadSaveThread::run (this=0x8662cd0) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0xb55b685e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb55231b5 in start_thread () from /lib/libpthread.so.0
#6  0xb536638e in clone () from /lib/libc.so.6

Thread 14 (Thread 0xb08cbb90 (LWP 17088)):
#0  0xb55245ac in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0xb4da32bc in ?? () from /usr/lib/libglib-2.0.so.0
#2  0xb4da35d8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0xb56d0fd7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0xb56a501a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0xb56a51da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb55b3559 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x0834874d in Digikam::MetadataManagerWorker::Thread::run (this=0x860fe08) at /home/guenni/tmp/kde4/graphics/build/digikam/digikam/../../../digikam/digikam/metadatamanager_p.h:145
#8  0xb55b685e in ?? () from /usr/lib/libQtCore.so.4
#9  0xb55231b5 in start_thread () from /lib/libpthread.so.0
#10 0xb536638e in clone () from /lib/libc.so.6

Thread 13 (Thread 0xb00cab90 (LWP 17089)):
#0  0xb56d0bc1 in ?? () from /usr/lib/libQtCore.so.4
#1  0xb4da2d60 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#2  0xb4da3124 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0xb4da35d8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0xb56d0fd7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0xb56a501a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb56a51da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0xb55b3559 in QThread::exec() () from /usr/lib/libQtCore.so.4
#8  0x0834874d in Digikam::MetadataManagerWorker::Thread::run (this=0x8648e38) at /home/guenni/tmp/kde4/graphics/build/digikam/digikam/../../../digikam/digikam/metadatamanager_p.h:145
#9  0xb55b685e in ?? () from /usr/lib/libQtCore.so.4
#10 0xb55231b5 in start_thread () from /lib/libpthread.so.0
#11 0xb536638e in clone () from /lib/libc.so.6

Thread 12 (Thread 0xaf8c9b90 (LWP 17093)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5526c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb55b7872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb70cfa5d in Digikam::LoadSaveThread::run (this=0x85fc800) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0xb55b685e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb55231b5 in start_thread () from /lib/libpthread.so.0
#6  0xb536638e in clone () from /lib/libc.so.6

Thread 11 (Thread 0xac933b90 (LWP 17112)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5526f62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xad975721 in ?? () from /usr/lib/libxine.so.1
#3  0xb55231b5 in start_thread () from /lib/libpthread.so.0
#4  0xb536638e in clone () from /lib/libc.so.6

Thread 10 (Thread 0xabc5cb90 (LWP 17113)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5526f62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xad98417e in ?? () from /usr/lib/libxine.so.1
#3  0xb55231b5 in start_thread () from /lib/libpthread.so.0
#4  0xb536638e in clone () from /lib/libc.so.6

Thread 9 (Thread 0xab45bb90 (LWP 17114)):
#0  0xb55260a0 in pthread_mutex_unlock () from /lib/libpthread.so.0
#1  0xb4da18ec in g_main_context_acquire () from /usr/lib/libglib-2.0.so.0
#2  0xb4da304c in ?? () from /usr/lib/libglib-2.0.so.0
#3  0xb4da35d8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0xb56d0fd7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0xb56a501a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb56a51da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0xb55b3559 in QThread::exec() () from /usr/lib/libQtCore.so.4
#8  0xad9cb8f9 in ?? () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#9  0xb55b685e in ?? () from /usr/lib/libQtCore.so.4
#10 0xb55231b5 in start_thread () from /lib/libpthread.so.0
#11 0xb536638e in clone () from /lib/libc.so.6

Thread 8 (Thread 0xaac06b90 (LWP 17180)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5529bbb in read () from /lib/libpthread.so.0
#2  0xadc93992 in ?? () from /usr/lib/libasound.so.2
#3  0xadc90edd in snd_ctl_read () from /usr/lib/libasound.so.2
#4  0xadc8d28f in snd_hctl_handle_events () from /usr/lib/libasound.so.2
#5  0xadc99401 in snd_mixer_handle_events () from /usr/lib/libasound.so.2
#6  0xac118051 in ?? () from /usr/lib/xine/plugins/1.26/xineplug_ao_out_alsa.so
#7  0xb55231b5 in start_thread () from /lib/libpthread.so.0
#8  0xb536638e in clone () from /lib/libc.so.6

Thread 7 (Thread 0xaa405b90 (LWP 17181)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5526c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xad987f33 in ?? () from /usr/lib/libxine.so.1
#3  0xb55231b5 in start_thread () from /lib/libpthread.so.0
#4  0xb536638e in clone () from /lib/libc.so.6

Thread 6 (Thread 0xa8afbb90 (LWP 19677)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5526c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb55b7872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb70cfa5d in Digikam::LoadSaveThread::run (this=0x9d08d88) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0xb55b685e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb55231b5 in start_thread () from /lib/libpthread.so.0
#6  0xb536638e in clone () from /lib/libc.so.6

Thread 5 (Thread 0xa6effb90 (LWP 19678)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5526c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb55b7872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb70cfa5d in Digikam::LoadSaveThread::run (this=0x9d08bd8) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0xb55b685e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb55231b5 in start_thread () from /lib/libpthread.so.0
#6  0xb536638e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xa9ba3b90 (LWP 24107)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5526c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb55b7872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb70cfa5d in Digikam::LoadSaveThread::run (this=0x9c64d38) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0xb55b685e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb55231b5 in start_thread () from /lib/libpthread.so.0
#6  0xb536638e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xa3affb90 (LWP 12864)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5526c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb55b7872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb70cfa5d in Digikam::LoadSaveThread::run (this=0x9a91348) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0xb55b685e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb55231b5 in start_thread () from /lib/libpthread.so.0
#6  0xb536638e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xa32feb90 (LWP 29317)):
[KCrash Handler]
#6  0xb6fd8be9 in Digikam::DImg::fill (this=0x9e37130, color=@0xa32fe1e0) at /home/guenni/tmp/kde4/graphics/digikam/libs/dimg/dimg.cpp:2044
#7  0xa55b5d20 in DigikamFreeRotationImagesPlugin::FreeRotation::filterImage (this=0x9e37110) at /home/guenni/tmp/kde4/graphics/digikam/imageplugins/freerotation/freerotation.cpp:153
#8  0xb702f889 in Digikam::DImgThreadedFilter::startFilterDirectly (this=0x9e37110) at /home/guenni/tmp/kde4/graphics/digikam/libs/dimg/filters/dimgthreadedfilter.cpp:139
#9  0xb702e574 in Digikam::DImgThreadedFilter::run (this=0x9e37110) at /home/guenni/tmp/kde4/graphics/digikam/libs/dimg/filters/dimgthreadedfilter.cpp:152
#10 0xb55b685e in ?? () from /usr/lib/libQtCore.so.4
#11 0xb55231b5 in start_thread () from /lib/libpthread.so.0
#12 0xb536638e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb4426700 (LWP 16149)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5526f62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb55b6269 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb55b639b in QThread::msleep(unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xad9e596c in ?? () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#5  0xb7e8e712 in ?? () from /usr/lib/libphonon.so.4
#6  0xb7e8d555 in ?? () from /usr/lib/libphonon.so.4
#7  0xb7e8ae8b in ?? () from /usr/lib/libphonon.so.4
#8  0xb52c29b1 in exit () from /lib/libc.so.6
#9  0xb5bbee1b in ?? () from /usr/lib/libQtGui.so.4
#10 0xb6674a2a in KApplication::xioErrhandler(_XDisplay*) () from /usr/lib/libkdeui.so.5
#11 0xb6674a66 in ?? () from /usr/lib/libkdeui.so.5
#12 0xb50d93c2 in _XIOError () from /usr/lib/libX11.so.6
#13 0xb50e1ab0 in _XSend () from /usr/lib/libX11.so.6
#14 0xb50e1c00 in _XEventsQueued () from /usr/lib/libX11.so.6
#15 0xb50c9b3f in XEventsQueued () from /usr/lib/libX11.so.6
#16 0xb5bf7fea in ?? () from /usr/lib/libQtGui.so.4
#17 0xb4d9fe28 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#18 0xb4da3453 in ?? () from /usr/lib/libglib-2.0.so.0
#19 0xb4da35d8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#20 0xb56d0fb8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#21 0xb5bf77c5 in ?? () from /usr/lib/libQtGui.so.4
#22 0xb56a501a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#23 0xb56a51da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#24 0xb5f37ad1 in QMenu::exec(QPoint const&, QAction*) () from /usr/lib/libQtGui.so.4
#25 0xb678a965 in KToolBar::contextMenuEvent(QContextMenuEvent*) () from /usr/lib/libkdeui.so.5
#26 0xb5bb6d7d in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#27 0xb5f7530f in QToolBar::event(QEvent*) () from /usr/lib/libQtGui.so.4
#28 0xb5b5e8fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#29 0xb5b66c85 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#30 0xb667507d in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#31 0xb56a6961 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#32 0xb5b6989e in QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#33 0xb5bd0f3f in ?? () from /usr/lib/libQtGui.so.4
#34 0xb5bcfb05 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#35 0xb5bf80ca in ?? () from /usr/lib/libQtGui.so.4
#36 0xb4d9fe28 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#37 0xb4da3453 in ?? () from /usr/lib/libglib-2.0.so.0
#38 0xb4da35d8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#39 0xb56d0fb8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#40 0xb5bf77c5 in ?? () from /usr/lib/libQtGui.so.4
#41 0xb56a501a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#42 0xb56a51da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#43 0xb56a7895 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#44 0xb5b5e777 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#45 0x083d4385 in main (argc=5, argv=0xbfc07304) at /home/guenni/tmp/kde4/graphics/digikam/digikam/main.cpp:184
Comment 19 Marcel Wiesweg 2009-07-22 20:32:24 UTC
The backtrace is different. It doesn't crash in the allocation :-)
The allocation fails and gives a null image. DImg::fill crashes on a null image, all right.
We may, step by step, get rid of the crashes.
There is still something eating up memory.
Comment 20 Marcel Wiesweg 2009-07-22 23:13:40 UTC
SVN commit 1001306 by mwiesweg:

Add check for isNull() to prevent crash if called with null image

CCBUG: 188334

 M  +3 -0      dimg.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1001306
Comment 21 Guenther M. Erhard 2009-07-28 22:36:11 UTC
It happened again ...
Newest compile from svn: Version 1.0.0-beta4 (rev.: 1003769) Using KDE 4.2.4 (KDE 4.2.4) "release 2".

This is what I got on the console:
==================================
digikam(20554)/digikam (core) Digikam::DImg::load: "/home/ablage/Grafiken/Original Dia Scans/Barcelona_2006/Bild_M2b_047.tif"  : TIFF file identified
digikam(20554)/digikam (core) Digikam::DImg::load: "/home/ablage/Grafiken/Original Dia Scans/Barcelona_2006/Bild_M2b_047.tif"  : TIFF file identified
digikam(20554)/digikam (core) Digikam::DImgInterface::slotImageLoaded: Embedded profile:  "Nikon Adobe RGB 4.0.0.3000"
digikam(20554)/digikam (core) Digikam::DImgInterface::slotImageLoaded: dimginterface.cpp: Apply pressed
digikam(20554)/digikam (core) Digikam::EditorToolThreaded::slotEffect: Preview  "Free Rotation"  started...
digikam(20554)/digikam (core) Digikam::EditorToolThreaded::slotFilterFinished: Preview  "Free Rotation"  completed...
digikam(20554)/digikam (core) Digikam::EditorToolThreaded::slotOk: Final  "Free Rotation"  started...
KCrash: Application 'digikam' crashing...
sock_file=/home/guenni/.kde4/socket-ratte/kdeinit4__0
digikam: Fatal IO error: client killed

And this is the crash log:
==========================
Anwendung: digiKam (digikam), Signal SIGSEGV
[?1034h[Thread debugging using libthread_db enabled]
[Current thread is 1 (Thread 0xb459d700 (LWP 20554))]

Thread 17 (Thread 0xb2fd4b90 (LWP 20556)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb55b5c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5646872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0x08358929 in Digikam::ScanController::run (this=0x85c3720) at /home/guenni/tmp/kde4/graphics/digikam/digikam/scancontroller.cpp:483
#4  0xb564585e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb55b21b5 in start_thread () from /lib/libpthread.so.0
#6  0xb53f538e in clone () from /lib/libc.so.6

Thread 16 (Thread 0xb1ac9b90 (LWP 20560)):
#0  0xb4eb13da in clock_gettime () from /lib/librt.so.1
#1  0xb5761beb in ?? () from /usr/lib/libQtCore.so.4
#2  0xb5761dc1 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb57635bc in ?? () from /usr/lib/libQtCore.so.4
#4  0xb5760198 in ?? () from /usr/lib/libQtCore.so.4
#5  0xb4e24d60 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#6  0xb4e25124 in ?? () from /usr/lib/libglib-2.0.so.0
#7  0xb4e255d8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#8  0xb575ffd7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#9  0xb573401a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#10 0xb57341da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#11 0xb5642559 in QThread::exec() () from /usr/lib/libQtCore.so.4
#12 0xb6f2688d in Digikam::ImageFilterModelWorker::Thread::run (this=0x873cbc0) at /home/guenni/tmp/kde4/graphics/digikam/libs/models/imagefiltermodelthreads.h:66
#13 0xb564585e in ?? () from /usr/lib/libQtCore.so.4
#14 0xb55b21b5 in start_thread () from /lib/libpthread.so.0
#15 0xb53f538e in clone () from /lib/libc.so.6

Thread 15 (Thread 0xb22cab90 (LWP 20561)):
#0  0xb4eb13da in clock_gettime () from /lib/librt.so.1
#1  0xb5761beb in ?? () from /usr/lib/libQtCore.so.4
#2  0xb5761dc1 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb57635bc in ?? () from /usr/lib/libQtCore.so.4
#4  0xb5760198 in ?? () from /usr/lib/libQtCore.so.4
#5  0xb4e24d60 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#6  0xb4e25124 in ?? () from /usr/lib/libglib-2.0.so.0
#7  0xb4e255d8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#8  0xb575ffd7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#9  0xb573401a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#10 0xb57341da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#11 0xb5642559 in QThread::exec() () from /usr/lib/libQtCore.so.4
#12 0xb6f2688d in Digikam::ImageFilterModelWorker::Thread::run (this=0x865ee18) at /home/guenni/tmp/kde4/graphics/digikam/libs/models/imagefiltermodelthreads.h:66
#13 0xb564585e in ?? () from /usr/lib/libQtCore.so.4
#14 0xb55b21b5 in start_thread () from /lib/libpthread.so.0
#15 0xb53f538e in clone () from /lib/libc.so.6

Thread 14 (Thread 0xb0effb90 (LWP 20562)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb55b5c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5646872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb7161789 in Digikam::LoadSaveThread::run (this=0x863b458) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0xb564585e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb55b21b5 in start_thread () from /lib/libpthread.so.0
#6  0xb53f538e in clone () from /lib/libc.so.6

Thread 13 (Thread 0xb06feb90 (LWP 20563)):
#0  0xb4eb13da in clock_gettime () from /lib/librt.so.1
#1  0xb5761beb in ?? () from /usr/lib/libQtCore.so.4
#2  0xb5761dc1 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb57635bc in ?? () from /usr/lib/libQtCore.so.4
#4  0xb5760198 in ?? () from /usr/lib/libQtCore.so.4
#5  0xb4e24d60 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#6  0xb4e25124 in ?? () from /usr/lib/libglib-2.0.so.0
#7  0xb4e255d8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#8  0xb575ffd7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#9  0xb573401a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#10 0xb57341da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#11 0xb5642559 in QThread::exec() () from /usr/lib/libQtCore.so.4
#12 0x0834d77d in Digikam::MetadataManagerWorker::Thread::run (this=0x86683a0) at /home/guenni/tmp/kde4/graphics/build/digikam/digikam/../../../digikam/digikam/metadatamanager_p.h:145
#13 0xb564585e in ?? () from /usr/lib/libQtCore.so.4
#14 0xb55b21b5 in start_thread () from /lib/libpthread.so.0
#15 0xb53f538e in clone () from /lib/libc.so.6

Thread 12 (Thread 0xafefdb90 (LWP 20564)):
#0  0xb4eb13da in clock_gettime () from /lib/librt.so.1
#1  0xb5761beb in ?? () from /usr/lib/libQtCore.so.4
#2  0xb5761dc1 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb57635bc in ?? () from /usr/lib/libQtCore.so.4
#4  0xb5760198 in ?? () from /usr/lib/libQtCore.so.4
#5  0xb4e24d60 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#6  0xb4e25124 in ?? () from /usr/lib/libglib-2.0.so.0
#7  0xb4e255d8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#8  0xb575ffd7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#9  0xb573401a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#10 0xb57341da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#11 0xb5642559 in QThread::exec() () from /usr/lib/libQtCore.so.4
#12 0x0834d77d in Digikam::MetadataManagerWorker::Thread::run (this=0x8657178) at /home/guenni/tmp/kde4/graphics/build/digikam/digikam/../../../digikam/digikam/metadatamanager_p.h:145
#13 0xb564585e in ?? () from /usr/lib/libQtCore.so.4
#14 0xb55b21b5 in start_thread () from /lib/libpthread.so.0
#15 0xb53f538e in clone () from /lib/libc.so.6

Thread 11 (Thread 0xaf6fcb90 (LWP 20565)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb55b5c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5646872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb7161789 in Digikam::LoadSaveThread::run (this=0x86ce7d8) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0xb564585e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb55b21b5 in start_thread () from /lib/libpthread.so.0
#6  0xb53f538e in clone () from /lib/libc.so.6

Thread 10 (Thread 0xac8a1b90 (LWP 20566)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb55b5f62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xad87a721 in ?? () from /usr/lib/libxine.so.1
#3  0xb55b21b5 in start_thread () from /lib/libpthread.so.0
#4  0xb53f538e in clone () from /lib/libc.so.6

Thread 9 (Thread 0xabbd6b90 (LWP 20567)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb55b5f62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xad88917e in ?? () from /usr/lib/libxine.so.1
#3  0xb55b21b5 in start_thread () from /lib/libpthread.so.0
#4  0xb53f538e in clone () from /lib/libc.so.6

Thread 8 (Thread 0xab3d5b90 (LWP 20568)):
#0  0xb4eb13da in clock_gettime () from /lib/librt.so.1
#1  0xb5761beb in ?? () from /usr/lib/libQtCore.so.4
#2  0xb5761dc1 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb57635bc in ?? () from /usr/lib/libQtCore.so.4
#4  0xb5760198 in ?? () from /usr/lib/libQtCore.so.4
#5  0xb4e24d60 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#6  0xb4e25124 in ?? () from /usr/lib/libglib-2.0.so.0
#7  0xb4e255d8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#8  0xb575ffd7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#9  0xb573401a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#10 0xb57341da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#11 0xb5642559 in QThread::exec() () from /usr/lib/libQtCore.so.4
#12 0xad8d08f9 in ?? () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#13 0xb564585e in ?? () from /usr/lib/libQtCore.so.4
#14 0xb55b21b5 in start_thread () from /lib/libpthread.so.0
#15 0xb53f538e in clone () from /lib/libc.so.6

Thread 7 (Thread 0xaab80b90 (LWP 20571)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb55b8bbb in read () from /lib/libpthread.so.0
#2  0xb1060992 in ?? () from /usr/lib/libasound.so.2
#3  0xb105dedd in snd_ctl_read () from /usr/lib/libasound.so.2
#4  0xb105a28f in snd_hctl_handle_events () from /usr/lib/libasound.so.2
#5  0xb1066401 in snd_mixer_handle_events () from /usr/lib/libasound.so.2
#6  0xac082051 in ?? () from /usr/lib/xine/plugins/1.26/xineplug_ao_out_alsa.so
#7  0xb55b21b5 in start_thread () from /lib/libpthread.so.0
#8  0xb53f538e in clone () from /lib/libc.so.6

Thread 6 (Thread 0xaa37fb90 (LWP 20572)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb55b5c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xad88cf33 in ?? () from /usr/lib/libxine.so.1
#3  0xb55b21b5 in start_thread () from /lib/libpthread.so.0
#4  0xb53f538e in clone () from /lib/libc.so.6

Thread 5 (Thread 0xa9b55b90 (LWP 20587)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb55b5c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5646872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb7161789 in Digikam::LoadSaveThread::run (this=0x923ef58) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0xb564585e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb55b21b5 in start_thread () from /lib/libpthread.so.0
#6  0xb53f538e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xa92fdb90 (LWP 20627)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb55b5c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5646872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb7161789 in Digikam::LoadSaveThread::run (this=0x9cf91b8) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0xb564585e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb55b21b5 in start_thread () from /lib/libpthread.so.0
#6  0xb53f538e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xa70fdb90 (LWP 20655)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb55b5c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5646872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb7161789 in Digikam::LoadSaveThread::run (this=0x9f5c9b8) at /home/guenni/tmp/kde4/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0xb564585e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb55b21b5 in start_thread () from /lib/libpthread.so.0
#6  0xb53f538e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xa78feb90 (LWP 21348)):
[KCrash Handler]
#6  0xa560f06d in DigikamFreeRotationImagesPlugin::FreeRotation::filterImage (this=0xb670198) at /home/guenni/tmp/kde4/graphics/digikam/imageplugins/freerotation/freerotation.cpp:197
#7  0xb70c15b5 in Digikam::DImgThreadedFilter::startFilterDirectly (this=0xb670198) at /home/guenni/tmp/kde4/graphics/digikam/libs/dimg/filters/dimgthreadedfilter.cpp:139
#8  0xb70c02a0 in Digikam::DImgThreadedFilter::run (this=0xb670198) at /home/guenni/tmp/kde4/graphics/digikam/libs/dimg/filters/dimgthreadedfilter.cpp:152
#9  0xb564585e in ?? () from /usr/lib/libQtCore.so.4
#10 0xb55b21b5 in start_thread () from /lib/libpthread.so.0
#11 0xb53f538e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb459d700 (LWP 20554)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb53ee3e1 in select () from /lib/libc.so.6
#2  0xb49482c5 in ?? () from /usr/lib/libxcb.so.1
#3  0xb4949c9a in xcb_wait_for_reply () from /usr/lib/libxcb.so.1
#4  0xb51705d1 in _XReply () from /usr/lib/libX11.so.6
#5  0xb514c749 in XGetImage () from /usr/lib/libX11.so.6
#6  0xb5cc011f in ?? () from /usr/lib/libQtGui.so.4
#7  0xb5cb351b in QPixmap::toImage() const () from /usr/lib/libQtGui.so.4
#8  0xb5e881ea in QCommonStyle::generatedIconPixmap(QIcon::Mode, QPixmap const&, QStyleOption const*) const () from /usr/lib/libQtGui.so.4
#9  0xb6710d9e in KStyle::generatedIconPixmap(QIcon::Mode, QPixmap const&, QStyleOption const*) const () from /usr/lib/libkdeui.so.5
#10 0xb5f80886 in QLabel::paintEvent(QPaintEvent*) () from /usr/lib/libQtGui.so.4
#11 0xb5c4585b in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#12 0xb5f7bb03 in QFrame::event(QEvent*) () from /usr/lib/libQtGui.so.4
#13 0xb5f810a9 in QLabel::event(QEvent*) () from /usr/lib/libQtGui.so.4
#14 0xb5bed8fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#15 0xb5bf582a in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#16 0xb670407d in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#17 0xb5735961 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#18 0xb5c4e4ce in ?? () from /usr/lib/libQtGui.so.4
#19 0xb5c44220 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#20 0xb5c449cd in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#21 0xb5c448d9 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#22 0xb5c43e98 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#23 0xb5c449cd in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#24 0xb5c448d9 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#25 0xb5c43e98 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#26 0xb5c449cd in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#27 0xb5c448d9 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#28 0xb5c448d9 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#29 0xb5c43e98 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#30 0xb5c449cd in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#31 0xb5c43e98 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#32 0xb5c449cd in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#33 0xb5c43e98 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#34 0xb5c449cd in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#35 0xb5c43e98 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#36 0xb5c449cd in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#37 0xb5c448d9 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#38 0xb5c448d9 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#39 0xb5c43e98 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#40 0xb5c449cd in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#41 0xb5c43e98 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#42 0xb5c449cd in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#43 0xb5c43e98 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#44 0xb5c449cd in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#45 0xb5c43e98 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#46 0xb5c449cd in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#47 0xb5c43e98 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#48 0xb5c449cd in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#49 0xb5c43e98 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#50 0xb5c449cd in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#51 0xb5c448d9 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#52 0xb5c43e98 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*) () from /usr/lib/libQtGui.so.4
#53 0xb5db26ee in ?? () from /usr/lib/libQtGui.so.4
#54 0xb5db2be7 in ?? () from /usr/lib/libQtGui.so.4
#55 0xb5c45686 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#56 0xb5f97ff7 in QMainWindow::event(QEvent*) () from /usr/lib/libQtGui.so.4
#57 0xb67df917 in KMainWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#58 0xb682430c in KXmlGuiWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#59 0xb5bed8fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#60 0xb5bf582a in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#61 0xb670407d in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#62 0xb5735961 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#63 0xb57365d5 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#64 0xb57367cd in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
#65 0xb576036f in ?? () from /usr/lib/libQtCore.so.4
#66 0xb4e21e28 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#67 0xb4e25453 in ?? () from /usr/lib/libglib-2.0.so.0
#68 0xb4e255d8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#69 0xb575ffb8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#70 0xb5c867c5 in ?? () from /usr/lib/libQtGui.so.4
#71 0xb573401a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#72 0xb57341da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#73 0xb5736895 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#74 0xb5bed777 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#75 0x083d93b9 in main (argc=1, argv=0xbfcb9e34) at /home/guenni/tmp/kde4/graphics/digikam/digikam/main.cpp:186

Regards,
Guenther
Comment 22 Marcel Wiesweg 2009-07-30 15:53:41 UTC
SVN commit 1004570 by mwiesweg:

Test for a null image here.
This is only a workaround. Rotation will not crash (or only at the next point), but fail.
The problem is still that memory allocation fails.

CCBUG: 188334

 M  +4 -0      freerotation.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1004570
Comment 23 Marcel Wiesweg 2009-10-29 17:40:17 UTC
Closing report now. Feel free to reopen when "it happened again".