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: Sat, 23 Jul 2022 10:37:11 -0400 Message-ID: References: <83tufiutld.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="5953"; mail-complaints-to="usenet@ciao.gmane.io" To: Alan Third , Aaron Jensen , Eli Zaretskii , 52085@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 23 16:38:23 2022 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 1oFGGr-0001Lp-MM for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 16:38:21 +0200 Original-Received: from localhost ([::1]:58394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFGGq-00029m-IE for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 10:38:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFGGY-00029Y-Fa for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 10:38:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56253) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFGGY-0004K1-7X for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 10:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFGGY-0006Ov-3B for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 10:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Aaron Jensen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Jul 2022 14:38: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.165858705124554 (code B ref 52085); Sat, 23 Jul 2022 14:38:02 +0000 Original-Received: (at 52085) by debbugs.gnu.org; 23 Jul 2022 14:37:31 +0000 Original-Received: from localhost ([127.0.0.1]:46002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFGG3-0006Nx-7U for submit@debbugs.gnu.org; Sat, 23 Jul 2022 10:37:31 -0400 Original-Received: from mail-pg1-f182.google.com ([209.85.215.182]:44719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFGG0-0006Ne-Al for 52085@debbugs.gnu.org; Sat, 23 Jul 2022 10:37:29 -0400 Original-Received: by mail-pg1-f182.google.com with SMTP id bf13so6602953pgb.11 for <52085@debbugs.gnu.org>; Sat, 23 Jul 2022 07:37:28 -0700 (PDT) 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=quwmNrJFqn2F/mDUKaavZZQBACmwH1hG0/WEwXPo55E=; b=g92/BjB8jb9rS6EpdBi4x+0rvXr1farNZbit8MFFRvUm0DOhyF5BGOLkR0UaAfjoT2 t7MSbtKdppfdm3HWrQFXu4U3mmtjnUt59IwHrsF0TE0rQr1ZEEmgr3LFjlzpfCNmVnF2 GMDkyicz4CqaLBPlwbnef4Q9X9AJrhlMHmFwyDzuPo8lX7uEsJ3al3dqiRFarfHzTVXm Q8bRz5EpMlBXUQDA+E3W//Ve5RPO6eHB1EzOeJBV0eA+TzCOfexwD2rTQWQfh6I2eIa3 LkAwJ8XtwerMbwg8E+gKQGG92eELd8hUgLBtBige4oShgzt1og/IWuAeedw8LmITqFqG GfYw== 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=quwmNrJFqn2F/mDUKaavZZQBACmwH1hG0/WEwXPo55E=; b=4FFP9ui41kh0Eypi2xtuks9dB8RALDMtNqWMTBjmOss8URWX200vkG31jnb5GjkH6I bL5IMjrAi3JKswljYCs02SF8fbG/++VmB8AkVYyI8VO+YHQH4+yhxUdCoOwzAphokJBk jW7NNeXQqvSTmdN0JdfQg6aOtSSHysaVMLhR4BGI/DyUUjjsYPhOdKrxZoXt3M3LTjPZ y42/PyCoCwNz67ho8nXMfoREICDAYySkqr7+77lCr5P7MrNMJSfO9sn1QMGgWWkC1PZN 12TfTg1ut3Na+Q2dILhaW00cewuzlDTOk5dQFsVXPXIkUeB3cSpbD+MuDuHFn5zBfsXE UMGw== X-Gm-Message-State: AJIora9ZzMZwk8fwk5S2DYpmdJIAU29vYE+AoD8qFjP29fEbcdYZWX2S jqzNT2tOUMJhRdm20lHsuYyr9dPvz5QIHYcxLuc= X-Google-Smtp-Source: AGRyM1ubmXJV6vh5Fk+jHoSap4M8SvFmmfT9HNge3OYAJ2Lado0fPO4cOjtRH+oqsuplDtSA1c4jNNUsiy3O1xZLaxA= X-Received: by 2002:a63:f304:0:b0:41a:9bcd:88a8 with SMTP id l4-20020a63f304000000b0041a9bcd88a8mr4016021pgh.520.1658587042542; Sat, 23 Jul 2022 07:37:22 -0700 (PDT) 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:237751 Archived-At: On Sun, Dec 19, 2021 at 4:57 PM Aaron Jensen wrote: > > On Sun, Dec 12, 2021 at 7:08 AM Alan Third wrote: > > > > On Thu, Dec 09, 2021 at 02:38:59AM -0500, Aaron Jensen wrote: > > > On Thu, Dec 9, 2021 at 2:27 AM Eli Zaretskii wrote: > > > > > > > > > From: Aaron Jensen > > > > > Date: Wed, 8 Dec 2021 16:33:06 -0500 > > > > > > > > > > > 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)) > > > > > > > > I'm not tracking this discussion, so apologies if what I say below > > > > makes no sense. However, the Emacs display engine avoids redrawing > > > > anything if it concludes that what's on the glass is correct. So just > > > > calling 'redisplay', or making some simple changes that don't require > > > > significant redrawing, don't necessarily result in calls to low-level > > > > drawing functions, you need to do something drastic to force those > > > > with 100% certainty. > > > > > > > > HTH > > > > > > Even toggling between one buffer and another in a window fails to log > > > anything but: > > > > > > nsterm.m : 6100: [ 2953] [EmacsView keyDown:] > > > nsterm.m : 6393: [ 2954] | [EmacsView hasMarkedText] > > > nsterm.m : 6284: [ 2955] | [EmacsView insertText:] > > > nsterm.m : 6100: [ 2956] [EmacsView keyDown:] > > > > > > I'm probably missing something here... > > > > I'm pretty sure it's just the NSTRACE calls not printing anything. As > > I said previously NSTRACE sometimes doesn't print out results from > > things that are called deep in the toolkit code. Like display. > > > > Manually stick an NSLog into the display function. > > Ah, sorry I misunderstood. This worked. There are lots of displays > happening and I am not seeing the behavior anymore. I'm also on a new > machine, though I have seen the behavior a couple times on it prior to > trying this. I'll take the log out and see if it starts happening > again. > > Aaron Hi Alan, Unfortunately, I've been seeing rendering artifacts lately. Parts of one line will be painted over other lines and remain while scrolling. I think it's similar to what I've seen before. I'm on macOS 12.4 and Emacs master compiled a couple weeks ago. I don't have a consistent repro, but one time I notice it is while switching buffers. Thanks, Aaron