Bug 181428

Summary: digikam crashes when adding photos to a folder (ctrl+i)
Product: [Applications] digikam Reporter: Armando <armarac>
Component: Import-UMSAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, marcel.wiesweg
Priority: NOR    
Version: 0.10.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 7.6.0
Sentry Crash Report:

Description Armando 2009-01-20 21:14:40 UTC
Version:            (using KDE 4.1.3)
OS:                Linux
Installed from:    SuSE RPMs

Applicazione: digiKam (digikam), segnale SIGSEGV
[?1034h[Thread debugging using libthread_db enabled]
[Current thread is 1 (Thread 0xb4670920 (LWP 4948))]

Thread 10 (Thread 0xb316cb90 (LWP 4949)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5db5c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5e15872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0x08275da9 in Digikam::ScanController::run (this=0x83fe138) at /usr/src/debug/digikam-0.10.0-beta8/digikam/scancontroller.cpp:412
#4  0xb5e1485e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb5db21b5 in start_thread () from /lib/libpthread.so.0
#6  0xb5bf438e in clone () from /lib/libc.so.6

Thread 9 (Thread 0xb1e1cb90 (LWP 4952)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5db5c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5e15872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb76bd7da in Digikam::LoadSaveThread::run (this=0x84d4c98) at /usr/src/debug/digikam-0.10.0-beta8/libs/threadimageio/loadsavethread.cpp:129
#4  0xb5e1485e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb5db21b5 in start_thread () from /lib/libpthread.so.0
#6  0xb5bf438e in clone () from /lib/libc.so.6

Thread 8 (Thread 0xb261db90 (LWP 4953)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5db5c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5e15872 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb76bd7da in Digikam::LoadSaveThread::run (this=0x86205e8) at /usr/src/debug/digikam-0.10.0-beta8/libs/threadimageio/loadsavethread.cpp:129
#4  0xb5e1485e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb5db21b5 in start_thread () from /lib/libpthread.so.0
#6  0xb5bf438e in clone () from /lib/libc.so.6

Thread 7 (Thread 0xaeeedb90 (LWP 4954)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5db5f62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xafde56f1 in ?? () from /usr/lib/libxine.so.1

Thread 6 (Thread 0xae2b0b90 (LWP 4955)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5db5f62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xafdf411e in ?? () from /usr/lib/libxine.so.1
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 5 (Thread 0xadaafb90 (LWP 4956)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5bea677 in poll () from /lib/libc.so.6
#2  0xb4d8bef2 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0xb4d8c221 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0xb5f2efd7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0xb5f0301a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb5f031da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0xb5e11559 in QThread::exec() () from /usr/lib/libQtCore.so.4
#8  0xafe358f9 in Phonon::Xine::XineThread::run() () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#9  0xb5e1485e in ?? () from /usr/lib/libQtCore.so.4
#10 0xb5db21b5 in start_thread () from /lib/libpthread.so.0
#11 0xb5bf438e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xad279b90 (LWP 4959)):
#0  0xb00d8314 in snd_hctl_handle_events () from /usr/lib/libasound.so.2
#1  0xb00e4401 in snd_mixer_handle_events () from /usr/lib/libasound.so.2
#2  0xae6db051 in ?? () from /usr/lib/xine/plugins/1.25/xineplug_ao_out_alsa.so
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 3 (Thread 0xaca57b90 (LWP 4960)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5db5c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xafdf7d64 in ?? () from /usr/lib/libxine.so.1
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 2 (Thread 0xa908bb90 (LWP 4999)):
[KCrash Handler]
#6  0xb5b987e1 in memcpy () from /lib/libc.so.6
#7  0xb5e9a87e in QIODevice::read(char*, long long) () from /usr/lib/libQtCore.so.4
#8  0xb5e856e0 in QDataStream::readRawData(char*, int) () from /usr/lib/libQtCore.so.4
#9  0xb5e62539 in operator>>(QDataStream&, QString&) () from /usr/lib/libQtCore.so.4
#10 0xb616a152 in ?? () from /usr/lib/libkdecore.so.5
#11 0xb6163ffe in ?? () from /usr/lib/libkdecore.so.5
#12 0xb616431b in KService::KService(QDataStream&, int) () from /usr/lib/libkdecore.so.5
#13 0xb616ca71 in KServiceFactory::createEntry(int) const () from /usr/lib/libkdecore.so.5
#14 0xb616c441 in KServiceFactory::serviceOffers(int, int) () from /usr/lib/libkdecore.so.5
#15 0xb617a71a in KServiceTypeTrader::defaultOffers(QString const&, QString const&) const () from /usr/lib/libkdecore.so.5
#16 0xb617b005 in KServiceTypeTrader::query(QString const&, QString const&) const () from /usr/lib/libkdecore.so.5
#17 0x08101f2f in Digikam::UMSCamera::loadKDEThumbCreator (this=0xbceecd0, folder=@0xa908b284, itemName=@0xa908b27c, thumbnail=@0xa908b140)
    at /usr/src/debug/digikam-0.10.0-beta8/utilities/cameragui/umscamera.cpp:290
#18 0x0810390d in Digikam::UMSCamera::getThumbnail (this=0xbceecd0, folder=@0xa908b284, itemName=@0xa908b27c, thumbnail=@0xa908b140)
    at /usr/src/debug/digikam-0.10.0-beta8/utilities/cameragui/umscamera.cpp:270
#19 0x08128ab3 in Digikam::CameraController::executeCommand (this=0xbcee408, cmd=0xc0d0d60) at /usr/src/debug/digikam-0.10.0-beta8/utilities/cameragui/cameracontroller.cpp:439
#20 0x08129b7c in Digikam::CameraController::run (this=0xbcee408) at /usr/src/debug/digikam-0.10.0-beta8/utilities/cameragui/cameracontroller.cpp:333
#21 0xb5e1485e in ?? () from /usr/lib/libQtCore.so.4
#22 0xb5db21b5 in start_thread () from /lib/libpthread.so.0
#23 0xb5bf438e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb4670920 (LWP 4948)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5db5f62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5e14269 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb5e1439b in QThread::msleep(unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xafe4f96c in Phonon::Xine::Backend::~Backend() () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#5  0xb7f2a752 in Phonon::FactoryPrivate::~FactoryPrivate() () from /usr/lib/libphonon.so.4
#6  0xb7f29595 in Phonon::._242::destroy() () from /usr/lib/libphonon.so.4
#7  0xb7f26ecb in Phonon::CleanUpGlobalStatic::~CleanUpGlobalStatic() () from /usr/lib/libphonon.so.4
#8  0xb5b509b1 in exit () from /lib/libc.so.6
#9  0xb641ae0b in ?? () from /usr/lib/libQtGui.so.4
#10 0xb6ecf2aa in KApplication::xioErrhandler(_XDisplay*) () from /usr/lib/libkdeui.so.5
#11 0xb6ecf2e6 in ?? () from /usr/lib/libkdeui.so.5
#12 0xb536d3c2 in _XIOError () from /usr/lib/libX11.so.6
#13 0xb5374678 in _XGetXCBBuffer () from /usr/lib/libX11.so.6
#14 0xb537487d in ?? () from /usr/lib/libX11.so.6
#15 0xb53755e6 in _XReply () from /usr/lib/libX11.so.6
#16 0xb5351749 in XGetImage () from /usr/lib/libX11.so.6
#17 0xb648d0af in ?? () from /usr/lib/libQtGui.so.4
#18 0xb64804db in QPixmap::toImage() const () from /usr/lib/libQtGui.so.4
#19 0x0811e5a4 in Digikam::CameraIconView::addItem (this=0xb513108, info=@0xbfebfa10) at /usr/src/debug/digikam-0.10.0-beta8/utilities/cameragui/cameraiconview.cpp:322
#20 0x081370eb in Digikam::CameraUI::slotFileList (this=0xb4c7cb8, fileList=@0xc1102c8) at /usr/src/debug/digikam-0.10.0-beta8/utilities/cameragui/cameraui.cpp:1052
#21 0x081448b6 in Digikam::CameraUI::qt_metacall (this=0xb4c7cb8, _c=QMetaObject::InvokeMetaMethod, _id=16, _a=0xc10ed28) at /usr/src/debug/digikam-0.10.0-beta8/build/digikam/cameraui.moc:185
#22 0xb5f1271b in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQtCore.so.4
#23 0xb5f14281 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#24 0xb6412104 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#25 0xb6764f77 in QMainWindow::event(QEvent*) () from /usr/lib/libQtGui.so.4
#26 0xb6faa6e7 in KMainWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#27 0xb6feea1c in KXmlGuiWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#28 0xb63ba8fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#29 0xb63c282a in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#30 0xb6ecf8fd in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#31 0xb5f04961 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#32 0xb5f055d5 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#33 0xb5f057cd in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
#34 0xb5f2f36f in ?? () from /usr/lib/libQtCore.so.4
#35 0xb4d889a8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#36 0xb4d8c063 in ?? () from /usr/lib/libglib-2.0.so.0
#37 0xb4d8c221 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#38 0xb5f2efb8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#39 0xb6453785 in ?? () from /usr/lib/libQtGui.so.4
#40 0xb5f0301a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#41 0xb5f031da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#42 0xb5f05895 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#43 0xb63ba777 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#44 0x08298de1 in main (argc=5, argv=0xbfec07e4) at /usr/src/debug/digikam-0.10.0-beta8/digikam/main.cpp:188
Comment 1 Marcel Wiesweg 2009-01-20 22:16:42 UTC
Seems to come from KDE thumbnail service.
Which is your kdelibs version?
Is this reproducible, does it always happen when you open the import dialog?
Does it only happen when you import from a specific folder?
Comment 2 caulier.gilles 2009-01-23 21:15:24 UTC
Marcel,

This is a crash relevant of Phonon + Xine.

Gilles Caulier
Comment 3 Marcel Wiesweg 2009-01-24 11:25:16 UTC
I believe the original crash is done in thread 2 inside KServiceTypeTrader::query, where kcrashhandler is called.
The apparent crash in thread 1 comes from an xioerror and is secondary.

But in neither case it seems to be caused by anything that digikam would do wrong.
Comment 4 caulier.gilles 2009-01-24 12:23:42 UTC
Marcel,

code relevant of KServiceTypeTrader is here :

http://lxr.kde.org/source/extragear/graphics/digikam/utilities/cameragui/umscamera.cpp#276

The goal of this code is to try to get thumb from video files.

Gilles
Comment 5 Marcel Wiesweg 2009-01-31 22:54:57 UTC
Well this is another of those bugs that will stay open unless we either move it to kdelibs, the reported says it works now for him or we close it in a few months...
The code service trader code works for all of us, so I dont see any needed change in this.
Comment 6 Marcel Wiesweg 2009-04-12 21:44:38 UTC
Merging to bug 189156 which has uses more recent KDE/digikam and provides a more verbatim backtrace.
I still consider this a kdelibs problem.

*** This bug has been marked as a duplicate of bug 189156 ***
Comment 7 caulier.gilles 2022-01-27 16:12:52 UTC
Fixed with https://bugs.kde.org/show_bug.cgi?id=189156