From unknown Sat Jun 21 10:35:57 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#20228 <20228@debbugs.gnu.org> To: bug#20228 <20228@debbugs.gnu.org> Subject: Status: 24.4; Hanging process on OS X Yosemite when launching Cocoa built Emacs.app Reply-To: bug#20228 <20228@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:35:57 +0000 retitle 20228 24.4; Hanging process on OS X Yosemite when launching Cocoa b= uilt Emacs.app reassign 20228 emacs submitter 20228 Imre Horvath severity 20228 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 29 19:14:04 2015 Received: (at submit) by debbugs.gnu.org; 29 Mar 2015 23:14:04 +0000 Received: from localhost ([127.0.0.1]:39895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YcMP4-0003Wi-VJ for submit@debbugs.gnu.org; Sun, 29 Mar 2015 19:14:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57739) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YcHmt-0003kI-WC for submit@debbugs.gnu.org; Sun, 29 Mar 2015 14:18:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcHmm-0002nu-Sz for submit@debbugs.gnu.org; Sun, 29 Mar 2015 14:18:14 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcHmm-0002np-Pm for submit@debbugs.gnu.org; Sun, 29 Mar 2015 14:18:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcHml-0007BZ-6R for bug-gnu-emacs@gnu.org; Sun, 29 Mar 2015 14:18:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcHmg-0002mz-3g for bug-gnu-emacs@gnu.org; Sun, 29 Mar 2015 14:18:11 -0400 Received: from mail-wg0-x230.google.com ([2a00:1450:400c:c00::230]:33766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcHmf-0002mt-PV for bug-gnu-emacs@gnu.org; Sun, 29 Mar 2015 14:18:06 -0400 Received: by wgbgs4 with SMTP id gs4so57154930wgb.0 for ; Sun, 29 Mar 2015 11:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:subject:message-id:date:to:mime-version; bh=eeDAIz/sb+3CUL49UmwijsZUnWFanICy/tNKxNABT+Y=; b=tqUS4JH7vVXvNcfuru5lifvcSAzgI9ys+Hg5KOFH6iwkFThmaqRxdf/Wu4lsbyJMad NbQvPgHJKmAEtBah7MpJrw1f/g7y7TJBOKqert6WI8dpejG18lts4NsfD1SH1eHK5uGb VeE3apJ0ovYseXwAEWfiYggL+Tatvdz0i9Qc5bwVropmYtiUPz03vszqGSpCX35ZM3/b 7mYpvMYeJTNgfshbwmj8Httf7Kd23rdSPxkN9tJMCf2pCMOQOTEiXFhuxtWFvC4LKp9K r3bfXuCw1CC4ro8R8mnOYpkGHVGBN9yKnmRSJZztP1MNNtgfKpYmsSd9Ti8tJB+FvqsT Y/5w== X-Received: by 10.194.110.69 with SMTP id hy5mr56992686wjb.121.1427653084545; Sun, 29 Mar 2015 11:18:04 -0700 (PDT) Received: from [192.168.0.13] (catv-89-132-188-188.catv.broadband.hu. [89.132.188.188]) by mx.google.com with ESMTPSA id gt4sm12160816wib.21.2015.03.29.11.18.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 29 Mar 2015 11:18:03 -0700 (PDT) From: Imre Horvath Content-Type: multipart/alternative; boundary="Apple-Mail=_3CCB9006-1F0F-4254-9C86-59C5B4AFEF6F" Subject: 24.4; Hanging process on OS X Yosemite when launching Cocoa built Emacs.app Message-Id: <0FB9A0C9-020B-4E38-B086-4C2008829685@gmail.com> Date: Sun, 29 Mar 2015 20:18:01 +0200 To: bug-gnu-emacs@gnu.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) X-Mailer: Apple Mail (2.2070.6) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 29 Mar 2015 19:14:01 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) --Apple-Mail=_3CCB9006-1F0F-4254-9C86-59C5B4AFEF6F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, The Cocoa built Emacs.app fails to launch and hangs with high cpu usage when the physical memory is nearly full because of other apps and the caching on OS X Yosemite. After killing the hanging Emacs.app process and launching again, it opens without any problem. The problem happens only when launching with GUI. It never happens when running emacs in the terminal with the -nw option. I've got 2+2 GB physical ram in my Mac Book Pro 13'. There are other complaints from Mac users describing the same problem. eg. https://github.com/Homebrew/homebrew/issues/25003 = https://groups.google.com/forum/#!topic/gnu.emacs.help/MGDN12Rf4QM = I've got the feeling that this issue is somehow related to the interplay between the Cocoa Emacs.app startup code and the memory management in OS X Yosemite. Please advise! Thanks, brgds, Imre In GNU Emacs 24.4.1 (x86_64-apple-darwin14.1.0, NS apple-appkit-1344.72) of 2015-03-14 on Imre-Horvaths-MacBook-Pro.local Windowing system distributor `Apple', version 10.3.1344 Configured using: `configure --prefix=3D/usr/local/Cellar/emacs/24.4 --enable-locallisppath=3D/usr/local/share/emacs/site-lisp --infodir=3D/usr/local/Cellar/emacs/24.4/share/info/emacs --without-dbus --without-gnutls --with-ns --disable-ns-self-contained' Important settings: locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: paredit-mode: t global-flycheck-mode: t flycheck-mode: t projectile-global-mode: t projectile-mode: t flx-ido-mode: t ido-everywhere: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r a p o r t - e m a =20 r=20 e p o r t - e m a Recent messages: Loading /Users/imi/.emacs.d/custom.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils paredit flycheck find-func help-mode rx subr-x projectile ibuf-ext ibuffer dash thingatpt flx-ido byte-opt bytecomp byte-compile cconv advice help-fns flx ido exec-path-from-shell info easymenu package epg-config paren edmacro kmacro cl-loaddefs cl-lib saveplace time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process cocoa ns multi-tty emacs) Memory information: ((conses 16 148680 7749) (symbols 48 24600 0) (miscs 40 45 114) (strings 32 35988 9303) (string-bytes 1 1008417) (vectors 16 17993) (vector-slots 8 499286 3001) (floats 8 91 178) (intervals 56 205 62) (buffers 960 11)) --Apple-Mail=_3CCB9006-1F0F-4254-9C86-59C5B4AFEF6F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hi,

