Bug 207330 - digikamm crashes if the editor has to open a new image while working on another
Summary: digikamm crashes if the editor has to open a new image while working on another
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Editor-Sharpen (show other bugs)
Version: 1.0.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-14 11:11 UTC by S. Burmeister
Modified: 2017-08-08 09:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 1.0.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description S. Burmeister 2009-09-14 11:11:13 UTC
Version:           svn Rev: 1023189 (using KDE 4.3.1)
OS:                Linux
Installed from:    SuSE RPMs

To reproduce:

1. Open a large file, in my case a PNG with ~30MB in the editor and pick sharpen > refocus to work on it.
2. Start the sharpening tool, this will take some time.
3. While the editor is still working, go back to digikam and open another PNG in the editor, i.e. "edit", digikam will crash:

Application: digiKam (digikam), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fa355612750 (LWP 6204))]

Thread 23 (Thread 0x7fa340d67950 (LWP 6242)):
#0  0x00007fa34ec32d59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa34eea3e19 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x000000000075fa46 in Digikam::ScanController::run (this=0xdcc610) at /home/kde-branch/kde/src/digikam/digikam/scancontroller.cpp:499
#3  0x00007fa34eea2e65 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#5  0x00007fa34e22810d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 22 (Thread 0x7fa33b7fe950 (LWP 6317)):
#0  0x00007fa34e21f386 in poll () from /lib64/libc.so.6
#1  0x00007fa34b810768 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fa34b810a8b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fa34efb5d5e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#4  0x00007fa34ef8b1d2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#5  0x00007fa34ef8b5a4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x00007fa34ee9fed8 in QThread::exec() () from /usr/lib64/libQtCore.so.4
#7  0x00007fa3523d4e09 in Digikam::ImageFilterModelWorker::Thread::run (this=0xe22840) at /home/kde-branch/kde/src/digikam/libs/models/imagefiltermodelthreads.h:66
#8  0x00007fa34eea2e65 in ?? () from /usr/lib64/libQtCore.so.4
#9  0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#10 0x00007fa34e22810d in clone () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 21 (Thread 0x7fa33bfff950 (LWP 6318)):
#0  0x00007fa34e21f386 in poll () from /lib64/libc.so.6
#1  0x00007fa34b810768 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fa34b810a8b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fa34efb5d5e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#4  0x00007fa34ef8b1d2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#5  0x00007fa34ef8b5a4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x00007fa34ee9fed8 in QThread::exec() () from /usr/lib64/libQtCore.so.4
#7  0x00007fa3523d4e09 in Digikam::ImageFilterModelWorker::Thread::run (this=0xfbf6b0) at /home/kde-branch/kde/src/digikam/libs/models/imagefiltermodelthreads.h:66
#8  0x00007fa34eea2e65 in ?? () from /usr/lib64/libQtCore.so.4
#9  0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#10 0x00007fa34e22810d in clone () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 20 (Thread 0x7fa33adf3950 (LWP 6322)):
#0  0x00007fa34ec32d59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa34eea3e19 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007fa352874e93 in Digikam::LoadSaveThread::run (this=0xdfd980) at /home/kde-branch/kde/src/digikam/libs/threadimageio/loadsavethread.cpp:136
#3  0x00007fa34eea2e65 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#5  0x00007fa34e22810d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 19 (Thread 0x7fa33a5f2950 (LWP 6323)):
#0  0x00007fff625ff7dc in clock_gettime ()
#1  0x00007fa34ba9c4ed in clock_gettime () from /lib64/librt.so.1
#2  0x00007fa34efb792d in ?? () from /usr/lib64/libQtCore.so.4
#3  0x00007fa34efb7b21 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007fa34efb9503 in ?? () from /usr/lib64/libQtCore.so.4
#5  0x00007fa34efb5f0d in ?? () from /usr/lib64/libQtCore.so.4
#6  0x00007fa34b8101aa in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#7  0x00007fa34b8105ca in ?? () from /usr/lib64/libglib-2.0.so.0
#8  0x00007fa34b810a8b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#9  0x00007fa34efb5d5e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#10 0x00007fa34ef8b1d2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#11 0x00007fa34ef8b5a4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#12 0x00007fa34ee9fed8 in QThread::exec() () from /usr/lib64/libQtCore.so.4
#13 0x00000000007536c7 in Digikam::MetadataManagerWorker::Thread::run (this=0xe7a850) at /home/kde-branch/kde/build/digikam/digikam/../../../src/digikam/digikam/metadatamanager_p.h:145
#14 0x00007fa34eea2e65 in ?? () from /usr/lib64/libQtCore.so.4
#15 0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#16 0x00007fa34e22810d in clone () from /lib64/libc.so.6
#17 0x0000000000000000 in ?? ()

