From unknown Wed Jun 25 05:37:47 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#48807 <48807@debbugs.gnu.org> To: bug#48807 <48807@debbugs.gnu.org> Subject: Status: [master][windows10] emacs hangs when editing *.xml files Reply-To: bug#48807 <48807@debbugs.gnu.org> Date: Wed, 25 Jun 2025 12:37:47 +0000 retitle 48807 [master][windows10] emacs hangs when editing *.xml files=20 reassign 48807 emacs submitter 48807 =C3=89douard Debry severity 48807 normal tag 48807 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 03 04:14:19 2021 Received: (at submit) by debbugs.gnu.org; 3 Jun 2021 08:14:19 +0000 Received: from localhost ([127.0.0.1]:42140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loiUd-0006yG-Lh for submit@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 ) id 1loiUb-0006y0-HP for submit@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 ) id 1loiUb-0003PX-Ce for bug-gnu-emacs@gnu.org; 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 ) id 1loiUZ-0002hR-Mw for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2021 04:14:17 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 3-20020a05600c0243b029019f2f9b2b8aso3143373wmj.2 for ; 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 (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 To: bug-gnu-emacs@gnu.org Subject: [master][windows10] emacs hangs when editing *.xml files Date: Thu, 03 Jun 2021 10:14:10 +0200 Message-ID: <87o8cnuzzh.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=edouard.debry@gmail.com; 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 03 04:30:52 2021 Received: (at 48807) by debbugs.gnu.org; 3 Jun 2021 08:30:52 +0000 Received: from localhost ([127.0.0.1]:42187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loike-0001wx-0V for submit@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 ) id 1loikc-0001rm-VY for 48807@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 ) 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 ) 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@gnu.org> From: Eli Zaretskii To: =?utf-8?Q?=C3=89douard?= Debry In-Reply-To: <87o8cnuzzh.fsf@gmail.com> (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@gmail.com> 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@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Édouard Debry > 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? From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 04 05:59:17 2021 Received: (at control) by debbugs.gnu.org; 4 Jun 2021 09:59:17 +0000 Received: from localhost ([127.0.0.1]:45437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lp6bl-00024l-D0 for submit@debbugs.gnu.org; Fri, 04 Jun 2021 05:59:17 -0400 Received: from quimby.gnus.org ([95.216.78.240]:32820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lp6bf-00024S-Dk for control@debbugs.gnu.org; Fri, 04 Jun 2021 05:59:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=d6lsMRjsDW/3wIVUUYc+k75PAledMYZV6HGYmN1MWIc=; b=QMyrVxM0otJbem0W+UiC8EwWGI ZBdJOqwYoGHie9VBh0hP0hB6A8iTc+9ophCyPKc8YnIyMmhc3OO1x6pxwT6goyZnqAbXJlIRUncWz k43up/DeIc6A1YsbK6+GnM1oK+HTN9mKcdZzC8ULmCxuA2qh8TTt+tR0YvKjuElezz1Y=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lp6bX-00047Y-T8 for control@debbugs.gnu.org; Fri, 04 Jun 2021 11:59:05 +0200 Date: Fri, 04 Jun 2021 11:59:03 +0200 Message-Id: <87a6o6ymqg.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #48807 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 48807 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) tags 48807 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 02 07:14:36 2021 Received: (at 48807) by debbugs.gnu.org; 2 Jul 2021 11:14:36 +0000 Received: from localhost ([127.0.0.1]:35064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzH80-0006Xj-LQ for submit@debbugs.gnu.org; Fri, 02 Jul 2021 07:14:36 -0400 Received: from quimby.gnus.org ([95.216.78.240]:52120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzH7y-0006XT-JR for 48807@debbugs.gnu.org; Fri, 02 Jul 2021 07:14:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=t6GnnJ9cJpAPy8M9hSuqj+ssxicmSP8GRSn++6+KdhM=; b=CKRoBEE3wcCjllCQpoYWHVvUkh WCdMvyFt6rr921PsSSt+bHKN/TFeyP9f6ar4va4Fe6MSB4hlvfiBFnGsyTd2piWO1SsErNZPhqBVe iTxjYx0ZiirAeAFLizhAEXLF+xIhfIrDYv4vKvoQV8H/bOtwV5bFgbf1VJypD6H5O5UU=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lzH7q-00084a-8K; Fri, 02 Jul 2021 13:14:28 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#48807: [master][windows10] emacs hangs when editing *.xml files References: <87o8cnuzzh.fsf@gmail.com> <83sg1zwdsm.fsf@gnu.org> X-Now-Playing: DAY+TAXI's _The Wire Tapper 52_: "DOOWOO" Date: Fri, 02 Jul 2021 13:14:25 +0200 In-Reply-To: <83sg1zwdsm.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 03 Jun 2021 11:30:33 +0300") Message-ID: <87y2apufvy.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> 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 fin [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48807 Cc: =?utf-8?Q?=C3=89douard?= Debry , 48807@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: >> 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? More information was requested, but no response was given within a month, so I'm closing this bug report. If more progress can be made, please respond to this email and we'll reopen the bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 02 07:14:41 2021 Received: (at control) by debbugs.gnu.org; 2 Jul 2021 11:14:41 +0000 Received: from localhost ([127.0.0.1]:35067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzH84-0006Y0-UZ for submit@debbugs.gnu.org; Fri, 02 Jul 2021 07:14:41 -0400 Received: from quimby.gnus.org ([95.216.78.240]:52136) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzH83-0006XZ-6g for control@debbugs.gnu.org; Fri, 02 Jul 2021 07:14:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=G/toyjEyBjmZ4HQYihsTG9bYlbNRYDyEESzexNgSdXk=; b=GCKQww5YaMElyyVXKjYRpdYdEJ VHvWP8LR/sX45dXaMD48PbztfGRPZOmFQ1yvVB0L3ey6g5FDaN5DrHrZMSzgCP0gQv27Sb4ZsQmO2 M3Dp2gTua/r4hf9pFpycZOY07Klsd5DRS5GFY9GVa+TkmzmZnlms4amJ89hHz5k110cU=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lzH7v-00084k-L7 for control@debbugs.gnu.org; Fri, 02 Jul 2021 13:14:33 +0200 Date: Fri, 02 Jul 2021 13:14:31 +0200 Message-Id: <87wnq9ufvs.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #48807 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 48807 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 48807 quit From unknown Wed Jun 25 05:37:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 30 Jul 2021 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator