all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Lots of hangs Windows 10 26.0.91
Date: Thu, 29 Mar 2018 15:08:49 +0300	[thread overview]
Message-ID: <831sg3dqy6.fsf@gnu.org> (raw)
In-Reply-To: <CAKX+4G_prcOSXxf=KDv5kJ+CJ5kSTnq9Ha84v269sQ5OABGu+w@mail.gmail.com> (message from Adam Taylor on Wed, 28 Mar 2018 10:18:13 -0400)

> From: Adam Taylor <mr.adtaylor@gmail.com>
> Date: Wed, 28 Mar 2018 10:18:13 -0400
> 
> I'm looking for ideas on how to debug a fairly common hang I'm getting
> while running emacs 26.0.91 under Windows 10 (I know, that's my first
> problem).
> 
> I've been using mostly magit and elpy (python-mode) stuff when it happens.
> I use desktop-save-mode which I suspected was the culprit until I turned it
> off and the problem still happened.
> 
> What happens is that emacs starts to consume 30-40% of the cpu and starts
> to eat memory at a good clip eventually causing my machine to start to page.
> 
> C-g does not work. I have to kill emacs from the task manager.
> 
> It does not seem to be linked to any particular action I make - sometimes
> I'm just editing the python, sometimes I'm updating the magit status
> window. No rhyme or reason that I can divine.
> 
> My guess is some issue in communicating with a subprocess (magit and elpy
> both work with subprocesses).
> 
> I seem to remember some chatter about subprocess problems in the emacs
> developer mailing list and wasn't sure if this was the same issue.
> 
> I would like to debug this, but since I didn't build the windows emacs, it
> might be really hard to connect it to gdb and see where it has gone south.
> 
> Any help/pointers is greatly appreciated.

Please start by reporting this is a bug, using "M-x report-emacs-bug".
This forum is not the right place to discuss debugging of Emacs
problems.

Given the description of the issue, I'd start by asking whether you
are sure this is a "hang".  Did you leave Emacs alone long enough to
maybe finish whatever it's doing and become responsive again?  How
long did you wait before giving up and killing it?

Next, can you try disabling all or most of your customizations?  E.g.,
how about disabling all the non-default values of variables, and only
leaving the add-on packages that you load?  If that fixes the problem,
then you need to look at the customizations for the possible cause.

Did you try disabling the add-on packages one by one, perhaps some of
them has a bug.

If none of the above gives a clue, start Emacs under GDB, and when
that happens interrupt Emacs with Ctrl-C and show the C-level
backtrace.  The file etc/DEBUG in the distribution sho0uld explain how
to set things up so that Emacs will be interruptible in such
situations when run under GDB.  You will need to install a Windows
port of GDB, of course, which is available from the MSYS2 project.



  reply	other threads:[~2018-03-29 12:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-28 14:18 Lots of hangs Windows 10 26.0.91 Adam Taylor
2018-03-29 12:08 ` Eli Zaretskii [this message]
2018-03-29 20:27 ` Phillip Lord
2018-03-30  7:42   ` Eli Zaretskii
2018-03-30 12:39     ` Kevin Buchs
2018-03-29 21:51 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=831sg3dqy6.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.