Bug 1315061

Summary: [abrt] ibus-cangjie: engine.py:291:do_select_candidate:OverflowError: -1 not in range 0 to 4294967295
Product: [Fedora] Fedora Reporter: chanueting <chanueting>
Component: ibus-cangjieAssignee: Mathieu Bridon <bochecha>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: bochecha
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/d418085b7914eb650879242d01b0d3a34f3f735b
Whiteboard: abrt_hash:5e4c2fce52bbed715eacb54c52d4ad49b767d5cf;VARIANT_ID=workstation;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 18:45:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description chanueting 2016-03-06 11:25:14 UTC
Version-Release number of selected component:
ibus-cangjie-2.4-1.fc22

Additional info:
reporter:       libreport-2.6.4
cmdline:        /usr/bin/python3 /usr/lib/ibus-cangjie/ibus-engine-cangjie --ibus cangjie
executable:     /usr/lib/ibus-cangjie/ibus-engine-cangjie
kernel:         4.4.3-201.fc22.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
engine.py:291:do_select_candidate:OverflowError: -1 not in range 0 to 4294967295

Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/ibus_cangjie/engine.py", line 333, in do_process_key_event
    return self.do_number(keyval)
  File "/usr/lib/python3.4/site-packages/ibus_cangjie/engine.py", line 235, in do_number
    return self.do_select_candidate(int(IBus.keyval_to_unicode(keyval)))
  File "/usr/lib/python3.4/site-packages/ibus_cangjie/engine.py", line 291, in do_select_candidate
    selected = self.lookuptable.get_candidate(page_index+index-1)
OverflowError: -1 not in range 0 to 4294967295

Local variables in innermost frame:
index: 0
page_index: 0
self: <EngineCangjie object at 0x7f90d76891b0 (EngineCangjie at 0x168e370)>

Comment 1 chanueting 2016-03-06 11:25:18 UTC
Created attachment 1133469 [details]
File: backtrace

Comment 2 chanueting 2016-03-06 11:25:19 UTC
Created attachment 1133470 [details]
File: environ

Comment 3 Mathieu Bridon 2016-03-06 16:13:25 UTC
Hi, thanks for the bug report.

After a quick investigation, I could find the source of the issue and reported it upstream.

    https://github.com/Cangjians/ibus-cangjie/issues/72

We'll try to fix it there, publish a new release and then I'll update the Fedora package.

Comment 4 Fedora End Of Life 2016-07-19 18:45:39 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.