Bug 1204029
| Summary: | Crashing in F22 Alpha with updates | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Pravin Satpute <psatpute> | ||||
| Component: | ibus-bogo | Assignee: | Truong Anh Tuan <tuanta> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 22 | CC: | sshedmak, tfujiwar, tuanta | ||||
| Target Milestone: | --- | Keywords: | i18n | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2015-07-14 08:14:17 UTC | Type: | Bug | ||||
| 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
Pravin Satpute
2015-03-20 08:10:57 UTC
__init__() should not be exported.
--- /usr/share/ibus-bogo/ibus_engine/ibus_engine.py.orig
+++ /usr/share/ibus-bogo/ibus_engine/ibus_engine.py
@@ -73,7 +73,7 @@ def is_in_unity_dash():
class Engine(IBus.Engine):
__gtype_name__ = 'EngineBoGo'
- def __init__(self, config, abbr_expander):
+ def init_config(self, config, abbr_expander):
super(Engine, self).__init__()
logging.info("You are running ibus-bogo")
--- /usr/share/ibus-bogo/ibus_engine/main.py.orig
+++ /usr/share/ibus-bogo/ibus_engine/main.py
@@ -93,28 +93,12 @@ class IMApp:
if engine_name == "bogo":
dbus_path = "/org/freedesktop/IBus/Engine/%d" % self.engine_count
- # It looks like the GObject's new_with_type constructor also
- # calls __init__ but without arguments so there will be error
- # messages like this:
- #
- # TypeError: __init__() missing 1 required positional argument
- #
- # We will ignore that message by temporarily redirect stderr
- # to /dev/null
-
- f = open('/dev/null', 'w')
- stderr = sys.stderr
- sys.stderr = f
-
engine = Engine.new_with_type(GObject.type_from_name("EngineBoGo"),
"bogo-python",
dbus_path,
self.bus.get_connection())
- sys.stderr = stderr
- f.close()
-
- Engine.__init__(engine, self.config, self.abbr_expander)
+ Engine.init_config(engine, self.config, self.abbr_expander)
self.engine_count += 1
return engine
Thank you Fujiwara for patch. Hi Tuan, Please let me know if you are planning for this build. Else i can do it for you. I am working with upstream developers to fix this issue. Thank you Tuan for an update. :) We have beta freeze deadline 31st March. Hope we will an update by that time. Else we have option of patching same. ibus-bogo-0.4-6.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/ibus-bogo-0.4-6.fc22 Package ibus-bogo-0.4-6.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing ibus-bogo-0.4-6.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-5338/ibus-bogo-0.4-6.fc22 then log in and leave karma (feedback). Created attachment 1051688 [details] Vietnamese string generated successfully with ibus-bogo-0.4-6.fc22 Tested ibus-bogo-0.4-6.fc22. As per https://fedoraproject.org/wiki/QA:Bogo required Vietnamese string is generated/rendered with ibus-bogo-0.4-6.fc22 and doesn't crash any-more while typing with ibus-bogo-0.4-6.fc22. |