From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Lots of hangs Windows 10 26.0.91 Date: Thu, 29 Mar 2018 15:08:49 +0300 Message-ID: <831sg3dqy6.fsf@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1522325272 21573 195.159.176.226 (29 Mar 2018 12:07:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2018 12:07:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 29 14:07:48 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1WLM-0005Xm-AT for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Mar 2018 14:07:48 +0200 Original-Received: from localhost ([::1]:46509 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1WNP-0002pp-Ou for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Mar 2018 08:09:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1WMf-0002oB-NL for help-gnu-emacs@gnu.org; Thu, 29 Mar 2018 08:09:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f1WMb-0005gy-KF for help-gnu-emacs@gnu.org; Thu, 29 Mar 2018 08:09:09 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1WMb-0005ge-Hq for help-gnu-emacs@gnu.org; Thu, 29 Mar 2018 08:09:05 -0400 Original-Received: from [176.228.60.248] (port=2394 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1f1WMb-0008Uu-1s for help-gnu-emacs@gnu.org; Thu, 29 Mar 2018 08:09:05 -0400 In-reply-to: (message from Adam Taylor on Wed, 28 Mar 2018 10:18:13 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116290 Archived-At: > From: Adam Taylor > 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.