unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs 29 freezing occasionally on MacOS
@ 2024-01-09  7:23 Vineet Naik
  2024-01-09 18:59 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Vineet Naik @ 2024-01-09  7:23 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I upgraded Emacs to version 29 (from 28.x). I am using the universal
package for 29.1.1 from https://emacsformacosx.com/builds. (MacOS version:
Ventura; Processor: Intel)

Based on the observations so far, it happens after C-g (keyboard-quit) and
the only way to recover is to kill the process. Strangely, no increase in
CPU or memory usage is seen during this time.

What I've tried so far:

1. `(setq debug-on-quit t)` which doesn't give much info but it seems to be
helping as the frequency has reduced but it still does freeze occasionally.

2. Disabled the title bar. I came across an answer[1]  on r/emacs that
mentioned the Apple window title bar calls being the problem. Didn't help
in my case.

A process sample generated from MacOS's activity manager shows a deep call
graph. Looks like it's a loop caused by "recusive_edit" but I'm not sure. I
can share the output if it's ok to attach files on this mailing list.

I am also trying to attach gdb to the process but am currently stuck at
codesigning the gdb binary (some MacOS security thing).
Appreciate any help.

Thanks,
Vineet

[1]
https://www.reddit.com/r/emacs/comments/15vl3p2/comment/jwwou4h/?utm_source=share&utm_medium=web2x&context=3


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

* Re: Emacs 29 freezing occasionally on MacOS
  2024-01-09  7:23 Emacs 29 freezing occasionally on MacOS Vineet Naik
@ 2024-01-09 18:59 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2024-01-09 18:59 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Vineet Naik <naikvin@gmail.com>
> Date: Tue, 9 Jan 2024 12:53:30 +0530
> 
> A process sample generated from MacOS's activity manager shows a deep call
> graph. Looks like it's a loop caused by "recusive_edit" but I'm not sure. I
> can share the output if it's ok to attach files on this mailing list.

Please report this as a bug, and then please include all the data you
can collect, including a backtrace from attaching a debugger.

> I am also trying to attach gdb to the process but am currently stuck at
> codesigning the gdb binary (some MacOS security thing).

Can you attach lldb instead?  If you can, produce a backtrace and
include it with your bug report.

Thanks.




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

end of thread, other threads:[~2024-01-09 18:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-09  7:23 Emacs 29 freezing occasionally on MacOS Vineet Naik
2024-01-09 18:59 ` Eli Zaretskii

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