The Cocoa built Emacs.app fails to = launch and hangs with
high cpu usage when the physical = memory is nearly full because of other
apps and the = caching on OS X Yosemite.

After killing the = hanging Emacs.app process and launching again, it
opens = without any problem.

The problem happens = only when launching with GUI. It never happens when
running = emacs in the terminal with the -nw option.

I've got 2+2 GB physical ram in my Mac Book Pro 13'.

There are other complaints from Mac users = describing the same
problem. eg.

https://github.com/Homebrew/homebrew/issues/25003
https://groups.google.com/forum/#!topic/gnu.emacs.help/MGDN12Rf= 4QM

I've got the feeling that = this issue is somehow related to the interplay
between the = Cocoa Emacs.app startup code and the memory management in OS
X Yosemite.

Please = advise!
Thanks, brgds,
Imre

In GNU Emacs 24.4.1 = (x86_64-apple-darwin14.1.0, NS apple-appkit-1344.72)
of = 2015-03-14 on Imre-Horvaths-MacBook-Pro.local
Windowing = system distributor `Apple', version 10.3.1344
Configured = using:
`configure = --prefix=3D/usr/local/Cellar/emacs/24.4
= --enable-locallisppath=3D/usr/local/share/emacs/site-lisp
= --infodir=3D/usr/local/Cellar/emacs/24.4/share/info/emacs = --without-dbus
--without-gnutls --with-ns = --disable-ns-self-contained'

Important = settings:
  locale-coding-system: = utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  paredit-mode: t
  = global-flycheck-mode: t
  flycheck-mode: t
  = projectile-global-mode: t
  projectile-mode: t
  = flx-ido-mode: t
  ido-everywhere: t
  = show-paren-mode: t
  electric-indent-mode: t
  = mouse-wheel-mode: t
  file-name-shadow-mode: = t
  = global-font-lock-mode: t
  font-lock-mode: t
  = auto-composition-mode: t
  auto-encryption-mode: t
  = auto-compression-mode: t
  line-number-mode: t
  = transient-mark-mode: t

Recent input:
M-x r a p o r t - e m a <tab> <backspace> = <backspace>
<backspace> <backspace> = <backspace> <M-backspace> r
e p o r t - e m a = <tab> <return>

Recent = messages:
Loading /Users/imi/.emacs.d/custom.el = (source)...done
For information about GNU Emacs and the = GNU system, type C-h C-a.

Load-path = shadows:
None found.

Features:
(shadow sort gnus-util mail-extr = emacsbug message format-spec rfc822 mml
mml-sec mm-decode = mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils = mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils paredit flycheck find-func help-mode rx = subr-x
projectile ibuf-ext ibuffer dash thingatpt flx-ido = byte-opt bytecomp
byte-compile cconv advice help-fns flx = ido exec-path-from-shell info
easymenu package epg-config = paren edmacro kmacro cl-loaddefs cl-lib
saveplace = time-date tooltip electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel ns-win tool-bar dnd fontset image = regexp-opt
fringe tabulated-list newcomment lisp-mode = prog-mode register page
menu-bar rfn-eshadow timer select = scroll-bar mouse jit-lock font-lock
syntax facemenu = font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew = greek
romanian slovak czech european ethiopic indian = cyrillic chinese
case-table epa-hook jka-cmpr-hook help = simple abbrev minibuffer nadvice
loaddefs button faces = cus-face macroexp files text-properties overlay
sha1 md5 = base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process cocoa = ns
multi-tty emacs)

