Bug 193748

Summary: Crash upon importing images from camera
Product: [Applications] digikam Reporter: tv.debian
Component: Portability-RuntimeAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, tv.debian
Priority: NOR    
Version: 0.10.0   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In: 1.0.0
Sentry Crash Report:

Description tv.debian 2009-05-23 11:21:10 UTC
Version:            (using KDE 4.2.2)
Compiler:          gcc 4.3.3 
OS:                Linux
Installed from:    Debian testing/unstable Packages

When trying to download images from my Panasonic (Lumix) dmc-tz5, Digikam crashes on the "images found" window opening with the following report:

Application : digiKam (digikam), signal SIGSEGV
   from /lib/libpthread.so.0
[Current thread is 0 (LWP 22528)]

Thread 10 (Thread 0x7f15433a4950 (LWP 22530)):
#0  0x00007f154bda7c09 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f154da97739 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#2  0x000000000064ca53 in ?? ()
#3  0x00007f154da96742 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f154bda3faa in start_thread () from /lib/libpthread.so.0
#5  0x00007f154cff82bd in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f153dd7d950 (LWP 22533)):
#0  0x00007f154bda7c09 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f154da97739 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#2  0x00007f15513d4b9c in Digikam::LoadSaveThread::run () from /usr/lib/libdigikamcore.so.1
#3  0x00007f154da96742 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f154bda3faa in start_thread () from /lib/libpthread.so.0
#5  0x00007f154cff82bd in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f153d57c950 (LWP 22534)):
#0  0x00007f154bda7c09 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f154da97739 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#2  0x00007f15513d4b9c in Digikam::LoadSaveThread::run () from /usr/lib/libdigikamcore.so.1
#3  0x00007f154da96742 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f154bda3faa in start_thread () from /lib/libpthread.so.0
#5  0x00007f154cff82bd in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f1531061950 (LWP 22536)):
#0  0x00007f154bda7e8d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f1536bd9cf1 in ?? () from /usr/lib/libxine.so.1
#2  0x00007f154bda3faa in start_thread () from /lib/libpthread.so.0
#3  0x00007f154cff82bd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f152e754950 (LWP 22537)):
#0  0x00007f154cff1b12 in select () from /lib/libc.so.6
#1  0x00007f1536c02694 in xine_usec_sleep () from /usr/lib/libxine.so.1
#2  0x00007f1536be780b in ?? () from /usr/lib/libxine.so.1
#3  0x00007f154bda3faa in start_thread () from /lib/libpthread.so.0
#4  0x00007f154cff82bd in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f152df53950 (LWP 22538)):
#0  0x00007f154cfef936 in poll () from /lib/libc.so.6
#1  0x00007f1548cab3af in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f1548cab6ac in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f154dba84de in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#4  0x00007f154db7d6f2 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#5  0x00007f154db7dabd in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#6  0x00007f154da937e8 in QThread::exec () from /usr/lib/libQtCore.so.4
#7  0x00007f1536e34634 in ?? () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#8  0x00007f154da96742 in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007f154bda3faa in start_thread () from /lib/libpthread.so.0
#10 0x00007f154cff82bd in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f152d549950 (LWP 22541)):
#0  0x00007f154cfef936 in poll () from /lib/libc.so.6
#1  0x00007f152d54e849 in ?? () from /usr/lib/xine/plugins/1.25/xineplug_ao_out_alsa.so
#2  0x00007f154bda3faa in start_thread () from /lib/libpthread.so.0
#3  0x00007f154cff82bd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f152cd48950 (LWP 22542)):
#0  0x00007f154bda7c09 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f1536beacc3 in ?? () from /usr/lib/libxine.so.1
#2  0x00007f154bda3faa in start_thread () from /lib/libpthread.so.0
#3  0x00007f154cff82bd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f152af1a950 (LWP 22568)):
[KCrash Handler]
#5  0x00007f15523682a7 in QByteArray::data () from /usr/lib/libQtSql.so.4
#6  0x00007f154db1ba1f in QIODevice::read () from /usr/lib/libQtCore.so.4
#7  0x00007f154db07b7d in QDataStream::operator>> () from /usr/lib/libQtCore.so.4
#8  0x00007f154e2bbd39 in KSycocaDict::Private::offsetForKey () from /usr/lib/libkdecore.so.5
#9  0x00007f154e2bbe01 in KSycocaDict::findMultiString () from /usr/lib/libkdecore.so.5
#10 0x00007f154e212a91 in KMimeTypeFactory::findFromFastPatternDict () from /usr/lib/libkdecore.so.5
#11 0x00007f154e213c02 in KMimeTypeFactory::findFromFileNameHelper () from /usr/lib/libkdecore.so.5
#12 0x00007f154e213d81 in KMimeTypeFactory::findFromFileName () from /usr/lib/libkdecore.so.5
#13 0x00007f154e21bdbf in KMimeType::findByUrlHelper () from /usr/lib/libkdecore.so.5
#14 0x00007f154e21c379 in KMimeType::findByUrl () from /usr/lib/libkdecore.so.5
#15 0x00000000004d0043 in ?? ()
#16 0x00000000004d1881 in ?? ()
#17 0x00000000004f67c8 in ?? ()
#18 0x00000000004f7b2a in ?? ()
#19 0x00007f154da96742 in ?? () from /usr/lib/libQtCore.so.4
#20 0x00007f154bda3faa in start_thread () from /lib/libpthread.so.0
#21 0x00007f154cff82bd in clone () from /lib/libc.so.6
#22 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f1553fc4760 (LWP 22528)):
#0  0x00007f154bda7e8d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f154da96195 in ?? () from /usr/lib/libQtCore.so.4
#2  0x00007f154da962ee in QThread::msleep () from /usr/lib/libQtCore.so.4
#3  0x00007f1536e57e7a in ?? () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#4  0x00007f1553a98030 in ?? () from /usr/lib/libphonon.so.4
#5  0x00007f154cf5ecad in exit () from /lib/libc.so.6
#6  0x00007f154e790c58 in ?? () from /usr/lib/libQtGui.so.4
#7  0x00007f154fb85f78 in KApplication::xioErrhandler () from /usr/lib/libkdeui.so.5
#8  0x00007f154c3ad53e in _XIOError () from /usr/lib/libX11.so.6
#9  0x00007f154c3b483f in ?? () from /usr/lib/libX11.so.6
#10 0x00007f154c3b4e00 in _XReply () from /usr/lib/libX11.so.6
#11 0x00007f154c391707 in XGetImage () from /usr/lib/libX11.so.6
#12 0x00007f154e80743b in QX11PixmapData::toImage () from /usr/lib/libQtGui.so.4
#13 0x00007f154e7f65ed in QPixmap::toImage () from /usr/lib/libQtGui.so.4
#14 0x00000000004ecb7b in ?? ()
#15 0x0000000000505a20 in ?? ()
#16 0x000000000051467a in ?? ()
#17 0x00007f154db8eeb8 in QObject::event () from /usr/lib/libQtCore.so.4
#18 0x00007f154e783f7d in QWidget::event () from /usr/lib/libQtGui.so.4
#19 0x00007f154eb3b1bb in QMainWindow::event () from /usr/lib/libQtGui.so.4
#20 0x00007f154fc90b08 in KXmlGuiWindow::event () from /usr/lib/libkdeui.so.5
#21 0x00007f154e7334fd in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#22 0x00007f154e73b77a in QApplication::notify () from /usr/lib/libQtGui.so.4
#23 0x00007f154fb8655b in KApplication::notify () from /usr/lib/libkdeui.so.5
#24 0x00007f154db7ee4c in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#25 0x00007f154db7faba in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib/libQtCore.so.4
#26 0x00007f154dba8833 in ?? () from /usr/lib/libQtCore.so.4
#27 0x00007f1548ca7e4a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#28 0x00007f1548cab510 in ?? () from /usr/lib/libglib-2.0.so.0
#29 0x00007f1548cab6ac in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#30 0x00007f154dba84bf in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#31 0x00007f154e7cbc7f in ?? () from /usr/lib/libQtGui.so.4
#32 0x00007f154db7d6f2 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#33 0x00007f154db7dabd in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#34 0x00007f154db7fd84 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#35 0x0000000000672877 in ?? ()
#36 0x00007f154cf485a6 in __libc_start_main () from /lib/libc.so.6
#37 0x0000000000458629 in _start ()

Further attempts result in the same behavior.
Comment 1 caulier.gilles 2009-05-23 23:30:56 UTC
gdb backtrace is not suitable. Are you installed digikam-debug package or compiled digiKam with full debug info (loook README fr details)

Anyway, with current code from svn (0.11.0), i have fixed some crash relevant of video thumbs get for camera.

Gilles Caulier
Comment 2 tv.debian 2009-05-24 00:05:46 UTC
I'm installing digikam-dbg, and I'll try to reproduce the crash then.

I've noted that everything is going well if I mount the camera as an external drive in Dolphin, prior to opening Digikam pictures-import gui. If I go directly for "Import images with Digikam" in the external media dialog I get the crash.

I'll try newer version as soon as it's available in Debian experimental or Unstable, I don't have time to build it now...

Thanks for you attention, and your work.
Comment 3 Andi Clemens 2009-10-01 16:15:42 UTC
Any updates here? Debian unstable should have new packages by now.

Andi
Comment 4 tv.debian 2009-10-01 18:24:50 UTC
Hi, the camera Panasonic (Lumix) dmc-tz5 is only episodically available to me, I had the opportunity to use it this week twice, and everything went well.
I am now running Digikam 2:1.0.0~beta4-2 from Debian "testing" ("Squeeze"), on KDE4.3.1. So regarding Digikam the crashes seem to be gone, issue solved.
Now let's find why the device-manager applet isn't unmounting cleanly mass-storage style cameras... But that's another story ;-)

Thanks for your work.