project-explorer icon indicating copy to clipboard operation
project-explorer copied to clipboard

freezing

Open jney opened this issue 10 years ago • 15 comments

when i open it in one project (not so big) it makes emacs freeze. i can not tell you much more because i don't get any error message or whatever..

jney avatar Feb 23 '15 21:02 jney

I've got 9224 files in project, because of node_modules i use

$ find . -type f | wc -l
$ 9224

jney avatar Feb 23 '15 22:02 jney

Can you try making a copy and removing files to figure out the culprit? There's probably something unusual going on that I haven't considered.

Enabling M-x toggle-debug-on-error and pressing C-g when it freezes might also reveal something.

I'll probably add node_modules to the default pe/omit-regex, since it's mentioned in many tickets.

sabof avatar Feb 23 '15 22:02 sabof

If it's something inside node_modules, I might be able reproduce it with a list of installed modules.

sabof avatar Feb 23 '15 22:02 sabof

i just noticed #4 issue. what are the functionalities that can't make it "lazy" ?

jney avatar Mar 03 '15 10:03 jney

There's a bunch. It shouldn't freeze with ~1000 files.

sabof avatar Mar 03 '15 11:03 sabof

For me as well, it renders Emacs unresponsive.

katspaugh avatar Mar 29 '15 09:03 katspaugh

I've described above how you might help me debug this.

sabof avatar Mar 29 '15 11:03 sabof

I couldn't get any useful information out of toggle-debug-on-error + C-g, but I confirm that removing node_modules from the project directory and recaching the tree fixes the problem.

katspaugh avatar Mar 29 '15 17:03 katspaugh

What modules do you have installed? What is your OS?

sabof avatar Mar 29 '15 19:03 sabof

@sabof sorry for the delay! In my node_modules there are 50 modules, bower, grunt, karma, coffee-script and the rest are various grunt and karma plugins.

I have to say on a more recent laptop the problem is less pronounced, but it still makes Emacs almost unusable. The OS is OS X.

katspaugh avatar Apr 11 '15 21:04 katspaugh

But eventually it finishes indexing, and everything works as usual?

sabof avatar Apr 12 '15 00:04 sabof

It is indexing OK, I understand it's expected to take some time. The problem is exactly after, when you do regular stuff in Emacs like opening fils or even moving cursor.

katspaugh avatar Apr 12 '15 10:04 katspaugh

I've added node_modules to pe/omit-regex. I could limit the number of overlays used, but I'm not sure that the problem is prevalent enough.

sabof avatar Apr 12 '15 16:04 sabof

Thanks! It does work fast now.

katspaugh avatar Apr 12 '15 21:04 katspaugh

Super-old issue, but figured I figured I'd chime in--If the issue crops up again, M-x toggle-debug-on-quit + C-g should give more information than M-x toggle-debug-on-error since it doesn't need an error to show you the current stack trace.

Alternatively, pkill -USR2 emacs from a terminal will get you a stack trace from an unresponsive Emacs that won't even respond to C-g. (And even unfreeze it for you..!)

This also turns on debug-on-quit, so after you get a stack trace, you might want to run M-x toggle-debug-on-quit again, or else it might get a bit annoying.

Archenoth avatar May 16 '16 17:05 Archenoth