Ming Hua wrote: > On Mon, May 14, 2007 at 02:23:39AM -0000, David Cournapeau wrote: >> Sorry for the late reply. It looks like there are two specific >> problemes, actually: applications hanging up when scim is the IM, and >> problems when converting from kana to kanji, specific to scim-anthy. >> >> First, I removed all the settings related to IM from my .xsession and my >> bashrc, to test it on a per application basis. When I do: >> >> GTK_IM_MODULE=xim mozilla-thunderbird >> >> then it launches correctly. If I replace xim by scim in the above >> command, it does not work anymore. scim is effectively launched, >> since I get: >> >> Launching a SCIM daemon with Socket FrontEnd... >> Loading simple Config module ... >> Creating backend ... >> Loading socket FrontEnd module ... >> Starting SCIM as daemon ... >> GTK Panel of SCIM 1.4.4 >> >> But it hangs here, apparently doing nothing (no cpu is taken by the >> process). This is the same whatever application using gtk I launch. >> Something which may be of some interest is that when I launches an >> application with GTK_IM_MODULE set to scim under strace, it always hangs >> at the following call: >> >> connect(3, {sa_family=AF_FILE, path="/tmp/scim-socket-frontend-david"}, > > I am confused here. There is a known bug about GTK_IM_MODULE=scim not > working, related to old C++ library libstdc++5, reported as bug #2246. > But this doesn't seem to be the case here. This does not seem related at all. First, scim is linked to libstdc++6, and this problem appears for any gtk applications, even the ones which do not use c++ (for example gedit does not seem to be linked to libstdc++ according to ldd). > > Maybe, but I have too little experience on NFS to have any informed > opinion. But as we are talking about this, your /tmp is on a local > disk, isn't it? Yes, only $HOME is on NFS. To be sure that the problem is not coming from nfs, I put $HOME/.scim on my local dist through a soft link, but maybe other directories in $HOME are involved, dunno. Basically, I think this is a bug related to connecting to the socket. If I "start fresh", that is I unset GTK_IM_MODULE (and XMODIFIERS and XIM_INPUT) and do not automatically launch scim in my session, I then do the following: - start scim manually in a terminal (with scim -d) - in the same terminal, I launch an application this way: GTK_IM_MODULE=scim strace app Any application hangs at the following call: connect(17, {sa_family=AF_FILE, path="/tmp/scim-socket-frontend-david"}, 33) = 0 After sometimes (around one minute, generally), the application continues, but then the problem appears again when I want to use the kanji configuration (at the same system call). After again sometimes, the app continues, but without the kanji configuration. Besides $HOME on NFS, the other thing which is really peticular in my setup, and maybe related, is that I do not have any DNS server on my network. All connection are done through a proxy (I have http_proxy set to the proxy). Again, not sure it is related, but it also has been the cause of problems with other softwares, At this point, I am ready to use a debugging version of scim :) David