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#52085: 29.0.50; Frame occasionally fails to paint while screen sharing on macOS Date: Wed, 8 Dec 2021 16:33:06 -0500 Message-ID: References: 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="18375"; mail-complaints-to="usenet@ciao.gmane.io" To: Alan Third , Aaron Jensen , 52085@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 08 22:34:12 2021 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 1mv4Zo-0004bZ-Mt for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Dec 2021 22:34:12 +0100 Original-Received: from localhost ([::1]:48180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mv4Zm-0006Eg-Ow for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Dec 2021 16:34:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41010) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv4Ze-0006EJ-I6 for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 16:34:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58451) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mv4Ze-0002M4-At for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 16:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mv4Ze-0001OW-8J for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 16:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Aaron Jensen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Dec 2021 21:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52085 X-GNU-PR-Package: emacs Original-Received: via spool by 52085-submit@debbugs.gnu.org id=B52085.16389992075314 (code B ref 52085); Wed, 08 Dec 2021 21:34:02 +0000 Original-Received: (at 52085) by debbugs.gnu.org; 8 Dec 2021 21:33:27 +0000 Original-Received: from localhost ([127.0.0.1]:41764 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv4Z4-0001Ne-LM for submit@debbugs.gnu.org; Wed, 08 Dec 2021 16:33:26 -0500 Original-Received: from mail-pj1-f52.google.com ([209.85.216.52]:41497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv4Z1-0001NL-Hv for 52085@debbugs.gnu.org; Wed, 08 Dec 2021 16:33:25 -0500 Original-Received: by mail-pj1-f52.google.com with SMTP id gx15-20020a17090b124f00b001a695f3734aso3225707pjb.0 for <52085@debbugs.gnu.org>; Wed, 08 Dec 2021 13:33:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=2z6gCF76SsR5TZs6TpDS9tm1i0ApivwuCUCMZevHMyk=; b=m30+xYNIeFLH4KXyaR8++4GUhjZ7G2tm4INcXW6WLQmLwG+EsC05BFEu/+0054HDRe 0kHezW2dzjQR0gJRusn7DaMB0VWbK59Z7VAs2+lOyn03dTYYGY17UzrTowNfbRiU0a08 /ErUNVq756EBcY5FfcbsNZ45CknATKMR+WB5MQYKAsqUZ+/dhgdTSeLFfYW5GoPu1fzF asg88oCwy53/T6li0NkZxkt8gedkRASaFgJOiWvoscYq2wPwvpjO++YUyN+geN/0ATL6 ZKtFoHv4IuubyGO+zNwjLKjZEBgtIU6BD7eX6FB+W5vKM73H8pJFy/2lnL3YByk4/5XC oN9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=2z6gCF76SsR5TZs6TpDS9tm1i0ApivwuCUCMZevHMyk=; b=4rLmA/u5qeYyGKogykPhmfj2bHTGHqb1wlTy379ng4KGpKXV0/IIWuhifeqc0zAgxw 7W++oxGqyJ5oZzI9x9tnFflUCuWq/D3DkYzAveJSLd43a1OlGJvGwVJf51t0fxTJWo9P ufouOUNvKOR4KOtTLTIIfqfMAodwtCJ3uU8e58NQjnK3/34tu9auyIKF4/IaF+l68Cqi wnZe2ybXic3okA/UFIZ2z2bvNstt58t1ncqxFgSLT4zDx0AkORl7elE2h9ePdFnvA0cb R2S2Twv/2G9KH8HZu0jIMxKeTDVtoCG6IQlixF/+ErrBKcQmxlrvUhqR/LQCXr/9UtjD UdEw== X-Gm-Message-State: AOAM531EWq8QQzHwBzfL0CRoqVbat0DOrbrkLKb8xwc325JFMox5WbQa 9JzwdlL1oS3U1oiDujMdJ79QKrdyC0Famfku3RI= X-Google-Smtp-Source: ABdhPJxtj3O/bFpn3j14Tfa/Q1lcbo1QnPOnER0tFEp22GAqPAVl68PSEIn24Bwk77/2VBBgcnyNICWfCsEFjErwHqA= X-Received: by 2002:a17:903:18d:b0:142:12ba:8513 with SMTP id z13-20020a170903018d00b0014212ba8513mr61708147plg.69.1638999197570; Wed, 08 Dec 2021 13:33:17 -0800 (PST) In-Reply-To: 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:221956 Archived-At: On Wed, Dec 8, 2021 at 4:23 PM Alan Third wrote: > > On Tue, Dec 07, 2021 at 10:14:07PM -0500, Aaron Jensen wrote: > > On Sat, Dec 4, 2021 at 5:48 AM Alan Third wrote: > > > > > > On Fri, Dec 03, 2021 at 12:14:10AM -0500, Aaron Jensen wrote: > > > > On Thu, Dec 2, 2021 at 5:22 PM Alan Third wrote: > > > > > > > > > > Probably the first thing you could do is check that [EmacsLayer > > > > > display] is being called at the right time. > > > > > > > > > > But I can't really think of any particular reason for this to happen. > > > > > > > > How do I enable and observe NSTRACE? > > > > > > Uncomment the line at nsterm.h:65, and probably the one at line 78 > > > too, which refers to NSTRACE_GROUP_FOCUS. > > > > > > It logs to the terminal or to the system logs. > > > > Hmm, I see logging but typically every keypress is met with: > > > > nsterm.m : 6100: [11784] [EmacsView keyDown:] > > nsterm.m : 6393: [11785] | [EmacsView hasMarkedText] > > nsterm.m : 6284: [11786] | [EmacsView insertText:] > > > > > > I see some [EmacsLayer display] but very few. I'm not sure how to > > trigger them. Is that what is expected? > > > > I have a fairly hard time reproducing this whole thing so even though > > I'm screensharing right now and running a test build... > > To be honest, if I just want to see when one function is called I > stick in 'NSLog (@"Moo")' or whatever. There's too much output in > NSTRACE and I'm sure that sometimes it doesn't print out results from > things that are called deep in the toolkit code. Well, I can say with some certainty that those messages are the only ones appearing under typical operations like key presses. I can insert newlines into the terminal and observe that only those are emitted when I press keys or even scroll. So the display function is not being called unless there is some other wildness going on with the tracing. Do you expect it to be called every render? (It is also not called when I run M-: (redisplay)) Aaron