From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Guido Van Hoecke Newsgroups: gmane.emacs.help Subject: Re: Hang on startup on OS X (GUI only) Date: Sun, 15 Feb 2015 22:01:36 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1424034159 25602 80.91.229.3 (15 Feb 2015 21:02:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Feb 2015 21:02:39 +0000 (UTC) Cc: help-gnu-emacs To: Elliott Slaughter Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 15 22:02:32 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 1YN6Kj-0001lX-U8 for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Feb 2015 22:02:30 +0100 Original-Received: from localhost ([::1]:36620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YN6Kj-0007qe-ES for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Feb 2015 16:02:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YN6KT-0007qV-4s for help-gnu-emacs@gnu.org; Sun, 15 Feb 2015 16:02:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YN6KN-000810-IB for help-gnu-emacs@gnu.org; Sun, 15 Feb 2015 16:02:13 -0500 Original-Received: from mail-vc0-x231.google.com ([2607:f8b0:400c:c03::231]:63973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YN6KN-00080w-CG for help-gnu-emacs@gnu.org; Sun, 15 Feb 2015 16:02:07 -0500 Original-Received: by mail-vc0-f177.google.com with SMTP id hy10so9404178vcb.8 for ; Sun, 15 Feb 2015 13:02:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=DLV9HoGG6gix2uaWJcZ1OLw8/Us26CqpJkrxhQ7c3QA=; b=qFxg/m/yLeQViC+jlAJbsiW3EEptbCXufzm9Wuo9DQKO8JVAtaVykbx6VSGw9p9EKh 6Dv/RltxxZQcj7QlCOBpL2N0GkdhdUg22MzdbliKUGuOH+YPlA58x4ZQcgf0vvMsCJZD 9cRwkGhqJiVkdUzUByM2cxD2QO1P7QP7pX2rtt9gYt6PoPheLWyqrHnRH5HJ7hNWWJ/I JZ4geCd8O/gzAuqquXeMsLSvjGCFgS515v/cK5hzdG/Ap6KS8wkiTwWUJOqJNorlUEh+ X+zKxqsi7sc7uEDpErFPxF46E5oIfawDr1fRNJtbD94AWJH/X7ae5PSA9Rx240YutU57 lNxA== X-Received: by 10.52.135.39 with SMTP id pp7mr11683965vdb.47.1424034126583; Sun, 15 Feb 2015 13:02:06 -0800 (PST) Original-Received: by 10.52.29.74 with HTTP; Sun, 15 Feb 2015 13:01:36 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c03::231 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:102736 Archived-At: Problem happens frequently on my Mac, using 'GNU Emacs 24.4.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2014-10-21 on builder10-9.porkrind.org' (also got it at http://emacsformacosx.com/) Utterly frustrated, I created a startup automator app called killAndRestartTheGodOfEditors.app which runs following script: sleep 60 pids=`/bin/ps -axo pid,command | grep [E]macs | awk '{ print $1 }' | tr '\n' ' '` if [ "no$pids" != "no" ]; then kill -KILL $pids fi /usr/bin/emacsApp & So it basically waits a minute, kills emacs and starts it anew. This one never hangs, go figure. Note that /usr/bin/emacsApp just contains 'open -a Emacs.app' I do not remember why I used (needed?) this intermediate step, but it is my current setup. It does not fix the problem, but by the time I've got the paper and my first coffee, there's a responsive copy of Emacs... Maybe it does help others to deal with the frustration of this problem. Guido On 15 February 2015 at 20:28, 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 >