Copy and paste broken after using input method

Bug #479740 reported by Martin André
44
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Gentoo Linux
Fix Released
Medium
qt4-x11 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

After using an input method, the clipboard doesn't work anymore in any qt application and the following lines appear in the console:
Warning: QClipboard::setData: Cannot set X11 selection owner for PRIMARY
Warning: QClipboard::setData: Cannot set X11 selection owner for CLIPBOARD

This bug has been discussed and resolved on gentoo bug tracker:
http://bugs.gentoo.org/show_bug.cgi?id=276527

Please backport the fix in qt4-x11 version 4.5.2 or update to version 4.5.3 where the fix is available.

Changed in gentoo:
status: Unknown → Fix Released
Revision history for this message
Kallewoof (kalle-enrogue) wrote :

This bug affects me as well. I have detailed this behavior in https://bugs.launchpad.net/ubuntu/+source/pidgin/+bug/486482 and will make it depend on this one (presuming I have the privs to do so).

Output when this occurred from terminal window:
QClipboard::setData: Cannot set X11 selection owner for PRIMARY
QClipboard::setData: Cannot set X11 selection owner for CLIPBOARD

Revision history for this message
Benjamin Thyreau (benji2) wrote :

Hi,
I had to upgrade the whole OS to Karmic since this was the only option to get updated applications in Ubuntu.

Now i have no way to cut-and-paste between my PyQt4-based Japanese dictionary and other applications.

Highlighting and Ctrl-C (copy) outputs respectively outputs:
QClipboard::setData: Cannot set X11 selection owner for PRIMARY
and QClipboard::setData: Cannot set X11 selection owner for CLIPBOARD

I hope the repos will be updated soon, as this bug was fixed elsewhere, and it makes some software unusable.

Thanks !

Revision history for this message
kamereon (kamereon) wrote :

To me, this is actually the most annoying bug in Karmic!
It's just amazing how helpless one becomes, when copy and paste doesn't work. The computer literally becomes unusable!

After booting, copy and paste will actually work.
After using IBus (in my case to type japanese) in GTK applications, copy and paste will still work.
But: after using IBus in a Qt application, I get "QClipboard::setData: Cannot set X11 selection owner for PRIMARY", and copy and paste will no longer work.

Revision history for this message
lanig (alainbe) wrote :

I type quite a bit of japanese each day so I am also very much ennoyed (more over this problem appears also with french characters like ê).
I got a small turn-around that allege the problem a bit :
in my ~/bin I have a no_uim command :

#!/bin/bash

export XMODIFIERS=""
export GTK_IM_MODULE=""
export XIM_PROGRAM=""
export QT_IM_MODULE=""

exec $@

I launch all QT apps and also firefox (which is crash ware with uim turned on) with the command
#no_uim name_of_my_app

I use gedit to type japanese text and then paste it in uim disabled apps.

Hope it helps,

Revision history for this message
Kallewoof (kalle-enrogue) wrote :

What, writing everything in gedit, then copy-pasting that into firefox, pidgin, Anki, etc? *shudder* You have way more patience than I do.

Revision history for this message
Martin André (mandre) wrote :

I managed to fix this issue on my system some time ago, but don't remember exactly how I did. Perhaps by installing newer packages? Writing french characters works well too now.

FYI, here is my env:
GTK_IM_MODULE=ibus
XMODIFIERS=@im=ibus
QT_IM_MODULE=ibus

And my ibus related packages:
ii ibus 1.2.0.20090927-2ubuntu2 New input method framework using dbus
ii ibus-anthy 1.2.0.20090813-2 anthy engine for IBus
un ibus-chewing <none> (no description available)
ii ibus-gtk 1.2.0.20090927-2ubuntu2 New input method framework using dbus
un ibus-hangul <none> (no description available)
un ibus-m17n <none> (no description available)
un ibus-pinyin <none> (no description available)
ii ibus-qt4 1.2.0.20091014-1 qt-immodule for ibus (QT4)
un ibus-table <none> (no description available)
ii libibus-qt1 1.2.0.20091014-1 qt-immodule for ibus (QT4)
ii libibus1 1.2.0.20090927-2ubuntu2 New input method framework using dbus
ii python-ibus 1.2.0.20090927-2ubuntu2 New input method framework using dbus

qt4-x11 is still 4.5.3really4.5.2-0ubuntu1

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Fixed in Qt 4.5.3/4.6.0

Changed in qt4-x11 (Ubuntu):
status: New → Fix Released
Changed in gentoo:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.