Bug 365123

Summary: Crash on export to Facebook
Product: [Applications] digikam Reporter: pbhj
Component: Plugin-WebService-FacebookAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 7.1.0
Sentry Crash Report:

Description pbhj 2016-07-05 20:22:06 UTC
Application: digikam (4.14.0)
KDE Platform Version: 4.14.15
Qt Version: 4.8.6
Operating System: Linux 4.2.0-36-generic x86_64
Distribution: Ubuntu 15.10

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

[Repeated without altering the size prior to upload and get the same result.]

Setting JPEG quality to 90 and max-size to 1200 (or any figures) causes the export dialog to crash. Note that I had preselected a group of images in the Album frame prior to opening the Export to Facebook dialog. Also used the "view history" trick to find the right URL to paste in.
Repeated same process with different figures and got the same crash result. Repeated without altering the size prior to upload and get the same result.
When I chose to alter the file size a file was uploaded (appearing properly on Facebook) despite the application crashing immediately that "upload" was initiated. This suggests to me that the process is lasting longer in the background and that perhaps the UI is crashing first??

The crash can be reproduced every time.

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

Thread 11 (Thread 0x7f63bf37a700 (LWP 1928)):
#0  0x00007f63e2c9688d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f63c982a12c in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#2  0x00007f63df6d26aa in start_thread (arg=0x7f63bf37a700) at pthread_create.c:333
#3  0x00007f63e2ca1e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 10 (Thread 0x7f63b85fa700 (LWP 1929)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f63e380e286 in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x2849e80) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x284ac70, mutex=mutex@entry=0x284ac68, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x0000000000604864 in Digikam::ScanController::run (this=0x29381b0) at /build/digikam-48Y6Xx/digikam-4.14.0/core/app/database/scancontroller.cpp:725
#4  0x00007f63e380dd1c in QThreadPrivate::start (arg=0x29381b0) at thread/qthread_unix.cpp:349
#5  0x00007f63df6d26aa in start_thread (arg=0x7f63b85fa700) at pthread_create.c:333
#6  0x00007f63e2ca1e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 9 (Thread 0x7f63b7df9700 (LWP 1930)):
#0  0x00007f63dae84888 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f63dae8511b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f63dae852fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f63e394e20e in QEventDispatcherGlib::processEvents (this=0x7f63a80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#4  0x00007f63e391c0d1 in QEventLoop::processEvents (this=this@entry=0x7f63b7df8a00, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f63e391c445 in QEventLoop::exec (this=this@entry=0x7f63b7df8a00, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f63e380b4f9 in QThread::exec (this=this@entry=0x2878fd0) at thread/qthread.cpp:538
#7  0x00007f63e38fc133 in QInotifyFileSystemWatcherEngine::run (this=0x2878fd0) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007f63e380dd1c in QThreadPrivate::start (arg=0x2878fd0) at thread/qthread_unix.cpp:349
#9  0x00007f63df6d26aa in start_thread (arg=0x7f63b7df9700) at pthread_create.c:333
#10 0x00007f63e2ca1e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 8 (Thread 0x7f63b75f8700 (LWP 1998)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f63e380e286 in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x294da20) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x29f56f0, mutex=mutex@entry=0x29f56e8, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f63e7e76082 in Digikam::ParkingThread::run (this=0x29f56d0) at /build/digikam-48Y6Xx/digikam-4.14.0/core/libs/threads/threadmanager.cpp:119
#4  0x00007f63e380dd1c in QThreadPrivate::start (arg=0x29f56d0) at thread/qthread_unix.cpp:349
#5  0x00007f63df6d26aa in start_thread (arg=0x7f63b75f8700) at pthread_create.c:333
#6  0x00007f63e2ca1e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 7 (Thread 0x7f6375ffb700 (LWP 2459)):
#0  0x00007f63daec9869 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f63dae84180 in g_main_context_acquire () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f63dae850a5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f63dae852fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f63e394e20e in QEventDispatcherGlib::processEvents (this=0x7f6338099900, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#5  0x00007f63e391c0d1 in QEventLoop::processEvents (this=this@entry=0x7f6375ffa9e0, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f63e391c445 in QEventLoop::exec (this=this@entry=0x7f6375ffa9e0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f63e7e75673 in Digikam::WorkerObjectRunnable::run (this=0x190d6b60) at /build/digikam-48Y6Xx/digikam-4.14.0/core/libs/threads/threadmanager.cpp:196
#8  0x00007f63e3800dba in QThreadPoolThread::run (this=0x586ffc0) at concurrent/qthreadpool.cpp:108
#9  0x00007f63e380dd1c in QThreadPrivate::start (arg=0x586ffc0) at thread/qthread_unix.cpp:349
#10 0x00007f63df6d26aa in start_thread (arg=0x7f6375ffb700) at pthread_create.c:333
#11 0x00007f63e2ca1e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7f639cb7a700 (LWP 2473)):
#0  0x00007f63e2c9244d in read () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f63daec84e0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f63dae84cd4 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f63dae85190 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f63dae852fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f63e394e20e in QEventDispatcherGlib::processEvents (this=0x7f6398002810, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#6  0x00007f63e391c0d1 in QEventLoop::processEvents (this=this@entry=0x7f639cb799e0, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f63e391c445 in QEventLoop::exec (this=this@entry=0x7f639cb799e0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f63e7e75673 in Digikam::WorkerObjectRunnable::run (this=0x7f63381daea0) at /build/digikam-48Y6Xx/digikam-4.14.0/core/libs/threads/threadmanager.cpp:196
#9  0x00007f63e3800dba in QThreadPoolThread::run (this=0x586f300) at concurrent/qthreadpool.cpp:108
#10 0x00007f63e380dd1c in QThreadPrivate::start (arg=0x586f300) at thread/qthread_unix.cpp:349
#11 0x00007f63df6d26aa in start_thread (arg=0x7f639cb7a700) at pthread_create.c:333
#12 0x00007f63e2ca1e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f639097c700 (LWP 2474)):
#0  0x00007f63e2c9688d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f63dae851ec in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f63dae852fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f63e394e20e in QEventDispatcherGlib::processEvents (this=0x7f638406bfa0, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#4  0x00007f63e391c0d1 in QEventLoop::processEvents (this=this@entry=0x7f639097b9e0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f63e391c445 in QEventLoop::exec (this=this@entry=0x7f639097b9e0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f63e7e75673 in Digikam::WorkerObjectRunnable::run (this=0x7f6339534840) at /build/digikam-48Y6Xx/digikam-4.14.0/core/libs/threads/threadmanager.cpp:196
#7  0x00007f63e3800dba in QThreadPoolThread::run (this=0x5868a40) at concurrent/qthreadpool.cpp:108
#8  0x00007f63e380dd1c in QThreadPrivate::start (arg=0x5868a40) at thread/qthread_unix.cpp:349
#9  0x00007f63df6d26aa in start_thread (arg=0x7f639097c700) at pthread_create.c:333
#10 0x00007f63e2ca1e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f63767fc700 (LWP 2475)):
#0  0x00007f63e394dc28 in QBasicAtomicInt::testAndSetOrdered (newValue=0, expectedValue=1, this=0x5868610) at ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:145
#1  QBasicAtomicInt::testAndSetRelease (newValue=0, expectedValue=1, this=0x5868610) at ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:272
#2  QMutex::unlockInline (this=0x58685c8) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:171
#3  QMutexLocker::unlock (this=<synthetic pointer>) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:121
#4  QMutexLocker::~QMutexLocker (this=<synthetic pointer>, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:115
#5  QThreadData::canWaitLocked (this=0x5868580) at ../../include/QtCore/private/../../../src/corelib/thread/qthread_p.h:228
#6  postEventSourcePrepare (s=0x7f63402455d0, timeout=0x7f63767fb814) at kernel/qeventdispatcher_glib.cpp:279
#7  0x00007f63dae8477d in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f63dae8511b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f63dae852fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f63e394e20e in QEventDispatcherGlib::processEvents (this=0x7f63401bd140, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#11 0x00007f63e391c0d1 in QEventLoop::processEvents (this=this@entry=0x7f63767fb9e0, flags=...) at kernel/qeventloop.cpp:149
#12 0x00007f63e391c445 in QEventLoop::exec (this=this@entry=0x7f63767fb9e0, flags=...) at kernel/qeventloop.cpp:204
#13 0x00007f63e7e75673 in Digikam::WorkerObjectRunnable::run (this=0x7f633943fb70) at /build/digikam-48Y6Xx/digikam-4.14.0/core/libs/threads/threadmanager.cpp:196
#14 0x00007f63e3800dba in QThreadPoolThread::run (this=0x58683e0) at concurrent/qthreadpool.cpp:108
#15 0x00007f63e380dd1c in QThreadPrivate::start (arg=0x58683e0) at thread/qthread_unix.cpp:349
#16 0x00007f63df6d26aa in start_thread (arg=0x7f63767fc700) at pthread_create.c:333
#17 0x00007f63e2ca1e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f6397d7e700 (LWP 2476)):
#0  0x00007f63daec9884 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f63dae8510e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f63dae852fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f63e394e20e in QEventDispatcherGlib::processEvents (this=0x7f6344037040, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#4  0x00007f63e391c0d1 in QEventLoop::processEvents (this=this@entry=0x7f6397d7d9e0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f63e391c445 in QEventLoop::exec (this=this@entry=0x7f6397d7d9e0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f63e7e75673 in Digikam::WorkerObjectRunnable::run (this=0x7f6339534b80) at /build/digikam-48Y6Xx/digikam-4.14.0/core/libs/threads/threadmanager.cpp:196
#7  0x00007f63e3800dba in QThreadPoolThread::run (this=0x586ecc0) at concurrent/qthreadpool.cpp:108
#8  0x00007f63e380dd1c in QThreadPrivate::start (arg=0x586ecc0) at thread/qthread_unix.cpp:349
#9  0x00007f63df6d26aa in start_thread (arg=0x7f6397d7e700) at pthread_create.c:333
#10 0x00007f63e2ca1e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f6396321700 (LWP 2483)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f63e380e286 in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x1906d820) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x16c92b30, mutex=mutex@entry=0x16c92b28, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f63343757f8 in KIPIPlugins::KPRawThumbThread::run (this=0x19035a80) at /build/digikam-48Y6Xx/digikam-4.14.0/extra/kipi-plugins/common/libkipiplugins/tools/kprawthumbthread.cpp:108
#4  0x00007f63e380dd1c in QThreadPrivate::start (arg=0x19035a80) at thread/qthread_unix.cpp:349
#5  0x00007f63df6d26aa in start_thread (arg=0x7f6396321700) at pthread_create.c:333
#6  0x00007f63e2ca1e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f63ea2e3b80 (LWP 1926)):
[KCrash Handler]
#6  QPixmapData::isNull (this=<optimized out>) at image/qpixmapdata_p.h:131
#7  QPixmap::isNull (this=this@entry=0x190dff38) at image/qpixmap.cpp:579
#8  0x00007f63e441496b in QPixmap::copy (this=this@entry=0x190dff38, rect=...) at image/qpixmap.cpp:382
#9  0x00007f63e44156bf in QPixmap::QPixmap (this=0x7ffe80b60060, pixmap=...) at image/qpixmap.cpp:303
#10 0x00007f63e5121f38 in KPixmapSequence::frameAt (this=0x180f5f08, index=1) at ../../kdeui/util/kpixmapsequence.cpp:143
#11 0x00007f6334387251 in KIPIPlugins::KPImagesList::slotProgressTimerDone (this=0x160e9c10) at /build/digikam-48Y6Xx/digikam-4.14.0/extra/kipi-plugins/common/libkipiplugins/widgets/kpimageslist.cpp:1153
#12 0x00007f63e3931f60 in QMetaObject::activate (sender=0x1836f470, m=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3567
#13 0x00007f63e3937bd3 in QObject::event (this=0x1836f470, e=<optimized out>) at kernel/qobject.cpp:1253
#14 0x00007f63e4337cdc in QApplicationPrivate::notify_helper (this=this@entry=0x26f9340, receiver=receiver@entry=0x1836f470, e=e@entry=0x7ffe80b604d0) at kernel/qapplication.cpp:4570
#15 0x00007f63e433ec16 in QApplication::notify (this=this@entry=0x7ffe80b60bf0, receiver=receiver@entry=0x1836f470, e=e@entry=0x7ffe80b604d0) at kernel/qapplication.cpp:4356
#16 0x00007f63e50a1a2a in KApplication::notify (this=0x7ffe80b60bf0, receiver=0x1836f470, event=0x7ffe80b604d0) at ../../kdeui/kernel/kapplication.cpp:311
#17 0x00007f63e391d85d in QCoreApplication::notifyInternal (this=0x7ffe80b60bf0, receiver=0x1836f470, event=event@entry=0x7ffe80b604d0) at kernel/qcoreapplication.cpp:955
#18 0x00007f63e39506c0 in QCoreApplication::sendEvent (event=0x7ffe80b604d0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#19 QTimerInfoList::activateTimers (this=0x26ee470) at kernel/qeventdispatcher_unix.cpp:621
#20 0x00007f63e394d869 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:193
#21 idleTimerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:240
#22 0x00007f63dae84ff7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007f63dae85250 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007f63dae852fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f63e394e1ee in QEventDispatcherGlib::processEvents (this=0x26e0b00, flags=...) at kernel/qeventdispatcher_glib.cpp:450
#26 0x00007f63e43e2c26 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#27 0x00007f63e391c0d1 in QEventLoop::processEvents (this=this@entry=0x7ffe80b60750, flags=...) at kernel/qeventloop.cpp:149
#28 0x00007f63e391c445 in QEventLoop::exec (this=this@entry=0x7ffe80b60750, flags=...) at kernel/qeventloop.cpp:204
#29 0x00007f63e3922429 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227
#30 0x00007f63e4335f2c in QApplication::exec () at kernel/qapplication.cpp:3828
#31 0x00000000004964ae in main (argc=<optimized out>, argv=<optimized out>) at /build/digikam-48Y6Xx/digikam-4.14.0/core/app/main/main.cpp:230

Possible duplicates by query: bug 364494, bug 361678, bug 361312, bug 361310, bug 361102.

Reported using DrKonqi
Comment 1 caulier.gilles 2016-07-06 04:25:21 UTC

*** This bug has been marked as a duplicate of bug 361678 ***
Comment 2 caulier.gilles 2020-07-26 08:19:01 UTC
Fixed with #361678