Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 217 by chenmi1999: cannot use ibus-anthy in debian
http://code.google.com/p/ibus/issues/detail?id=217

What version of the product are you using? On what operating system?
OS (Linux distributions, UNIX or ...):Debian 5.0  2.6.26-1-686 #1 SMP
iBus version:0.1.1.20081023
Python version:2.5.2
dbus version: 1.2.1-4
dbus-python version: 0.83.0-1
gtk version (if bug is about gtk applications): 2.12.11-4
qt version (if bug is about qt applications):4.4.3-1

What steps will reproduce the problem?
1. run ibus-setup
2. enable anthy started and preload
3. restart X

What is the expected output? What do you see instead?
expected output: anthy will be enabled automatically.

what I saw:
all engines cannot be used include ibus-pinyin which functions correctly
before.

if I run ibus-setup again and the output is:
$ ibus-setup

(main.py:7671): IBUS-WARNING **: Traceback (most recent call last):
   File "/var/lib/python-support/python2.5/dbus/service.py", line 702, in
_message_cb
     retval = candidate_method(self, *args, **keywords)
   File "/usr/lib/python2.5/site-packages/ibus/factory.py", line 81, in
CreateEngine
     return self.__factory.create_engine()
   File "/usr/lib/python2.5/site-packages/ibus/factory.py", line 53, in
create_engine
     engine = self.__engine_class(self.__bus, self.__engine_path +
str(self.__engine_id))
   File "/usr/share/ibus-anthy/engine/engine.py", line 56, in __init__
     super(Engine, self).__init__(bus, object_path)
   File "/usr/lib/python2.5/site-packages/ibus/engine.py", line 32, in  
__init__
     self.__proxy = EngineProxy (self, bus.get_dbusconn(), object_path)
   File "/usr/lib/python2.5/site-packages/ibus/engine.py", line 145, in  
__init__
     super(EngineProxy, self).__init__(conn, object_path)
   File "/var/lib/python-support/python2.5/dbus/service.py", line 480, in
__init__    self.add_to_connection(conn, object_path)
   File "/var/lib/python-support/python2.5/dbus/service.py", line 571, in
add_to_connection
     self._fallback)
KeyError: "Can't register the object-path handler for
'/com/redhat/IBus/engines/Anthy/Engine/1': there is already a handler"

Segmentation fault


Please provide any additional information below.
recovery method:
1. rm -r ~/.ibus
2. kill ibus
3. ibus-setup again and disable anthy, which can make sure ibus-pinyin run
correctly.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

回复