Bug 394127 - Plasma hangs when screenshotting yakuake from spectacle
Summary: Plasma hangs when screenshotting yakuake from spectacle
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.12.5
Platform: Arch Linux Linux
: NOR crash
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2018-05-11 13:31 UTC by Keziolio
Modified: 2021-01-05 04:34 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keziolio 2018-05-11 13:31:29 UTC
Application: plasmashell (5.12.5)

Qt Version: 5.10.1
Frameworks Version: 5.45.0
Operating System: Linux 4.16.8-1-ARCH x86_64
Distribution: "Arch Linux"

-- Information about the crash:
- What I was doing when the application crashed:
Making a screenshot of yakuake with spectacle in the "active window" mode, including title bar and borders

It crashes every time


journalctl says this:

May 11 15:26:32 desktop kwin_x11[660]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 9368, resource id: 54525956, major code: 18 (ChangeProperty), minor code: 0
May 11 15:26:33 desktop kcminit[1044]: Initializing  "kcm_input" :  "kcminit_mouse"
May 11 15:26:33 desktop kcminit[1044]: kcm_input: Using X11 backend
May 11 15:26:33 desktop kwin_x11[660]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 10342, resource id: 52428804, major code: 18 (ChangeProperty), minor code: 0
May 11 15:26:33 desktop kcminit[1055]: Initializing  "kcm_input" :  "kcminit_mouse"
May 11 15:26:33 desktop kcminit[1055]: kcm_input: Using X11 backend
May 11 15:26:33 desktop kwin_x11[660]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 10903, resource id: 54525956, major code: 18 (ChangeProperty), minor code: 0
May 11 15:26:33 desktop kcminit[1063]: Initializing  "kcm_input" :  "kcminit_mouse"
May 11 15:26:33 desktop kcminit[1063]: kcm_input: Using X11 backend
May 11 15:26:33 desktop kwin_x11[660]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 11100, resource id: 56623108, major code: 18 (ChangeProperty), minor code: 0
May 11 15:26:39 desktop spectacle[976]: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 3485, resource id: 31457937, major code: 14 (GetGeometry), minor code: 0

The crash can be reproduced every time.

-- Backtrace:
Application: Plasma (plasmashell), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fdfd8ab7800 (LWP 667))]

Thread 17 (Thread 0x7fded29f5700 (LWP 886)):
#0  0x00007fdfcc8ce2d9 in g_mutex_lock () at /usr/lib/libglib-2.0.so.0
#1  0x00007fdfcc886a55 in g_main_context_prepare () at /usr/lib/libglib-2.0.so.0
#2  0x00007fdfcc88744e in  () at /usr/lib/libglib-2.0.so.0
#3  0x00007fdfcc88763e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#4  0x00007fdfd295c254 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007fdfd28fe31b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#6  0x00007fdfd270d71e in QThread::exec() () at /usr/lib/libQt5Core.so.5
#7  0x00007fded95a32ea in KCupsConnection::run() () at /usr/lib/libkcupslib.so
#8  0x00007fdfd2712abd in  () at /usr/lib/libQt5Core.so.5
#9  0x00007fdfd18c5075 in start_thread () at /usr/lib/libpthread.so.0
#10 0x00007fdfd201653f in clone () at /usr/lib/libc.so.6

Thread 16 (Thread 0x7fdedad04700 (LWP 885)):
#0  0x00007fdfd200bea9 in poll () at /usr/lib/libc.so.6
#1  0x00007fdfcc887523 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fdfcc88763e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007fdfd295c254 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007fdfd28fe31b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007fdfd270d71e in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007fdfd2712abd in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fdfd18c5075 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fdfd201653f in clone () at /usr/lib/libc.so.6

Thread 15 (Thread 0x7fdef1590700 (LWP 869)):
#0  0x00007fdfd18caffc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fdf281b5964 in  () at /usr/lib/dri/radeonsi_dri.so
#2  0x00007fdf281b5658 in  () at /usr/lib/dri/radeonsi_dri.so
#3  0x00007fdfd18c5075 in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007fdfd201653f in clone () at /usr/lib/libc.so.6

Thread 14 (Thread 0x7fdf1a7fc700 (LWP 868)):
#0  0x00007fdfd18caffc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fdf281b5964 in  () at /usr/lib/dri/radeonsi_dri.so
#2  0x00007fdf281b5658 in  () at /usr/lib/dri/radeonsi_dri.so
#3  0x00007fdfd18c5075 in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007fdfd201653f in clone () at /usr/lib/libc.so.6

Thread 13 (Thread 0x7fdf1affd700 (LWP 866)):
#0  0x00007fdfcc8ce2d9 in g_mutex_lock () at /usr/lib/libglib-2.0.so.0
#1  0x00007fdfcc8874e6 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fdfcc88763e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007fdfd295c254 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007fdfd28fe31b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007fdfd270d71e in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007fdfd648650b in  () at /usr/lib/libQt5Quick.so.5
#7  0x00007fdfd2712abd in  () at /usr/lib/libQt5Core.so.5
#8  0x00007fdfd18c5075 in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007fdfd201653f in clone () at /usr/lib/libc.so.6

