Bug 1084684

Summary: [abrt] ibus-table: table.py:670:ap_candidate:TypeError: unorderable types: str() < int()
Product: [Fedora] Fedora Reporter: Guo Zhijian <gzjboy>
Component: ibus-tableAssignee: Mike FABIAN <mfabian>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dchen, gzjboy, i18n-bugs, K9, kent.neo, mfabian, pwu, shawn.p.huang
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/bb43c30952dedcef1cdf5395829d1bb9e203db35
Whiteboard: abrt_hash:019c9aac48a2777244dfb2387a7e4c0e4895ec17
Fixed In Version: ibus-table-1.5.0.20140416-1.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-29 05:27:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ
none
0004-Don-t-try-to-colour-system-phrases-and-user-phrases-.patch none

Description Guo Zhijian 2014-04-05 12:14:26 UTC
Version-Release number of selected component:
ibus-table-1.5.0.20140312-2.fc20

Additional info:
reporter:       libreport-2.2.0
cmdline:        /usr/bin/python3 /usr/share/ibus-table/engine/main.py --ibus
executable:     /usr/share/ibus-table/engine/main.py
kernel:         3.13.8-200.fc20.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
table.py:670:ap_candidate:TypeError: unorderable types: str() < int()

Traceback (most recent call last):
  File "/usr/share/ibus-table/engine/table.py", line 1610, in do_process_key_event
    result = self._process_key_event (key)
  File "/usr/share/ibus-table/engine/table.py", line 1632, in _process_key_event
    return self._table_mode_process_key_event (key)
  File "/usr/share/ibus-table/engine/table.py", line 1867, in _table_mode_process_key_event
    res = self._editor.add_input ( keychar )
  File "/usr/share/ibus-table/engine/table.py", line 407, in add_input
    res = self.update_candidates ()
  File "/usr/share/ibus-table/engine/table.py", line 760, in update_candidates
    self.fill_lookup_table()
  File "/usr/share/ibus-table/engine/table.py", line 904, in fill_lookup_table
    self.ap_candidate(x)
  File "/usr/share/ibus-table/engine/table.py", line 670, in ap_candidate
    if candi[-2] < 0:
TypeError: unorderable types: str() < int()

Local variables in innermost frame:
attrs: <AttrList object at 0x7f5dd9faad70 (IBusAttrList at 0x202ac20)>
_p_index: 8
self: <table.editor object at 0x7f5ddbf63710>
_tbks: 'o↑3'
candi: (3, 23, 15, 33, None, None, None, None, '我', 2310000000)
_phrase: '我'
_fkey: 1

Comment 1 Guo Zhijian 2014-04-05 12:14:46 UTC
Created attachment 883032 [details]
File: backtrace

Comment 2 Guo Zhijian 2014-04-05 12:14:55 UTC
Created attachment 883033 [details]
File: environ

Comment 3 Mike FABIAN 2014-04-07 10:20:32 UTC
Which of the Chinese tables are you using?

Can you give a procedure for reproducing this?

Comment 4 Mike FABIAN 2014-04-08 10:18:09 UTC
That seems to happen in pinyin mode.

Comment 5 Mike FABIAN 2014-04-09 14:12:21 UTC
Created attachment 884512 [details]
0004-Don-t-try-to-colour-system-phrases-and-user-phrases-.patch

Patch to fix the problem.

Comment 6 Fedora Update System 2014-04-09 15:25:23 UTC
ibus-table-1.5.0.20140409-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/ibus-table-1.5.0.20140409-1.fc19

Comment 7 Fedora Update System 2014-04-09 15:26:58 UTC
ibus-table-1.5.0.20140409-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/ibus-table-1.5.0.20140409-1.fc20

Comment 8 Fedora Update System 2014-04-14 22:37:06 UTC
Package ibus-table-1.5.0.20140409-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ibus-table-1.5.0.20140409-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-4994/ibus-table-1.5.0.20140409-1.fc19
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2014-04-16 08:14:47 UTC
ibus-table-1.5.0.20140416-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/ibus-table-1.5.0.20140416-1.fc19

Comment 10 Fedora Update System 2014-04-16 08:19:26 UTC
ibus-table-1.5.0.20140416-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/ibus-table-1.5.0.20140416-1.fc20

Comment 11 Fedora Update System 2014-04-29 05:27:55 UTC
ibus-table-1.5.0.20140416-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2014-04-29 05:29:10 UTC
ibus-table-1.5.0.20140416-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.