From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Lindgren Newsgroups: gmane.emacs.bugs Subject: bug#23462: 25.0.93; Crash on OS X when suspending main frame Date: Thu, 12 May 2016 07:39:03 +0200 Message-ID: References: <82D6EB3D-6383-430B-BBC9-DEC216F0C33A@polito.it> <20160511222824.GA51118@breton.holly.idiocy.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1142f7d875eb5505329e9318 X-Trace: ger.gmane.org 1463031624 13076 80.91.229.3 (12 May 2016 05:40:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 May 2016 05:40:24 +0000 (UTC) Cc: 23462@debbugs.gnu.org, Ivan Cibrario Bertolotti To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 12 07:40:14 2016 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 1b0jM3-0004hA-L8 for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 May 2016 07:40:11 +0200 Original-Received: from localhost ([::1]:55496 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0jM2-0002H1-0M for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 May 2016 01:40:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0jLy-0002Cc-N2 for bug-gnu-emacs@gnu.org; Thu, 12 May 2016 01:40:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0jLu-0008T9-DU for bug-gnu-emacs@gnu.org; Thu, 12 May 2016 01:40:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0jLu-0008T1-8E for bug-gnu-emacs@gnu.org; Thu, 12 May 2016 01:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b0jLt-0003uZ-R5 for bug-gnu-emacs@gnu.org; Thu, 12 May 2016 01:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Anders Lindgren Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 May 2016 05:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23462-submit@debbugs.gnu.org id=B23462.146303155114972 (code B ref 23462); Thu, 12 May 2016 05:40:01 +0000 Original-Received: (at 23462) by debbugs.gnu.org; 12 May 2016 05:39:11 +0000 Original-Received: from localhost ([127.0.0.1]:47953 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b0jL4-0003tQ-RY for submit@debbugs.gnu.org; Thu, 12 May 2016 01:39:11 -0400 Original-Received: from mail-vk0-f48.google.com ([209.85.213.48]:35256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b0jL3-0003tD-E7 for 23462@debbugs.gnu.org; Thu, 12 May 2016 01:39:09 -0400 Original-Received: by mail-vk0-f48.google.com with SMTP id f66so84684386vkh.2 for <23462@debbugs.gnu.org>; Wed, 11 May 2016 22:39:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=NLnzqGGGCw8FyXkxwkKonAg8+A0IQSxE0+w3wZawUoM=; b=ASn2qi8YCTJMBHfbIEI6arRGC0WrjaJjjymIMYuZHGJoq7lCX40mSF7qVoBsyArBc+ QDKL35elwRlF07wX3O8toWLV4xEzapDso4QzUzeJf86K9qkic0ctMo/e9EwtdaAUeod6 rXPy59OC9x5Vpq55KKEkLyqNv8RjUt7K4bzBJccaIiBLVNwCFJAM8k+8LBipzSC8fRb0 ofTqfH0IIKrndHqyEgkMD/it9nFtqL9dmlTOY4tX67XR0WdDrWGjwtiLRCXHvR0WNS68 lH3rNW5t5OU8Ya0hA4Yl1toiN6m1w6zPKWvE4SydVAKX0RzghhIKEsu+vSJfcEKuDge9 l17w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=NLnzqGGGCw8FyXkxwkKonAg8+A0IQSxE0+w3wZawUoM=; b=kKQyy4FSw/Nx1296WFjegXAcjPnsXBEGiJwOeNfwtiAmcmPApBz0hvCFXYeT9YOisi dw82tK5MAKokbN0t2U+Kv6NkdCvVWgfd+JqzQfL2VLcg6U2xNeEsHLOLqKusKLMX0qNd CUNO3CyqpmwuajuYTLQCGw6T1Z0YrOhU4YGYtAGopL2LUnYUBhz9TIfGYhKrvn7YTmkR RrIy4aLojxsw9OdAYLclN7sMw61r5YJuYOJnM/W9mCfWcr+iBwPZs69ZxPinwMdw4Wrv aXKakfUeOCbgV+GVcmjG/Pz1sldagS7a2V+44Aq90N+LTxW1cF0lzDdh3QCjzSUMFce3 rCmA== X-Gm-Message-State: AOPr4FVKgsNYFQjtFKrIAEG1Xn+DLJ0bM7iy1/6nZrBxFUh+Lpn/k347U75Jyk7dKiW+8e/UBoQUYVQMfELIIQ== X-Received: by 10.31.188.73 with SMTP id m70mr3764374vkf.70.1463031543752; Wed, 11 May 2016 22:39:03 -0700 (PDT) Original-Received: by 10.31.214.131 with HTTP; Wed, 11 May 2016 22:39:03 -0700 (PDT) In-Reply-To: <20160511222824.GA51118@breton.holly.idiocy.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:118152 Archived-At: --001a1142f7d875eb5505329e9318 Content-Type: text/plain; charset=UTF-8 Hi! > Right, on a hunch that it's something to do with Emacs receiving and > processing signals or input of some sort during or immediately after > minimization, I tried wrapping > > [[view window] miniaturize: NSApp]; > > in x_iconify_frame with block_input and unblock_input: > > block_input(); > [[view window] miniaturize: NSApp]; > unblock_input(); > > which seems to have solved the crash. > This seems like a much cleaner solution than the earlier. It looks very similar to the startup crash I tracked down a fixed about a year ago, when input events started to arrive before emacs had finished its initialization. -- Anders --001a1142f7d875eb5505329e9318 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi!
=C2=A0
Right, on a hunch= that it's something to do with Emacs receiving and
processing signals or input of some sort during or immediately after
minimization, I tried wrapping

=C2=A0 =C2=A0 [[view window] miniaturize: NSApp];

in x_iconify_frame with block_input and unblock_input:

=C2=A0 =C2=A0 block_input();
=C2=A0 =C2=A0 [[view window] miniaturize: NSApp];
=C2=A0 =C2=A0 unblock_input();

which seems to have solved the crash.

T= his seems like a much cleaner solution than the earlier.

It looks very similar to the startup crash I tracked down a fixed ab= out a year ago, when input events started to arrive before emacs had finish= ed its initialization.

=C2=A0 =C2=A0 -- Anders
--001a1142f7d875eb5505329e9318--