Thread 18 (Thread 0x7fa339df1950 (LWP 6324)):
#0  0x00007fff625ff7dc in clock_gettime ()
#1  0x00007fa34ba9c4ed in clock_gettime () from /lib64/librt.so.1
#2  0x00007fa34efb792d in ?? () from /usr/lib64/libQtCore.so.4
#3  0x00007fa34efb7b21 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007fa34efb9503 in ?? () from /usr/lib64/libQtCore.so.4
#5  0x00007fa34efb5f0d in ?? () from /usr/lib64/libQtCore.so.4
#6  0x00007fa34b8101aa in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#7  0x00007fa34b8105ca in ?? () from /usr/lib64/libglib-2.0.so.0
#8  0x00007fa34b810a8b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#9  0x00007fa34efb5d5e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#10 0x00007fa34ef8b1d2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#11 0x00007fa34ef8b5a4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#12 0x00007fa34ee9fed8 in QThread::exec() () from /usr/lib64/libQtCore.so.4
#13 0x00000000007536c7 in Digikam::MetadataManagerWorker::Thread::run (this=0xe25860) at /home/kde-branch/kde/build/digikam/digikam/../../../src/digikam/digikam/metadatamanager_p.h:145
#14 0x00007fa34eea2e65 in ?? () from /usr/lib64/libQtCore.so.4
#15 0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#16 0x00007fa34e22810d in clone () from /lib64/libc.so.6
#17 0x0000000000000000 in ?? ()

Thread 17 (Thread 0x7fa3395f0950 (LWP 6325)):
#0  0x00007fa34e21af1b in read () from /lib64/libc.so.6
#1  0x00007fa34e1c5569 in _IO_file_seekoff () from /lib64/libc.so.6
#2  0x00007fa34e1c1d46 in fseek () from /lib64/libc.so.6
#3  0x00007fa34bf571d1 in Exiv2::PngImage::readMetadata() () from /usr/lib64/libexiv2.so.5
#4  0x00007fa353d36d42 in KExiv2Iface::KExiv2::load (this=0x7fa3395ef890, filePath=@0x7fa3395efa20) at /home/kde-branch/kde/src/KDE/kdegraphics/libs/libkexiv2/libkexiv2/kexiv2.cpp:265
#5  0x00007fa3527e3f91 in Digikam::DMetadata::load (this=0x7fa3395ef890, filePath=@0x7fa3395efa20) at /home/kde-branch/kde/src/digikam/libs/dmetadata/dmetadata.cpp:80
#6  0x00007fa3527e413e in DMetadata (this=0x7fa3395ef890, filePath=@0x7fa3395efa20) at /home/kde-branch/kde/src/digikam/libs/dmetadata/dmetadata.cpp:68
#7  0x00007fa35288e508 in Digikam::ThumbnailCreator::loadImagePreview (this=0xdb28f0, path=@0x7fa3395efa20) at /home/kde-branch/kde/src/digikam/libs/threadimageio/thumbnailcreator.cpp:382
#8  0x00007fa35288eac4 in Digikam::ThumbnailCreator::createThumbnail (this=0xdb28f0, info=@0x7fa3395efc20) at /home/kde-branch/kde/src/digikam/libs/threadimageio/thumbnailcreator.cpp:279
#9  0x00007fa35288fd47 in Digikam::ThumbnailCreator::load (this=0xdb28f0, path=@0x7fa308c32068) at /home/kde-branch/kde/src/digikam/libs/threadimageio/thumbnailcreator.cpp:195
#10 0x00007fa3528973e1 in Digikam::ThumbnailLoadingTask::execute (this=0x7fa308c32050) at /home/kde-branch/kde/src/digikam/libs/threadimageio/thumbnailtask.cpp:133
#11 0x00007fa352874eeb in Digikam::LoadSaveThread::run (this=0xdb5030) at /home/kde-branch/kde/src/digikam/libs/threadimageio/loadsavethread.cpp:139
#12 0x00007fa34eea2e65 in ?? () from /usr/lib64/libQtCore.so.4
#13 0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#14 0x00007fa34e22810d in clone () from /lib64/libc.so.6
#15 0x0000000000000000 in ?? ()

