From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aaron Jensen Newsgroups: gmane.emacs.bugs Subject: bug#44313: 27.1.50; ns_mouse_position EXC_BAD_ACCESS crash Date: Fri, 30 Oct 2020 14:37:04 -0500 Message-ID: References: <83o8kkb2vr.fsf@gnu.org> <83a6w4ar50.fsf@gnu.org> <83imara6v0.fsf@gnu.org> <83eelfa5x9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26645"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44313@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 30 20:38:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kYaDy-0006rU-7e for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Oct 2020 20:38:10 +0100 Original-Received: from localhost ([::1]:48030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYaDx-00053s-9r for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Oct 2020 15:38:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYaDq-00053V-AJ for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 15:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48272) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYaDq-0001tq-0x for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 15:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kYaDp-0005WZ-VB for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 15:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Aaron Jensen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Oct 2020 19:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44313 X-GNU-PR-Package: emacs Original-Received: via spool by 44313-submit@debbugs.gnu.org id=B44313.160408664321184 (code B ref 44313); Fri, 30 Oct 2020 19:38:01 +0000 Original-Received: (at 44313) by debbugs.gnu.org; 30 Oct 2020 19:37:23 +0000 Original-Received: from localhost ([127.0.0.1]:59818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYaDD-0005Vc-0x for submit@debbugs.gnu.org; Fri, 30 Oct 2020 15:37:23 -0400 Original-Received: from mail-yb1-f174.google.com ([209.85.219.174]:46606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYaDB-0005VP-7l for 44313@debbugs.gnu.org; Fri, 30 Oct 2020 15:37:21 -0400 Original-Received: by mail-yb1-f174.google.com with SMTP id a4so6024806ybq.13 for <44313@debbugs.gnu.org>; Fri, 30 Oct 2020 12:37:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9aXVxjLZGiizGvLexxwWfxax9RH8/3oiXEjhIJ1xPW8=; b=bpETDQNrcWbP+sB3neQCd5p+3pGLaZ7ycRlUtapwRsOtnnoneYouQJihB7teb/pJcc soctrcIyupY4okl3oCEiZREzkfy77x7CWDDtH6K1aDUF97HuJGkyMbV8slXBxkra+4yP Fhdiv5k9xoBKcPNSqwm9Dt/Vqc01y+HJlRluEtEIigiC5fIutsopq1NsH7b3p7UpQLow 0C0rgZTsj4JNxRVl1z7336p4n3FWvUvQ6x4IbHb7kt16oiJCvf5ekbBj44MoZoscWv4b PoxNr8/j0LD6JplzYVw04luK5K75X+ag7wYy+MuYDNymK2BZLH8mb2gsC7JhsALRBQAL +hng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9aXVxjLZGiizGvLexxwWfxax9RH8/3oiXEjhIJ1xPW8=; b=bIVCLWbdNc5G3kcVFizaLvJRzYux80FE4oWT11SXFRRoDw6Um+q04ae0s1ZlnnGEeh 33hEw9lYBhybTfeQlt2vSllo2uK+g+j/JLeRwpqPwi5eo7kdK0hQfUK448+PoVvxLAoA N82WyIb+Ir5dYU09Um4p4NF2vnGTiQteYmJ33dsjWa2FgPymAI8VZjMMaEdAHNx+xe3B XcIUyjdrt18VrnFptc8449R/KUQaqc/9nTJNxMGqkPr3EHyEsN7x0eUgyy7HUHnZKk3G btiuTIRhnv/M5YACxuOoQIFKRzaITjnbPgqPWfnSkxcfcHiVlcjX8xPLeuNcMyGfPIQc q2wA== X-Gm-Message-State: AOAM533nTCECWalpQ0pMr9BOOZyeQOnn9hPSA9FOc9szzRAKBR4MpUlE rhkslT25J1yJOkpiZMJp13GcsiQqVekFhujzbboCkY4fpTaZ9Q== X-Google-Smtp-Source: ABdhPJxjdKyD8MKjV3o0pPxbHkI7TdKzg7VjIlqc2ckTmVzQevu6cuP4JMuBmFiXo+3OcG+6CXczMuqN9X9aDSZfPzw= X-Received: by 2002:a25:4654:: with SMTP id t81mr6122783yba.475.1604086635604; Fri, 30 Oct 2020 12:37:15 -0700 (PDT) In-Reply-To: <83eelfa5x9.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:192185 Archived-At: On Fri, Oct 30, 2020 at 2:08 PM Eli Zaretskii 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?