Bug 199608

Summary: Digikam crash after photo scan
Product: [Applications] digikam Reporter: Steven P. Ulrick <lists-kdedevel>
Component: Preview-ImageAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: andresbajotierra, caulier.gilles
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In: 5.4.0
Sentry Crash Report:

Description Steven P. Ulrick 2009-07-09 22:46:07 UTC
Application that crashed: digikam
Version of the application: 1.0.0-beta3 (rev.: 993543)
KDE Version: 4.3.60 (KDE 4.3.60 (KDE 4.4 >= 20090706))
Qt Version: 4.5.1
Operating System: Linux 2.6.29.5-191.fc11.x86_64 x86_64

What I was doing when the application crashed:
While attempting to setup Digikam (compiled from Extragear SVN), the scanning of my intended photo directory appears to complete, but then Digikam immediately and consistently crashes.  The directory in question contains approximately 4,440 JPG images, and is mounted from another computer on our network using sshfs.

I am running a fully updated install of Fedora 11, with KDE compiled from SVN Trunk.  My system is a 2ghz Intel Xeon QuadCore (obviously 64bit) with 8gigs of RAM.

 -- Backtrace:
Application: digiKam (digikam), signal: Aborted
[Current thread is 1 (Thread 0x7f3deb6a3820 (LWP 21598))]

Thread 8 (Thread 0x7f3de2349910 (LWP 21599)):
#0  0x00000036a9c0b2f9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f3def24b35b in QWaitConditionPrivate::wait (this=0x221b8d0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007f3def24b103 in QWaitCondition::wait (this=0x221c118, mutex=0x221c110, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00000000006ed645 in Digikam::ScanController::run (this=0x221dfe0) at /home/kde-trunk/kde/src/KDE/extragear/graphics/digikam/digikam/scancontroller.cpp:455
#4  0x00007f3def249f95 in QThreadPrivate::start (arg=0x221dfe0) at thread/qthread_unix.cpp:189
#5  0x00000036a9c0686a in start_thread () from /lib64/libpthread.so.0
#6  0x00000036a90de25d in clone () from /lib64/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f3de0c26910 (LWP 21602)):
#0  0x0000003793a3950c in g_main_context_release () from /lib64/libglib-2.0.so.0
#1  0x0000003793a3aee8 in ?? () from /lib64/libglib-2.0.so.0
#2  0x0000003793a3b300 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007f3def37dfcc in QEventDispatcherGlib::processEvents (this=0x7f3dd40008c0, flags={i = 36}) at kernel/qeventdispatcher_glib.cpp:326
#4  0x00007f3def34893c in QEventLoop::processEvents (this=0x7f3de0c25ec0, flags={i = 36}) at kernel/qeventloop.cpp:149
#5  0x00007f3def348a77 in QEventLoop::exec (this=0x7f3de0c25ec0, flags={i = 0}) at kernel/qeventloop.cpp:196
#6  0x00007f3def247893 in QThread::exec (this=0x228c860) at thread/qthread.cpp:487
#7  0x00007f3df2b85042 in Digikam::ImageFilterModelWorker::Thread::run (this=0x228c860) at /home/kde-trunk/kde/src/KDE/extragear/graphics/digikam/libs/models/imagefiltermodelthreads.h:66
#8  0x00007f3def249f95 in QThreadPrivate::start (arg=0x228c860) at thread/qthread_unix.cpp:189
#9  0x00000036a9c0686a in start_thread () from /lib64/libpthread.so.0
#10 0x00000036a90de25d in clone () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f3de1627910 (LWP 21603)):
#0  0x00000036a90d4f73 in poll () from /lib64/libc.so.6
#1  0x0000003793a3afbc in ?? () from /lib64/libglib-2.0.so.0
#2  0x0000003793a3b300 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007f3def37dfcc in QEventDispatcherGlib::processEvents (this=0x7f3dd80008c0, flags={i = 36}) at kernel/qeventdispatcher_glib.cpp:326
#4  0x00007f3def34893c in QEventLoop::processEvents (this=0x7f3de1626ec0, flags={i = 36}) at kernel/qeventloop.cpp:149
#5  0x00007f3def348a77 in QEventLoop::exec (this=0x7f3de1626ec0, flags={i = 0}) at kernel/qeventloop.cpp:196
#6  0x00007f3def247893 in QThread::exec (this=0x2294450) at thread/qthread.cpp:487
#7  0x00007f3df2b85042 in Digikam::ImageFilterModelWorker::Thread::run (this=0x2294450) at /home/kde-trunk/kde/src/KDE/extragear/graphics/digikam/libs/models/imagefiltermodelthreads.h:66
#8  0x00007f3def249f95 in QThreadPrivate::start (arg=0x2294450) at thread/qthread_unix.cpp:189
#9  0x00000036a9c0686a in start_thread () from /lib64/libpthread.so.0
#10 0x00000036a90de25d in clone () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f3dd3fff910 (LWP 21604)):
#0  0x00000036a9c0b2f9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f3def24b35b in QWaitConditionPrivate::wait (this=0x2118a00, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007f3def24b103 in QWaitCondition::wait (this=0x2294b70, mutex=0x2294b68, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f3df300588e in Digikam::LoadSaveThread::run (this=0x2294b50) at /home/kde-trunk/kde/src/KDE/extragear/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0x00007f3def249f95 in QThreadPrivate::start (arg=0x2294b50) at thread/qthread_unix.cpp:189
#5  0x00000036a9c0686a in start_thread () from /lib64/libpthread.so.0
#6  0x00000036a90de25d in clone () from /lib64/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f3dd35fe910 (LWP 21605)):
#0  0x00000036a90d4f73 in poll () from /lib64/libc.so.6
#1  0x0000003793a3afbc in ?? () from /lib64/libglib-2.0.so.0
#2  0x0000003793a3b300 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007f3def37dfcc in QEventDispatcherGlib::processEvents (this=0x7f3dc40008c0, flags={i = 36}) at kernel/qeventdispatcher_glib.cpp:326
#4  0x00007f3def34893c in QEventLoop::processEvents (this=0x7f3dd35fdec0, flags={i = 36}) at kernel/qeventloop.cpp:149
#5  0x00007f3def348a77 in QEventLoop::exec (this=0x7f3dd35fdec0, flags={i = 0}) at kernel/qeventloop.cpp:196
#6  0x00007f3def247893 in QThread::exec (this=0x223e600) at thread/qthread.cpp:487
#7  0x00000000006e3e7a in Digikam::MetadataManagerWorker::Thread::run (this=0x223e600)
    at /home/kde-trunk/kde/build/KDE/extragear/graphics/digikam/digikam/../../../../../../src/KDE/extragear/graphics/digikam/digikam/metadatamanager_p.h:145
#8  0x00007f3def249f95 in QThreadPrivate::start (arg=0x223e600) at thread/qthread_unix.cpp:189
#9  0x00000036a9c0686a in start_thread () from /lib64/libpthread.so.0
#10 0x00000036a90de25d in clone () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f3dd2bfd910 (LWP 21606)):
#0  0x00000036a90d4f73 in poll () from /lib64/libc.so.6
#1  0x0000003793a3afbc in ?? () from /lib64/libglib-2.0.so.0
#2  0x0000003793a3b300 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007f3def37dfcc in QEventDispatcherGlib::processEvents (this=0x7f3dc80008c0, flags={i = 36}) at kernel/qeventdispatcher_glib.cpp:326
#4  0x00007f3def34893c in QEventLoop::processEvents (this=0x7f3dd2bfcec0, flags={i = 36}) at kernel/qeventloop.cpp:149
#5  0x00007f3def348a77 in QEventLoop::exec (this=0x7f3dd2bfcec0, flags={i = 0}) at kernel/qeventloop.cpp:196
#6  0x00007f3def247893 in QThread::exec (this=0x22f9f40) at thread/qthread.cpp:487
#7  0x00000000006e3e7a in Digikam::MetadataManagerWorker::Thread::run (this=0x22f9f40)
    at /home/kde-trunk/kde/build/KDE/extragear/graphics/digikam/digikam/../../../../../../src/KDE/extragear/graphics/digikam/digikam/metadatamanager_p.h:145
