[Bug 987707] Re: gvim in Precise can't connect to ibus and takes a long time to load
Jason Conti
987707 at bugs.launchpad.net
Thu Apr 26 20:26:33 UTC 2012
After thinking about it a bit more, I figured out why we can't connect
with gdbus after the fork. GDBus uses a separate thread to send and
receive the message, which is only initialized once in
gdbusprivate.c:_g_dbus_shared_thread_ref, guarded by the call to
g_once_init_enter. After the fork, that thread is gone, so when we try
to connect, no messages are sent or received, and we time out.
This can be seen by running gvim in gdb. After the fork, if you zero out
shared_thread_data and ensured_classes (to avoid an abort), gvim will
load right up and ibus will be working.
So I guess the only sane way to fix this on gvim's side would be to move
the gtk_init_check to after the fork (although it seems gvim uses that
to determine if it needs to fallback to text mode, so that may break
other things).
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to vim in Ubuntu.
https://bugs.launchpad.net/bugs/987707
Title:
gvim in Precise can't connect to ibus and takes a long time to load
Status in “vim” package in Ubuntu:
Confirmed
Bug description:
Hi. I have a system with Ubuntu 12.04 (updated 24 April 2012), with
the Chinese language packs and the pinyin ibus system installed. The
system has vim-gtk 2:7.3.429-2ubuntu2 installed on it. When I start
gvim with no arguments, the window appears on the screen, but it is
not responsive. After ~30 seconds of frozenness, gvim begins to
respond again ... however, I can't use Ctrl-Shift to fire up the
pinyin input system. If I start gvim with "gvim -f" to prevent it
from forking to the background, it starts up quickly and pinyin input
works.
This sounds like this is the same symptoms as bug #856779... but this
is on Precise. I'll attach the strace output from the failing case.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vim/+bug/987707/+subscriptions
More information about the foundations-bugs
mailing list