Bug 304809

Summary: Crash when attempting to download Facebook photos
Product: [Applications] digikam Reporter: Marcus Harrison <marcus>
Component: Plugin-WebService-FacebookAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, uneivi
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.0.0
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Marcus Harrison 2012-08-08 17:31:57 UTC
Application: gwenview (2.9.0)
KDE Platform Version: 4.9.00
Qt Version: 4.8.1
Operating System: Linux 3.2.0-27-generic x86_64
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:

I had navigated to a folder which already had images downloaded from Facebook in them, then used the Import from Facebook tool to attempt to download them. The Import from Facebook tool incorrectly appears under the, "Export" sub-menu in Plug-ins, along with all the other import plug-ins: the export plug-ins appear in the Batch Processing menu. The import wizard successfully logs me in from the previous session. I then selected to download photos of me and clicked Download. The crash did not happen immediately, but happened before the first download was confirmed.

The crash can be reproduced every time.

-- Backtrace:
Application: Gwenview (gwenview), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f7255eb2780 (LWP 27122))]

Thread 4 (Thread 0x7f72406f1700 (LWP 27124)):
#0  0x00007f725287c0bd in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f724f0688cf in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f724f02dba4 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f724f02dfd6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f724f02e164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f7254d06426 in QEventDispatcherGlib::processEvents (this=0x7f72380008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f7254cd5c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f7254cd5ed7 in QEventLoop::exec (this=0x7f72406f0dd0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f7254bd4fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007f7254cb59ff in QInotifyFileSystemWatcherEngine::run (this=0xdd22b0) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007f7254bd7fcb in QThreadPrivate::start (arg=0xdd22b0) at thread/qthread_unix.cpp:298
#11 0x00007f724f6eee9a in start_thread (arg=0x7f72406f1700) at pthread_create.c:308
#12 0x00007f72528894bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f723cfed700 (LWP 27126)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f7254bd84db in wait (time=18446744073709551615, this=0xd5f5a0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0xda9fe8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f72557fe3be in Gwenview::SemanticInfoThread::run (this=0xda9fd0) at ../../lib/semanticinfo/nepomuksemanticinfobackend.cpp:145
#4  0x00007f7254bd7fcb in QThreadPrivate::start (arg=0xda9fd0) at thread/qthread_unix.cpp:298
#5  0x00007f724f6eee9a in start_thread (arg=0x7f723cfed700) at pthread_create.c:308
#6  0x00007f72528894bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f723d7ee700 (LWP 27131)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f7254bd84db in wait (time=18446744073709551615, this=0x2339a10) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2338bf8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f722eeb7a24 in KIPIPlugins::KPRawThumbThread::run (this=0x2339080) at /build/buildd/digikam-2.6.0/extra/kipi-plugins/common/libkipiplugins/tools/kprawthumbthread.cpp:107
#4  0x00007f7254bd7fcb in QThreadPrivate::start (arg=0x2339080) at thread/qthread_unix.cpp:298
#5  0x00007f724f6eee9a in start_thread (arg=0x7f723d7ee700) at pthread_create.c:308
#6  0x00007f72528894bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f7255eb2780 (LWP 27122)):
[KCrash Handler]
#6  0x00007f72188eed41 in KIPIFacebookPlugin::FbWidget::getDestinationPath (this=<optimized out>) at /build/buildd/digikam-2.6.0/extra/kipi-plugins/facebook/fbwidget.cpp:285
#7  0x00007f72188ec2e8 in KIPIFacebookPlugin::FbWindow::slotGetPhotoDone (this=0x22c89b0, errCode=0, errMsg=..., photoData=...) at /build/buildd/digikam-2.6.0/extra/kipi-plugins/facebook/fbwindow.cpp:804
#8  0x00007f7254ceb281 in QMetaObject::activate (sender=0x2378ea0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff38e7b900) at kernel/qobject.cpp:3547
#9  0x00007f72188f247b in KIPIFacebookPlugin::FbTalker::signalGetPhotoDone (this=<optimized out>, _t1=0, _t2=..., _t3=...) at /build/buildd/digikam-2.6.0/obj-x86_64-linux-gnu/extra/kipi-plugins/facebook/fbtalker.moc:180
#10 0x00007f72188fcc3f in KIPIFacebookPlugin::FbTalker::slotResult (this=0x2378ea0, kjob=0x24e89d0) at /build/buildd/digikam-2.6.0/extra/kipi-plugins/facebook/fbtalker.cpp:839
#11 0x00007f72188fd034 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at /build/buildd/digikam-2.6.0/obj-x86_64-linux-gnu/extra/kipi-plugins/facebook/fbtalker.moc:96
#12 KIPIFacebookPlugin::FbTalker::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /build/buildd/digikam-2.6.0/obj-x86_64-linux-gnu/extra/kipi-plugins/facebook/fbtalker.moc:77
#13 0x00007f7254ceb281 in QMetaObject::activate (sender=0x24e89d0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff38e7bb00) at kernel/qobject.cpp:3547
#14 0x00007f7252f87192 in KJob::result (this=<optimized out>, _t1=0x24e89d0) at ./kjob.moc:208
#15 0x00007f7252f871d0 in KJob::emitResult (this=0x24e89d0) at ../../kdecore/jobs/kjob.cpp:318
#16 0x00007f7255353de4 in KIO::SimpleJob::slotFinished (this=0x24e89d0) at ../../kio/kio/job.cpp:494
#17 0x00007f725535b73d in KIO::TransferJob::slotFinished (this=0x24e89d0) at ../../kio/kio/job.cpp:1081
#18 0x00007f7254ceb281 in QMetaObject::activate (sender=0x2501860, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#19 0x00007f7255402441 in KIO::SlaveInterface::dispatch (this=<optimized out>, _cmd=104, rawdata=...) at ../../kio/kio/slaveinterface.cpp:172
#20 0x00007f72553ff195 in KIO::SlaveInterface::dispatch (this=0x2501860) at ../../kio/kio/slaveinterface.cpp:88
#21 0x00007f72553f241e in KIO::Slave::gotInput (this=0x2501860) at ../../kio/kio/slave.cpp:344
#22 0x00007f7254ceb281 in QMetaObject::activate (sender=0x231db90, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#23 0x00007f7255324687 in dequeue (this=<optimized out>) at ../../kio/kio/connection.cpp:82
#24 KIO::ConnectionPrivate::dequeue (this=0x24497e0) at ../../kio/kio/connection.cpp:71
#25 0x00007f7254cf0446 in QObject::event (this=0x231db90, e=<optimized out>) at kernel/qobject.cpp:1195
#26 0x00007f72534f6894 in notify_helper (e=0x2450880, receiver=0x231db90, this=0xbbc310) at kernel/qapplication.cpp:4559
#27 QApplicationPrivate::notify_helper (this=0xbbc310, receiver=0x231db90, e=0x2450880) at kernel/qapplication.cpp:4531
#28 0x00007f72534fb713 in QApplication::notify (this=0x7fff38e7cd80, receiver=0x231db90, e=0x2450880) at kernel/qapplication.cpp:4420
#29 0x00007f7254230456 in KApplication::notify (this=0x7fff38e7cd80, receiver=0x231db90, event=0x2450880) at ../../kdeui/kernel/kapplication.cpp:311
#30 0x00007f7254cd6e9c in QCoreApplication::notifyInternal (this=0x7fff38e7cd80, receiver=0x231db90, event=0x2450880) at kernel/qcoreapplication.cpp:876
#31 0x00007f7254cdac6a in sendEvent (event=0x2450880, receiver=0x231db90) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#32 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xb912b0) at kernel/qcoreapplication.cpp:1500
#33 0x00007f7254d05f93 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#34 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#35 0x00007f724f02dd53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007f724f02e0a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007f724f02e164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007f7254d063bf in QEventDispatcherGlib::processEvents (this=0xb92770, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#39 0x00007f725359ed5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#40 0x00007f7254cd5c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#41 0x00007f7254cd5ed7 in QEventLoop::exec (this=0x7fff38e7cce0, flags=...) at kernel/qeventloop.cpp:204
#42 0x00007f7254cdaf67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#43 0x0000000000427245 in main (argc=1, argv=0x7fff38e7d0a8) at ../../app/main.cpp:142

