Updates:
Status: Started
Cc: Shawn.P.Huang takao.fujiwara1
Comment #3 on issue 1104 by takao.fujiwara1: ibus uses 100% cpu as a result
of poor spawning code
http://code.google.com/p/ibus/issues/detail?id=1104
https://bugs.launchpad.net/ubuntu/+source/ibus/+bug/637671
That is a good evaluation. Now I could reproduce your problem, thanks.
Fedora uses pygtk2 2.17 but Ubuntu uses 2.21. When I installed pygtk2 2.17,
I don't see this problem and noticed pygtk2 uses a signal wakeup feature
and causes many polling fds.
#0 0x00007f9e5e85fb60 in read () from /lib/libpthread.so.0
#1 0x00007f9e59425501 in pygtk_main_watch_check (source=0x2676cd0)
at ./gtk.override:1156
#2 0x00007f9e5c35a66a in g_main_context_check () from /lib/libglib-2.0.so.0
#3 0x00007f9e5c35b023 in ?? () from /lib/libglib-2.0.so.0
#4 0x00007f9e5c35b7b5 in g_main_loop_run () from /lib/libglib-2.0.so.0
#5 0x00007f9e58d1f3e7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#6 0x00007f9e5942571e in _wrap_gtk_main (self=0x0) at ./gtk.override:1239
#7 0x00000000004a52e8 in PyEval_EvalFrameEx ()
#8 0x00000000004a5ab0 in PyEval_EvalFrameEx ()
#9 0x00000000004a5ab0 in PyEval_EvalFrameEx ()
#10 0x00000000004a5ab0 in PyEval_EvalFrameEx ()
#11 0x00000000004a6bd1 in PyEval_EvalCodeEx ()
#12 0x00000000004a6ca2 in PyEval_EvalCode ()
#13 0x00000000004c702e in PyRun_FileExFlags ()
#14 0x00000000004c7244 in PyRun_SimpleFileExFlags ()
#15 0x00000000004180c1 in Py_Main ()
#16 0x00007f9e5d66cd8e in __libc_start_main () from /lib/libc.so.6
The following patch can resolve this issue:
http://github.com/fujiwarat/ibus/commit/b86c094a38f11f0a0924b700449b0cb1cd3a0285
--
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