Thread 12 (Thread 0x7fdf1b7fe700 (LWP 861)):
#0  0x00007fdfd18caffc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fdf281b5964 in  () at /usr/lib/dri/radeonsi_dri.so
#2  0x00007fdf281b5658 in  () at /usr/lib/dri/radeonsi_dri.so
#3  0x00007fdfd18c5075 in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007fdfd201653f in clone () at /usr/lib/libc.so.6

Thread 11 (Thread 0x7fdf1bfff700 (LWP 860)):
#0  0x00007fdfd18caffc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fdf281b5964 in  () at /usr/lib/dri/radeonsi_dri.so
#2  0x00007fdf281b5658 in  () at /usr/lib/dri/radeonsi_dri.so
#3  0x00007fdfd18c5075 in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007fdfd201653f in clone () at /usr/lib/libc.so.6

Thread 10 (Thread 0x7fdf208ba700 (LWP 859)):
#0  0x00007fdfd18caffc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fdf281b5964 in  () at /usr/lib/dri/radeonsi_dri.so
#2  0x00007fdf281b5658 in  () at /usr/lib/dri/radeonsi_dri.so
#3  0x00007fdfd18c5075 in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007fdfd201653f in clone () at /usr/lib/libc.so.6

Thread 9 (Thread 0x7fdf210bb700 (LWP 858)):
#0  0x00007fdfd18caffc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fdf281b5964 in  () at /usr/lib/dri/radeonsi_dri.so
#2  0x00007fdf281b5658 in  () at /usr/lib/dri/radeonsi_dri.so
#3  0x00007fdfd18c5075 in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007fdfd201653f in clone () at /usr/lib/libc.so.6

Thread 8 (Thread 0x7fdf218bc700 (LWP 857)):
#0  0x00007fdfd18caffc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fdf281b5964 in  () at /usr/lib/dri/radeonsi_dri.so
#2  0x00007fdf281b5658 in  () at /usr/lib/dri/radeonsi_dri.so
#3  0x00007fdfd18c5075 in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007fdfd201653f in clone () at /usr/lib/libc.so.6

Thread 7 (Thread 0x7fdf220bd700 (LWP 856)):
#0  0x00007fdfd18caffc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fdf281b5964 in  () at /usr/lib/dri/radeonsi_dri.so
#2  0x00007fdf281b5658 in  () at /usr/lib/dri/radeonsi_dri.so
#3  0x00007fdfd18c5075 in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007fdfd201653f in clone () at /usr/lib/libc.so.6