Thread 16 (Thread 0x7fa330e1c950 (LWP 6371)):
#0  0x00007fa34ec32fdd in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa336ece631 in ?? () from /usr/lib64/libxine.so.1
#2  0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#3  0x00007fa34e22810d in clone () from /lib64/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 15 (Thread 0x7fa32f9df950 (LWP 6377)):
#0  0x00007fa34ec32fdd in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa336edc6a5 in ?? () from /usr/lib64/libxine.so.1
#2  0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#3  0x00007fa34e22810d in clone () from /lib64/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 14 (Thread 0x7fa32f1de950 (LWP 6378)):
#0  0x00007fa34ec305d8 in pthread_mutex_lock () from /lib64/libpthread.so.0
#1  0x00007fa34b80edc9 in g_main_context_acquire () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fa34b810491 in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fa34b810a8b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007fa34efb5d5e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#5  0x00007fa34ef8b1d2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x00007fa34ef8b5a4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#7  0x00007fa34ee9fed8 in QThread::exec() () from /usr/lib64/libQtCore.so.4
#8  0x00007fa337129aa2 in Phonon::Xine::XineThread::run (this=0xe0f930) at /usr/src/debug/phonon-4.3.1/xine/xinethread.cpp:143
#9  0x00007fa34eea2e65 in ?? () from /usr/lib64/libQtCore.so.4
#10 0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#11 0x00007fa34e22810d in clone () from /lib64/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 13 (Thread 0x7fa32e79e950 (LWP 6403)):
#0  0x00007fa34e21f386 in poll () from /lib64/libc.so.6
#1  0x00007fa32e7d89c1 in ?? () from /usr/lib64/xine/plugins/1.26/xineplug_ao_out_alsa.so
#2  0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#3  0x00007fa34e22810d in clone () from /lib64/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7fa32df9d950 (LWP 6404)):
#0  0x00007fa34ec32d59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa336edfc23 in ?? () from /usr/lib64/libxine.so.1
#2  0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#3  0x00007fa34e22810d in clone () from /lib64/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7fa32ae8f950 (LWP 6522)):
#0  0x00007fa34ec32d59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa34eea3e19 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007fa352874e93 in Digikam::LoadSaveThread::run (this=0x2c60dd0) at /home/kde-branch/kde/src/digikam/libs/threadimageio/loadsavethread.cpp:136
#3  0x00007fa34eea2e65 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#5  0x00007fa34e22810d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7fa32bf37950 (LWP 6633)):
#0  0x00007fa34ec32d59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa34eea3e19 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007fa352874e93 in Digikam::LoadSaveThread::run (this=0x5592eb0) at /home/kde-branch/kde/src/digikam/libs/threadimageio/loadsavethread.cpp:136
#3  0x00007fa34eea2e65 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#5  0x00007fa34e22810d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7fa329e8d950 (LWP 6634)):
#0  0x00007fa34ec32d59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa34eea3e19 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007fa352874e93 in Digikam::LoadSaveThread::run (this=0x4fa4ac0) at /home/kde-branch/kde/src/digikam/libs/threadimageio/loadsavethread.cpp:136
#3  0x00007fa34eea2e65 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#5  0x00007fa34e22810d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7fa301b8d950 (LWP 6677)):
#0  0x00007fa34ec32d59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa34eea3e19 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007fa352874e93 in Digikam::LoadSaveThread::run (this=0x556ab30) at /home/kde-branch/kde/src/digikam/libs/threadimageio/loadsavethread.cpp:136
#3  0x00007fa34eea2e65 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#5  0x00007fa34e22810d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7fa30138c950 (LWP 6690)):
#0  0x00007fa34ec32d59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa34eea3e19 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007fa352874e93 in Digikam::LoadSaveThread::run (this=0x5a5c630) at /home/kde-branch/kde/src/digikam/libs/threadimageio/loadsavethread.cpp:136
#3  0x00007fa34eea2e65 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#5  0x00007fa34e22810d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7fa32a68e950 (LWP 6913)):
#0  0x00007fa34ec32d59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa34eea3e19 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007fa352874e93 in Digikam::LoadSaveThread::run (this=0x6060500) at /home/kde-branch/kde/src/digikam/libs/threadimageio/loadsavethread.cpp:136
#3  0x00007fa34eea2e65 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#5  0x00007fa34e22810d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fa2ff3e5950 (LWP 7028)):
#0  0x00007fa34ec32d59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa34eea3e19 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007fa352874e93 in Digikam::LoadSaveThread::run (this=0x5ad6f20) at /home/kde-branch/kde/src/digikam/libs/threadimageio/loadsavethread.cpp:136
#3  0x00007fa34eea2e65 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#5  0x00007fa34e22810d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fa2f32ed950 (LWP 7243)):
#0  0x00007fa34ec32d59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa34eea3e19 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007fa352874e93 in Digikam::LoadSaveThread::run (this=0x5e58d60) at /home/kde-branch/kde/src/digikam/libs/threadimageio/loadsavethread.cpp:136
#3  0x00007fa34eea2e65 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#5  0x00007fa34e22810d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fa2ffbe6950 (LWP 7367)):
#0  0x00007fa34ec32d59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa34eea3e19 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007fa352874e93 in Digikam::LoadSaveThread::run (this=0xa14f8f0) at /home/kde-branch/kde/src/digikam/libs/threadimageio/loadsavethread.cpp:136
#3  0x00007fa34eea2e65 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#5  0x00007fa34e22810d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fa2febe4950 (LWP 10680)):
[KCrash Handler]
#5  0x00007fa34e1d4d67 in memcpy () from /lib64/libc.so.6
#6  0x00007fa3527d3d8a in Digikam::DImgRefocus::convolveImage (this=0x7a065d0, orgData=0x7fa2d39ab010 "\005\004\033�\003\004\037�", destData=0x7fa2d62b1010 <Address 0x7fa2d62b1010 out of bounds>, 
    width=2854, height=3768, sixteenBit=false, matrix=0x79efa70, mat_size=21) at /home/kde-branch/kde/src/digikam/libs/dimg/filters/dimgrefocus.cpp:218
