Bug 328239

Summary: Image scanning
Product: [Applications] digikam Reporter: vvel <veliev_vagif>
Component: Maintenance-DatabaseAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR Keywords: drkonqi
Version: 3.5.0   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed In: 5.1.0
Sentry Crash Report:

Description vvel 2013-11-30 08:27:48 UTC
Application: digikam (3.5.0)
KDE Platform Version: 4.11.2
Qt Version: 4.8.4
Operating System: Linux 3.11.0-12-generic x86_64
Distribution: Linux Mint 16 Petra

-- Information about the crash:
selected  to use all cores, and scan complite library , first memeory gert filled and then crash

-- Backtrace:
Application: digiKam (digikam), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f9e78025ac0 (LWP 12538))]

Thread 7 (Thread 0x7f9e54c9b700 (LWP 12539)):
#0  0x00007f9e7197ef7d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f9e5a9f3198 in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#2  0x00007f9e6ccd7f6e in start_thread (arg=0x7f9e54c9b700) at pthread_create.c:311
#3  0x00007f9e7198b9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 6 (Thread 0x7f9e47a05700 (LWP 12540)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f9e7276d406 in wait (time=18446744073709551615, this=0x16a31b0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x16a30c0, mutex=mutex@entry=0x16a30b8, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00000000005d5fce in Digikam::ScanController::run (this=0x16a2e50) at /build/buildd/digikam-3.5.0/core/digikam/database/scancontroller.cpp:725
#4  0x00007f9e7276cf2f in QThreadPrivate::start (arg=0x16a2e50) at thread/qthread_unix.cpp:338
#5  0x00007f9e6ccd7f6e in start_thread (arg=0x7f9e47a05700) at pthread_create.c:311
#6  0x00007f9e7198b9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 5 (Thread 0x7f9e47204700 (LWP 12541)):
#0  0x00007f9e72899807 in timerSourcePrepareHelper (src=0x7f9e38002800, timeout=0x7f9e472038b4) at kernel/qeventdispatcher_glib.cpp:135
#1  0x00007f9e728998d5 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#2  0x00007f9e6a2a9d4d in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9e6a2aa5c3 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f9e6a2aa7ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9e72899a76 in QEventDispatcherGlib::processEvents (this=0x7f9e380008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f9e7286b5ef in QEventLoop::processEvents (this=this@entry=0x7f9e47203a70, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f9e7286b8e5 in QEventLoop::exec (this=this@entry=0x7f9e47203a70, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f9e7276a88f in QThread::exec (this=this@entry=0x16a5800) at thread/qthread.cpp:542
#9  0x00007f9e7284cd13 in QInotifyFileSystemWatcherEngine::run (this=0x16a5800) at io/qfilesystemwatcher_inotify.cpp:265
#10 0x00007f9e7276cf2f in QThreadPrivate::start (arg=0x16a5800) at thread/qthread_unix.cpp:338
#11 0x00007f9e6ccd7f6e in start_thread (arg=0x7f9e47204700) at pthread_create.c:311
#12 0x00007f9e7198b9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7f9e46a03700 (LWP 12547)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f9e7276d406 in wait (time=18446744073709551615, this=0x18d1fb0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x18ccaf0, mutex=mutex@entry=0x18ccae8, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f9e755e59ca in Digikam::ParkingThread::run (this=0x18ccad0) at /build/buildd/digikam-3.5.0/core/libs/threads/threadmanager.cpp:119
#4  0x00007f9e7276cf2f in QThreadPrivate::start (arg=0x18ccad0) at thread/qthread_unix.cpp:338
#5  0x00007f9e6ccd7f6e in start_thread (arg=0x7f9e46a03700) at pthread_create.c:311
#6  0x00007f9e7198b9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7f9dc4ff9700 (LWP 12620)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f9e7276d406 in wait (time=18446744073709551615, this=0x665f870) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x8012100, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f9e75a375b1 in KDcrawIface::RActionThreadBase::run() () from /usr/lib/libkdcraw.so.22
#4  0x00007f9e7276cf2f in QThreadPrivate::start (arg=0x665f680) at thread/qthread_unix.cpp:338
#5  0x00007f9e6ccd7f6e in start_thread (arg=0x7f9dc4ff9700) at pthread_create.c:311
#6  0x00007f9e7198b9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7f9e33796700 (LWP 12621)):
#0  0x00007f9e6fe83480 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#1  0x00007f9e6fe6a396 in XGetWindowProperty () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#2  0x00007f9e732eec2f in QWidgetPrivate::updateFrameStrut (this=this@entry=0x17c51c0) at kernel/qwidget_x11.cpp:2959
#3  0x00007f9e7329e953 in QWidgetPrivate::frameStrut (this=0x17c51c0) at kernel/qwidget.cpp:12063
#4  0x00007f9e7329e98c in QWidget::frameGeometry (this=this@entry=0x178b5a0) at kernel/qwidget.cpp:3538
#5  0x00007f9e732e90e4 in QDesktopWidget::screenNumber (this=this@entry=0x13a2ec0, widget=widget@entry=0x178b5a0) at kernel/qdesktopwidget_x11.cpp:393
#6  0x00007f9e754b8538 in Digikam::IccSettings::Private::profileFromWindowSystem (this=0x185cce0, widget=widget@entry=0x178b5a0) at /build/buildd/digikam-3.5.0/core/libs/dimg/filters/icc/iccsettings.cpp:204
#7  0x00007f9e754b901f in Digikam::IccSettings::monitorProfile (this=0x174d1f0, widget=widget@entry=0x178b5a0) at /build/buildd/digikam-3.5.0/core/libs/dimg/filters/icc/iccsettings.cpp:134
#8  0x00007f9e7549cf82 in Digikam::IccManager::displayProfile (displayingWidget=0x178b5a0) at /build/buildd/digikam-3.5.0/core/libs/dimg/filters/icc/iccmanager.cpp:385
#9  0x00007f9e755d57f4 in Digikam::ThumbnailLoadThread::Private::createLoadingDescription (this=0x24149f0, filePath=..., size=<optimized out>, size@entry=256, setLastDescription=setLastDescription@entry=true) at /build/buildd/digikam-3.5.0/core/libs/threadimageio/thumbnailloadthread.cpp:335
#10 0x00007f9e755d9670 in Digikam::ThumbnailLoadThread::find (this=0x2414720, filePath=..., size=256, retPixmap=retPixmap@entry=0x0, emitSignal=emitSignal@entry=true, detailRect=...) at /build/buildd/digikam-3.5.0/core/libs/threadimageio/thumbnailloadthread.cpp:454
#11 0x00007f9e755d9b93 in Digikam::ThumbnailLoadThread::find (this=<optimized out>, filePath=..., size=<optimized out>) at /build/buildd/digikam-3.5.0/core/libs/threadimageio/thumbnailloadthread.cpp:517
#12 0x00007f9e755d9bac in Digikam::ThumbnailLoadThread::find (this=<optimized out>, filePath=...) at /build/buildd/digikam-3.5.0/core/libs/threadimageio/thumbnailloadthread.cpp:512
#13 0x000000000051c7c9 in Digikam::ThumbsTask::run (this=0x83ae1e0) at /build/buildd/digikam-3.5.0/core/utilities/maintenance/thumbstask.cpp:81
#14 0x00007f9e76695cb2 in ThreadWeaver::JobRunHelper::runTheJob (this=this@entry=0x7f9e33795a50, th=th@entry=0x7f9db8026470, job=job@entry=0x83ae1e0) at ../../../threadweaver/Weaver/Job.cpp:106
#15 0x00007f9e76695e6e in ThreadWeaver::Job::execute (this=0x83ae1e0, th=0x7f9db8026470) at ../../../threadweaver/Weaver/Job.cpp:135
#16 0x00007f9e7669790b in ThreadWeaver::JobCollectionJobRunner::execute (this=0x83ae710, t=0x7f9db8026470) at ../../../threadweaver/Weaver/JobCollection.cpp:82
#17 0x00007f9e766956bb in ThreadWeaver::Thread::run (this=0x7f9db8026470) at ../../../threadweaver/Weaver/Thread.cpp:108
#18 0x00007f9e7276cf2f in QThreadPrivate::start (arg=0x7f9db8026470) at thread/qthread_unix.cpp:338
#19 0x00007f9e6ccd7f6e in start_thread (arg=0x7f9e33796700) at pthread_create.c:311
#20 0x00007f9e7198b9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f9e78025ac0 (LWP 12538)):
[KCrash Handler]
#6  0x00007f9e718c7f77 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x00007f9e718cb5e8 in __GI_abort () at abort.c:90
#8  0x00007f9e718c0d43 in __assert_fail_base (fmt=0x7f9e71a17f58 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7f9e6fef23cd "!xcb_xlib_unknown_req_in_deq", file=file@entry=0x7f9e6fef239b "../../src/xcb_io.c", line=line@entry=179, function=function@entry=0x7f9e6fef2870 "dequeue_pending_request") at assert.c:92
#9  0x00007f9e718c0df2 in __GI___assert_fail (assertion=0x7f9e6fef23cd "!xcb_xlib_unknown_req_in_deq", file=0x7f9e6fef239b "../../src/xcb_io.c", line=179, function=0x7f9e6fef2870 "dequeue_pending_request") at assert.c:101
#10 0x00007f9e6fe827dc in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#11 0x00007f9e6fe8361b in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#12 0x00007f9e6fe7f10d in XSync () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#13 0x00007f9e73450125 in QRasterWindowSurface::syncX (this=0x18b0270) at painting/qwindowsurface_raster.cpp:134
#14 0x00007f9e73450405 in QRasterWindowSurface::beginPaint (this=0x18b0270, rgn=...) at painting/qwindowsurface_raster.cpp:143
#15 0x00007f9e73469c89 in beginPaint (toCleanIsInTopLevelCoordinates=true, returnInfo=0x7fff994925e0, windowSurface=0x18b0270, widget=<optimized out>, toClean=..., this=0x1883ca0) at painting/qbackingstore.cpp:379
#16 QWidgetBackingStore::sync (this=0x1883ca0) at painting/qbackingstore.cpp:1304
#17 0x00007f9e7329cfc0 in QWidgetPrivate::syncBackingStore (this=this@entry=0x17c51c0) at kernel/qwidget.cpp:1896
#18 0x00007f9e732acc82 in QWidget::event (this=this@entry=0x178b5a0, event=event@entry=0x19b9210) at kernel/qwidget.cpp:8679
#19 0x00007f9e73666db3 in QMainWindow::event (this=this@entry=0x178b5a0, event=event@entry=0x19b9210) at widgets/qmainwindow.cpp:1478
#20 0x00007f9e7401bfa1 in KMainWindow::event (this=this@entry=0x178b5a0, ev=ev@entry=0x19b9210) at ../../kdeui/widgets/kmainwindow.cpp:1084
#21 0x00007f9e74053a49 in KXmlGuiWindow::event (this=0x178b5a0, ev=0x19b9210) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#22 0x00007f9e7325ddfc in QApplicationPrivate::notify_helper (this=this@entry=0x133aef0, receiver=receiver@entry=0x178b5a0, e=e@entry=0x19b9210) at kernel/qapplication.cpp:4567
#23 0x00007f9e73264470 in QApplication::notify (this=this@entry=0x7fff99493430, receiver=receiver@entry=0x178b5a0, e=e@entry=0x19b9210) at kernel/qapplication.cpp:4353
#24 0x00007f9e73f67a6a in KApplication::notify (this=0x7fff99493430, receiver=0x178b5a0, event=0x19b9210) at ../../kdeui/kernel/kapplication.cpp:311
#25 0x00007f9e7286c8bd in QCoreApplication::notifyInternal (this=0x7fff99493430, receiver=receiver@entry=0x178b5a0, event=event@entry=0x19b9210) at kernel/qcoreapplication.cpp:946
#26 0x00007f9e7286fe1f in sendEvent (event=0x19b9210, receiver=0x178b5a0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#27 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x12a7800) at kernel/qcoreapplication.cpp:1570
#28 0x00007f9e728702c3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1463
#29 0x00007f9e7289a073 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#30 postEventSourceDispatch (s=0x13395a0) at kernel/qeventdispatcher_glib.cpp:279
#31 0x00007f9e6a2aa3b6 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f9e6a2aa708 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f9e6a2aa7ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007f9e72899a55 in QEventDispatcherGlib::processEvents (this=0x1272550, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#35 0x00007f9e732ff9d6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#36 0x00007f9e7286b5ef in QEventLoop::processEvents (this=this@entry=0x7fff99492f10, flags=...) at kernel/qeventloop.cpp:149
#37 0x00007f9e7286b8e5 in QEventLoop::exec (this=this@entry=0x7fff99492f10, flags=...) at kernel/qeventloop.cpp:204
#38 0x00007f9e72870e5b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#39 0x00007f9e7325c34c in QApplication::exec () at kernel/qapplication.cpp:3828
#40 0x0000000000491fb3 in main (argc=<optimized out>, argv=<optimized out>) at /build/buildd/digikam-3.5.0/core/digikam/main/main.cpp:235

Possible duplicates by query: bug 326959, bug 315521, bug 311955.

Reported using DrKonqi
Comment 1 caulier.gilles 2013-11-30 08:53:28 UTC
It crash in Qt windows core implementation about window management. There is no digiKam code relevant here...

I suspect multiple origins :

1/ a problem with your Qt installation.
2/ a problem with your ICC settings which crash digiKam and qt. Do you use color management on your computer ? In all case, it's fixed in next 4.0.0. See bug #326959

We need a better feedback, especially a back-trace from GDB, as explained here :

http://www.digikam.org/contrib

Gilles Caulier
Comment 2 caulier.gilles 2015-06-25 13:11:16 UTC
New digiKam 4.11.0 is available with official PKG installer for OSX.

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

Can you reproduce the problem with this release ?
Comment 3 caulier.gilles 2015-08-20 06:51:23 UTC
digiKam 4.12.0 is out :

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

We need a fresh feedback using this release please...
Thanks in advance.

Gilles Caulier
Comment 4 caulier.gilles 2016-07-09 14:10:56 UTC
This problem is not reproducible with last 5.0.0.
I close this file now. Don't hesitate to re-open it if necessary.
Gilles Caulier