Bug 392897

Summary: severe freeze (10-30 secs)
Product: [Plasma] plasmashell Reporter: izhe
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED UPSTREAM    
Severity: normal CC: aspotashev, kde, nate, plasma-bugs
Priority: NOR    
Version: 5.12.3   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Minimal bug reproduction project

Description izhe 2018-04-08 22:40:54 UTC
Created attachment 111912 [details]
Minimal bug reproduction project

The desktop freezes when I try to copy to clipboard and send a notification in my program.
It doesn't freeze completely, you can still move windows and use some programs but the freeze is severe and can last between 10 and 30 secs.

I've created a project in QT in order to ease the testing process. It creates a QWidget with a QPushButton, when you press it the desktop freezes.
See the attachment.
Comment 1 Kai Uwe Broulik 2018-04-09 13:39:35 UTC
I can reproduce with your example. The problem is that you set a huuuuge pixmap into the clipboard and then Qt freezes in QMimeData (more specifically QXcbClipboardMime) trying to read the clipboard contents.

The fact that a notification freezes the desktop is that when a notification is shown, the text field checks clipboard to see whether the "Paste" action (to make notification text selectable it is a text field and not a plain label) should be enabled. I would consider this an X or Qt bug.
Comment 2 Nate Graham 2021-03-10 21:00:18 UTC
Yeah, please report to the Qt people. Thanks!