Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.12, 5.15.13, 6.1.3, 6.2.0 Beta3, 6.2.8, 6.3.0 Alpha, 6.4.3, 6.5.0, 6.6.0
-
5.7.0
-
None
-
Arch Linux, KDE Plasma 5.8.1
-
02248eea5562c1df39ee23f195011afacc6759b0 (qt/qtbase/dev) 73fc1f93e8bea1c493ed16655ad6fd68ae270e38 (qt/qtbase/5.12) bc60541d9f9fb477172ab08b41f45b7f95033c48 (qt/qtbase/6.1) 865a713d6bded5d19a64077a17b9295bbeb3b699 (qt/qtbase/6.2), 03ac8c739 (dev)
Description
QXcbConnection::getTimestamp() returns a timestamp from an earlier PropertyNotify event which was already in the event queue. I found this issue when I was trying to figure out why gvim (with GTK+) exits with a BadWindow error when selecting or copying a large text to the clipboard in a KDE environment. It turns out that GTK+ uses the INCR protocol to send the data and QT uses getTimestamp (in QXcbClipboard::clipboardReadProperty) to set the start time of the transfer. Since that start time is incorrect QT expects data which hasn't been sent yet and closes the window. GTK+ still tries to add the data to the window which causes a BadWindow error.
Steps to reproduce:
- Create or use a large text file (e.g. cat /dev/urandom|base64 -w 200|head -n 5000>large_text_file).
- Open the text file in gvim (or another GTK+ based editor, as long as it uses the same clipboard mechanism).
- Start a Qt based text editor.
- In gvim, select and copy all text.
- Paste the text in the Qt based text editor.
Note that when a clipboard manager like klipper is used, which automatically copies text to the clipboard, the problem occurs immediately after selecting the text.
Attachments
Issue Links
- is duplicated by
-
QTBUG-79656 QMimeData::hasImage reports true while imageData is null
- Closed
- relates to
-
QTBUG-32045 [regression] pasting long text into QTextDocument kills application the text copied from
- Closed
For Gerrit Dashboard: QTBUG-56595 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
310414,3 | WIP: more debug info for XCB_PROPERTY_NOTIFY event | dev | qt/qtbase | Status: NEW | -2 | 0 |