#7  0x00007fa3527d44cb in Digikam::DImgRefocus::refocusImage (this=0x7a065d0, data=0x7fa2d39ab010 "\005\004\033�\003\004\037�", width=2854, height=3768, sixteenBit=false, matrixSize=10, radius=1.3, 
    gauss=0, correlation=0.5, noise=0.029999999999999999) at /home/kde-branch/kde/src/digikam/libs/dimg/filters/dimgrefocus.cpp:162
#8  0x00007fa3527d4caa in Digikam::DImgRefocus::filterImage (this=0x7a065d0) at /home/kde-branch/kde/src/digikam/libs/dimg/filters/dimgrefocus.cpp:131
#9  0x00007fa3527d2f22 in Digikam::DImgThreadedFilter::startFilterDirectly (this=0x7a065d0) at /home/kde-branch/kde/src/digikam/libs/dimg/filters/dimgthreadedfilter.cpp:139
#10 0x00007fa3527d1be8 in Digikam::DImgThreadedFilter::run (this=0x7a065d0) at /home/kde-branch/kde/src/digikam/libs/dimg/filters/dimgthreadedfilter.cpp:152
#11 0x00007fa34eea2e65 in ?? () from /usr/lib64/libQtCore.so.4
#12 0x00007fa34ec2f070 in start_thread () from /lib64/libpthread.so.0
#13 0x00007fa34e22810d in clone () from /lib64/libc.so.6
#14 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fa355612750 (LWP 6204)):
#0  0x00007fa34ec32d59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa34eea3e19 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007fa34eea300c in QThread::wait(unsigned long) () from /usr/lib64/libQtCore.so.4
#3  0x00007fa3527d1c85 in Digikam::DImgThreadedFilter::cancelFilter (this=0x7a065d0) at /home/kde-branch/kde/src/digikam/libs/dimg/filters/dimgthreadedfilter.cpp:164
#4  0x00007fa3527d2146 in ~DImgThreadedFilter (this=0x7a065d0) at /home/kde-branch/kde/src/digikam/libs/dimg/filters/dimgthreadedfilter.cpp:90
#5  0x00007fa3527d5265 in ~DImgRefocus (this=0x7a065d0) at /home/kde-branch/kde/src/digikam/libs/dimg/filters/dimgrefocus.h:43
#6  0x00007fa3529b4128 in ~EditorToolThreaded (this=0xa1c6fd0) at /home/kde-branch/kde/src/digikam/utilities/imageeditor/editor/editortool.cpp:263
#7  0x00007fa3041be7be in ~SharpenTool (this=0xa1c6fd0) at /home/kde-branch/kde/src/digikam/imageplugins/coreplugin/sharpentool.cpp:302
#8  0x00007fa3529b5378 in Digikam::EditorToolIface::unLoadTool (this=0x5575f00) at /home/kde-branch/kde/src/digikam/utilities/imageeditor/editor/editortooliface.cpp:113
#9  0x00007fa352997771 in Digikam::DImgInterface::load (this=0x556a5d0, description=@0x7fff624b88a0) at /home/kde-branch/kde/src/digikam/utilities/imageeditor/canvas/dimginterface.cpp:240
#10 0x00007fa352997afc in Digikam::DImgInterface::load (this=0x556a5d0, filename=@0x7fff624b8a30, iofileSettings=0x5576020)
    at /home/kde-branch/kde/src/digikam/utilities/imageeditor/canvas/dimginterface.cpp:213
