emacs for Windows hangs

  • Follow


I am using emacs 21.3.1 on Windows XP Pro. Recently emacs often hangs 
and occupies 100% CPU. I keep pressing C-g but no use. This problem 
happend more than 5 times in the past month. The problem happens when I 
did some normal editing on C files. I had to kill emacs from Task 
Manager and lost some of my editing.

Before this problem happens, I enabled many new packages in .emacs. 
Therefore, I guess one of the package caused this problem. I really like 
these packages and do not want to remove them. The problem does not 
happen frequently but always happen after several days. How could I know 
where emacs hangs? I have used the following packages in .emacs

xcscope, cc-mode, redo, session, ido, swbuff, rect-mark, dictionary, 
AUCTeX, Reftex, Ispell, header, cygwin-mount, bar-cursor, gnuserv, 
ibuffer, browse-kill-ring

Wenguang

0
Reply Wenguang 8/28/2003 6:24:55 PM

Wenguang Wang <wew036@mail.usask.ca> writes:

> I am using emacs 21.3.1 on Windows XP Pro. Recently emacs often hangs
> and occupies 100% CPU. I keep pressing C-g but no use. This problem
> happend more than 5 times in the past month. The problem happens when
> I did some normal editing on C files. I had to kill emacs from Task
> Manager and lost some of my editing.
> 
> Before this problem happens, I enabled many new packages in
> .emacs. Therefore, I guess one of the package caused this problem. I
> really like these packages and do not want to remove them. The problem
> does not happen frequently but always happen after several days. How
> could I know where emacs hangs? I have used the following packages in
> .emacs
> 
> xcscope, cc-mode, redo, session, ido, swbuff, rect-mark, dictionary,
> AUCTeX, Reftex, Ispell, header, cygwin-mount, bar-cursor, gnuserv,
> ibuffer, browse-kill-ring
> 
> Wenguang

I've seen this on w2k and always tought it had to do with clearcase.el
and a bad clearcase server in combination with ido. I've solved it by 
removing IDOs temporary file (~/.ido.last) and restarting emacs.

By the way, I'm also interested in knowing what emacs is doing when it
hangs.

Regards,
/Ola
0
Reply Ola 8/28/2003 7:36:26 PM


>>>> Kai Gro�johann writes:

    Kai> But you can also MSVC to compile it, and I don't have the
    Kai> foggiest what's the right debugger in that case.

Assuming you built with debug information, you can use msdev.exe or
devenv.exe to open the .exe as a workspace and then run it... or you
can attach to an already running emacs.  You can also use windbg.

0
Reply Peter 8/28/2003 10:24:26 PM

Peter Lee wrote:

>>>>>Kai Gro�johann writes:
> 
> 
>     Kai> But you can also MSVC to compile it, and I don't have the
>     Kai> foggiest what's the right debugger in that case.
> 
> Assuming you built with debug information, you can use msdev.exe or
> devenv.exe to open the .exe as a workspace and then run it... or you
> can attach to an already running emacs.  You can also use windbg.
> 
I used a binary distribution. So debug info is not available.

0
Reply Wenguang 8/29/2003 2:55:21 PM

Wenguang Wang <wew036@mail.usask.ca> wrote on Thu, 28 Aug 2003 12:24:55 -0600:
> I am using emacs 21.3.1 on Windows XP Pro. Recently emacs often hangs 
> and occupies 100% CPU. I keep pressing C-g but no use. This problem 
> happend more than 5 times in the past month. The problem happens when I 
> did some normal editing on C files. I had to kill emacs from Task 
> Manager and lost some of my editing.

I had a similar problem with Emacs 21.1.  On a somewhat low-powered
machine (166 MHz), I had desktop.el (the thing that reloads the buffers
you had open when you last shut Emacs down) enabled.  I also had
font-locking with jit-lock (the default) enabled.  And I had _far_ too
many large buffers loaded.

Somehow, jit-lock's complexities on so many huge buffers locked up my
machine.  (It stayed at 100% CPU usage at least 8 hours once).  When I
disabled font-lock (or even disabled jit-lock), the problem disappeared. 

> Before this problem happens, I enabled many new packages in .emacs.
> Therefore, I guess one of the package caused this problem. I really
> like these packages and do not want to remove them. The problem does
> not happen frequently but always happen after several days. How could I
> know where emacs hangs? I have used the following packages in .emacs

Try disabling font-lock.  It probably won't help, but it won't do any
harm to try.

> xcscope, cc-mode, redo, session, ido, swbuff, rect-mark, dictionary, 
> AUCTeX, Reftex, Ispell, header, cygwin-mount, bar-cursor, gnuserv, 
> ibuffer, browse-kill-ring

> Wenguang

-- 
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").

0
Reply Alan 8/31/2003 9:01:40 PM

4 Replies
378 Views

(page loaded in 0.182 seconds)

Similiar Articles:













7/20/2012 11:49:40 AM


Reply: