unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9717: emacs hanging in windows 7
@ 2011-10-10 16:25 Argos42
  2011-10-10 17:06 ` Eli Zaretskii
  2014-04-11 22:09 ` Alan Anderson-Priddy
  0 siblings, 2 replies; 11+ messages in thread
From: Argos42 @ 2011-10-10 16:25 UTC (permalink / raw)
  To: 9717

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 ?





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#9717: emacs hanging in windows 7
  2011-10-10 16:25 bug#9717: emacs hanging in windows 7 Argos42
@ 2011-10-10 17:06 ` Eli Zaretskii
       [not found]   ` <CAD=9Fk=Tb0c83S_Kkk1xRYMrbzz4j5GJTmeGwtNJmEiyGzNaqg@mail.gmail.com>
  2014-04-11 22:09 ` Alan Anderson-Priddy
  1 sibling, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2011-10-10 17:06 UTC (permalink / raw)
  To: Argos42; +Cc: 9717

> From: Argos42 <argos42@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?





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#9717: emacs hanging in windows 7
       [not found]   ` <CAD=9Fk=Tb0c83S_Kkk1xRYMrbzz4j5GJTmeGwtNJmEiyGzNaqg@mail.gmail.com>
@ 2011-10-10 19:16     ` Eli Zaretskii
  2011-10-11  9:03       ` Argos42
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2011-10-10 19:16 UTC (permalink / raw)
  To: Argos42; +Cc: 9717


Please keep the bug address in the CC list.

> From: Argos42 <argos42@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?





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#9717: emacs hanging in windows 7
  2011-10-10 19:16     ` Eli Zaretskii
@ 2011-10-11  9:03       ` Argos42
  2011-10-11 11:40         ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Argos42 @ 2011-10-11  9:03 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 9717

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@gnu.org> wrote:
>
> Please keep the bug address in the CC list.
>
>> From: Argos42 <argos42@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?
>





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#9717: emacs hanging in windows 7
  2011-10-11  9:03       ` Argos42
@ 2011-10-11 11:40         ` Eli Zaretskii
  2011-10-11 12:07           ` Argos42
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2011-10-11 11:40 UTC (permalink / raw)
  To: Argos42; +Cc: 9717

> From: Argos42 <argos42@gmail.com>
> Date: Tue, 11 Oct 2011 11:03:00 +0200
> Cc: 9717@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?





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#9717: emacs hanging in windows 7
  2011-10-11 11:40         ` Eli Zaretskii
@ 2011-10-11 12:07           ` Argos42
  2011-10-11 12:39             ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Argos42 @ 2011-10-11 12:07 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 9717

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@gnu.org> wrote:
>> From: Argos42 <argos42@gmail.com>
>> Date: Tue, 11 Oct 2011 11:03:00 +0200
>> Cc: 9717@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?
>





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#9717: emacs hanging in windows 7
  2011-10-11 12:07           ` Argos42
@ 2011-10-11 12:39             ` Eli Zaretskii
  2015-12-25 23:09               ` Lars Ingebrigtsen
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2011-10-11 12:39 UTC (permalink / raw)
  To: Argos42; +Cc: 9717

> From: Argos42 <argos42@gmail.com>
> Date: Tue, 11 Oct 2011 14:07:44 +0200
> Cc: 9717@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.





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#9717: emacs hanging in windows 7
  2011-10-10 16:25 bug#9717: emacs hanging in windows 7 Argos42
  2011-10-10 17:06 ` Eli Zaretskii
@ 2014-04-11 22:09 ` Alan Anderson-Priddy
  2014-04-12  7:11   ` Eli Zaretskii
  1 sibling, 1 reply; 11+ messages in thread
From: Alan Anderson-Priddy @ 2014-04-11 22:09 UTC (permalink / raw)
  To: 9717

[-- Attachment #1: Type: text/plain, Size: 759 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 1004 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#9717: emacs hanging in windows 7
  2014-04-11 22:09 ` Alan Anderson-Priddy
@ 2014-04-12  7:11   ` Eli Zaretskii
  2014-04-14 15:41     ` Alan Anderson-Priddy
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2014-04-12  7:11 UTC (permalink / raw)
  To: Alan Anderson-Priddy; +Cc: 9717

> Date: Fri, 11 Apr 2014 15:09:59 -0700
> From: Alan Anderson-Priddy <aand@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?





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#9717: emacs hanging in windows 7
  2014-04-12  7:11   ` Eli Zaretskii
@ 2014-04-14 15:41     ` Alan Anderson-Priddy
  0 siblings, 0 replies; 11+ messages in thread
From: Alan Anderson-Priddy @ 2014-04-14 15:41 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 9717

[-- Attachment #1: Type: text/plain, Size: 560 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 677 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#9717: emacs hanging in windows 7
  2011-10-11 12:39             ` Eli Zaretskii
@ 2015-12-25 23:09               ` Lars Ingebrigtsen
  0 siblings, 0 replies; 11+ messages in thread
From: Lars Ingebrigtsen @ 2015-12-25 23:09 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Argos42, 9717

Eli Zaretskii <eliz@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





^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-12-25 23:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-10 16:25 bug#9717: emacs hanging in windows 7 Argos42
2011-10-10 17:06 ` Eli Zaretskii
     [not found]   ` <CAD=9Fk=Tb0c83S_Kkk1xRYMrbzz4j5GJTmeGwtNJmEiyGzNaqg@mail.gmail.com>
2011-10-10 19:16     ` Eli Zaretskii
2011-10-11  9:03       ` Argos42
2011-10-11 11:40         ` Eli Zaretskii
2011-10-11 12:07           ` Argos42
2011-10-11 12:39             ` Eli Zaretskii
2015-12-25 23:09               ` Lars Ingebrigtsen
2014-04-11 22:09 ` Alan Anderson-Priddy
2014-04-12  7:11   ` Eli Zaretskii
2014-04-14 15:41     ` Alan Anderson-Priddy

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).