From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Cibrario Bertolotti Newsgroups: gmane.emacs.bugs Subject: bug#23462: 25.0.93; Crash on OS X when suspending main frame Date: Tue, 10 May 2016 22:13:39 +0200 Message-ID: <82D6EB3D-6383-430B-BBC9-DEC216F0C33A@polito.it> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1462911269 7741 80.91.229.3 (10 May 2016 20:14:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 May 2016 20:14:29 +0000 (UTC) Cc: 23462@debbugs.gnu.org, Alan Third To: Anders Lindgren Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 10 22:14:16 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 1b0E2n-0007nL-S2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 May 2016 22:14:14 +0200 Original-Received: from localhost ([::1]:48776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0E2j-0001rH-Hu for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 May 2016 16:14:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0E2g-0001pA-0D for bug-gnu-emacs@gnu.org; Tue, 10 May 2016 16:14:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0E2b-0003Vu-RU for bug-gnu-emacs@gnu.org; Tue, 10 May 2016 16:14:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0E2b-0003Vl-OG for bug-gnu-emacs@gnu.org; Tue, 10 May 2016 16:14:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b0E2b-0007V6-KX for bug-gnu-emacs@gnu.org; Tue, 10 May 2016 16:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Cibrario Bertolotti Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 May 2016 20:14: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.146291123228811 (code B ref 23462); Tue, 10 May 2016 20:14:01 +0000 Original-Received: (at 23462) by debbugs.gnu.org; 10 May 2016 20:13:52 +0000 Original-Received: from localhost ([127.0.0.1]:46283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b0E2S-0007Ud-Cb for submit@debbugs.gnu.org; Tue, 10 May 2016 16:13:52 -0400 Original-Received: from fm2nodo1.polito.it ([130.192.180.12]:38598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b0E2P-0007UN-OD for 23462@debbugs.gnu.org; Tue, 10 May 2016 16:13:50 -0400 Original-Received: from polito.it (frontmail1.polito.it [130.192.180.41]) by fm2nodo1.polito.it with ESMTP id u4AKDfTM018001-u4AKDfTO018001 (version=TLSv1.0 cipher=DHE-RSA-AES256-SHA bits=256 verify=CAFAIL); Tue, 10 May 2016 22:13:41 +0200 Original-Received: from [5.170.11.211] (account d011741@polito.it HELO [192.168.1.100]) by polito.it (CommuniGate Pro SMTP 6.1.9) with ESMTPSA id 105703217; Tue, 10 May 2016 22:13:41 +0200 In-Reply-To: X-Mailer: Apple Mail (2.3124) X-FEAS-SYSTEM-WL: 130.192.180.41 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:118082 Archived-At: Hi Anders, > On 10 May 2016, at 20:56, Anders Lindgren wrote: >=20 > Hi Ivan and Alan! >=20 > I'm not sure that is the correct place for the patch. >=20 > Could you enable NSTRACE (by uncommenting the line defining = NSTRACE_ENABLED in nsterm.h) and see which function calls `drawRect` (if = possible). If that is in a function that is part of Emacs, it's better = to check that the frame is visible higher up in the call chain. >=20 > You will have to start Emacs from a terminal window in order to see = the trace output. You can do this by running = "./nextstep/Emacs.app/Content/MacOS/Emacs=E2=80=9D. here is the relevant part of the trace output: nsterm.m : 1595: [ 6322] x_iconify_frame nsterm.m : 6770: [ 6323] | [EmacsView windowWillMiniaturize:] nsterm.m : 6735: [ 6324] | [EmacsView windowDidResignKey:] nsterm.m : 1504: [ 6325] | | ns_frame_rehighlight nsterm.m : 7121: [ 6326] | [EmacsView windowDidMiniaturize:] nsterm.m : 7591: [ 6327] | [EmacsView drawRect:(X:578 Y:4)/(W:15 = H:472)] If I understand it correctly, the top-level function involved (within = nsterm.m) is x_iconify_frame. The only explicit call pertinent to the = issue that I see within it is: [[view window] miniaturize: NSApp]; at nsterm.m:1615. I think that the others, from windowWillMiniaturize = to drawRect, are callbacks. The reason why a miniaturize request = triggers a drawRect escapes me at this time, but I=E2=80=99m definitely = not an expert on this GUI. Thank you and please let me know if I can be of further assistance. Best regards, Ivan