From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 18 11:13:00 2017 Received: (at submit) by debbugs.gnu.org; 18 Sep 2017 15:13:00 +0000 Received: from localhost ([127.0.0.1]:46564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtxjH-0003so-ST for submit@debbugs.gnu.org; Mon, 18 Sep 2017 11:13:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtxhV-0003pw-IJ for submit@debbugs.gnu.org; Mon, 18 Sep 2017 11:11:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtxhN-0007EK-8O for submit@debbugs.gnu.org; Mon, 18 Sep 2017 11:11:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,RCVD_IN_SORBS_SPAM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41216) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dtxhN-0007EG-4V for submit@debbugs.gnu.org; Mon, 18 Sep 2017 11:11:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtxhG-0007Jq-Q4 for bug-gnu-emacs@gnu.org; Mon, 18 Sep 2017 11:11:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtxhE-00078j-3f for bug-gnu-emacs@gnu.org; Mon, 18 Sep 2017 11:10:54 -0400 Received: from avasout03.plus.net ([84.93.230.244]:42912) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dtxhD-00077B-GI for bug-gnu-emacs@gnu.org; Mon, 18 Sep 2017 11:10:51 -0400 Received: from [192.168.0.2] ([80.229.245.74]) by avasout03 with smtp id B3An1w0051d2MPU013AoRT; Mon, 18 Sep 2017 16:10:48 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.2 cv=BeGo6vl2 c=1 sm=1 tr=0 a=dxFS4x0sVolc9CPZkeRDrw==:117 a=dxFS4x0sVolc9CPZkeRDrw==:17 a=h55ZjLXlAAAA:8 a=2bRvPoFOtSzkkMng01cA:9 a=x6_PhtWW7IcYwDB8:21 a=iiFc7LJj_0jPxS6X:21 a=CjuIK1q_8ugA:10 a=shF29wHHbfAS2pHZ63IA:9 a=qaz0FYm14BQA:10 a=bVIcrEQjCtdAe-SrG74p:22 From: Duncan Harvey Content-Type: multipart/mixed; boundary="Apple-Mail=_FE9261CB-38FA-4E0E-9E45-35714F5A67F7" Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: 25.2; Crash when manipulating fullscreen frames on macOS Message-Id: Date: Mon, 18 Sep 2017 16:10:47 +0100 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.5 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 18 Sep 2017 11:12:57 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) --Apple-Mail=_FE9261CB-38FA-4E0E-9E45-35714F5A67F7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Run: open -na Emacs --args -Q -l = .../path/to/macos-fullscreen-frame-crash.el with the attached script. On my system this crashes every time: "Fatal error 11: Segmentation = faultAbort trap: 6" Emacs will still crash if one runs the Emacs executable directly (with = the -Q and -l arguments), rather then via the 'open' command. I only = use 'open' as a convenience, to avoid including the entire path to = Emacs' executable. In GNU Emacs 25.2.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 = Version 10.9.5 (Build 13F1911)) of 2017-04-21 built on builder10-9.porkrind.org Windowing system distributor 'Apple', version 10.3.1504 Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win ucs-normalize term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 195600 7784) (symbols 48 19499 0) (miscs 40 51 182) (strings 32 14880 5859) (string-bytes 1 430423) (vectors 16 32840) (vector-slots 8 649625 3900) (floats 8 160 40) (intervals 56 199 0) (buffers 976 18)) --Apple-Mail=_FE9261CB-38FA-4E0E-9E45-35714F5A67F7 Content-Disposition: attachment; filename=macos-fullscreen-frame-crash.el Content-Type: application/octet-stream; x-unix-mode=0644; name="macos-fullscreen-frame-crash.el" Content-Transfer-Encoding: 7bit ;;; open -na Emacs --args -Q -l `pwd`/macos-fullscreen-frame-crash.el (progn (toggle-frame-fullscreen) (sit-for 1) (let ((frame (make-frame))) (select-frame frame) (make-frame-visible frame) (delete-frame frame))) --Apple-Mail=_FE9261CB-38FA-4E0E-9E45-35714F5A67F7-- From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 18 12:39:30 2017 Received: (at 28496) by debbugs.gnu.org; 18 Sep 2017 16:39:31 +0000 Received: from localhost ([127.0.0.1]:46695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtz50-0007v5-NT for submit@debbugs.gnu.org; Mon, 18 Sep 2017 12:39:30 -0400 Received: from mail-wr0-f182.google.com ([209.85.128.182]:49620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtz4z-0007ut-1h for 28496@debbugs.gnu.org; Mon, 18 Sep 2017 12:39:29 -0400 Received: by mail-wr0-f182.google.com with SMTP id u96so1003427wrb.6 for <28496@debbugs.gnu.org>; Mon, 18 Sep 2017 09:39:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=YlqJsByxko+vpmJE+e9a0W/dUHSVGTG9/CtOveWPP7E=; b=f9EU/k/Mqu0tKqBqMN/4is+QnyM1DTye01f3aHP4W/es8kVHP//xMy8Xs2tBCdIbYa 249Z9lnNxm578OwZ6y1sRQamHK7Xgnj78SQmZYBEJXH9W92Ohbnnp1lzeWTh3zPFwCRJ S0tcrKKoj8YNTJIK68aIsHQ0DQ7dwNm1Ni/k64fr+Jr1E4jOK/CRZ4vClGal4hRm4syr oxsQAA9xCKS4upAYiSzaH+xjzYa8dXF03zaoZc7LZn6Io3Ugb3qdbLdxtMkRye0QOE9h Ts5PGcGW8MbEl7U4UOlLKmg37Qi038OIYtR1nVrOU6taYvOEjDmM4KcrUDQaMGZGNotN QVCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=YlqJsByxko+vpmJE+e9a0W/dUHSVGTG9/CtOveWPP7E=; b=SDm5Fp0XkwxU3Gyp/Zv/wXLLdkRLXVOaJdj/SuFJuHMWndL3UZe9bLM6keTSYBCnyV OzcLukhMvrmBzGvN7VkgDEiUQeFGZxgchezII68HZATdy81GWUSGcwT3v0I1J4ePXBrz KEGYHf/HmPW+GI+LgeAWhkwCJJ7lD7EZTfBDXZl6NJ+IRsDwuCq7mvbOoGTOhd4ehQdu O9agngGKnn/3ac8ZKSqE8TrmOwUZhe7zrpJodFDs/SOBiJ1q74TOPqiGqLGYc/AG5NoC SVvdUUI+JDxB6SWzw5ZqEZpoEk5TZShkOWMYLvzssNgrnOiudoHWInYt54/buosQC5Fh By6A== X-Gm-Message-State: AHPjjUj+yTk+kpPQrmbqTcMgcTaSUkN4WzPQ1wx0gkDUs/OLNWvzoSA5 iJlI4UZfPp47eEFS/10= X-Google-Smtp-Source: ADKCNb4YdbasXrbuw7HzNl9BNO20qGD0IX9IGOLeGBbGgOHXBph0XhDqGU0IxmrCJobQv0UMLjLV0w== X-Received: by 10.223.176.84 with SMTP id g20mr27154502wra.117.1505752763349; Mon, 18 Sep 2017 09:39:23 -0700 (PDT) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-dc16-e8c9-c53b-72e4.holly.idiocy.org. [2001:8b0:3f8:8129:dc16:e8c9:c53b:72e4]) by smtp.gmail.com with ESMTPSA id g37sm7779499wra.6.2017.09.18.09.39.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Sep 2017 09:39:22 -0700 (PDT) Date: Mon, 18 Sep 2017 17:39:22 +0100 From: Alan Third To: Duncan Harvey Subject: Re: bug#28496: 25.2; Crash when manipulating fullscreen frames on macOS Message-ID: <20170918163922.GB95903@breton.holly.idiocy.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.0 (2017-09-02) X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 28496 Cc: 28496@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) On Mon, Sep 18, 2017 at 04:10:47PM +0100, Duncan Harvey wrote: > Run: > > open -na Emacs --args -Q -l .../path/to/macos-fullscreen-frame-crash.el > > with the attached script. > > On my system this crashes every time: "Fatal error 11: Segmentation faultAbort trap: 6" > > Emacs will still crash if one runs the Emacs executable directly > (with the -Q and -l arguments), rather then via the 'open' command. > I only use 'open' as a convenience, to avoid including the entire > path to Emacs' executable. I can replicate the crash in Emacs 25, but the Emacs 26 branch does something quite strange. It doesn’t crash, it seems to leave the fullscreen window in the background with no contents. I suspect that Emacs is deleting the frame before the fullscreen animation has completed. -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 19 11:49:27 2017 Received: (at 28496) by debbugs.gnu.org; 19 Sep 2017 15:49:27 +0000 Received: from localhost ([127.0.0.1]:48438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duKm7-0005fJ-CO for submit@debbugs.gnu.org; Tue, 19 Sep 2017 11:49:27 -0400 Received: from avasout03.plus.net ([84.93.230.244]:43046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duKm6-0005f8-09 for 28496@debbugs.gnu.org; Tue, 19 Sep 2017 11:49:26 -0400 Received: from [192.168.0.2] ([80.229.245.74]) by avasout03 with smtp id BTpH1w0021d2MPU01TpJpL; Tue, 19 Sep 2017 16:49:20 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.2 cv=BeGo6vl2 c=1 sm=1 tr=0 a=dxFS4x0sVolc9CPZkeRDrw==:117 a=dxFS4x0sVolc9CPZkeRDrw==:17 a=IkcTkHD0fZMA:10 a=hIj89exaAAAA:8 a=h55ZjLXlAAAA:8 a=HexZ_Yoq1eas5hIujpEA:9 a=QEXdDO2ut3YA:10 a=lS9wXHQM5UdnNJ4u63Ry:22 a=bVIcrEQjCtdAe-SrG74p:22 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: bug#28496: 25.2; Crash when manipulating fullscreen frames on macOS From: Duncan Harvey In-Reply-To: <20170918163922.GB95903@breton.holly.idiocy.org> Date: Tue, 19 Sep 2017 16:49:16 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20170918163922.GB95903@breton.holly.idiocy.org> To: Alan Third X-Mailer: Apple Mail (2.3273) X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 28496 Cc: 28496@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) > On 18 Sep 2017, at 17:39, Alan Third wrote: >=20 > [...] the Emacs 26 branch does > something quite strange. It doesn=E2=80=99t crash, it seems to leave = the > fullscreen window in the background with no contents. I can replicate that strange behaviour with Emacs 25.2 on an older = operating system (El Capitan, 10.11.6) running in a VM. In GNU Emacs 25.2.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 = Version 10.9.5 (Build 13F1911)) of 2017-04-21 built on builder10-9.porkrind.org Windowing system distributor 'Apple', version 10.3.1404 Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' That suggests to me that it is not solely an Emacs 25 vs. 26 issue. Other observations: On macOS Sierra, creating the new frame appears to create a macOS-style = tab in the same 'space'. On El Capitan, creating the new frame creates a new Mac OS X 'space'. Animating the creation of a new space certainly appears to be relatively = slow (when running under a VM, at least), which lends weight to your = suspicion that it's timing related. -- Duncan= From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 19 12:38:48 2017 Received: (at 28496) by debbugs.gnu.org; 19 Sep 2017 16:38:48 +0000 Received: from localhost ([127.0.0.1]:48482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duLXs-0006q4-4r for submit@debbugs.gnu.org; Tue, 19 Sep 2017 12:38:48 -0400 Received: from avasout03.plus.net ([84.93.230.244]:60057) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duLXq-0006pt-7V for 28496@debbugs.gnu.org; Tue, 19 Sep 2017 12:38:46 -0400 Received: from [192.168.0.2] ([80.229.245.74]) by avasout03 with smtp id BUeh1w0031d2MPU01Uei6y; Tue, 19 Sep 2017 17:38:42 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.2 cv=BeGo6vl2 c=1 sm=1 tr=0 a=dxFS4x0sVolc9CPZkeRDrw==:117 a=dxFS4x0sVolc9CPZkeRDrw==:17 a=kj9zAlcOel0A:10 a=hIj89exaAAAA:8 a=NSFykZSAAAAA:8 a=K63wwREqhnuyP3tARfQA:9 a=CjuIK1q_8ugA:10 a=UvIkD1jTvwgA:10 a=LZ7w871ZH3oA:10 a=lS9wXHQM5UdnNJ4u63Ry:22 a=EgQNcM-36Pe3ny658tpa:22 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: bug#28496: 25.2; Crash when manipulating fullscreen frames on macOS From: Duncan Harvey In-Reply-To: <20170918163922.GB95903@breton.holly.idiocy.org> Date: Tue, 19 Sep 2017 17:38:41 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20170918163922.GB95903@breton.holly.idiocy.org> To: Alan Third X-Mailer: Apple Mail (2.3273) X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 28496 Cc: 28496@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) > On 18 Sep 2017, at 17:39, Alan Third wrote: >=20 > I can replicate the crash in Emacs 25, but the Emacs 26 branch does > something quite strange. FWIW, this still crashes for me when using the 2017-06-11 nightly build = from . -- Duncan= From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 30 19:23:33 2017 Received: (at 28496) by debbugs.gnu.org; 30 Sep 2017 23:23:33 +0000 Received: from localhost ([127.0.0.1]:41598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyR6b-0005wM-I1 for submit@debbugs.gnu.org; Sat, 30 Sep 2017 19:23:33 -0400 Received: from mail-wr0-f178.google.com ([209.85.128.178]:43435) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyR6Z-0005w4-Td for 28496@debbugs.gnu.org; Sat, 30 Sep 2017 19:23:32 -0400 Received: by mail-wr0-f178.google.com with SMTP id a43so1704410wrc.0 for <28496@debbugs.gnu.org>; Sat, 30 Sep 2017 16:23:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=qMcTj2UpGQCoreFFpXqBJqiY0pJdfEz4evqIPzuhcGE=; b=lXplR84Xv/P2XI3uc8CH52NBv34T5UR8bEIQN64lkff0HZYRkQqYoke2bFL1RJ/TDK N8LWXQt/co7QDtwGY04YknKfR42obH2ZZ/Fwbedu2BLeFbVg14WXP9dPg4x/Sse433QO Bcl+uE2qrMESgx7cUUYSp5pwncf11JMRsigVzqlR3fhp6MZAsJsz/JyG0e4hw9SNtQPg PaGI2AT7ammolelbx+XHCN5MUp+BN1m6FiGrz9kFkdpvDRntV0IKdsYXmiZ6ze5feuxp 32f0iCk75iBgHwmv+Ri9s3UzuN1Qkgh1tPzu8QNFr0v9CituPUf9KHtHreNSR76QPT9W 8ZxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=qMcTj2UpGQCoreFFpXqBJqiY0pJdfEz4evqIPzuhcGE=; b=WSmWmCu5N9fArkAEs7n0CQiffM1PEw6wI8L+LDiYYYpyDrdD3yMduWovo9g9PVpYhT t/j/eVCjXM2AAuJmwulQXcRdyxP1OlEWMYExTtWh0cSie85eaYwTj7LZo3v/r2tunB/Y UwmkY+ovcQM2TyXvarAFXkzyuwS2L08gF7zjeYJKxL5yuGDqrKHbVsar0fosRGdPOp3G DUOBAV4VEVB0hDeBk5FvNI4sXWRbBpobVCS8yZoabL0DL73OaiJ8f0jhlviFgpX03/zZ UYvbOgurEFFEiKfQ7O8pfmqoKZL6ossd4iIhgV8ew3Ce6GnDRlDleds3TMN1QWJzgahT KSPA== X-Gm-Message-State: AHPjjUgGc10IkcUtufEzMN64szfhBH5w0U3+CRj/Fme8FidDFoQ+qtj7 EaOC+GORFZcBpI4NWks1WvkzG1Jv X-Google-Smtp-Source: AOwi7QAE9Tc7Tg9J4h0WEmzwJTuFPSFa1Si0327gGrlEvVI9/tRph2ZQQTANavuDi/9SpcEaDn/wEQ== X-Received: by 10.223.163.18 with SMTP id c18mr11050900wrb.211.1506813806158; Sat, 30 Sep 2017 16:23:26 -0700 (PDT) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-ad89-e054-05c6-3eca.holly.idiocy.org. [2001:8b0:3f8:8129:ad89:e054:5c6:3eca]) by smtp.gmail.com with ESMTPSA id v30sm493814wra.39.2017.09.30.16.23.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Sep 2017 16:23:25 -0700 (PDT) Date: Sun, 1 Oct 2017 00:23:23 +0100 From: Alan Third To: Duncan Harvey Subject: Re: bug#28496: 25.2; Crash when manipulating fullscreen frames on macOS Message-ID: <20170930232323.GA32875@breton.holly.idiocy.org> References: <20170918163922.GB95903@breton.holly.idiocy.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="BOKacYhQ+x31HxR3" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.0 (2017-09-02) X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 28496 Cc: 28496@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Tue, Sep 19, 2017 at 04:49:16PM +0100, Duncan Harvey wrote: > > On macOS Sierra, creating the new frame appears to create a macOS-style tab in the same 'space'. > On El Capitan, creating the new frame creates a new Mac OS X 'space'. Emacs 26 shouldn’t create a new tab any more. > Animating the creation of a new space certainly appears to be > relatively slow (when running under a VM, at least), which lends > weight to your suspicion that it's timing related. I can’t see any way around this in C. I can’t even find a way to prevent native fullscreen from animating, so I’ve gone with just causing toggle-frame-fullscreen to pause for 1 second on macOS. I don’t think anyone will be too bothered by this as I don’t think you can realistically do anything in Emacs while the animation is running anyway. BTW, running your script with native fullscreen disabled causes a crash here, and this pause fixes that too. In theory non‐native fullscreen should happen instantly, but there’s a pause in the C code too to fix another issue, so whatever. (see bug#28443) Patch attached. -- Alan Third --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-Fix-fullscreen-crash-on-macOS-bug-28496.patch" >From 2d756250d7990dc9a6a452e8282cc32d16d2099a Mon Sep 17 00:00:00 2001 From: Alan Third Date: Sun, 1 Oct 2017 00:06:23 +0100 Subject: [PATCH] Fix fullscreen crash on macOS (bug#28496) * lisp/frame.el (toggle-frame-fullscreen): Wait for animation to complete on macOS. --- lisp/frame.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/frame.el b/lisp/frame.el index 76c1842455..b70f55e981 100644 --- a/lisp/frame.el +++ b/lisp/frame.el @@ -2434,7 +2434,11 @@ toggle-frame-fullscreen (set-frame-parameter nil 'fullscreen fullscreen-restore) (set-frame-parameter nil 'fullscreen nil))) (modify-frame-parameters - nil `((fullscreen . fullboth) (fullscreen-restore . ,fullscreen)))))) + nil `((fullscreen . fullboth) (fullscreen-restore . ,fullscreen)))) + ;; Manipulating a frame without waiting for the fullscreen + ;; animation to complete can cause a crash, or other unexpected + ;; behaviour, on macOS (bug#28496). + (when (featurep 'cocoa) (sit-for 1)))) ;;;; Key bindings -- 2.14.1 --BOKacYhQ+x31HxR3-- From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 07 17:00:41 2017 Received: (at control) by debbugs.gnu.org; 7 Oct 2017 21:00:42 +0000 Received: from localhost ([127.0.0.1]:55127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0wDB-0005Mm-QV for submit@debbugs.gnu.org; Sat, 07 Oct 2017 17:00:41 -0400 Received: from mail-wm0-f50.google.com ([74.125.82.50]:47850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0wDA-0005MY-3W for control@debbugs.gnu.org; Sat, 07 Oct 2017 17:00:40 -0400 Received: by mail-wm0-f50.google.com with SMTP id t69so14030553wmt.2 for ; Sat, 07 Oct 2017 14:00:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:message-id:to:from:subject; bh=O0ecDmyx0jSAMg/R1CfqtFr0uNJg2XygKuFw4uPlR0g=; b=uWWKXw5U3Gpb3hDcKvq87OV3y5kP6bWvY2Lhwxw9hPvyR5Gryr5Tj42iNwH5SUqV+I BX/xwZoDHawLdF/FSyUN0fGEItmj7nSJxrS9lA2R0ErZTD8mLaYij0sg7pH/eTgPzohE Xmif90XznmJgBctK/zw4x9/7uxvaX46Ez0lgu9AqaG5pmB6qe/hVc4Hves0WfxzONEyO mVyXnS0AFRBgSTotRdxR7wkk/kZ94tlcWmB5BSrf+rUNGOTwwe1eWWLUaCbSfD+UFKwd GRnNypHL+uITWcQ457HxfnIjhFK37Dgm9DRJvkvofFfUqP5qNndVkbNzQvnJJKVpARlr xnnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:to:from:subject; bh=O0ecDmyx0jSAMg/R1CfqtFr0uNJg2XygKuFw4uPlR0g=; b=TwIYVTrV7MtruR86gijM4Xcv9cIS0N4lQ+W5GEjtvhs9EiYhB/BpoWZJx2lEJ1Sh0o L7iSxU/tyTvrkYMDEt9TT+SQsGHi/RjEt1ZJ3d9deJfHw+0m/ozuEmwNVGoO/e/2l6jT T4MHMExsgIORzUeyMGUWm9yKNufVbRBKASIhwnD/IEdGUMAjelGUDjTbILOV4VYlnU29 ejJegzwkbsEt3Gk3tO1ZcKbFVubJgOARCfeLUj5uN1bjU24GWRrEbJqftJZoFM8k+2lG mixVuePFX4Srwyb3bupGKB0JmLIHe3hBjBsbJ5cEs8RD6qNgW4CWgGoD85DGhG6faO6M EmVA== X-Gm-Message-State: AMCzsaUm/v5ACLv0MkPv4l6LozVkLMxMk+RthiTXsNnTF1yTprqEWFJd I4m2CmA2NglQrbsSlHtEwy95OkNm X-Google-Smtp-Source: AOwi7QAxsNFg+Q9+d/dmP//f0vmqvWTB09RKcp4rxCaKrsrvvPahRWzgxKVldM4WLi8F4UE5Yj3fSg== X-Received: by 10.223.170.209 with SMTP id i17mr5082660wrc.217.1507410034194; Sat, 07 Oct 2017 14:00:34 -0700 (PDT) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-7ce7-3aeb-01e4-c435.holly.idiocy.org. [2001:8b0:3f8:8129:7ce7:3aeb:1e4:c435]) by smtp.gmail.com with ESMTPSA id y6sm2598558wrb.17.2017.10.07.14.00.33 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 07 Oct 2017 14:00:33 -0700 (PDT) Date: Sat, 07 Oct 2017 22:00:32 +0100 Message-Id: To: control@debbugs.gnu.org From: Alan Third Subject: control message for bug #28496 X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) tags 28496 fixed close 28496 26.1 From unknown Tue Jun 17 01:35:41 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 05 Nov 2017 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator