Character duplication when changing windows

Bug #690896 reported by Perry Thompson
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Debbugs
Invalid
Undecided
Unassigned
ibus-chewing (Debian)
Fix Released
Unknown
ibus-chewing (Ubuntu)
Fix Released
High
Hsin-Yi, Chen (hychen)

Bug Description

Binary package hint: ibus-chewing

I'm on Ubuntu 10.10 and using ibus-chewing 1.3.7.20100910-1hychen1. Whenever I type something using chewing then click on another window, whatever I had typed becomes duplicated in first window. This does not happen if I toggle chewing off before changing windows. Also when clicking back to my first window it duplicates yet again. It is very difficult to do any type of word processing with this bug.

E.g., I type "你好" in any space that allows me to type, then focus on another window, in the first window I see that my text is now "你好你好". Upon clicking on the first window again I see "你好你好你好".

Test Case

Step To Reproduce

1. mouse left click to google search bar in Firefox 4.0
2. type Chinese and press Enter , the "測試" appearers in google search bar in Firefox 4.0
3. mouse left click to URL bar in Firefox 4.0

Excepted Result

  no Chinese words appears in URL bar in Firefox 4.0

Actual Result

 "測試測試" appears in URL bar in Firefox 4.0

Tags: patch
Revision history for this message
yltang (yltang) wrote :

I have the same problem. After keying in some Chinese characters (still in Chinese input mode), clicking the window title will cause the Chinese characters to duplicate. One click causes one duplication. Switching to another window and coming back also has the same problem. Such a problem is very annoying because my document has duplicated characters here and there without my awareness. Any ideas?

System spec.:
Ubuntu: 10.10
Ibus: 1.3.9-1phuang1~maverick1
Ibus-chewing: 1.3.7-20100910-1hychen1
Python-ibus: 1.3.9-1phuang1~maverick1
Python: 2.6.6-2ubuntu2
Python-gtk2: 2.21.0-0ubuntu1

Revision history for this message
yltang (yltang) wrote :

Another syndrome:

In gedit, OpenOffice Writer, or a browser's text input column, after I mark some texts, if I toggle to Chinese input mode and toggle back, the marked texts will be deleted. This is also very annoying because some of the texts in my document are gone without my awareness.

Revision history for this message
yltang (yltang) wrote :

This bug report has been here for more than a month. I wonder when will it be taken care of?

Revision history for this message
Hsin-Yi, Chen (hychen) (ossug-hychen) wrote :

@perry can you give me what ibus version you used?

@yltang 1.3.7-2010901-1hychen1 is for ibus-1.3.7, I have not test it with ibus 1.3.9

Revision history for this message
Perry Thompson (rypervenche) wrote :

@hychen I am using 1.3.7.20100910-1hychen1 since you have fixed all of the other problems and the official version has not (to my knowledge).

Revision history for this message
Perry Thompson (rypervenche) wrote :

@hychen Sorry, let me be more specific. ibus-chewing 1.3.7.20100910-1hychen1 , ibus 1.3.7-1ubuntu4

Revision history for this message
Hsin-Yi, Chen (hychen) (ossug-hychen) wrote :

I also use ibus-chewing 1.3.7.20100910-1hychen1 , ibus 1.3.7-1ubuntu4 but can not reproduce in my machine

 can you guys give me your ibus Preferences configuration?

Revision history for this message
Perry Thompson (rypervenche) wrote :
Revision history for this message
yltang (yltang) wrote :

@hychen

