| Summary: | [abrt] ibus-1.4.0-6.fc16: enginetreeview.py:176:set_engines:AttributeError: 'NoneType' object has no attribute 'name' | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mohammed Adel <night_fire89> |
| Component: | ibus | Assignee: | fujiwara <tfujiwar> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | i18n-bugs, shawn.p.huang, tfujiwar |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:1ab6009b7b64a3d4db37f0a57ee1cfb342ba5344 | ||
| Fixed In Version: | ibus-1.4.0-17.fc16 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-01-11 06:14:07 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Mohammed Adel
2011-11-28 21:37:56 UTC
(In reply to comment #0) > :Traceback (most recent call last): > : File "/usr/share/ibus/setup/xkbsetup.py", line 338, in > __button_system_keyboard_layout_add_cb > : self.__treeview_system_keyboard_layout.set_engines([engine]) > : File "/usr/share/ibus/setup/enginetreeview.py", line 176, in set_engines > : e.name.startswith(ibus.DEFAULT_BRIDGE_ENGINE_NAME): > :AttributeError: 'NoneType' object has no attribute 'name' > : > :Local variables in innermost frame: > :self: <EngineTreeView object at 0x1937f00 (EngineTreeView at 0x1aac5a0)> > :e: None > :engines: [None] I don't understand why the active engine could be null but I added the check logic to avoid segv. --- ibus-1.4.0/setup/xkbsetup.py.orig +++ ibus-1.4.0/setup/xkbsetup.py @@ -350,6 +350,9 @@ class XKBSetup(gobject.GObject): def __button_system_keyboard_layout_add_cb(self, button): engines = self.__treeview_system_keyboard_layout.get_engines() engine = self.__combobox_system_keyboard_layout.get_active_engine() + if engine == None: + return + # If engines[0] is the default dummy engine: if len(engines) > 0 and engines[0].layout == "default": self.__treeview_system_keyboard_layout.set_engines([engine]) else: ibus-1.4.0-15.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/ibus-1.4.0-15.fc16 Package ibus-1.4.0-16.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing ibus-1.4.0-16.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-17574/ibus-1.4.0-16.fc16 then log in and leave karma (feedback). Package ibus-1.4.0-17.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing ibus-1.4.0-17.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-17574/ibus-1.4.0-17.fc16 then log in and leave karma (feedback). ibus-1.4.0-17.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. |