Bug 1991620 - [abrt] ibus-anthy-python: __update_anthy_convert_chars(): engine.py:1278:__update_anthy_convert_chars:TypeError: can only concatenate str (not "NoneType") to str
Summary: [abrt] ibus-anthy-python: __update_anthy_convert_chars(): engine.py:1278:__up...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: ibus-anthy
Version: 34
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: fujiwara
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:adf1428823b5e645d6a3b67bae8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-09 14:28 UTC by Jacopo Farina
Modified: 2021-08-18 07:46 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-18 07:46:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (712 bytes, text/plain)
2021-08-09 14:28 UTC, Jacopo Farina
no flags Details
File: cgroup (529 bytes, text/plain)
2021-08-09 14:28 UTC, Jacopo Farina
no flags Details
File: cpuinfo (2.57 KB, text/plain)
2021-08-09 14:28 UTC, Jacopo Farina
no flags Details
File: environ (1.73 KB, text/plain)
2021-08-09 14:28 UTC, Jacopo Farina
no flags Details
File: mountinfo (4.85 KB, text/plain)
2021-08-09 14:28 UTC, Jacopo Farina
no flags Details
File: namespaces (172 bytes, text/plain)
2021-08-09 14:28 UTC, Jacopo Farina
no flags Details
File: open_fds (1.29 KB, text/plain)
2021-08-09 14:28 UTC, Jacopo Farina
no flags Details

Description Jacopo Farina 2021-08-09 14:28:23 UTC
Description of problem:
I was writing using the IME, tried to write う and pressed tab to se the list of suggestions, then backspace to go back.

Version-Release number of selected component:
ibus-anthy-python-1.5.12-7.fc34

Additional info:
reporter:       libreport-2.15.2
cmdline:        python3 /usr/share/ibus-anthy/engine/main.py --ibus
crash_function: __update_anthy_convert_chars
exception_type: TypeError
executable:     /usr/share/ibus-anthy/engine/main.py
interpreter:    python3-3.9.6-2.fc34.x86_64
kernel:         5.13.7-200.fc34.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
engine.py:1278:__update_anthy_convert_chars:TypeError: can only concatenate str (not "NoneType") to str

Traceback (most recent call last):
  File "/usr/share/ibus-anthy/engine/engine.py", line 1299, in __update
    self.__update_convert_chars()
  File "/usr/share/ibus-anthy/engine/engine.py", line 1222, in __update_convert_chars
    self.__update_anthy_convert_chars()
  File "/usr/share/ibus-anthy/engine/engine.py", line 1278, in __update_anthy_convert_chars
    self.__convert_chars += text
TypeError: can only concatenate str (not "NoneType") to str

Local variables in innermost frame:
self: <engine.Engine object at 0x7fba89694940 (engine+Engine at 0x56112e547170)>
pos: 0
i: 0
seg_index: -1
text: None

Comment 1 Jacopo Farina 2021-08-09 14:28:27 UTC
Created attachment 1812447 [details]
File: backtrace

Comment 2 Jacopo Farina 2021-08-09 14:28:28 UTC
Created attachment 1812448 [details]
File: cgroup

Comment 3 Jacopo Farina 2021-08-09 14:28:30 UTC
Created attachment 1812449 [details]
File: cpuinfo

Comment 4 Jacopo Farina 2021-08-09 14:28:31 UTC
Created attachment 1812450 [details]
File: environ

Comment 5 Jacopo Farina 2021-08-09 14:28:33 UTC
Created attachment 1812451 [details]
File: mountinfo

Comment 6 Jacopo Farina 2021-08-09 14:28:34 UTC
Created attachment 1812452 [details]
File: namespaces

Comment 7 Jacopo Farina 2021-08-09 14:28:36 UTC
Created attachment 1812453 [details]
File: open_fds

Comment 8 fujiwara 2021-08-12 01:37:29 UTC
Your history file might be broken.
Are you able to reproduce your problem after you move $HOME/.config/anthy/last-record2_default.utf8 to anywhere and run `ibus restart` command?

Comment 9 Jacopo Farina 2021-08-12 15:57:22 UTC
(In reply to fujiwara from comment #8)
> Your history file might be broken.
> Are you able to reproduce your problem after you move
> $HOME/.config/anthy/last-record2_default.utf8 to anywhere and run `ibus
> restart` command?

I just checked and indeed if I move the file I cannot reproduce it. Weirdly, after moving the file back again the bug seems to have disappeared. Probably can be closed

Comment 10 fujiwara 2021-08-18 07:46:19 UTC
> after moving the file back again the bug seems to have disappeared

It's curious.
When you will find exact reproducing steps, please comment here later.


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