all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Aaron Jensen <aaronjensen@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 44313@debbugs.gnu.org
Subject: bug#44313: 27.1.50; ns_mouse_position EXC_BAD_ACCESS crash
Date: Fri, 30 Oct 2020 14:37:04 -0500	[thread overview]
Message-ID: <CAHyO48z3kLPpW1+U7a5VWTT6nwsV+jmU9+UwGHHgBMhKh_bv+w@mail.gmail.com> (raw)
In-Reply-To: <83eelfa5x9.fsf@gnu.org>

On Fri, Oct 30, 2020 at 2:08 PM Eli Zaretskii <eliz@gnu.org> wrote:
> I don't know.  The code in Fmouse_pixel_position uses the
> selected-frame, so it is quite strange, to say the least, that this
> frame could be garbled when you just move the mouse pointer.

I'm in the debugger right now. It happened as soon as I started a
full-screen zoom screenshare (maybe that's a hint?)

The value of f is different than selected_frame and
dpyinfo->ns_focus_frame, which means that it's likely set in this
code:

#ifdef NS_IMPL_COCOA
  /* Find the uppermost Emacs frame under the mouse pointer.

     This doesn't work on GNUstep, although in recent versions there
     is compatibility code that makes it a noop.  */

  NSPoint screen_position = [NSEvent mouseLocation];
  NSInteger window_number = 0;
  do
    {
      NSWindow *w;

      window_number = [NSWindow windowNumberAtPoint:screen_position
                        belowWindowWithWindowNumber:window_number];
      w = [NSApp windowWithWindowNumber:window_number];

      if (w && [[w delegate] isKindOfClass:[EmacsView class]])
        f = ((EmacsView *)[w delegate])->emacsframe;
    }
  while (window_number > 0 && !f);
#endif

I wonder if a check for FRAME_LIVE_P should be added here for safety?





  reply	other threads:[~2020-10-30 19:37 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-29 20:16 bug#44313: 27.1.50; ns_mouse_position EXC_BAD_ACCESS crash Aaron Jensen
2020-10-30  7:15 ` Eli Zaretskii
2020-10-30 10:16   ` Aaron Jensen
2020-10-30 11:29     ` Eli Zaretskii
2020-10-30 15:54       ` Aaron Jensen
2020-10-30 18:47         ` Eli Zaretskii
2020-10-30 18:55           ` Aaron Jensen
2020-10-30 19:07             ` Eli Zaretskii
2020-10-30 19:37               ` Aaron Jensen [this message]
2020-10-30 20:12                 ` Eli Zaretskii
2020-10-30 20:18                   ` Aaron Jensen
2020-10-30 22:35                   ` Alan Third
2020-11-02 18:11                     ` Aaron Jensen
2020-11-06 14:29                       ` Aaron Jensen
2020-11-07 16:29                         ` Alan Third
2020-11-09 14:43                           ` Lars Ingebrigtsen
2020-11-09 14:54                             ` Alan Third
2020-12-12 10:43                               ` Alan Third

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=CAHyO48z3kLPpW1+U7a5VWTT6nwsV+jmU9+UwGHHgBMhKh_bv+w@mail.gmail.com \
    --to=aaronjensen@gmail.com \
    --cc=44313@debbugs.gnu.org \
    --cc=eliz@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.