GNU bug report logs - #9717
emacs hanging in windows 7

Previous Next

Package: emacs;

Reported by: Argos42 <argos42 <at> gmail.com>

Date: Mon, 10 Oct 2011 16:29:02 UTC

Severity: normal

Tags: moreinfo

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9717 in the body.
You can then email your comments to 9717 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#9717; Package emacs. (Mon, 10 Oct 2011 16:29:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Argos42 <argos42 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 10 Oct 2011 16:29:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Argos42 <argos42 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: emacs hanging in windows 7
Date: Mon, 10 Oct 2011 18:25:13 +0200
Hello,
emacs hangs in windows unreasonably. I've been trying the
w32-get-true-file-attributes thing, without success.

Emacs hangs when opening a file, about once per 5 times when saving.
It really hangs for a long time (about one minute).

Anyone got a hint ?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9717; Package emacs. (Mon, 10 Oct 2011 17:07:02 GMT) Full text and rfc822 format available.

Message #8 received at 9717 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Argos42 <argos42 <at> gmail.com>
Cc: 9717 <at> debbugs.gnu.org
Subject: Re: bug#9717: emacs hanging in windows 7
Date: Mon, 10 Oct 2011 19:06:22 +0200
> From: Argos42 <argos42 <at> gmail.com>
> Date: Mon, 10 Oct 2011 18:25:13 +0200
> 
> emacs hangs in windows unreasonably. I've been trying the
> w32-get-true-file-attributes thing, without success.
> 
> Emacs hangs when opening a file, about once per 5 times when saving.
> It really hangs for a long time (about one minute).

Which version of Emacs is that?

If you built Emacs yourself, can you attach a debugger to it when it
hangs and tell us where it is stuck?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9717; Package emacs. (Mon, 10 Oct 2011 19:17:02 GMT) Full text and rfc822 format available.

Message #11 received at 9717 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Argos42 <argos42 <at> gmail.com>
Cc: 9717 <at> debbugs.gnu.org
Subject: Re: bug#9717: emacs hanging in windows 7
Date: Mon, 10 Oct 2011 21:16:18 +0200
Please keep the bug address in the CC list.

