Bug 268099

Summary: batch process crash
Product: [Applications] digikam Reporter: Raul Luna <superman_ha_muerto>
Component: BatchQueueManager-WorkflowAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR    
Version: 1.4.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 5.0.0
Sentry Crash Report:

Description Raul Luna 2011-03-10 01:06:18 UTC
Application: digikam (1.4.0)
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-27-generic x86_64
Distribution: Ubuntu 10.10

-- Information about the crash:
Steps to reproduce behavior: 

1. open digikam in ubuntu 10.10 - gnome desktop - 
Linux petrus 2.6.35-27-generic #48-Ubuntu SMP Tue Feb 22 20:25:46 UTC 2011 x86_64 GNU/Linux
2. tools -> batch queue manager
3. drag and drop some pics in queue #1
4. select a target under "target"
5. add a base tool (I've picked sharpen image, but I suspect that any tool will work for this case)
6. click run
7. queues -> new queue
8. add a new base tool (I've picked ICC convert for this purpose)
9. drag and drop some other pics into the #2 queue
10. click on run and quickly stop (because I expected that only queue #2 will be processed, but in fact the two queues were run). 


Well, in this case this doesn't crash. Sorry for lose your time.

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

Thread 17 (Thread 0x7f13cc24e700 (LWP 1844)):
#0  __libc_enable_asynccancel () at ../nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S:66
#1  0x00007f13d7f031e8 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:85
#2  0x00007f13d4d8e009 in ?? () from /lib/libglib-2.0.so.0
#3  0x00007f13d4d8e7b5 in g_main_loop_run () from /lib/libglib-2.0.so.0
#4  0x00007f13cc9853c4 in ?? () from /usr/lib/libgio-2.0.so.0
#5  0x00007f13d4db37e4 in ?? () from /lib/libglib-2.0.so.0
#6  0x00007f13d943c971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#7  0x00007f13d7f0f92d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 16 (Thread 0x7f13bfa73700 (LWP 1845)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f13d96c7e3b in wait (this=<value optimized out>, mutex=0xe15f80, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xe15f80, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00000000006ee97b in Digikam::ScanController::run (this=0xe179f0) at /build/buildd/digikam-1.4.0/digikam/scancontroller.cpp:515
#4  0x00007f13d96c727e in QThreadPrivate::start (arg=0xe179f0) at thread/qthread_unix.cpp:266
#5  0x00007f13d943c971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007f13d7f0f92d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 15 (Thread 0x7f13bf272700 (LWP 1928)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f13bf271a70 in ?? ()
#2  0x00007fff410a7852 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 14 (Thread 0x7f13be775700 (LWP 1929)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f13be774a70 in ?? ()
#2  0x00007fff410a7852 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 13 (Thread 0x7f13bdef3700 (LWP 1946)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f13d96c7e3b in wait (this=<value optimized out>, mutex=0xf593d8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xf593d8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f13dd6e15e4 in Digikam::ParkingThread::run (this=0xf593c0) at /build/buildd/digikam-1.4.0/libs/threads/threadmanager.cpp:101
#4  0x00007f13d96c727e in QThreadPrivate::start (arg=0xf593c0) at thread/qthread_unix.cpp:266
#5  0x00007f13d943c971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007f13d7f0f92d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7f13bd6f2700 (LWP 1947)):
#0  0x00007f13d7f03203 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f13d4d8e009 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f13d4d8e45c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f13d97e71e6 in QEventDispatcherGlib::processEvents (this=0xf9a340, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#4  0x00007f13d97b9a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f13d97b9dec in QEventLoop::exec (this=0x7f13bd6f1d90, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f13d96c42fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#7  0x00007f13d96c727e in QThreadPrivate::start (arg=0xf96050) at thread/qthread_unix.cpp:266
#8  0x00007f13d943c971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#9  0x00007f13d7f0f92d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7f13bcef1700 (LWP 1948)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f13bcef0a70 in ?? ()
#2  0x00007fff410a7852 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 10 (Thread 0x7f13af8b7700 (LWP 1963)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:212
#1  0x00007f13b55fc0d1 in ?? () from /usr/lib/libxine.so.1
#2  0x00007f13d943c971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#3  0x00007f13d7f0f92d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f13ae67e700 (LWP 1964)):
#0  0x00007f13d7f082c3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f13b5625385 in xine_usec_sleep () from /usr/lib/libxine.so.1
#2  0x00007f13b5609d09 in ?? () from /usr/lib/libxine.so.1
#3  0x00007f13d943c971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#4  0x00007f13d7f0f92d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f13ade7d700 (LWP 1965)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f13ade7ca10 in ?? ()
#2  0x00007fff410a7852 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 7 (Thread 0x7f13ad477700 (LWP 1966)):
#0  0x00007f13d7f03203 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f13d7c1440f in ?? () from /usr/lib/libpulse.so.0
#2  0x00007f13d7c03d76 in pa_mainloop_poll () from /usr/lib/libpulse.so.0
#3  0x00007f13d7c057f9 in pa_mainloop_iterate () from /usr/lib/libpulse.so.0
#4  0x00007f13d7c058b0 in pa_mainloop_run () from /usr/lib/libpulse.so.0
#5  0x00007f13d7c1420b in ?? () from /usr/lib/libpulse.so.0
#6  0x00007f13cf9adfb8 in ?? () from /usr/lib/libpulsecommon-0.9.21.so
#7  0x00007f13d943c971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#8  0x00007f13d7f0f92d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f13a8c75700 (LWP 1967)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f13b560ce83 in ?? () from /usr/lib/libxine.so.1
#2  0x00007f13d943c971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#3  0x00007f13d7f0f92d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f13a8474700 (LWP 1968)):
#0  0x00007f13d4d8d661 in g_main_context_check () from /lib/libglib-2.0.so.0
#1  0x00007f13d4d8e023 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f13d4d8e45c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f13d97e71e6 in QEventDispatcherGlib::processEvents (this=0x1712cc0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#4  0x00007f13d97b9a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f13d97b9dec in QEventLoop::exec (this=0x7f13a8473d50, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f13d96c42fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#7  0x00007f13d97995f8 in QInotifyFileSystemWatcherEngine::run (this=0x1712260) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f13d96c727e in QThreadPrivate::start (arg=0x1712260) at thread/qthread_unix.cpp:266
#9  0x00007f13d943c971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#10 0x00007f13d7f0f92d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f13a5ba1700 (LWP 1975)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f13a5ba0a30 in ?? ()
#2  0x00007fff410a7852 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 3 (Thread 0x7f138b8b0700 (LWP 2181)):
#0  0x00007f13d7f03203 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f13d4d8e009 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f13d4d8e45c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f13d97e71e6 in QEventDispatcherGlib::processEvents (this=0xf6e4f70, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#4  0x00007f13d97b9a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f13d97b9dec in QEventLoop::exec (this=0x7f138b8afd50, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f13d96c42fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#7  0x00007f13d97995f8 in QInotifyFileSystemWatcherEngine::run (this=0xf6b8770) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f13d96c727e in QThreadPrivate::start (arg=0xf6b8770) at thread/qthread_unix.cpp:266
#9  0x00007f13d943c971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#10 0x00007f13d7f0f92d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f13898ac700 (LWP 2188)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f13898aba30 in ?? ()
#2  0x00007fff410a7852 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 1 (Thread 0x7f13e06b97c0 (LWP 1641)):
[KCrash Handler]
#6  0x000000000f5bce48 in ?? ()
#7  0x00000000005a1ee2 in setIcon (this=0x4a04930) at /usr/include/qt4/QtGui/qtreewidget.h:230
#8  Digikam::AssignedListViewItem::setCanceled (this=0x4a04930) at /build/buildd/digikam-1.4.0/utilities/queuemanager/assignedlist.cpp:86
#9  0x00000000005b3f58 in Digikam::QueueMgrWindow::slotAction (this=0x4af2c50, ad=...) at /build/buildd/digikam-1.4.0/utilities/queuemanager/queuemgrwindow.cpp:990
#10 0x00000000005b4535 in Digikam::QueueMgrWindow::qt_metacall (this=0x4af2c50, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7f13b97e94f0) at /build/buildd/digikam-1.4.0/obj-x86_64-linux-gnu/digikam/queuemgrwindow.moc:132
#11 0x00007f13d97ccbde in QObject::event (this=0x4af2c50, e=0x4a04930) at kernel/qobject.cpp:1219
#12 0x00007f13da4216df in QWidget::event (this=0x4af2c50, event=0x7f13b92f4360) at kernel/qwidget.cpp:8646
#13 0x00007f13da80941b in QMainWindow::event (this=0x4af2c50, event=0x7f13b92f4360) at widgets/qmainwindow.cpp:1417
#14 0x00007f13db23a683 in KXmlGuiWindow::event (this=0x4a04930, ev=0x0) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:130
#15 0x00007f13da3cbfdc in QApplicationPrivate::notify_helper (this=0xbdd710, receiver=0x4af2c50, e=0x7f13b92f4360) at kernel/qapplication.cpp:4396
#16 0x00007f13da3d1aed in QApplication::notify (this=0x7fff41087c30, receiver=0x4af2c50, e=0x7f13b92f4360) at kernel/qapplication.cpp:4277
#17 0x00007f13db11e156 in KApplication::notify (this=0x7fff41087c30, receiver=0x4af2c50, event=0x7f13b92f4360) at ../../kdeui/kernel/kapplication.cpp:310
#18 0x00007f13d97bacdc in QCoreApplication::notifyInternal (this=0x7fff41087c30, receiver=0x4af2c50, event=0x7f13b92f4360) at kernel/qcoreapplication.cpp:732
#19 0x00007f13d97bdc22 in sendEvent (receiver=0x0, event_type=<value optimized out>, data=0xb9eb90) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#20 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0xb9eb90) at kernel/qcoreapplication.cpp:1373
#21 0x00007f13d97e7653 in sendPostedEvents (s=0xbe13a0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#22 postEventSourceDispatch (s=0xbe13a0) at kernel/qeventdispatcher_glib.cpp:277
#23 0x00007f13d4d8a342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#24 0x00007f13d4d8e2a8 in ?? () from /lib/libglib-2.0.so.0
#25 0x00007f13d4d8e45c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#26 0x00007f13d97e7193 in QEventDispatcherGlib::processEvents (this=0xb9e280, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#27 0x00007f13da47ea4e in QGuiEventDispatcherGlib::processEvents (this=0x4a04930, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#28 0x00007f13d97b9a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#29 0x00007f13d97b9dec in QEventLoop::exec (this=0x7fff41087aa0, flags=) at kernel/qeventloop.cpp:201
#30 0x00007f13d97bdebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#31 0x000000000077cc1d in main (argc=<value optimized out>, argv=<value optimized out>) at /build/buildd/digikam-1.4.0/digikam/main.cpp:195

Reported using DrKonqi
Comment 1 caulier.gilles 2011-03-10 08:25:29 UTC
If i remember, this problem have been fixed in recent releases. Please try again with last stable 1.9.0...

Gilles Caulier
Comment 2 Raul Luna 2011-03-10 13:54:15 UTC

Ok, thanks. Please close the bug, if it appears again in the last version, I will create a new one.
Comment 3 caulier.gilles 2011-07-06 11:07:43 UTC
We need feedback using a recent version. 2.0.0 RC is out, please test...

Thanks in advance

Gilles Caulier
Comment 4 caulier.gilles 2015-07-03 05:59:17 UTC
New digiKam 4.11.0 is available.

https://www.digikam.org/node/740

Can you reproduce the problem with this release ?

Gilles Caulier
Comment 5 caulier.gilles 2016-07-03 06:48:29 UTC
With digiKam 5.0.0, this problem is not reproducible.

I close this file now. Re-open it if necessary.

Gilles Caulier