Bug 481095 - ibus-anthy: pre-edit sometimes gets stuck
Summary: ibus-anthy: pre-edit sometimes gets stuck
Alias: None
Product: Fedora
Classification: Fedora
Component: ibus-anthy
Version: 10
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Peng Huang
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: 481098
TreeView+ depends on / blocked
Reported: 2009-01-22 04:35 UTC by Warren Togami
Modified: 2009-02-05 02:12 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2009-02-05 02:12:34 UTC

Attachments (Terms of Use)

Description Warren Togami 2009-01-22 04:35:43 UTC

Often the state of the preedit gets stuck.  It seems to be timing related.

The most easy to reproduce case involves deletion.

1. Run gedit (also reproduced in pidgin and firefox).
2. Use scim-anthy.
3. Type "nihongo" but do not hit SPACE or ENTER.  Typos are OK.  Vary your typing timing.
4. Hit Delete to erase all of the pre-edit text.
5. Goto Step #3.

Eventually you will get to a state where the Delete button fails to delete some of the pre-edit buffer.  If you enter a new character into pre-edit, then Delete is able to delete all characters.

There are variations of this where pre-edit behavior gets stuck in such a way that no typing, SPACE or ENTER responds anymore.  CTRL-Space trigger to deactivate and activate it again is the only way to recover.

1. Go into a text box in firefox like this Bugzilla form.
2. Type "nihonn" quickly, hesitate a moment.
3. Type "go"
4. Quickly hit the Delete key a few times to attempt to erase the pre-edit buffer.
5. If you got the timing just right, it gets fully stuck needing the trigger to recover.

Comment 1 Warren Togami 2009-02-03 03:06:51 UTC

pidgin variation when I hit Delete on Step 4.  No crash, but pre-edit is stuck and this prints to the console.

(pidgin:5501): IBUS-WARNING **: Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python2.5/site-packages/ibus/engine.py", line 149, in ProcessKeyEvent
    return self.__engine.process_key_event(keyval, is_press, state)
  File "/usr/share/ibus-anthy/engine/engine.py", line 250, in process_key_event
    return self.__on_key_back_space()
  File "/usr/share/ibus-anthy/engine/engine.py", line 553, in __on_key_back_space
  File "/usr/share/ibus-anthy/engine/jastring.py", line 69, in remove_before
  File "/usr/share/ibus-anthy/engine/romaji.py", line 138, in pop
    raise IndexError("Out of bound")
IndexError: Out of bound

Comment 2 Peng Huang 2009-02-03 07:13:41 UTC
Fixed in ibus-anthy- Please test it.
You could download rpms from http://koji.fedoraproject.org/koji/buildinfo?buildID=81299

Comment 3 Fedora Update System 2009-02-05 02:12:31 UTC
ibus-anthy- has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.