Bug 426320

Summary: Spectacle crashes when trying to take a screenshot of the active window
Product: [Applications] Spectacle Reporter: Vince Aggrippino <vinceaggrippino>
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED WORKSFORME    
Severity: crash CC: kde
Priority: NOR Keywords: drkonqi
Version: 19.12.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Vince Aggrippino 2020-09-08 23:43:31 UTC
Application: spectacle (19.12.3)

Qt Version: 5.12.8
Frameworks Version: 5.68.0
Operating System: Linux 5.4.0-47-generic x86_64
Windowing system: X11
Distribution: Ubuntu 20.04.1 LTS

-- Information about the crash:
- What I was doing when the application crashed:
Trying to take a screenshot of the active window.

- Custom settings of the application:
It was set to _On click_ and wasn't set to show the mouse cursor.

I got a message about it not being able to create the temporary file, but I don't remember the exact wording and I didn't get a screenshot.

The crash can be reproduced every time.

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

Thread 4 (Thread 0x7f8722083700 (LWP 3436)):
#0  0x00007f87302d096f in __GI___poll (fds=0x7f8714007170, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f87282731d6 in ?? () from /lib/x86_64-linux-gnu/libpulse.so.0
#2  0x00007f8728264841 in pa_mainloop_poll () from /lib/x86_64-linux-gnu/libpulse.so.0
#3  0x00007f8728264ec3 in pa_mainloop_iterate () from /lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007f8728264f70 in pa_mainloop_run () from /lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007f872827311d in ?? () from /lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007f872821167c in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-13.99.so
#7  0x00007f872f60e609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007f87302dd103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f872ad1e700 (LWP 3421)):
#0  0x00007f87302d096f in __GI___poll (fds=0x7f871c0029e0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f872ebb31ae in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f872ebb32e3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f873086e583 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f87308154db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f873064d785 in QThread::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f87310dbefa in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f873064e9d2 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f872f60e609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f87302dd103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f872bf93700 (LWP 3420)):
#0  0x00007f87302d096f in __GI___poll (fds=0x7f872bf92ca8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f8731e35c1a in ?? () from /lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f8731e3790a in xcb_wait_for_event () from /lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f872c369298 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f873064e9d2 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f872f60e609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f87302dd103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f872ca1a040 (LWP 3419)):
[KCrash Handler]
#6  0x00007f8731588edc in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#7  0x00007f873158f6bd in QMenu::internalDelayedPopup() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007f8730842cf5 in QObject::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f873144a25d in QWidget::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007f8731594adb in QMenu::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007f8731407a66 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007f87314110f0 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007f873081693a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007f873086d8b0 in QTimerInfoList::activateTimers() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007f873086e19c in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f872ebb2fbd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007f872ebb3240 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007f872ebb32e3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007f873086e565 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007f87308154db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007f873158f0b1 in QMenu::exec(QPoint const&, QAction*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007f87315a04b3 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007f8730842300 in QMetaObject::activate(QObject*, int, int, void**) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007f87314fcb01 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007f87314fd255 in QAbstractButton::mousePressEvent(QMouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007f873144a2d1 in QWidget::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007f8731407a66 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007f8731411343 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#29 0x00007f873081693a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007f8731410457 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#31 0x00007f873146635d in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#32 0x00007f87314691ec in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#33 0x00007f8731407a66 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#34 0x00007f87314110f0 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#35 0x00007f873081693a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007f8730bff7d3 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#37 0x00007f8730c0110b in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#38 0x00007f8730bdb35b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#39 0x00007f872c36a32e in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#40 0x00007f872ebb2fbd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007f872ebb3240 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007f872ebb32e3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007f873086e565 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#44 0x00007f87308154db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#45 0x00007f873081d246 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#46 0x000055ef5ca16008 in ?? ()
#47 0x00007f87301e20b3 in __libc_start_main (main=0x55ef5ca14900, argc=1, argv=0x7ffe64038388, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe64038378) at ../csu/libc-start.c:308
#48 0x000055ef5ca16a4e in ?? ()
[Inferior 1 (process 3419) detached]

Possible duplicates by query: bug 426090, bug 425891, bug 425786, bug 425658, bug 425619.

Reported using DrKonqi
Comment 1 Justin Zobel 2022-10-12 03:50:01 UTC
Thank you for reporting this crash in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the crash with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 2 Bug Janitor Service 2022-10-27 05:05:00 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2022-11-11 05:21:37 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!