GNU bug report logs - #48807
[master][windows10] emacs hangs when editing *.xml files

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Édouard Debry <edouard.debry@HIDDEN>; Keywords: moreinfo; dated Thu, 3 Jun 2021 08:15:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 48807 <at> debbugs.gnu.org:


Received: (at 48807) by debbugs.gnu.org; 3 Jun 2021 08:30:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 03 04:30:52 2021
Received: from localhost ([127.0.0.1]:42187 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1loike-0001wx-0V
	for submit <at> debbugs.gnu.org; Thu, 03 Jun 2021 04:30:52 -0400
Received: from eggs.gnu.org ([209.51.188.92]:47500)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1loikc-0001rm-VY
 for 48807 <at> debbugs.gnu.org; Thu, 03 Jun 2021 04:30:51 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:33174)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1loikX-0004t7-Q9; Thu, 03 Jun 2021 04:30:45 -0400
Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3863
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1loikX-0001EL-C4; Thu, 03 Jun 2021 04:30:45 -0400
Date: Thu, 03 Jun 2021 11:30:33 +0300
Message-Id: <83sg1zwdsm.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: =?utf-8?Q?=C3=89douard?= Debry <edouard.debry@HIDDEN>
In-Reply-To: <87o8cnuzzh.fsf@HIDDEN> (message from =?utf-8?Q?=C3=89doua?=
 =?utf-8?Q?rd?= Debry on Thu, 03 Jun 2021 10:14:10 +0200)
Subject: Re: bug#48807: [master][windows10] emacs hangs when editing *.xml
 files
References: <87o8cnuzzh.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 48807
Cc: 48807 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Édouard Debry <edouard.debry@HIDDEN>
> Date: Thu, 03 Jun 2021 10:14:10 +0200
> 
> - emacs master (a few weeks)

Please try the latest master and see if the same problem happens
there.

> - compiled with native-comp on windows 10 with latest mingw64 
>   environment

Which GCC version does that come with?  And which version of libxml?

> * Bug description
>   - open an *xml file, the nxml-mode is enabled in the buffer.
>   - edit (modify, save changes) the *xml file

Does this happen to you with _any_ XML file, or just with some?  If
the latter, can you post one such file?

>   - within a few minutes, emacs hangs by consuming the whole ram 
>   (not cpu).
>     As a consequence, windows 10 becomes much less responsive

Does Emacs run asynchronous native-compilation sub-processes when this
happens?  If so, how many such sub-processes are running, and what
happens if you kill some or all of them?

> The only workaround so far I found is to quickly edit xml files, 
> save and close them
> before emacs begins to eat all memory.

Please use the Task Manager or (better) Process Explorer to find out
which of the Emacs processes consumes most of the memory.  Is that the
process you started or any sub-processes that native-compile Lisp
files in the background?  How much memory does each Emacs consume?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#48807; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Jun 2021 08:14:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 03 04:14:19 2021
Received: from localhost ([127.0.0.1]:42140 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1loiUd-0006yG-Lh
	for submit <at> debbugs.gnu.org; Thu, 03 Jun 2021 04:14:19 -0400
Received: from lists.gnu.org ([209.51.188.17]:53696)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <edouard.debry@HIDDEN>) id 1loiUb-0006y0-HP
 for submit <at> debbugs.gnu.org; Thu, 03 Jun 2021 04:14:17 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:37136)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <edouard.debry@HIDDEN>)
 id 1loiUb-0003PX-Ce
 for bug-gnu-emacs@HIDDEN; Thu, 03 Jun 2021 04:14:17 -0400
Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:43721)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <edouard.debry@HIDDEN>)
 id 1loiUZ-0002hR-Mw
 for bug-gnu-emacs@HIDDEN; Thu, 03 Jun 2021 04:14:17 -0400
Received: by mail-wm1-x32a.google.com with SMTP id
 3-20020a05600c0243b029019f2f9b2b8aso3143373wmj.2
 for <bug-gnu-emacs@HIDDEN>; Thu, 03 Jun 2021 01:14:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=user-agent:from:to:subject:date:message-id:mime-version;
 bh=YEnRusyBxJn0oUQulq2zPt6t43qV8APkV+e1NfMksIs=;
 b=cvvEloPsFs9s5UyQV0/NvbWYCIyD/EBuV/tYq+7TBUu3JZ1w1UP6FDg50HFICvBHaf
 y4l6ckV/P8+TvUfGMFwFymN6HqpCtCElJrAc9U9tMaGQQj2RUghh9U5fjcmoYxPLkKoJ
 KgHfRBS7F1zAhQAHL9XWKRsfsF6t/gYg+rJLKdEiIre5N4W8HRp9wXdU1dmGW5M+MWeB
 SHbASvNsJIO10zqxVV7WBv4f3uy5fPxdZpkQDUGB83Zlt5NZvi9D3cUuFZxrWWkWwy7p
 882VhqPHgsxXadj/ppc3ihQqWczpIIbnqNoi9FTfwSbIKYiMEX6+0dY7UR1FutoPNztW
 pUMQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:user-agent:from:to:subject:date:message-id
 :mime-version;
 bh=YEnRusyBxJn0oUQulq2zPt6t43qV8APkV+e1NfMksIs=;
 b=iglrh8OtMefz/clFVkRBmte6GH8CLWrAuyUfZsCig9KdBitkIN+/FLNvzYL2aWS8mQ
 hVASvlzeEQxONnR5UlxNhLE/VxpdSGO2mn//PG2+eC2bUL6yrvv2G3r/uAjGyboespdZ
 petrw9/IOzEiA3CZ9gD5wfTgeUiEN1SXKjxjecdwhb1JdsBv/HlJwzyrzKY0cAsp59h0
 XAHX8EcGeIMQoAMDtkvRWC6vsAhvjKmL53jadTBs7yPZYUwKim8IdQjWOR340QkpFyl3
 60q/FUVz0j/Ub5Qbit94psAQSKZlCYZQTbuDigOVMJsEfbQsuj12DlQ10vSSVDB518Fm
 uTCQ==
X-Gm-Message-State: AOAM530UYeWSBGjwNW+d594ktbxxaEYFv3Q+NAER8Us2g8IVg6Bb7i+Q
 9l5ayYfu3vX1gf32o5sl6hj6xcN+ikM=
X-Google-Smtp-Source: ABdhPJxud8iQpsgWFixX5QKhiwU644mapmhd0193v11USAXLmVcCxg7YSm7xJLlpTPZyCvQ9HxmBUw==
X-Received: by 2002:a1c:1b4c:: with SMTP id b73mr8876837wmb.57.1622708051877; 
 Thu, 03 Jun 2021 01:14:11 -0700 (PDT)
Received: from paquerette ([80.215.14.52])
 by smtp.gmail.com with ESMTPSA id v132sm5184403wmb.14.2021.06.03.01.14.11
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 03 Jun 2021 01:14:11 -0700 (PDT)
User-agent: mu4e 1.4.15; emacs 28.0.50
From: =?utf-8?Q?=C3=89douard?= Debry <edouard.debry@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: [master][windows10] emacs hangs when editing *.xml files 
Date: Thu, 03 Jun 2021 10:14:10 +0200
Message-ID: <87o8cnuzzh.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; format=flowed
Received-SPF: pass client-ip=2a00:1450:4864:20::32a;
 envelope-from=edouard.debry@HIDDEN; helo=mail-wm1-x32a.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)


Hello,

- emacs master (a few weeks)
- compiled with native-comp on windows 10 with latest mingw64 
  environment

* Bug description
  - open an *xml file, the nxml-mode is enabled in the buffer.
  - edit (modify, save changes) the *xml file
  - within a few minutes, emacs hangs by consuming the whole ram 
  (not cpu).
    As a consequence, windows 10 becomes much less responsive

That is to note, this issue does not occur if I do noy modify the 
*xml file.

I checked on windows 10 that it is precisely emacs which eats all 
memory, not one of its child processes.

I am not 100% sure yet, but it does not seem platform 
(windows,linux) related.

I googled "emacs xml hangs", some similar issues have already been 
reported, but I could not find any fixes or workaround.

The only workaround so far I found is to quickly edit xml files, 
save and close them
before emacs begins to eat all memory.

Regards




Acknowledgement sent to Édouard Debry <edouard.debry@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#48807; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 4 Jun 2021 10:15:01 UTC

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