Klipper causes a BadWindow error in GTK editors when a large text is selected in the editor. Tested with gvim, medit, and scite. The error only occurs inside a KDE environment with Klipper enabled. Reproducible: Always Steps to Reproduce: 1. Open a Konsole terminal window. 2. Start one of the mentioned editors inside the terminal window. 3. Create (or open) a large text (e.g. 10000 lines of 80 characters). 4. Select all text. Actual Results: The editor exits with a BadWindow (invalid window parameter) error. Expected Results: The editor should continue without an error.
Klipper doesn't interact with the clipboard directly. It only uses Qt. Can you try whether the problem can also be reproduced by copying the content into any other Qt application?
I can reproduce the problem without klipper by pasting a large text into a Qt5 application (Qt4 seems to work fine). But with klipper enabled the problem occurs immediately after selecting the text.
ok, thanks for testing. That means the problem is within Qt's clipboard implementation. Klipper just exposes it more directly. I suggest to report this issue to both the GTK developers as GTK should not crash on a BadWindow error on bugs.gnome.org and the Qt problem to Qt developers on bugreports.qt.io. On our side there is unfortunately nothing we can do about it as klipper only uses Qt's clipboard abstraction.
I have seen https://bugreports.qt.io/browse/QTBUG-56595 , QXcbConnection::getTimestamp() returns old timestamp . Is there any way to get some debug output from klipper? Searched a bit in https://github.com/KDE/plasma-workspace/tree/master/klipper , found sth about klipper_debug.h and klipper_debug.cpp in source, how should I do to enable it? Thanks.
No need to reply my previous comment. Got some progress, more in qt jira.