Bug 338056

Summary: Autocrop RAW Image crashes
Product: [Applications] digikam Reporter: John Moore <JohnMoore.000>
Component: Plugin-Editor-CropAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR Keywords: drkonqi
Version: 3.5.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 7.4.0
Sentry Crash Report:

Description John Moore 2014-08-05 16:53:22 UTC
Application: digikam (3.5.0)
KDE Platform Version: 4.13.2
Qt Version: 4.8.6
Operating System: Linux 3.13.0-32-generic i686
Distribution: Ubuntu 14.04.1 LTS

-- Information about the crash:
A RAW image was displaying in the editor.  Selecting Transform->Autocrop causes crash to occur.  There were some similarities with a previous report, but addresses and number of threads seemed different enough to submit.  Sorry if my judgement was bad.

The crash can be reproduced every time.

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xace07900 (LWP 4848))]

Thread 6 (Thread 0xacdd4b40 (LWP 4850)):
#0  0xb7721424 in __kernel_vsyscall ()
#1  0xb4b267ab in poll () at ../sysdeps/unix/syscall-template.S:81
#2  0xad987442 in ?? () from /lib/i386-linux-gnu/libusb-1.0.so.0
#3  0xb3226f70 in start_thread (arg=0xacdd4b40) at pthread_create.c:312
#4  0xb4b3570e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 5 (Thread 0xa9dfeb40 (LWP 4851)):
#0  0xb7721424 in __kernel_vsyscall ()
#1  0xb322ad4b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0xb4b428ec in __pthread_cond_wait (cond=0x9a3fd00, mutex=0x9a3fce8) at forward.c:149
#3  0xb4e290f5 in wait (time=4294967295, this=0x9a3fce8) at thread/qwaitcondition_unix.cpp:86
#4  QWaitCondition::wait (this=this@entry=0x9a281fc, mutex=mutex@entry=0x9a281f8, time=time@entry=4294967295) at thread/qwaitcondition_unix.cpp:158
#5  0x0820dd94 in Digikam::ScanController::run (this=0x9ab68e0) at /build/buildd/digikam-3.5.0/core/digikam/database/scancontroller.cpp:725
#6  0xb4e28b6f in QThreadPrivate::start (arg=0x9ab68e0) at thread/qthread_unix.cpp:349
#7  0xb3226f70 in start_thread (arg=0xa9dfeb40) at pthread_create.c:312
#8  0xb4b3570e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 4 (Thread 0xa93ffb40 (LWP 4852)):
#0  0xb2ea1d3b in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#1  0xb2ea20f8 in g_mutex_lock () from /lib/i386-linux-gnu/libglib-2.0.so.0
#2  0xb2e5ce0b in g_main_context_check () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb2e5d37a in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb2e5d528 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb4f6a95f in QEventDispatcherGlib::processEvents (this=0xa8a00468, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#6  0xb4f39823 in QEventLoop::processEvents (this=this@entry=0xa93ff098, flags=...) at kernel/qeventloop.cpp:149
#7  0xb4f39b49 in QEventLoop::exec (this=this@entry=0xa93ff098, flags=...) at kernel/qeventloop.cpp:204
#8  0xb4e2623d in QThread::exec (this=this@entry=0x9a3ad00) at thread/qthread.cpp:537
#9  0xb4f19c44 in QInotifyFileSystemWatcherEngine::run (this=0x9a3ad00) at io/qfilesystemwatcher_inotify.cpp:265
#10 0xb4e28b6f in QThreadPrivate::start (arg=0x9a3ad00) at thread/qthread_unix.cpp:349
#11 0xb3226f70 in start_thread (arg=0xa93ffb40) at pthread_create.c:312
#12 0xb4b3570e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 3 (Thread 0xa89ffb40 (LWP 4855)):
#0  0xb7721424 in __kernel_vsyscall ()
#1  0xb322ad4b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0xb4b428ec in __pthread_cond_wait (cond=0x9d62ba0, mutex=0x9d62b88) at forward.c:149
#3  0xb4e290f5 in wait (time=4294967295, this=0x9d62b88) at thread/qwaitcondition_unix.cpp:86
#4  QWaitCondition::wait (this=this@entry=0x9d64200, mutex=mutex@entry=0x9d641fc, time=time@entry=4294967295) at thread/qwaitcondition_unix.cpp:158
#5  0xb6a352b4 in Digikam::ParkingThread::run (this=0x9d641f0) at /build/buildd/digikam-3.5.0/core/libs/threads/threadmanager.cpp:119
#6  0xb4e28b6f in QThreadPrivate::start (arg=0x9d641f0) at thread/qthread_unix.cpp:349
#7  0xb3226f70 in start_thread (arg=0xa89ffb40) at pthread_create.c:312
#8  0xb4b3570e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 2 (Thread 0xa7cf3b40 (LWP 4856)):
#0  __GI___pthread_mutex_lock (mutex=0xa7300558) at ../nptl/pthread_mutex_lock.c:161
#1  0xb4b42af4 in pthread_mutex_lock (mutex=0xa7300558) at forward.c:192
#2  0xb2ea2100 in g_mutex_lock () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb2e5ce0b in g_main_context_check () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb2e5d37a in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb2e5d528 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#6  0xb4f6a95f in QEventDispatcherGlib::processEvents (this=0xa7300468, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#7  0xb4f39823 in QEventLoop::processEvents (this=this@entry=0xa7cf3098, flags=...) at kernel/qeventloop.cpp:149
#8  0xb4f39b49 in QEventLoop::exec (this=this@entry=0xa7cf3098, flags=...) at kernel/qeventloop.cpp:204
#9  0xb4e2623d in QThread::exec (this=this@entry=0x9ec56e8) at thread/qthread.cpp:537
#10 0xb4f19c44 in QInotifyFileSystemWatcherEngine::run (this=0x9ec56e8) at io/qfilesystemwatcher_inotify.cpp:265
#11 0xb4e28b6f in QThreadPrivate::start (arg=0x9ec56e8) at thread/qthread_unix.cpp:349
#12 0xb3226f70 in start_thread (arg=0xa7cf3b40) at pthread_create.c:312
#13 0xb4b3570e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 1 (Thread 0xace07900 (LWP 4848)):
[KCrash Handler]
#7  assign (o=..., this=0xbff49bfc) at /build/buildd/digikam-3.5.0/core/libs/dimg/dshareddata.h:223
#8  operator= (o=..., this=0xbff49bfc) at /build/buildd/digikam-3.5.0/core/libs/dimg/dshareddata.h:202
#9  Digikam::DImg::operator= (this=this@entry=0xbff49bfc, image=...) at /build/buildd/digikam-3.5.0/core/libs/dimg/dimg.cpp:189
#10 0xb6867616 in Digikam::DImgThreadedFilter::setOriginalImage (this=this@entry=0xbff49bd0, orgImage=...) at /build/buildd/digikam-3.5.0/core/libs/dimg/filters/dimgthreadedfilter.cpp:124
#11 0xb694aefc in Digikam::AutoCrop::AutoCrop (this=0xbff49bd0, img=0x0, parent=0x0) at /build/buildd/digikam-3.5.0/core/libs/dimg/filters/transform/autocrop.cpp:65
#12 0xb6aa912f in Digikam::Canvas::slotAutoCrop (this=0xb02f658) at /build/buildd/digikam-3.5.0/core/utilities/imageeditor/q3support/canvas.cpp:1280
#13 0xb6aa97d8 in Digikam::Canvas::qt_static_metacall (_o=0x0, _id=201669032, _a=0xbff49d18, _c=<optimized out>) at /build/buildd/digikam-3.5.0/obj-i686-linux-gnu/core/digikam/canvas.moc:149
#14 0xb4f500f7 in QMetaObject::activate (sender=sender@entry=0xb1f4158, m=0x85df3f8 <QAction::staticMetaObject>, m@entry=0xb5df0718 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0xbff49d18) at kernel/qobject.cpp:3539
#15 0xb548f72d in QAction::triggered (this=this@entry=0xb1f4158, _t1=false) at .moc/release-shared/moc_qaction.cpp:276
#16 0xb5491324 in QAction::activate (this=this@entry=0xb1f4158, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1257
#17 0xb5935ceb in QMenuPrivate::activateCausedStack (this=0xb20a6c0, causedStack=..., action=0xb1f4158, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1038
#18 0xb593ad98 in QMenuPrivate::activateAction (this=this@entry=0xb20a6c0, action=action@entry=0xb1f4158, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1130
#19 0xb593ede9 in QMenu::mouseReleaseEvent (this=this@entry=0xafdd3a8, e=e@entry=0xbff4a344) at widgets/qmenu.cpp:2372
#20 0xb60b6f3e in KMenu::mouseReleaseEvent (this=0xafdd3a8, e=0xbff4a344) at ../../kdeui/widgets/kmenu.cpp:464
#21 0xb54f03fa in QWidget::event (this=this@entry=0xafdd3a8, event=event@entry=0xbff4a344) at kernel/qwidget.cpp:8376
#22 0xb593f2af in QMenu::event (this=0xafdd3a8, e=0xbff4a344) at widgets/qmenu.cpp:2481
#23 0xb54967f4 in QApplicationPrivate::notify_helper (this=0x99879f0, receiver=receiver@entry=0xafdd3a8, e=0xbff4a344) at kernel/qapplication.cpp:4567
#24 0xb549eea0 in QApplication::notify (this=0xbff4a9f8, receiver=receiver@entry=0xafdd3a8, e=e@entry=0xbff4a344) at kernel/qapplication.cpp:4110
#25 0xb5fe61f4 in KApplication::notify (this=0xbff4a9f8, receiver=0xafdd3a8, event=0xbff4a344) at ../../kdeui/kernel/kapplication.cpp:311
#26 0xb4f3ae4a in QCoreApplication::notifyInternal (this=0xbff4a9f8, receiver=receiver@entry=0xafdd3a8, event=event@entry=0xbff4a344) at kernel/qcoreapplication.cpp:953
#27 0xb549cb53 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#28 QApplicationPrivate::sendMouseEvent (receiver=0xafdd3a8, event=event@entry=0xbff4a344, alienWidget=0x0, nativeWidget=nativeWidget@entry=0xafdd3a8, buttonDown=buttonDown@entry=0xb5e0dce4 <qt_button_down>, lastMouseReceiver=..., spontaneous=spontaneous@entry=true) at kernel/qapplication.cpp:3178
#29 0xb5520ba0 in QETWidget::translateMouseEvent (this=0xafdd3a8, event=event@entry=0xbff4a56c) at kernel/qapplication_x11.cpp:4568
#30 0xb551fec5 in QApplication::x11ProcessEvent (this=0xbff4a9f8, event=event@entry=0xbff4a56c) at kernel/qapplication_x11.cpp:3627
#31 0xb554b524 in x11EventSourceDispatch (s=0x9987530, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#32 0xb2e5d1e3 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#33 0xb2e5d468 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#34 0xb2e5d528 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#35 0xb4f6a93b in QEventDispatcherGlib::processEvents (this=this@entry=0x98f5f90, flags=...) at kernel/qeventdispatcher_glib.cpp:434
#36 0xb554b5de in QGuiEventDispatcherGlib::processEvents (this=0x98f5f90, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#37 0xb4f39823 in QEventLoop::processEvents (this=this@entry=0xbff4a828, flags=...) at kernel/qeventloop.cpp:149
#38 0xb4f39b49 in QEventLoop::exec (this=this@entry=0xbff4a828, flags=...) at kernel/qeventloop.cpp:204
#39 0xb4f3f8fe in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#40 0xb5494a24 in QApplication::exec () at kernel/qapplication.cpp:3828
#41 0x080bc190 in main (argc=3, argv=0xbff4ab34) at /build/buildd/digikam-3.5.0/core/digikam/main/main.cpp:235

Possible duplicates by query: bug 329230.

Reported using DrKonqi
Comment 1 caulier.gilles 2014-08-05 21:34:38 UTC

*** This bug has been marked as a duplicate of bug 276592 ***
Comment 2 caulier.gilles 2021-08-26 16:50:32 UTC
Fixed with #276592