Status: New
Owner: ----
CC: [email protected],  [email protected],  [email protected]
Labels: Type-Defect Priority-Medium Component-ibus

New issue 1186 by [email protected]: ibus-1.3.99: ibus-ui-gtk dies very often
http://code.google.com/p/ibus/issues/detail?id=1186

After the recent signal-sender patch (https://github.com/ibus/ibus/commit/d5bdf851d25b07062ecb2ea932b91317b1d9e72a), it seems that the Gtk+ panel component for IBus became unstable. I'm not sure whether the patch is doing something wrong, or the patch just revealed an existing bug in ibus-daemon (probably the latter?), but anyway after the patch ibus-daemon occasionally terminates a GDBus connection between the daemon and ibus-ui-gtk unexpectedly, and as a result, the UI component process suddenly quits.

There seems to be several ways to reproduce the problem, but the easiest way I found so far would be as follows:

-------------------------------------
1. build tot ibus (master branch), then install it
2. start ibus-daemon without any command line options
3. start ibus-setup. remove all engines except pinyin. check the "Share the same input method among all applications." checkbox
4. quit ibus-setup, then quit ibus-daemon
5. start ibus-daemon with --panel=disable
6. start /usr/lib/ibus/ibus-ui-gtk
7. *before pressing any hot-keys of ibus*, run the attached 'ibus_ui_gtk_crash_reduction' command. (you can compile it with 'g++ `pkg-config --libs --cflags ibus-1.0` ibus_ui_gtk_crash_reduction.c -o ibus_ui_gtk_crash_reduction')

expected:
/usr/lib/ibus/ibus-ui-gtk does not quit.

actual:
the process quits.
-------------------------------------

Reverting the patch for ibusimpl.c (http://codereview.appspot.com/3775042/diff/3001/bus/ibusimpl.c) seems to fix the problem. i.e. the patches against dbusimpl.c and inputcontext.c would be fine.


What version of the product are you using? On what operating system?
OS (Linux distributions, UNIX or ...): Ubuntu 10.10
Architecture (i386, x86_64): x86_64
IBus version: 1.3.99 (tot as of Jan 15 2011)
Input method name and version: ibus-pinyin tot
Python version: 2.6.6-5ubuntu1
dbus version: GDBus 2.26.0-0ubuntu1
dbus-python version: 0.83.0-1ubuntu3
gtk version (if bug is about gtk applications): 2.22.0-0ubuntu1
qt version (if bug is about qt applications): -



Attachments:
        ibus_ui_gtk_crash_reduction.c  346 bytes

--
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

回复