Bug 392897 - severe freeze (10-30 secs)
Summary: severe freeze (10-30 secs)
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.12.3
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-08 22:40 UTC by izhe
Modified: 2021-03-10 21:00 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Minimal bug reproduction project (2.06 KB, application/gzip)
2018-04-08 22:40 UTC, izhe
Details

Note You need to log in before you can comment on or make changes to this bug.
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!