Thread 6 (Thread 0x7fdf228be700 (LWP 855)):
#0  0x00007fdfd18caffc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fdf281b5964 in  () at /usr/lib/dri/radeonsi_dri.so
#2  0x00007fdf281b5658 in  () at /usr/lib/dri/radeonsi_dri.so
#3  0x00007fdfd18c5075 in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007fdfd201653f in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7fdfaa549700 (LWP 842)):
#0  0x00007fdfd18caffc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fdfd81a9f77 in  () at /usr/lib/libQt5Script.so.5
#2  0x00007fdfd81a9fb9 in  () at /usr/lib/libQt5Script.so.5
#3  0x00007fdfd18c5075 in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007fdfd201653f in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7fdfb8926700 (LWP 807)):
#0  0x00007fdfd200bea9 in poll () at /usr/lib/libc.so.6
#1  0x00007fdfcc887523 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fdfcc88763e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007fdfd295c254 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007fdfd28fe31b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007fdfd270d71e in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007fdfd58e0319 in  () at /usr/lib/libQt5Qml.so.5
#7  0x00007fdfd2712abd in  () at /usr/lib/libQt5Core.so.5
#8  0x00007fdfd18c5075 in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007fdfd201653f in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7fdfba3b1700 (LWP 799)):
#0  0x00007fdfd200bea9 in poll () at /usr/lib/libc.so.6
#1  0x00007fdfcc887523 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fdfcc88763e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007fdfd295c254 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007fdfd28fe31b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007fdfd270d71e in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007fdfd58e0319 in  () at /usr/lib/libQt5Qml.so.5
#7  0x00007fdfd2712abd in  () at /usr/lib/libQt5Core.so.5
#8  0x00007fdfd18c5075 in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007fdfd201653f in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7fdfbbdf5700 (LWP 739)):
#0  0x00007fdfd2007934 in read () at /usr/lib/libc.so.6
#1  0x00007fdfcc8cced1 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fdfcc886ff8 in g_main_context_check () at /usr/lib/libglib-2.0.so.0
#3  0x00007fdfcc8874c6 in  () at /usr/lib/libglib-2.0.so.0
#4  0x00007fdfcc88763e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#5  0x00007fdfd295c254 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#6  0x00007fdfd28fe31b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#7  0x00007fdfd270d71e in QThread::exec() () at /usr/lib/libQt5Core.so.5
#8  0x00007fdfd2d7f416 in  () at /usr/lib/libQt5DBus.so.5
#9  0x00007fdfd2712abd in  () at /usr/lib/libQt5Core.so.5
#10 0x00007fdfd18c5075 in start_thread () at /usr/lib/libpthread.so.0
#11 0x00007fdfd201653f in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7fdfd8ab7800 (LWP 667)):
[KCrash Handler]
#6  0x0000000000000000 in  ()
#7  0x00007fdfd6c4963a in  () at /usr/lib/libKF5Plasma.so.5
#8  0x00007fdfd6c49709 in  () at /usr/lib/libKF5Plasma.so.5
#9  0x00007fdfd1f56f2c in __run_exit_handlers () at /usr/lib/libc.so.6
#10 0x00007fdfd1f5705a in  () at /usr/lib/libc.so.6
#11 0x00007fdfd7323565 in _XDefaultIOError () at /usr/lib/libX11.so.6
#12 0x00007fdfc4ab01db in  () at /usr/lib/libQt5XcbQpa.so.5
#13 0x00007fdfd732379e in _XIOError () at /usr/lib/libX11.so.6
#14 0x00007fdfd7320ab8 in  () at /usr/lib/libX11.so.6
#15 0x00007fdfd7321295 in _XFlush () at /usr/lib/libX11.so.6
#16 0x00007fdfd7323e25 in _XGetRequest () at /usr/lib/libX11.so.6
#17 0x00007fdfd73009ed in XCreatePixmap () at /usr/lib/libX11.so.6
#18 0x00007fdfd84e0054 in  () at /usr/lib/libKF5PlasmaQuick.so.5
#19 0x00007fdfd84e2b38 in  () at /usr/lib/libKF5PlasmaQuick.so.5
#20 0x00007fdfd84e2dd8 in  () at /usr/lib/libKF5PlasmaQuick.so.5
#21 0x00007fdfd84e2e39 in  () at /usr/lib/libKF5PlasmaQuick.so.5
#22 0x00007fdfd1f56f2c in __run_exit_handlers () at /usr/lib/libc.so.6
#23 0x00007fdfd1f5705a in  () at /usr/lib/libc.so.6
#24 0x00007fdfc4ab63d8 in  () at /usr/lib/libQt5XcbQpa.so.5
#25 0x00007fdfd2931052 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#26 0x00007fdfd3907fec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#27 0x00007fdfd390f9c6 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#28 0x00007fdfd28ffce0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#29 0x00007fdfd2902946 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#30 0x00007fdfd295cc44 in  () at /usr/lib/libQt5Core.so.5
#31 0x00007fdfcc887368 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#32 0x00007fdfcc8875b1 in  () at /usr/lib/libglib-2.0.so.0
#33 0x00007fdfcc88763e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#34 0x00007fdfd295c231 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#35 0x00007fdfc4b3b482 in  () at /usr/lib/libQt5XcbQpa.so.5
#36 0x00007fdfd28fe31b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#37 0x00007fdfd2907718 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#38 0x000055fa973d7843 in  ()
#39 0x00007fdfd1f4106b in __libc_start_main () at /usr/lib/libc.so.6
#40 0x000055fa973d7bfa in _start ()

Reported using DrKonqi
Comment 1 David Edmundson 2018-05-17 10:36:06 UTC
So we have two issues here:

1) Something X event is so bad it's making Plasma quit

#22 0x00007fdfd1f56f2c in __run_exit_handlers () at /usr/lib/libc.so.6
#23 0x00007fdfd1f5705a in  () at /usr/lib/libc.so.6
#24 0x00007fdfc4ab63d8 in  () at /usr/lib/libQt5XcbQpa.so.5

2) In the process of aborting we create a pixmap, which is our crash

If we didn't crash here, we'd still be exiting anyway, so it's not a huuge problem.  At a guess, from the limited trace it'll be FrameSVG creating pixmaps in the dtor which we have a bug report about somewhere.
Comment 2 Marco Martin 2018-07-02 12:43:10 UTC
related to 384752
Comment 3 francis 2019-06-12 06:31:23 UTC
bit late, but confirming. 
combination of spectacle and yakuake results in crash.
steps to reproduce: spectacle in capture mode "rectangular region" and 1" delay; take a new screenshot, launch yakuake, draw region, BUT confirming with ENTER does not make the screenshot, cancelling with ESC does not cancel either.
So stuck in spectacle, mouse still moving, but keyboard does nothing;
In the end only hard reset possible
Comment 4 francis 2019-06-12 06:35:00 UTC
sorry forgot version details:
Kubuntu 18.04
kde plasma 5.12.7
kde frameworks 5.44.0
Qt 5.9.5
Comment 5 Justin Zobel 2020-12-06 21:26:19 UTC
Thank you for the report.

As this was reported on an older version of plasmashell, can you please test on a recent and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 6 Bug Janitor Service 2020-12-21 04:34:35 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 7 Bug Janitor Service 2021-01-05 04:34:03 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!