From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Imre Horvath Newsgroups: gmane.emacs.bugs Subject: bug#20228: 24.4; Hanging process on OS X Yosemite when launching Cocoa built Emacs.app Date: Sun, 29 Mar 2015 20:18:01 +0200 Message-ID: <0FB9A0C9-020B-4E38-B086-4C2008829685@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_3CCB9006-1F0F-4254-9C86-59C5B4AFEF6F" X-Trace: ger.gmane.org 1427670944 5350 80.91.229.3 (29 Mar 2015 23:15:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 Mar 2015 23:15:44 +0000 (UTC) To: 20228@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 30 01:15:33 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YcMQE-0000Vp-B1 for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Mar 2015 01:15:14 +0200 Original-Received: from localhost ([::1]:58614 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcMQD-0004G6-Jc for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Mar 2015 19:15:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcMQ9-0004Ee-QG for bug-gnu-emacs@gnu.org; Sun, 29 Mar 2015 19:15:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcMQ6-0003DW-3a for bug-gnu-emacs@gnu.org; Sun, 29 Mar 2015 19:15:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcMQ5-0003Cm-Vq for bug-gnu-emacs@gnu.org; Sun, 29 Mar 2015 19:15:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YcMQ5-0003YN-GB for bug-gnu-emacs@gnu.org; Sun, 29 Mar 2015 19:15:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Imre Horvath Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Mar 2015 23:15:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20228 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.142767084413564 (code B ref -1); Sun, 29 Mar 2015 23:15:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Mar 2015 23:14:04 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) 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-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:101034 Archived-At: --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--