Bug 652881 - [abrt] ibus-anthy: SEGV when key tables are customized in new gconf.
Summary: [abrt] ibus-anthy: SEGV when key tables are customized in new gconf.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ibus-anthy
Version: 14
Hardware: i686
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: fujiwara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:34446f52
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-13 09:02 UTC by Watanabe, Yuki
Modified: 2010-11-24 22:40 UTC (History)
4 users (show)

Fixed In Version: ibus-anthy-1.2.4-4.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-24 22:40:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (673 bytes, text/plain)
2010-11-13 09:02 UTC, Watanabe, Yuki
no flags Details

Description Watanabe, Yuki 2010-11-13 09:02:01 UTC
abrt version: 1.1.13
architecture: i686
cmdline: /usr/bin/python /usr/share/ibus-anthy/engine/main.py --ibus
comment: I'm not sure how to reproduce this bug exactly. I tried several times, some times there was no error message. Some romaji settings I made in the dialog were lost anyway.
component: ibus-anthy
executable: /usr/share/ibus-anthy/engine/main.py
kernel: 2.6.35.6-48.fc14.i686.PAE
package: ibus-anthy-1.2.4-2.fc14
reason: prefs.py:60:set_value:KeyError: 'kwe'
release: Fedora release 14 (Laughlin)
time: 1289637131
uid: 500

backtrace
-----
prefs.py:60:set_value:KeyError: 'kwe'

Traceback (most recent call last):
  File "/usr/share/ibus-anthy/engine/factory.py", line 63, in __config_value_changed_cb
    engine.Engine.CONFIG_VALUE_CHANGED(self.__bus, section, name, value)
  File "/usr/share/ibus-anthy/engine/engine.py", line 1338, in CONFIG_VALUE_CHANGED
    cls.__prefs.set_value(base_sec, name, value)
  File "/usr/share/ibus-anthy/setup/prefs.py", line 60, in set_value
    self.default[section][key]
KeyError: 'kwe'

Local variables in innermost frame:
section: 'romaji_typing_rule/default'
key: 'kwe'
value: dbus.String(u'\u304f\u3047', variant_level=1)
self: <anthyprefs.AnthyPrefs object at 0x851784c>

How to reproduce
-----
I tried to change romaji-key-table (ローマ字キーテーブル) settings in the ibus-anthy config dialog. After removing some default romaji bindings and adding some bindings, I clicked the apply button to activate the settings and then this error occurred.

Comment 1 Watanabe, Yuki 2010-11-13 09:02:04 UTC
Created attachment 460208 [details]
File: backtrace

Comment 2 fujiwara 2010-11-15 04:34:42 UTC
Thanks for the report.
It seems ibus.config.set_value has a time lag between setup and engine.
Now I decided ibus_anthy.config.set_value always checks section and key to fix this problem.

https://github.com/fujiwarat/ibus-anthy/commit/aaa2f6ad0ff5da7915b33b5d30ded25def187e7c

Comment 3 fujiwara 2010-11-15 05:23:08 UTC
Integrated in rawhide:
http://koji.fedoraproject.org/koji/taskinfo?taskID=2601069

Comment 4 Fedora Update System 2010-11-15 05:27:21 UTC
ibus-anthy-1.2.4-3.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/ibus-anthy-1.2.4-3.fc14

Comment 5 Fedora Update System 2010-11-15 22:21:58 UTC
ibus-anthy-1.2.4-3.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update ibus-anthy'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/ibus-anthy-1.2.4-3.fc14

Comment 6 Fedora Update System 2010-11-23 21:53:06 UTC
ibus-anthy-1.2.4-4.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update ibus-anthy'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/ibus-anthy-1.2.4-4.fc14

Comment 7 Fedora Update System 2010-11-24 22:39:53 UTC
ibus-anthy-1.2.4-4.fc14 has been pushed to the Fedora 14 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.