Now I have upgraded to Ubuntu 11.04 and ibus-chewing 1.3.9-2.2, but the problem is still there :-( A more specific way to reproduce it: put the cursor in the Google search box of Firefox, type some Chinese characters, and then hit Enter so that they appear in the text box. Now, click the title bar of the window and you will see that the characters just entered is pasted twice. One click causes two pastes. Maybe it's because the characters in the buffer don't get cleared after hitting the Enter, and clicking the title bar causes them to be input again.

I hope this problem will be fixed soon because I like Ibus-chewing very much, and I really don't want to switch to other input methods.

Thanks for your time and effort.

description: updated
Changed in ibus-chewing (Ubuntu):
status: New → Confirmed
assignee: nobody → Hsin-Yi, Chen (hychen) (ossug-hychen)
Revision history for this message
Hsin-Yi, Chen (hychen) (ossug-hychen) wrote :
Revision history for this message
Hsin-Yi, Chen (hychen) (ossug-hychen) wrote :

ibus-chewing does not clear commit String and status is still in NEED_COMMIT after User press Enter to complete all input behavior, so the commit string will shows in the box user focus-in after focus-out event appears/

Revision history for this message
yltang (yltang) wrote :

There is another syndrome I forgot mentioning.

1. Run LibreOffice/OpenOffice Writer and Firefox. Adjust the two windows such that they are visible on the screen (we need to click on the window titles later).

2. In Writer, key in some English texts under English input mode, highlight/mark these texts, and then toggle to Chinese input mode by hitting Ctrl-Space

3. Now click on Firefox's title bar. --> Boom! The texts in Writer are gone!

Revision history for this message
yltang (yltang) wrote :

In addition, in LibreOffice/OpenOffice Writer, type some English texts under the English input mode and then mark those texts. Now toggle to the Chinese input mode and toggle back to the English input mode by hitting Ctrl-Space twice. The marked texts will be deleted.

Revision history for this message
V字龍(Vdragon) (vdragon) wrote :

這個問題還沒有解決嗎?
看到之前輸入的片段字句一直出現真的非常的擾人...
Please fix it quickly...

Changed in ibus-chewing (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Hsin-Yi, Chen (hychen) (ossug-hychen) wrote :

Please try ibus-chewing 1.3.9.2-1hychen1 in https://launchpad.net/~ossug-hychen/+archive/ibus, it should fix the duplication problem.

Revision history for this message
Hsin-Yi, Chen (hychen) (ossug-hychen) wrote :

in natty, firefox with ibus-chewing has a another issue after apply this patch which is you can not type any words after switch focus to another input filed after press Enter, I will continue to figure out root cause.

Revision history for this message
Rex Tsai (chihchun) wrote :

Tested hychen's ibus-chewing on oneiric, and confirmed his version fixed the state machine (character duplication) issue.

Revision history for this message
Hsin-Yi, Chen (hychen) (ossug-hychen) wrote :

the bug also be tracked in libchewing bug tracker http://code.google.com/p/chewing/issues/detail?id=308

Revision history for this message
yltang (yltang) wrote :

Sorry, but how do I install "ibus-chewing 1.3.9.2-1hychen1"? I have added "ppa:ossug-hychen/ibus" to my system's Software Sources. But the system didn't seem to upgrade.

Revision history for this message
Hsin-Yi, Chen (hychen) (ossug-hychen) wrote :

@yltang what is your ibus-chewing version? you can type "dpkg -l|grep ibus-chewing" for finding the version

Changed in debbugs:
importance: Unknown → Undecided
status: Unknown → New
status: New → Invalid
Revision history for this message
Hsin-Yi, Chen (hychen) (ossug-hychen) wrote :
Revision history for this message
yltang (yltang) wrote :

dpkg -l|grep ibus-chewing

--> 1.3.9.2-2

Changed in ibus-chewing (Debian):
status: Unknown → New
Revision history for this message
Mosky Liu (mosky) wrote :

The problem is fixed with hychen's ibus-chewing.

But the old problem -- the first tone char will disappear when typing it as first char -- is appear again. It affects me and some users on ubuntu-tw (http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?post_id=198280#forumpost198280).

I am using Natty and the version of ibus and ibus-chewing is

ii ibus 1.3.9-0ubuntu3 New input method framework using dbus
ii ibus-chewing 1.3.9.2-1hychen1 chewing input engine for IBus

and this old problem is not existent if I downgrade the ibus-chewing back to 1.3.9.2-1.

tags: added: patch
Revision history for this message
Hsin-Yi, Chen (hychen) (ossug-hychen) wrote :

Here is the first tone regression issue detail

Step To Reproduce:

1. type 機
2. press space
3. press Enter

Excepted Result:

機 is commited

Actual Result:

機 is disappeared

Revision history for this message
Hsin-Yi, Chen (hychen) (ossug-hychen) wrote :

fix the regression of first tone issue.
https://github.com/hychen/ibus-chewing/commit/5d0cb2516221d2f039f6f3f0a46432ecf0f53d9a

but I found a exception that characters will disappear when user press Enter and then press space to produce preedit string, and then press Enter to commit.

Revision history for this message
Hsin-Yi, Chen (hychen) (ossug-hychen) wrote :
Revision history for this message
Hsin-Yi, Chen (hychen) (ossug-hychen) wrote :

1. cherry-pick https://github.com/definite/ibus-chewing/commit/703bf4e43666b31d191e90671db2851583be336f
2. bzr push lp:~ossug-hychen/+junk/ibus-chewing-690896
3. dput ppa:ossug-hychen/ibus ../ibus-chewing_1.3.9.2-3ubuntu2_source.changes

ibus-chewing (1.3.9.2-3ubuntu3) precise; urgency=low

  * debian/patches/fix-characters-duplication-when-switching-to-another-
    window.patch: fix Character duplication when changing windows(LP: #690896)

    cherry-pick from (https://github.com/definite/ibus-chewing/commit/
                      f9dc954b63eac4be8936602e813f9670eeb575b0)

 -- Hsin-Yi Chen (hychen) <email address hidden> Sun, 25 Dec 2011 14:26:17 +0800

Revision history for this message
Hsin-Yi, Chen (hychen) (ossug-hychen) wrote :
Changed in ibus-chewing (Ubuntu):
status: In Progress → Fix Committed
Changed in ibus-chewing (Debian):
status: New → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

1.3.10 is in precise and the Debian bug suggests that the issue should be fixed in that version, closing the bug

Changed in ibus-chewing (Ubuntu):
status: Fix Committed → Fix Released
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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