unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Anders Lindgren <andlind@gmail.com>
To: Ivan Cibrario Bertolotti <ivan.cibrario@polito.it>
Cc: 23462@debbugs.gnu.org, Alan Third <alan@idiocy.org>
Subject: bug#23462: 25.0.93; Crash on OS X when suspending main frame
Date: Tue, 10 May 2016 23:57:47 +0200	[thread overview]
Message-ID: <CABr8ebb0nO7_NyX24mhCQV23tckugF_B+j42PcGu1-ZPUP81gQ@mail.gmail.com> (raw)
In-Reply-To: <82D6EB3D-6383-430B-BBC9-DEC216F0C33A@polito.it>

[-- Attachment #1: Type: text/plain, Size: 2117 bytes --]

Hi!

Thanks for the trace output.

As far as I can tell, I don't see a better location to place the test. (I
have to include myself in the group who have no idea why drawRect is being
called when the frame is miniatured.) I would suggest that we add it as you
originally suggested.

Alan, what do you say? Have you looked into this?

    -- Anders


On Tue, May 10, 2016 at 10:13 PM, Ivan Cibrario Bertolotti <
ivan.cibrario@polito.it> wrote:

> Hi Anders,
>
> > On 10 May 2016, at 20:56, Anders Lindgren <andlind@gmail.com> wrote:
> >
> > Hi Ivan and Alan!
> >
> > I'm not sure that is the correct place for the patch.
> >
> > 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.
> >
> > 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”.
>
> 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’m definitely not an expert on this
> GUI.
>
> Thank you and please let me know if I can be of further assistance.
>
> Best regards,
> Ivan
>
>

[-- Attachment #2: Type: text/html, Size: 2675 bytes --]

  reply	other threads:[~2016-05-10 21:57 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-05 21:25 bug#23462: 25.0.93; Crash on OS X when suspending main frame Ivan Cibrario Bertolotti
2016-05-08  9:53 ` Alan Third
2016-05-08 15:58   ` Eli Zaretskii
2016-05-08 16:56     ` Ivan Cibrario Bertolotti
2016-05-08 22:41 ` Alan Third
2016-05-09  8:49   ` Ivan Cibrario Bertolotti
2016-05-10 18:56 ` Anders Lindgren
2016-05-10 20:13   ` Ivan Cibrario Bertolotti
2016-05-10 21:57     ` Anders Lindgren [this message]
2016-05-10 22:08       ` Alan Third
2016-05-10 23:16       ` Alan Third
2016-05-11 22:28       ` Alan Third
2016-05-12  5:39         ` Anders Lindgren
2016-05-12 11:52           ` bug#23462: [PATCH] Block input while minimizing on NS (bug#23462) Alan Third
2016-05-12 16:38             ` Ivan Cibrario Bertolotti
2016-05-12 18:28               ` Anders Lindgren
2016-05-16 18:45                 ` Anders Lindgren

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=CABr8ebb0nO7_NyX24mhCQV23tckugF_B+j42PcGu1-ZPUP81gQ@mail.gmail.com \
    --to=andlind@gmail.com \
    --cc=23462@debbugs.gnu.org \
    --cc=alan@idiocy.org \
    --cc=ivan.cibrario@polito.it \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).