Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 276527 - Qt 4.5.2 applications cannot copy text after input some Chinese
Summary: Qt 4.5.2 applications cannot copy text after input some Chinese
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
: 276669 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-05 02:43 UTC by Dolores
Modified: 2009-07-23 20:45 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dolores 2009-07-05 02:43:58 UTC
The copy function is OK before input any Chinese (I am using ibus).

Output from console when the issue happens:
QClipboard::setData: Cannot set X11 selection owner for PRIMARY
QClipboard::setData: Cannot set X11 selection owner for CLIPBOARD

Reproducible: Always

Steps to Reproduce:
1.Open a Qt application (qstardict, for instance)
2.Input some Chinese (I am using ibus)
3.Try to copy something from app

Actual Results:  
Nothing copied to clipboard
QClipboard::setData: Cannot set X11 selection owner for PRIMARY
QClipboard::setData: Cannot set X11 selection owner for CLIPBOARD
Comment 1 Ingo Krabbe 2009-07-14 11:24:34 UTC
> 
> Steps to Reproduce:
> 1.Open a Qt application (qstardict, for instance)
I use konsole and konqueror
> 2.Input some Chinese (I am using ibus)
German and english works too
> 3.Try to copy something from app
> 
> Actual Results:  
> Nothing copied to clipboard
> QClipboard::setData: Cannot set X11 selection owner for PRIMARY
> QClipboard::setData: Cannot set X11 selection owner for CLIPBOARD
> 
Same problem.
1. I found a solution from 2004 for Qt 3.3.3 that proposes to remove an unnecessary clipboard::clear call.  Maybe this is the same error, made again?
2. This error happens only after some working in my environment, i.e. when I close all konsole windows and restart them I have clipboard access again.
Somehow this seems to be connected with tabbed browsing in konqueror or konqueror in general.
Comment 2 Dror Levin (RETIRED) gentoo-dev 2009-07-16 18:13:51 UTC
*** Bug 276669 has been marked as a duplicate of this bug. ***
Comment 3 Denis Dzyubenko 2009-07-22 16:24:47 UTC
This problem should be fixed already in the Qt 4.5 branch and will be available in the next version of Qt (4.5.3 and 4.6.0). The source of the problem is not in Qt however - one of the received XEvents from XIM contains junk in a serial number and timestamp fields.

Here is the change that fixes it (should be publicly available soon):
http://qt.gitorious.org/qt/qt/commit/9e5fa633913ef952ca4ef5312fe396bcfc885321
Comment 4 Ben de Groot (RETIRED) gentoo-dev 2009-07-23 20:45:46 UTC
I just committed qt-gui-4.5.2-r2 which applies the upstream patch - thanks Denis!