Bug 1248967

Summary: [abrt] ibus-cangjie: engine.py:292:do_select_candidate:TypeError: Argument 1 does not allow None as a value
Product: [Fedora] Fedora Reporter: Mathieu Bridon <bochecha>
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/ad10f4d9820d3438a40993f5da1e2e29d44add47
Whiteboard: abrt_hash:93be95fe756ce6e18219670dfd4087f443b58736
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 17:17:33 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

Description Mathieu Bridon 2015-07-31 08:45:13 UTC
Description of problem:
There were 5 candidates on the current page of the candidate popup.

I typed "9" to select the 9th out of 5.

That triggered the crash.

Even though "9th out of 5" doesn't make much sense, ibus-cangjie shouldn't trigger a crash.

Version-Release number of selected component:
ibus-cangjie-2.4-1.fc22

Additional info:
reporter:       libreport-2.6.2
cmdline:        /usr/bin/python3 /usr/lib/ibus-cangjie/ibus-engine-cangjie --ibus quick
executable:     /usr/lib/ibus-cangjie/ibus-engine-cangjie
kernel:         4.1.2-200.fc22.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
engine.py:292:do_select_candidate:TypeError: Argument 1 does not allow None as a value

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 292, in do_select_candidate
    self.commit_text(selected)
TypeError: Argument 1 does not allow None as a value

Local variables in innermost frame:
page_index: 72
index: 9
selected: None
self: <EngineQuick object at 0x7fd2074c86c0 (EngineQuick at 0x17db090)>

Comment 1 Mathieu Bridon 2015-07-31 08:45:16 UTC
Created attachment 1057988 [details]
File: backtrace

Comment 2 Mathieu Bridon 2015-07-31 08:45:17 UTC
Created attachment 1057989 [details]
File: environ

Comment 3 Fedora End Of Life 2016-07-19 17:17:33 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.