Bug 412739

Summary: spectacle crash after taking screenshot
Product: [Applications] Spectacle Reporter: Vincent-Xavier JUMEL <endymion+kde>
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED WORKSFORME    
Severity: crash CC: b0, kde, nate
Priority: NOR Keywords: drkonqi
Version: 19.08.1   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Vincent-Xavier JUMEL 2019-10-08 19:55:14 UTC
Application: spectacle (19.08.1)

Qt Version: 5.11.3
Frameworks Version: 5.62.0
Operating System: Linux 5.2.0-3-amd64 x86_64
Distribution: Debian GNU/Linux bullseye/sid

-- Information about the crash:
- What I was doing when the application crashed:
Taking a screenshot and tried to drag'n' drop it.
I can't either save the file.

The crash can be reproduced every time.

-- Backtrace:
Application: Spectacle (spectacle), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f0a9e502800 (LWP 13712))]

Thread 5 (Thread 0x7f0a8bc9e700 (LWP 13720)):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x55bc551aa138) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55bc551aa0e8, cond=0x55bc551aa110) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55bc551aa110, mutex=0x55bc551aa0e8) at pthread_cond_wait.c:655
#3  0x00007f0a958be35b in ?? () from /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#4  0x00007f0a958bdf77 in ?? () from /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#5  0x00007f0aa17bdfb7 in start_thread (arg=<optimized out>) at pthread_create.c:486
#6  0x00007f0aa29d52ef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f0a94fb6700 (LWP 13719)):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x55bc552b5444) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55bc552b53f0, cond=0x55bc552b5418) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55bc552b5418, mutex=0x55bc552b53f0) at pthread_cond_wait.c:655
#3  0x00007f0a958be35b in ?? () from /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#4  0x00007f0a958bdf77 in ?? () from /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#5  0x00007f0aa17bdfb7 in start_thread (arg=<optimized out>) at pthread_create.c:486
#6  0x00007f0aa29d52ef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f0a97fff700 (LWP 13714)):
#0  0x00007f0aa29cad2f in __GI___poll (fds=0x7f0a90004e30, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f0aa0bdc09e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f0aa0bdc1bf in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f0aa2f313e3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f0aa2edecfb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f0aa2d2ed8e in QThread::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f0aa3711545 in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f0aa2d38a07 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f0aa17bdfb7 in start_thread (arg=<optimized out>) at pthread_create.c:486
#9  0x00007f0aa29d52ef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f0a9d936700 (LWP 13713)):
#0  0x00007f0aa29cad2f in __GI___poll (fds=0x7f0a9d935cb8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f0aa442dcf7 in ?? () from /lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f0aa442f91a in xcb_wait_for_event () from /lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f0a9e0bdd79 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f0aa2d38a07 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f0aa17bdfb7 in start_thread (arg=<optimized out>) at pthread_create.c:486
#6  0x00007f0aa29d52ef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f0a9e502800 (LWP 13712)):
[KCrash Handler]
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#7  0x00007f0aa2900535 in __GI_abort () at abort.c:79
#8  0x00007f0aa2956db8 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7f0aa2a61aae "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#9  0x00007f0aa295d48a in malloc_printerr (str=str@entry=0x7f0aa2a5fc22 "free(): invalid pointer") at malloc.c:5361
#10 0x00007f0aa295ebfc in _int_free (av=<optimized out>, p=<optimized out>, have_lock=<optimized out>) at malloc.c:4187
#11 0x00007f0aa34e4899 in ?? () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#12 0x00007f0aa34e4bd0 in ?? () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#13 0x00007f0aa33517c1 in QFontMetrics::boundingRect(QRect const&, int, QString const&, int, int*) const () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#14 0x00007f0aa335183a in QFontMetrics::size(int, QString const&, int, int*) const () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#15 0x00007f0aa3bf2ded in QToolButton::sizeHint() const () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007f0aa3a43412 in QWidgetItemV2::updateCacheIfNecessary() const () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007f0aa3a4374d in QWidgetItemV2::maximumSize() const () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007f0aa3a37d42 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007f0aa3a38a38 in QBoxLayout::minimumSize() const () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007f0aa3a3bead in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007f0aa3a3d1c3 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007f0aa3a3dfc2 in QGridLayout::setGeometry(QRect const&) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007f0aa3a3f3d8 in QLayoutPrivate::doResize(QSize const&) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007f0aa3a40469 in QLayout::activate() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007f0aa3a234e6 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007f0aa3a2a9b0 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007f0aa2ee0029 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007f0aa2ee300b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007f0aa2f31da3 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007f0aa0bdbead in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f0aa0bdc130 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f0aa0bdc1bf in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f0aa2f313c7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x00007f0a9e154391 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#35 0x00007f0aa2edecfb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007f0aa2ee6cd2 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#37 0x000055bc540be948 in main (argc=<optimized out>, argv=<optimized out>) at ./src/Main.cpp:162
[Inferior 1 (process 13712) detached]

Possible duplicates by query: bug 394640, bug 392350, bug 387393, bug 381268, bug 375933.

Reported using DrKonqi
Comment 1 Nate Graham 2019-10-16 22:03:04 UTC
*** Bug 413057 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2021-12-13 21:15:22 UTC
Spectacle's code has changed a lot since this crash was reported, and there haven't been any more reports in over two years. Are you still experiencing this issue in Spectacle 21.12?
Comment 3 Vincent-Xavier JUMEL 2021-12-13 21:30:51 UTC
No, I haven't experienced any crashes since ages.
Comment 4 Nate Graham 2021-12-13 22:31:34 UTC
Great news!