From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: imi.horvath@gmail.com Newsgroups: gmane.emacs.help Subject: Re: Hang on startup on OS X (GUI only) Date: Sun, 29 Mar 2015 10:49:49 -0700 (PDT) Message-ID: References: <5d07da3a-13a7-404c-9a57-a923d3d05003@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1427691383 32557 80.91.229.3 (30 Mar 2015 04:56:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Mar 2015 04:56:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 30 06:56:23 2015 Return-path: Envelope-to: geh-help-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 1YcRkM-0005ud-1D for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Mar 2015 06:56:22 +0200 Original-Received: from localhost ([::1]:59441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcRkL-0004VB-8v for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Mar 2015 00:56:21 -0400 X-Received: by 10.236.10.114 with SMTP id 78mr28254461yhu.29.1427651389361; Sun, 29 Mar 2015 10:49:49 -0700 (PDT) X-Received: by 10.140.32.34 with SMTP id g31mr448834qgg.21.1427651389324; Sun, 29 Mar 2015 10:49:49 -0700 (PDT) Original-Path: usenet.stanford.edu!q107no349136qgd.1!news-out.google.com!q90ni548qgd.1!nntp.google.com!z60no349115qgd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: <5d07da3a-13a7-404c-9a57-a923d3d05003@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=89.132.188.188; posting-account=osD-xwoAAABG7LYxkDwY1Al83KHovZSA Original-NNTP-Posting-Host: 89.132.188.188 User-Agent: G2/1.0 Injection-Date: Sun, 29 Mar 2015 17:49:49 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:211144 X-Mailman-Approved-At: Mon, 30 Mar 2015 00:56:10 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103439 Archived-At: On Monday, February 16, 2015 at 3:12:30 AM UTC+1, kgthegreat wrote: > > Emacs often hangs on startup on Mac OS X. The hangs are non-deterministic > > but frequent (25-50% of runs), consume 100% of CPU, and only happen when > > starting Emacs.app with the GUI enabled, never when running in text mode on > > the command-line. I have reproduced the hangs with an empty .emacs file and > > after having completely removed .emacs.d. > > I used to face this problem on MBP. Due to the following observations, I think this problem is related to memory consumption. > > 1. Never happens after a restart, if emacs is the first app to run. > 2. Almost always happens if emacs is run when MBP is up for a long time with lot of other apps. > 3. Killing most apps especially chrome and then starting emacs = success. > > Since then, I have upgraded the RAM from 2 + 2 config to 8 + 2 and have never faced this issue so far. Yes, I agree. I've got a similar pattern here. When other apps and the caching of OS X uses up the physical memory (2+2 GB in my case) and I launch the Emacs.app, it happens most certainly. I've got the feeling that it's a bug related to the interplay between the Cocoa Emacs.app startup code and the memory management in OS X...