ECB freeze Emacs all the time !!!
Pony <[email protected]> Fri, 17 Sep 2010 18:26:22 +0000 (UTC)
| Newsgroups | gmane.emacs.code-browser |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
I'm facing a annoying problem for two weeks.
Everytime I open ECB, the Emacs freeze immediately or after some seconds.
The freeze will last about one minute, and when I try tomove in the code,
it will freeze again.
The speedbar works fine, only the ECB got problem.
My PC is in my lab's network, here is some information:
Operation system : Ubuntu 10.04 LTS
Emacs version : 23.2.1
Cedet version: 1.0
ECB version: 2.40
My .emacs file like this:
------------------------------------------
(load-file "~/Emacs/cedet-1.0/common/cedet.el")
(semantic-load-enable-minimum-features)
(add-to-list 'load-path "~/Emacs/ecb-2.40")
(require 'ecb)
------------------------------------------
Because I want to make sure the problem is not caused by the conflict
between ECB and other lisps,
I simplify my .emacs file into only 4 lines.
Still it keeps freezing!!!!
Since in the lab I'm not a super user,
I tried to simulate the whole situition on my own laptop,
which means the same operation system,
the same Emacs, Cedet and ECB.
The Emacs with ECB works perfect on my laptop!! No freezing!
Then I'm thinking maybe it's something wrong with
the computer system in our lab.
So I installed another old version of Emacs-Cedet-ECB into my lab pc,
which means:
Emacs version : 22.3
Cedet version : 1.0pre6
ECB : 2.40
Again it freeze!!!
Then I install all the cvs version of them, still it freeze!!!
I'm thinking probably it's because of semantic part.
I put a question in the "gmane.emacs.semantic" part,
David Engster told me to try interrupt the freeze with C-g,
do "M-x toggle-debug-on-quit", then wait for the freeze to happen,
press C-g again, and here is the resulting backtrace.
---------------------------------------------------------------
Debugger entered--Lisp error: (quit)
directory-files("/home/agschaef" nil nil t)
apply(directory-files "/home/agschaef" (nil nil t))
ecb-directory-files("/home/agschaef" nil nil t)
ecb-check-emptyness-of-dir("/home/agschaef")
byte-code("\212 X\203\n\203
ecb-stealthy-empty-dir-check()
ecb-stealthy-updates()
apply(ecb-stealthy-updates nil)
byte-code("\301\302H\303H\"\207" [timer apply 5 6] 4)
timer-event-handler([t 0 1 0 t ecb-stealthy-updates nil idle])
---------------------------------------------------------------
>From the output I think I knew what Emacs was trying to do during freezing.
You see in our lab we have a lot of (actually 129) users under the "/home/"
directory.
And "/home/agschaef/" is the first one.
It seems Emacs try to get some information from this user.
But I do not have the write permission in "/home/agschaef/",
because it's someone else's pc.
I can not even use "cd" command to get into the directory.
David Engster told me that it's not a problem
with Semantic/ECB/Emacs, but with our lab system.
So he suggested me to put my question here.
By the way, when in the debug mode, which means "C-g" and
"M-x toggle-debug-on-quit" and then "C-g",
the Emacs and ECB work fine.
Untill I try to visit the "/home/agschaef/".
However when I visit the other users' directories, it's fine.
It means ECB only got problem with this particular user's directory.
Again David told me either I have a *lot* of files there, or
somehow access to this directory is slow.
But first I have no files in this directoy and second I can not access
the directory at all!!!
So can I disable the ECB to check this "/home/agschaef/" dirctory?
Can I make ECB check only my own home directory?
What should I do???
I'm going crazy!!
regards,
Pony
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev