unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#48807: [master][windows10] emacs hangs when editing *.xml files
@ 2021-06-03  8:14 Édouard Debry
  2021-06-03  8:30 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Édouard Debry @ 2021-06-03  8:14 UTC (permalink / raw)
  To: 48807


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





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

* bug#48807: [master][windows10] emacs hangs when editing *.xml files
  2021-06-03  8:14 bug#48807: [master][windows10] emacs hangs when editing *.xml files Édouard Debry
@ 2021-06-03  8:30 ` Eli Zaretskii
  2021-07-02 11:14   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2021-06-03  8:30 UTC (permalink / raw)
  To: Édouard Debry; +Cc: 48807

> From: Édouard Debry <edouard.debry@gmail.com>
> 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?





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

* bug#48807: [master][windows10] emacs hangs when editing *.xml files
  2021-06-03  8:30 ` Eli Zaretskii
@ 2021-07-02 11:14   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-02 11:14 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Édouard Debry, 48807

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





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

end of thread, other threads:[~2021-07-02 11:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-03  8:14 bug#48807: [master][windows10] emacs hangs when editing *.xml files Édouard Debry
2021-06-03  8:30 ` Eli Zaretskii
2021-07-02 11:14   ` Lars Ingebrigtsen

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).