#11 0x00007fa3529aa259 in Digikam::Canvas::load (this=0x5568b00, filename=@0x7fff624b8a30, IOFileSettings=0x5576020) at /home/kde-branch/kde/src/digikam/utilities/imageeditor/canvas/canvas.cpp:254
#12 0x0000000000478fb1 in Digikam::ImageWindow::slotLoadCurrent (this=0x5582e20) at /home/kde-branch/kde/src/digikam/utilities/imageeditor/editor/imagewindow.cpp:591
#13 0x000000000047ad84 in Digikam::ImageWindow::qt_metacall (this=0x5582e20, _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0x7fff624b8b20)
    at /home/kde-branch/kde/build/digikam/digikam/imagewindow.moc:136
#14 0x00007fa34efa16e2 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQtCore.so.4
#15 0x00007fa34efa741f in ?? () from /usr/lib64/libQtCore.so.4
#16 0x00007fa34ef9c533 in QObject::event(QEvent*) () from /usr/lib64/libQtCore.so.4
#17 0x00007fa34fb07abd in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#18 0x00007fa34fb0fd4a in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#19 0x00007fa350ee802b in KApplication::notify (this=0x7fff624b9810, receiver=0x51c2bf0, event=0x7fff624b9220) at /usr/src/debug/kdelibs-4.3.1/kdeui/kernel/kapplication.cpp:302
#20 0x00007fa34ef8c94c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#21 0x00007fa34efb9b60 in ?? () from /usr/lib64/libQtCore.so.4
#22 0x00007fa34efb5ddd in ?? () from /usr/lib64/libQtCore.so.4
#23 0x00007fa34b80d0fb in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#24 0x00007fa34b8108cd in ?? () from /usr/lib64/libglib-2.0.so.0
#25 0x00007fa34b810a8b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#26 0x00007fa34efb5d3f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#27 0x00007fa34fb9efaf in ?? () from /usr/lib64/libQtGui.so.4
#28 0x00007fa34ef8b1d2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#29 0x00007fa34ef8b5a4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#30 0x00007fa34ef8d894 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#31 0x00000000007fd453 in main (argc=5, argv=0x7fff624b9d88) at /home/kde-branch/kde/src/digikam/digikam/main.cpp:186
Comment 1 caulier.gilles 2009-09-14 11:35:44 UTC
Which action you use to switch to another item during file save operation ?

Gilles Caulier
Comment 2 S. Burmeister 2009-09-14 12:09:06 UTC
I do not save any picture. I just go back to main digikam while the editor is still hsarpening the image, right-click another PNG from that album and pick "edit" to open it in the editor.
Comment 3 Marcel Wiesweg 2009-10-03 18:51:17 UTC
SVN commit 1030978 by mwiesweg:

Interesting crash:
Destruction is done in the order class destructor -> member destructors -> base class destructor.
DImgRefocus has a DImg as a member. The thread is stopped in the parent class's destructor.
If the thread is running and accessing the member, the member is destructed before the thread
is stopped -> crash.

BUG: 207330

 M  +2 -1      NEWS  
 M  +5 -0      libs/dimg/filters/dimgrefocus.cpp  
 M  +1 -1      libs/dimg/filters/dimgrefocus.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1030978