From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: enrique.manjavacas@gmail.com
Newsgroups: gmane.emacs.help
Subject: Re: Hang on startup on OS X (GUI only)
Date: Sat, 20 Feb 2016 04:45:33 -0800 (PST)
Message-ID: <d7f29bd6-9487-447e-8ecf-8afeed052b8f@googlegroups.com>
References: <mailman.155.1424033000.31049.help-gnu-emacs@gnu.org>
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: ger.gmane.org 1455974155 21561 80.91.229.3 (20 Feb 2016 13:15:55 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 20 Feb 2016 13:15:55 +0000 (UTC)
To: help-gnu-emacs@gnu.org
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 20 14:15:49 2016
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
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 <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1aX7Nx-0007GB-62
	for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Feb 2016 14:15:45 +0100
Original-Received: from localhost ([::1]:32792 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1aX7Nw-0000Ty-Hl
	for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Feb 2016 08:15:44 -0500
X-Received: by 10.182.56.233 with SMTP id d9mr17128666obq.2.1455972334118;
	Sat, 20 Feb 2016 04:45:34 -0800 (PST)
X-Received: by 10.50.8.74 with SMTP id p10mr31111iga.8.1455972334096; Sat, 20
	Feb 2016 04:45:34 -0800 (PST)
Original-Path: usenet.stanford.edu!news.glorb.com!ok5no3928269igc.0!news-out.google.com!kr2ni1781igb.0!nntp.google.com!hb3no7485139igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Original-Newsgroups: gnu.emacs.help
In-Reply-To: <mailman.155.1424033000.31049.help-gnu-emacs@gnu.org>
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com;
	posting-host=143.169.185.169; 
	posting-account=B35wtwoAAADGvLeHjFRnCdpkhPf-ZGsg
Original-NNTP-Posting-Host: 143.169.185.169
User-Agent: G2/1.0
Injection-Date: Sat, 20 Feb 2016 12:45:34 +0000
Original-Xref: usenet.stanford.edu gnu.emacs.help:216930
X-Mailman-Approved-At: Sat, 20 Feb 2016 08:15:26 -0500
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 <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=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:109223
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/109223>

On Sunday, February 15, 2015 at 9:43:22 PM UTC+1, Elliott Slaughter wrote:
> (If there is a better place to direct this (e.g. a bug tracker) please let
> me know.)
> 
> 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 am using Emacs 24.4 from http://emacsformacosx.com/ , but notably, this
> bug has been reported multiple times by users of Homebrew (who either
> compile from source or download a binary from Homebrew's own servers):
> https://github.com/Homebrew/homebrew/issues/36737
> https://github.com/Homebrew/homebrew/issues/25003
> 
> I have attached the start of a log from Mac OS X's built-in crash reporter.
> I can provide the rest of the report as well, if that would be helpful. (It
> contains various stack traces sampled from the unresponsive process.)
> 
> Note that while the trace below says that I've installed Emacs from
> homebrew, this is the cask version, which is just a proxy for the
> emacsformacosx.com version, which is not the same as the Homebrew proper
> version (which was the focus of the bug reports above), which is compiled
> from source.
> 
> Thanks in advance!
> 
> ===========
> 
> Date/Time:       2015-02-15 11:08:40 -0800
> OS Version:      10.10.2 (Build 14C109)
> Architecture:    x86_64
> Report Version:  21
> 
> Command:         Emacs-x86_64-10_9
> Path:
> /opt/homebrew-cask/*/Emacs.app/Contents/MacOS/Emacs-x86_64-10_9
> Version:         ??? (???)
> Parent:          launchd [1]
> PID:             39366
> 
> Event:           hang
> Duration:        4.00s (process was unresponsive for 176 seconds before
> sampling)
> Steps:           41 (100ms sampling interval)
> 
> Hardware model:  MacBookPro8,2
> Active cpus:     8
> 
> Fan speed:       4362 rpm
> 
> [... file continues for about 1 MB of text ...]
> 
> -- 
> Elliott Slaughter
> 
> "Don't worry about what anybody else is going to do. The best way to
> predict the future is to invent it." - Alan Kay

Just for the record, I was having the same problem, but it seems to have gone away compiling the 
patched version in this commit:

http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-25&id=0392e241b844487261d4dfcccc9a442793e0a868

This was also meant as a solution for the bug report posted also in this conversation by Elliott Slaughter:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19879

notice that the mentioned patch is for Emacs25

best