> From: Argos42 <argos42 <at> gmail.com>
> Date: Mon, 10 Oct 2011 19:44:00 +0200
> 
> Happens with (at least) versions 22.3, 23.1, 23.2 (downloaded from
> here http://ftp.gnu.org/pub/gnu/emacs/windows/)

Do you see the disk LED being on for the whole time that Emacs is
frozen?

Can you look at the Emacs process attributes in the Task Manager, and
see whether it grows or shrinks in memory size, or whether its read or
write counts go up during that time?

When you say "hangs once per 5 times when saving", is this with the
same file, i.e., do you type "C-x C-s" several times in the same
buffer, and once in a few times Emacs hangs?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9717; Package emacs. (Tue, 11 Oct 2011 09:04:01 GMT) Full text and rfc822 format available.

Message #14 received at 9717 <at> debbugs.gnu.org (full text, mbox):

From: Argos42 <argos42 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 9717 <at> debbugs.gnu.org
Subject: Re: bug#9717: emacs hanging in windows 7
Date: Tue, 11 Oct 2011 11:03:00 +0200
When I save multiple times the same file, it starts hanging, the
process does not grow either in memory, reads, writes or takes cpu
time.


On Mon, Oct 10, 2011 at 21:16, Eli Zaretskii <eliz <at> gnu.org> wrote:
>
> Please keep the bug address in the CC list.
>
>> From: Argos42 <argos42 <at> gmail.com>
>> Date: Mon, 10 Oct 2011 19:44:00 +0200
>>
>> Happens with (at least) versions 22.3, 23.1, 23.2 (downloaded from
>> here http://ftp.gnu.org/pub/gnu/emacs/windows/)
>
> Do you see the disk LED being on for the whole time that Emacs is
> frozen?
>
> Can you look at the Emacs process attributes in the Task Manager, and
> see whether it grows or shrinks in memory size, or whether its read or
> write counts go up during that time?
>
> When you say "hangs once per 5 times when saving", is this with the
> same file, i.e., do you type "C-x C-s" several times in the same
> buffer, and once in a few times Emacs hangs?
>




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9717; Package emacs. (Tue, 11 Oct 2011 11:41:01 GMT) Full text and rfc822 format available.

Message #17 received at 9717 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Argos42 <argos42 <at> gmail.com>
Cc: 9717 <at> debbugs.gnu.org
Subject: Re: bug#9717: emacs hanging in windows 7
Date: Tue, 11 Oct 2011 07:40:11 -0400
> From: Argos42 <argos42 <at> gmail.com>
> Date: Tue, 11 Oct 2011 11:03:00 +0200
> Cc: 9717 <at> debbugs.gnu.org
> 
> When I save multiple times the same file, it starts hanging, the
> process does not grow either in memory, reads, writes or takes cpu
> time.

So it basically waits for something doing nothing, is that right?

If so, can you describe the system where it happens?  Is this a
desktop machine, a laptop machine, something else?  What kind of drive
is the disk drive on which these files reside?  Does this happen in
"emacs -Q"?

If it's possible, can you see if the same happens on another system?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9717; Package emacs. (Tue, 11 Oct 2011 12:09:01 GMT) Full text and rfc822 format available.

Message #20 received at 9717 <at> debbugs.gnu.org (full text, mbox):

From: Argos42 <argos42 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 9717 <at> debbugs.gnu.org
Subject: Re: bug#9717: emacs hanging in windows 7
Date: Tue, 11 Oct 2011 14:07:44 +0200
It hangs both at home on my desktop computer (Win7.32) and a laptop at
work (Win7.64).
At home, hangs are short while at work it can last up to 30 secs.

Files are on local HD.

I'm also wandering, is emacs trying to check my user rights over the network?

In emacs -Q : same problem.


Other people have/had similar issues
(http://stackoverflow.com/questions/2007329/emacs-23-1-50-1-hangs-ramdomly-for-6-8-seconds-on-windows-xp
http://blog.zzamboni.org/solving-hangs-in-emacs-on-windows ...)




On Tue, Oct 11, 2011 at 13:40, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Argos42 <argos42 <at> gmail.com>
>> Date: Tue, 11 Oct 2011 11:03:00 +0200
>> Cc: 9717 <at> debbugs.gnu.org
>>
>> When I save multiple times the same file, it starts hanging, the
>> process does not grow either in memory, reads, writes or takes cpu
>> time.
>
> So it basically waits for something doing nothing, is that right?
>
> If so, can you describe the system where it happens?  Is this a
> desktop machine, a laptop machine, something else?  What kind of drive
> is the disk drive on which these files reside?  Does this happen in
> "emacs -Q"?
>
> If it's possible, can you see if the same happens on another system?
>




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9717; Package emacs. (Tue, 11 Oct 2011 12:40:03 GMT) Full text and rfc822 format available.

Message #23 received at 9717 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Argos42 <argos42 <at> gmail.com>
Cc: 9717 <at> debbugs.gnu.org
Subject: Re: bug#9717: emacs hanging in windows 7
Date: Tue, 11 Oct 2011 08:39:33 -0400
> From: Argos42 <argos42 <at> gmail.com>
> Date: Tue, 11 Oct 2011 14:07:44 +0200
> Cc: 9717 <at> debbugs.gnu.org
> 
> It hangs both at home on my desktop computer (Win7.32) and a laptop at
> work (Win7.64).
> At home, hangs are short while at work it can last up to 30 secs.

Can it be that the laptop has some power management policy defined
that stops the disk after some time, and Emacs waits until it spins
up?

> Files are on local HD.
> 
> I'm also wandering, is emacs trying to check my user rights over the network?

If the files are local, there's nothing for Emacs to check on the
network, I think.  But if you can install some sniffer, like windump,
and see what is the traffic on the network during these delays, that
might unlock the mystery.

> 
> In emacs -Q : same problem.
> 
> 
> Other people have/had similar issues
> (http://stackoverflow.com/questions/2007329/emacs-23-1-50-1-hangs-ramdomly-for-6-8-seconds-on-windows-xp
> http://blog.zzamboni.org/solving-hangs-in-emacs-on-windows ...)

But you said that in your case, setting w32-get-true-file-attributes
to nil didn't help, didn't you?

How about this setting:

  (setq vc-handled-backends nil)

Put it in your .emacs, restart Emacs and see if the delays go away.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9717; Package emacs. (Fri, 11 Apr 2014 22:15:02 GMT) Full text and rfc822 format available.

Message #26 received at 9717 <at> debbugs.gnu.org (full text, mbox):

From: Alan Anderson-Priddy <aand <at> pdx.edu>
To: 9717 <at> debbugs.gnu.org
Subject: Re: bug#9717: emacs hanging in windows 7
Date: Fri, 11 Apr 2014 15:09:59 -0700
[Message part 1 (text/plain, inline)]
24.3; emacs hangs under windows 7

Went to try this out on a machine at work.

In Windows 7, Emacs hangs for 4 to 10 seconds every few minutes. Tried
emacs and runemacs from the Windows GUI via mouse clicks.

Then from the cmd tried them again.
Then tried emacs -Q and runemacs -Q from cmd.
Tried downloading Cygwin and then emacs from inside Cygwin.
Haven't had any problems from in Cygwin in the same version, 24.3.1.

This is a work machine and have only had it for a few days, so I am not
entitled to full freedom/control over it and it is possible something is
wrong with the machine (well, don't get me started =D ). Happy to try other
options.

Definitely don't have this issue anywhere else (such as Trisquel).
Definitely seems to be Windows related.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9717; Package emacs. (Sat, 12 Apr 2014 07:12:01 GMT) Full text and rfc822 format available.

Message #29 received at 9717 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Alan Anderson-Priddy <aand <at> pdx.edu>
Cc: 9717 <at> debbugs.gnu.org
Subject: Re: bug#9717: emacs hanging in windows 7
Date: Sat, 12 Apr 2014 10:11:48 +0300
> Date: Fri, 11 Apr 2014 15:09:59 -0700
> From: Alan Anderson-Priddy <aand <at> pdx.edu>
> 
> 24.3; emacs hangs under windows 7

This is too general.  I use Emacs 24.3 on Windows 7 for many months,
and never saw anything like what you describe.

> In Windows 7, Emacs hangs for 4 to 10 seconds every few minutes. Tried
> emacs and runemacs from the Windows GUI via mouse clicks.
> 
> Then from the cmd tried them again.
> Then tried emacs -Q and runemacs -Q from cmd.

Did "emacs -Q" exhibit the same behavior?

> Tried downloading Cygwin and then emacs from inside Cygwin.
> Haven't had any problems from in Cygwin in the same version, 24.3.1.
> 
> This is a work machine and have only had it for a few days, so I am not
> entitled to full freedom/control over it and it is possible something is
> wrong with the machine (well, don't get me started =D ). Happy to try other
> options.
> 
> Definitely don't have this issue anywhere else (such as Trisquel).
> Definitely seems to be Windows related.

If it's Windows related, how come it doesn't happen to me, or anyone
else who use that same version on Windows 7?

Do you have networked drives?  Do you have a Net Logon service enabled
on those machines?  If you set garbage-collection-messages non-nil, do
you see a message in the echo area announcing GC when these hangs
happen?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9717; Package emacs. (Mon, 14 Apr 2014 15:42:02 GMT) Full text and rfc822 format available.

Message #32 received at 9717 <at> debbugs.gnu.org (full text, mbox):

From: Alan Anderson-Priddy <aand <at> pdx.edu>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 9717 <at> debbugs.gnu.org
Subject: Re: bug#9717: emacs hanging in windows 7
Date: Mon, 14 Apr 2014 08:41:49 -0700
[Message part 1 (text/plain, inline)]
emacs -Q exhibits the same behaviour.

Hehe, yeah you're right. I don't have the answer to that question about why
it does not happen to you. Bug 9717 seemed to be very close which is why I
responded to it rather than opening a new ticket. I suppose what I should
have said is "It definitely seems to be related to the only the non-Cygwin
Windows version of Emacs." =D

Sorry, I don't have the answers the rest of your questions. It was a loner
for work. I can try it out on another Windows 7 computer later, though. If
I get the same results I'll write back.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9717; Package emacs. (Fri, 25 Dec 2015 23:10:02 GMT) Full text and rfc822 format available.

Message #35 received at 9717 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Argos42 <argos42 <at> gmail.com>, 9717 <at> debbugs.gnu.org
Subject: Re: bug#9717: emacs hanging in windows 7
Date: Sat, 26 Dec 2015 00:09:07 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

> But you said that in your case, setting w32-get-true-file-attributes
> to nil didn't help, didn't you?
>
> How about this setting:
>
>   (setq vc-handled-backends nil)
>
> Put it in your .emacs, restart Emacs and see if the delays go away.

More information was requested, but no response was given within a few
months, so I'm closing this bug report.  If the problem still exists,
please reopen this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 9717 <at> debbugs.gnu.org and Argos42 <argos42 <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 25 Dec 2015 23:10:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 23 Jan 2016 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 192 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.