Reported using DrKonqi
Comment 1 Uneivi 2012-09-13 15:50:05 UTC
Created attachment 73890 [details]
New crash information added by DrKonqi

gwenview (2.9.0) on KDE Platform 4.9.00 using Qt 4.8.2

- What I was doing when the application crashed:

I was trying to download photoes from the facebook using kipiplugin "Import from facebook"

-- Backtrace (Reduced):
#6  0x00007f11bc45ad41 in KIPIFacebookPlugin::FbWidget::getDestinationPath (this=<optimized out>) at /build/buildd/digikam-2.6.0/extra/kipi-plugins/facebook/fbwidget.cpp:285
#7  0x00007f11bc4582e8 in KIPIFacebookPlugin::FbWindow::slotGetPhotoDone (this=0x34c81c0, errCode=0, errMsg=..., photoData=...) at /build/buildd/digikam-2.6.0/extra/kipi-plugins/facebook/fbwindow.cpp:804
[...]
#9  0x00007f11bc45e47b in KIPIFacebookPlugin::FbTalker::signalGetPhotoDone (this=<optimized out>, _t1=0, _t2=..., _t3=...) at /build/buildd/digikam-2.6.0/obj-x86_64-linux-gnu/extra/kipi-plugins/facebook/fbtalker.moc:180
#10 0x00007f11bc468c3f in KIPIFacebookPlugin::FbTalker::slotResult (this=0x3556fc0, kjob=0x2891290) at /build/buildd/digikam-2.6.0/extra/kipi-plugins/facebook/fbtalker.cpp:839
#11 0x00007f11bc469034 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at /build/buildd/digikam-2.6.0/obj-x86_64-linux-gnu/extra/kipi-plugins/facebook/fbtalker.moc:96
Comment 2 caulier.gilles 2013-12-23 14:07:44 UTC
This entry still valid using last kipi-plugins 3.5.0 ?

Gilles Caulier
Comment 3 Marcus Harrison 2013-12-24 10:11:06 UTC
Appears to be working for me now with version 3.5.0.