all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Guido Van Hoecke <guivho@gmail.com>
To: Elliott Slaughter <elliottslaughter@gmail.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Hang on startup on OS X (GUI only)
Date: Sun, 15 Feb 2015 22:01:36 +0100	[thread overview]
Message-ID: <CAEySM9GFBGkd=XFzdOhi=YEco44Ed9Ceo7P-JcHBuUv+2z9+nw@mail.gmail.com> (raw)
In-Reply-To: <CAJ9X=kYJ6U9JhCCzsqkMid_oYNbURS6suvfpL6-4c8OsgxTCDw@mail.gmail.com>

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 <elliottslaughter@gmail.com>
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
>


  reply	other threads:[~2015-02-15 21:01 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-15 19:28 Hang on startup on OS X (GUI only) Elliott Slaughter
2015-02-15 21:01 ` Guido Van Hoecke [this message]
2015-02-15 21:20 ` Drew Adams
2015-02-16 17:03   ` Elliott Slaughter
     [not found] <mailman.155.1424033000.31049.help-gnu-emacs@gnu.org>
2015-02-16  2:12 ` kgthegreat
2015-03-29 17:49   ` imi.horvath
2015-04-11 21:03 ` enterprise
2015-05-07  4:37 ` bitti1975
2015-10-13 15:38   ` davidmortensen
2015-10-14  2:50     ` Stefan Monnier
2015-11-01 17:30       ` Guido Van Hoecke
2016-02-20 12:45 ` enrique.manjavacas
2016-02-20 17:02   ` Guido Van Hoecke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEySM9GFBGkd=XFzdOhi=YEco44Ed9Ceo7P-JcHBuUv+2z9+nw@mail.gmail.com' \
    --to=guivho@gmail.com \
    --cc=elliottslaughter@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.