Bug 439525

Summary: Spectacle crashes when export using KIPI plugins
Product: [Applications] Spectacle Reporter: benaventeadrian
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED FIXED    
Severity: crash CC: alexander.lohnau, kde, mazanand1976, nate
Priority: NOR Keywords: drkonqi
Version: 21.04.2   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In: 21.04.3
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description benaventeadrian 2021-07-05 19:20:42 UTC
Application: spectacle (21.04.2)

Qt Version: 5.15.3
Frameworks Version: 5.83.0
Operating System: Linux 5.8.0-59-generic x86_64
Windowing System: Wayland
Drkonqi Version: 5.22.2
Distribution: KDE neon User Edition 5.22

-- Information about the crash:
- What I was doing when the application crashed:
Trying to export screen capture to an online service using KIPI plugins (Export -> More Online Service).
Tried with any service in the list and it crashed all times.

The crash can be reproduced every time.

-- Backtrace:
Application: Spectacle (spectacle), signal: Segmentation fault

[New LWP 20119]
[New LWP 20129]
[New LWP 20130]
[New LWP 20131]
[New LWP 20132]
[New LWP 20194]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f273d703aff in __GI___poll (fds=0x7ffd5a79b538, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
[Current thread is 1 (Thread 0x7f273983c8c0 (LWP 20118))]

Thread 7 (Thread 0x7f2706bfc700 (LWP 20194)):
#0  __GI___libc_read (nbytes=16, buf=0x7f2706bfbad0, fd=22) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=22, buf=0x7f2706bfbad0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007f273bd4cb2f in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f273bd03ebe in g_main_context_check () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f273bd04312 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f273bd044a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f273dcd0fcb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f273dc7525b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f273da8ec22 in QThread::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f273da8fdbc in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f273c791609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007f273d710293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f270bfff700 (LWP 20132)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e25ad77fe8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55e25ad77f98, cond=0x55e25ad77fc0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55e25ad77fc0, mutex=0x55e25ad77f98) at pthread_cond_wait.c:647
#3  0x00007f272df14e6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f272df14a6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f273c791609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f273d710293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f272c9b7700 (LWP 20131)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e25ad77fe8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55e25ad77f98, cond=0x55e25ad77fc0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55e25ad77fc0, mutex=0x55e25ad77f98) at pthread_cond_wait.c:647
#3  0x00007f272df14e6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f272df14a6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f273c791609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f273d710293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f272d1b8700 (LWP 20130)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e25ad77fe8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55e25ad77f98, cond=0x55e25ad77fc0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55e25ad77fc0, mutex=0x55e25ad77f98) at pthread_cond_wait.c:647
#3  0x00007f272df14e6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f272df14a6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f273c791609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f273d710293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f272d9b9700 (LWP 20129)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e25ad77fe8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55e25ad77f98, cond=0x55e25ad77fc0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55e25ad77fc0, mutex=0x55e25ad77f98) at pthread_cond_wait.c:647
#3  0x00007f272df14e6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f272df14a6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f273c791609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f273d710293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f27385f3700 (LWP 20119)):
#0  __libc_disable_asynccancel () at ../sysdeps/unix/sysv/linux/x86_64/cancellation.S:76
#1  0x00007f273d6ff191 in __GI___libc_read (nbytes=<optimized out>, buf=<optimized out>, fd=<optimized out>) at ../sysdeps/unix/sysv/linux/read.c:26
#2  __GI___libc_read (fd=<optimized out>, buf=<optimized out>, nbytes=<optimized out>) at ../sysdeps/unix/sysv/linux/read.c:24
#3  0x00007f273bd4cb2f in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f273bd03ebe in g_main_context_check () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f273bd04312 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f273bd044a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f273dcd0fcb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f273dc7525b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f273da8ec22 in QThread::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f273ed03f4b in  () at /lib/x86_64-linux-gnu/libQt5DBus.so.5
#11 0x00007f273da8fdbc in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f273c791609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#13 0x00007f273d710293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f273983c8c0 (LWP 20118)):
[KCrash Handler]
#4  0x00007f273dca2c6a in QObjectPrivate::connectImpl(QObject const*, int, QObject const*, void**, QtPrivate::QSlotObjectBase*, Qt::ConnectionType, int const*, QMetaObject const*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f273dca3115 in QObject::connectImpl(QObject const*, void**, QObject const*, void**, QtPrivate::QSlotObjectBase*, Qt::ConnectionType, int const*, QMetaObject const*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f270b3987e4 in QObject::connect<void (KIPI::Interface::*)(QUrl const&, QPixmap const&), void (KIPIPlugins::KPImagesList::*)(QUrl const&, QPixmap const&)>(QtPrivate::FunctionPointer<void (KIPI::Interface::*)(QUrl const&, QPixmap const&)>::Object const*, void (KIPI::Interface::*)(QUrl const&, QPixmap const&), QtPrivate::FunctionPointer<void (KIPIPlugins::KPImagesList::*)(QUrl const&, QPixmap const&)>::Object const*, void (KIPIPlugins::KPImagesList::*)(QUrl const&, QPixmap const&), Qt::ConnectionType) (type=Qt::AutoConnection, slot=&virtual table offset 496, receiver=0x55e25b3b4da0, signal=(void (KIPI::Interface::*)(KIPI::Interface * const, const QUrl &, const QPixmap &)) 0x7f273fa68ea0 <KIPI::Interface::gotThumbnail(QUrl const&, QPixmap const&)>, sender=0x30) at /usr/include/c++/9/bits/atomic_base.h:279
#7  KIPIPlugins::KPImagesList::KPImagesList(QWidget*, int) (this=0x55e25b3b4da0, parent=<optimized out>, iconSize=<optimized out>) at ./common/libkipiplugins/widgets/kpimageslist.cpp:580
#8  0x00007f270b2c3517 in KIPIImgurPlugin::ImgurImagesList::ImgurImagesList(QWidget*) (this=0x55e25b3b4da0, parent=<optimized out>) at ./imgur/imgurimageslist.cpp:50
#9  0x00007f270b2c20aa in KIPIImgurPlugin::ImgurWindow::ImgurWindow(QWidget*) (this=0x55e25b3c95f0) at ./imgur/imgurwindow.cpp:75
#10 0x00007f270b2b4ed8 in KIPIImgurPlugin::Plugin_Imgur::slotActivate() (this=0x55e25b31b450) at ./imgur/plugin_imgur.cpp:116
#11 0x00007f273dcad7b0 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f273e74c8e6 in QAction::triggered(bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007f273e74efb8 in QAction::activate(QAction::ActionEvent) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007f273e8d9832 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007f273e8e0f7e in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007f273e8e2212 in QMenu::mouseReleaseEvent(QMouseEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007f273e795cf6 in QWidget::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007f273e8e481b in QMenu::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007f273e752dc3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007f273e75be77 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007f273dc7675a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007f273e75b0a7 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007f273e7b19de in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007f273e7b4264 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007f273e752dc3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007f273e75bbb8 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007f273dc7675a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007f273e05a4e8 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#29 0x00007f273e05bb55 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#30 0x00007f273e0337ac in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#31 0x00007f273ba67514 in  () at /lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#32 0x00007f273bd0417d in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f273bd04400 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007f273bd044a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007f273dcd0fb2 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007f273dc7525b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#37 0x00007f273e8dea88 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#38 0x00007f273e8debb3 in QMenu::exec(QPoint const&, QAction*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#39 0x00007f273e8f0443 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#40 0x00007f273dcad7b0 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#41 0x00007f273e84af81 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#42 0x00007f273e84b745 in QAbstractButton::mousePressEvent(QMouseEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#43 0x00007f273e795d11 in QWidget::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#44 0x00007f273e8f0d43 in QPushButton::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#45 0x00007f273e752dc3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#46 0x00007f273e75be77 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#47 0x00007f273dc7675a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#48 0x00007f273e75b0a7 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#49 0x00007f273e7b0f44 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#50 0x00007f273e7b4264 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#51 0x00007f273e752dc3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#52 0x00007f273e75bbb8 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#53 0x00007f273dc7675a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#54 0x00007f273e05a4e8 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#55 0x00007f273e05bb55 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#56 0x00007f273e0337ac in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#57 0x00007f273ba67514 in  () at /lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#58 0x00007f273bd0417d in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#59 0x00007f273bd04400 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#60 0x00007f273bd044a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#61 0x00007f273dcd0fb2 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#62 0x00007f273dc7525b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#63 0x00007f273dc7d414 in QCoreApplication::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#64 0x000055e2589c80b8 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at ./src/Main.cpp:94
[Inferior 1 (process 20118) detached]

Possible duplicates by query: bug 422533.

Reported using DrKonqi
Comment 1 Dhirendra Pal Singh 2021-08-29 16:36:00 UTC
Created attachment 141124 [details]
New crash information added by DrKonqi

spectacle (21.04.1) using Qt 5.15.2

- What I was doing when the application crashed:
It is duplicate of the bug alredy presented in this bug report. I was trying to export/upload the captured screenshot to flicker.

-- Backtrace (Reduced):
#4  QObjectPrivate::connectImpl (sender=0xffff2b00ff93ffff, signal_index=5, receiver=0x556ef76d7310, slot=<optimized out>, slotObj=0x556ef6fc8210, type=<optimized out>, types=<optimized out>, senderMetaObject=<optimized out>) at kernel/qobject.h:132
#5  0x00007fb4f98fe96d in QObject::connectImpl (sender=0xffff2b00ff93ffff, signal=<optimized out>, receiver=0x556ef76d7310, slot=0x7fff49f65690, slotObj=0x556ef6fc8210, type=Qt::AutoConnection, types=0x0, senderMetaObject=0x7fb4fb577300 <KIPI::Interface::staticMetaObject>) at kernel/qobject.cpp:5001
#6  0x00007fb4d0069b0c in KIPIPlugins::KPImagesList::KPImagesList(QWidget*, int) () from /lib64/libKF5kipiplugins.so.5.9.1
#7  0x00007fb4d0070401 in KIPIPlugins::KPSettingsWidget::KPSettingsWidget(QWidget*, KIPI::Interface*, QString const&) () from /lib64/libKF5kipiplugins.so.5.9.1
#9  0x00007fb4cb58c96e in KIPIFlickrPlugin::Plugin_Flickr::slotActivateFlickr() () from /usr/lib64/qt5/plugins/kipiplugin_flickr.so