Memory = information:
((conses 16 148680 7749)
= (symbols 48 24600 0)
(miscs 40 45 114)
= (strings 32 35988 9303)
(string-bytes 1 1008417)
(vectors 16 17993)
(vector-slots 8 499286 = 3001)
(floats 8 91 178)
(intervals 56 205 = 62)
(buffers 960 11))
= --Apple-Mail=_3CCB9006-1F0F-4254-9C86-59C5B4AFEF6F-- From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 24 17:15:11 2015 Received: (at 20228-done) by debbugs.gnu.org; 24 Nov 2015 22:15:11 +0000 Received: from localhost ([127.0.0.1]:51757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a1Lri-0002zZ-IF for submit@debbugs.gnu.org; Tue, 24 Nov 2015 17:15:10 -0500 Received: from mail-vk0-f66.google.com ([209.85.213.66]:36508) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a1Lre-0002yr-OO; Tue, 24 Nov 2015 17:15:07 -0500 Received: by vkay187 with SMTP id y187so1874261vka.3; Tue, 24 Nov 2015 14:15:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=/HzmxvIaURJVuwpZBaerGbFcjz9v40MEsioqlBeDzbc=; b=NB40kHHa+n8p1JhNno1K91tF671CDmC15vorRiZNueH81fxEOtjWLe5YYTMKJD6+JF CYkOQZYHmg+m3TU6Qv94lzEWqzzVxcVTnPXq0I5uthsHVXJA2OQw8EQe/3HZrYWIPURD LnQ54JkFaXHMfsAWtKvKH68ZtpY864/M9XcdYvUX+/8Yy80/Bkb0hZpqODvMEa541hl6 4Lw8Ffse6FkQYcGkFQS/3aSuMycXBOLcTocSDwhMZ0nji5C+PAb63r+WZ0RBjFNliHVh rrDRMIdfwWw2CpYuONFM7EqNz53i+tqPJgAkxPxKCYi3CUEnwtpBSZoITPDpmvBBcQOy wjFw== MIME-Version: 1.0 X-Received: by 10.31.6.193 with SMTP id 184mr29377369vkg.105.1448403306161; Tue, 24 Nov 2015 14:15:06 -0800 (PST) Received: by 10.31.210.133 with HTTP; Tue, 24 Nov 2015 14:15:06 -0800 (PST) Date: Tue, 24 Nov 2015 23:15:06 +0100 Message-ID: Subject: From: Anders Lindgren To: 18849-done@debbugs.gnu.org, 19265-done@debbugs.gnu.org, 19276-done@debbugs.gnu.org, 19879-done@debbugs.gnu.org, 20228-done@debbugs.gnu.org Content-Type: multipart/alternative; boundary=001a1143d6f68e2af9052550ac44 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, I fixed this a few weeks ago. It was caused by inputs events arriving before the init code had finished. When the system was heavily loaded, when memory was low, when the a disk needed to spin up etc. this became more prominent. [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andlind[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.66 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 HTML_MESSAGE BODY: HTML included in message 2.0 BLANK_SUBJECT Subject is present but empty 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: 20228-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, I fixed this a few weeks ago. It was caused by inputs events arriving before the init code had finished. When the system was heavily loaded, when memory was low, when the a disk needed to spin up etc. this became more prominent. [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.66 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andlind[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 HTML_MESSAGE BODY: HTML included in message 2.0 BLANK_SUBJECT Subject is present but empty 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid --001a1143d6f68e2af9052550ac44 Content-Type: text/plain; charset=UTF-8 Hi, I fixed this a few weeks ago. It was caused by inputs events arriving before the init code had finished. When the system was heavily loaded, when memory was low, when the a disk needed to spin up etc. this became more prominent. This was fixed by block input in the init function, see http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-25&id=0392e241b844487261d4dfcccc9a442793e0a868 for details. Sincerely, Anders Lindgren --001a1143d6f68e2af9052550ac44 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I fixed this a few weeks= ago. It was caused by inputs events arriving before the init code had fini= shed. When the system was heavily loaded, when memory was low, when the a d= isk needed to spin up etc. this became more prominent.

=

Sincerely,
=C2=A0 =C2= =A0 Anders Lindgren

--001a1143d6f68e2af9052550ac44-- From unknown Sat Jun 21 10:35:57 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 23 Dec 2015 12: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