#8  0x00007f3def249f95 in QThreadPrivate::start (arg=0x22f9f40) at thread/qthread_unix.cpp:189
#9  0x00000036a9c0686a in start_thread () from /lib64/libpthread.so.0
#10 0x00000036a90de25d in clone () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f3dd21fc910 (LWP 21607)):
#0  0x00000036a9c0b2f9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f3def24b35b in QWaitConditionPrivate::wait (this=0x2263830, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007f3def24b103 in QWaitCondition::wait (this=0x22fef50, mutex=0x22fef48, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f3df300588e in Digikam::LoadSaveThread::run (this=0x22fef30) at /home/kde-trunk/kde/src/KDE/extragear/graphics/digikam/libs/threadimageio/loadsavethread.cpp:136
#4  0x00007f3def249f95 in QThreadPrivate::start (arg=0x22fef30) at thread/qthread_unix.cpp:189
#5  0x00000036a9c0686a in start_thread () from /lib64/libpthread.so.0
#6  0x00000036a90de25d in clone () from /lib64/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f3deb6a3820 (LWP 21598)):
[KCrash Handler]
#5  0x00000036a90332f5 in raise () from /lib64/libc.so.6
#6  0x00000036a9034b20 in abort () from /lib64/libc.so.6
#7  0x00007f3def23fc3b in qt_message_output (msgType=QtFatalMsg, buf=0x2699718 "ASSERT: \"!fileName().isEmpty()\" in file /home/kde-trunk/kde/src/KDE/kdelibs/kdecore/util/klibrary.cpp, line 169")
    at global/qglobal.cpp:2017
#8  0x00007f3def2404d6 in qFatal (msg=0x7f3def3a6298 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2216
#9  0x00007f3def23f866 in qt_assert (assertion=0x7f3defb2e7db "!fileName().isEmpty()", file=0x7f3defb2e650 "/home/kde-trunk/kde/src/KDE/kdelibs/kdecore/util/klibrary.cpp", line=169)
    at global/qglobal.cpp:1786
#10 0x00007f3defade327 in KLibrary::factory (this=0x26943d0, factoryname=0x2698fe8 "phonon_xine") at /home/kde-trunk/kde/src/KDE/kdelibs/kdecore/util/klibrary.cpp:169
#11 0x00007f3defae4a12 in KPluginLoader::factory (this=0x7fffa962b0c0) at /home/kde-trunk/kde/src/KDE/kdelibs/kdecore/util/kpluginloader.cpp:153
#12 0x00007f3dd0259e78 in KService::createInstance<QObject> (this=0x2674a10, parentWidget=0x0, parent=0x0, args=@0x7fffa962b280, error=0x7fffa962b270) at /usr/local/kde-trunk/include/kservice.h:515
#13 0x00007f3dd0259187 in KService::createInstance<QObject> (this=0x2674a10, parent=0x0, args=@0x7fffa962b280, error=0x7fffa962b270) at /usr/local/kde-trunk/include/kservice.h:494
#14 0x00007f3dd0256c7e in Phonon::KdePlatformPlugin::createBackend (this=0x266ef20, newService={d = 0x2674a10})
    at /home/kde-trunk/kde/src/KDE/kdebase/runtime/phonon/platform_kde/kdeplatformplugin.cpp:145
#15 0x00007f3dd0257402 in Phonon::KdePlatformPlugin::createBackend (this=0x266ef20) at /home/kde-trunk/kde/src/KDE/kdebase/runtime/phonon/platform_kde/kdeplatformplugin.cpp:204
#16 0x00007f3df5407b22 in Phonon::FactoryPrivate::createBackend (this=0x2664f00) at /home/kde-trunk/kde/src/KDE/kdesupport/phonon/phonon/factory.cpp:118
#17 0x00007f3df540a2a9 in Phonon::Factory::backend (createWhenNull=true) at /home/kde-trunk/kde/src/KDE/kdesupport/phonon/phonon/factory.cpp:416
#18 0x00007f3df5405f79 in Phonon::GlobalConfig::audioOutputDeviceListFor (this=0x7fffa962b8e0, category=Phonon::VideoCategory, override=6)
    at /home/kde-trunk/kde/src/KDE/kdesupport/phonon/phonon/globalconfig.cpp:159
#19 0x00007f3df5406100 in Phonon::GlobalConfig::audioOutputDeviceFor (this=0x7fffa962b8e0, category=Phonon::VideoCategory, override=6)
    at /home/kde-trunk/kde/src/KDE/kdesupport/phonon/phonon/globalconfig.cpp:178
#20 0x00007f3df5401707 in Phonon::AudioOutputPrivate::init (this=0x2664e90, c=Phonon::VideoCategory) at /home/kde-trunk/kde/src/KDE/kdesupport/phonon/phonon/audiooutput.cpp:94
#21 0x00007f3df540138f in Phonon::AudioOutput::AudioOutput(Phonon::Category, struct QObject *) (this=0x22714b0, category=Phonon::VideoCategory, parent=0x2664960)
    at /home/kde-trunk/kde/src/KDE/kdesupport/phonon/phonon/audiooutput.cpp:67
#22 0x00007f3df54104bb in Phonon::VideoPlayerPrivate::init (this=0x229baa0, q=0x2664960, category=Phonon::VideoCategory) at /home/kde-trunk/kde/src/KDE/kdesupport/phonon/phonon/videoplayer.cpp:59
#23 0x00007f3df5410795 in Phonon::VideoPlayer::VideoPlayer(Phonon::Category, struct QWidget *) (this=0x2664960, category=Phonon::VideoCategory, parent=0x227d5d0)
    at /home/kde-trunk/kde/src/KDE/kdesupport/phonon/phonon/videoplayer.cpp:75
#24 0x00000000006d9988 in Digikam::MediaPlayerView::MediaPlayerView(struct QWidget *) (this=0x26626a0, parent=0x22fe2d0)
    at /home/kde-trunk/kde/src/KDE/extragear/graphics/digikam/digikam/mediaplayerview.cpp:108
#25 0x0000000000654162 in Digikam::AlbumWidgetStack::AlbumWidgetStack(struct QWidget *) (this=0x22fe2d0, parent=0x227aae0)
    at /home/kde-trunk/kde/src/KDE/extragear/graphics/digikam/digikam/albumwidgetstack.cpp:123
#26 0x0000000000684336 in Digikam::DigikamView::DigikamView(struct QWidget *) (this=0x223f060, parent=0x22a8a10) at /home/kde-trunk/kde/src/KDE/extragear/graphics/digikam/digikam/digikamview.cpp:207
#27 0x0000000000665124 in Digikam::DigikamApp::setupView (this=0x22a8a10) at /home/kde-trunk/kde/src/KDE/extragear/graphics/digikam/digikam/digikamapp.cpp:466
#28 0x0000000000663bf7 in Digikam::DigikamApp::DigikamApp (this=0x22a8a10, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>)
    at /home/kde-trunk/kde/src/KDE/extragear/graphics/digikam/digikam/digikamapp.cpp:205
#29 0x000000000074dadb in main (argc=1, argv=0x7fffa962c6f8) at /home/kde-trunk/kde/src/KDE/extragear/graphics/digikam/digikam/main.cpp:161

Reported using DrKonqi
Comment 1 caulier.gilles 2009-07-09 22:49:44 UTC
Sound like the crash appears in Phonon component used by digiKam.

Gilles Caulier
Comment 2 Dario Andres 2009-07-09 23:17:05 UTC
Merging with bug 199439. Thanks

*** This bug has been marked as a duplicate of bug 199439 ***
Comment 3 caulier.gilles 2017-01-06 18:07:40 UTC
digiKam 5.4.0 bundles will use QtAV framework instead Qt5Multimedia to thumb
and play video/audio. The Slideshow tool will also support video as well.

QtAV use ffmpeg codecs. It's multi-platform and will always available in
OSX, Windows and Linux bundles that digiKam team provide.

For Linux packagers, you will need to turn on video support at compilation time
and solve QtAV dependencies...

See screenshots here :

https://www.flickr.com/photos/digikam/30886133553
https://www.flickr.com/photos/digikam/31679362466
https://www.flickr.com/photos/digikam/31572654722
https://www.flickr.com/photos/digikam/31726086736

Bundles have been recompiled are posted to GDrive for testing :

https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM