From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel =?UTF-8?Q?Mart=C3=ADn?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#63187: 30.0.50; Tail of longer lines painted after end of nearby lines on macOS Date: Wed, 03 May 2023 10:11:54 +0200 Message-ID: References: <87ilddec31.fsf@yahoo.com> <87edo0exct.fsf@yahoo.com> <83wn1sns1n.fsf@gnu.org> <87pm7kchqw.fsf@yahoo.com> <83pm7knpzi.fsf@gnu.org> <83354eordx.fsf@gnu.org> Reply-To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6228"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) Cc: luangruo@yahoo.com, Eli Zaretskii , 63187@debbugs.gnu.org, aaronjensen@gmail.com To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 03 10:13:19 2023 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 1pu7bz-0001S9-IF for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 May 2023 10:13:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pu7bk-0005aZ-Ag; Wed, 03 May 2023 04:13:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pu7bi-0005aO-L1 for bug-gnu-emacs@gnu.org; Wed, 03 May 2023 04:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pu7bi-00046N-Bl for bug-gnu-emacs@gnu.org; Wed, 03 May 2023 04:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pu7bh-0008MR-N6 for bug-gnu-emacs@gnu.org; Wed, 03 May 2023 04:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 May 2023 08:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63187 X-GNU-PR-Package: emacs Original-Received: via spool by 63187-submit@debbugs.gnu.org id=B63187.168310153132081 (code B ref 63187); Wed, 03 May 2023 08:13:01 +0000 Original-Received: (at 63187) by debbugs.gnu.org; 3 May 2023 08:12:11 +0000 Original-Received: from localhost ([127.0.0.1]:45511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pu7as-0008LM-Q1 for submit@debbugs.gnu.org; Wed, 03 May 2023 04:12:11 -0400 Original-Received: from sonic306-19.consmr.mail.ir2.yahoo.com ([77.238.176.205]:42240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pu7ao-0008Kk-Tx for 63187@debbugs.gnu.org; Wed, 03 May 2023 04:12:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1683101520; bh=+QxU3Dy4VpLIhcOXK9gQ+OUo9mlzC0UD6Ky/AKOYyjw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=azzzrFqHpo7iXQaj6sly+08+nz0FgrFMAGoSzwpceYCEzVCuwkmr4FW84uLl7pCioNdiejWa0BSxVt2k9l2XXYn36c95c08nfHpVsG1zVGauWiiTYxiMfsQPCPpur/0cC7F1M1bdkXEPT7El01e2CH5yt6tBzbHIxPOZX76X589Wpxau7xFI5zbGzbH1SlcEv61PbLyAm8jfpHDkTF88xkayBMWROQy9oGolqhMMcFvleZZvIq51eNN61TtD7nj44Mh7kBoegI3jVdNOski3x+sy6SCU6Gy4AcHVtT+9iv4f6TE0b9mw3CuBRGcIcLUsYs9ogPigaQQh6GtvVOayrA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1683101520; bh=JGksKqbh+5AiQ7weFvWmF6un7ekvLafj+7lXxxzfGmZ=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=iXIOFvB1sFnf3v7+io98QZUVmf5D8c3MPGxWPTKZ7FHrMMBEkKo5LfSLTlOJSANuotWCaLl/YWcMjJJPBxsug/+uip4lJLLRaVPJtDNukEern5SC2lPIeLt+Li2f+BphyhpM+cZ1v2Bb8q0V2nfca1RD4Yo2wjY9/RWj1H7nb7nHZZprtKhgbUVOjNv+CJ8QHU4T5T4QneaJPkfUjyeY+yqRPKXP1QyaoSTzgFv2wdT3EKdfKYn0PQi48ShkuEK32sTlTG0LuIHgQQxDc0p9ICsgXqg6d2EJTl5uUn+NfhHPjR7YHD8AwLXvqbL+DQnGX72c/OqPE7dboMD9BUS3ew== X-YMail-OSG: BH4IYgwVM1muHcjAesrPHpYcZlqfubCieU3puge61khYrT6lBw3k9GSTw.N11bU fnQzaNEilUoVmWfRs_Dy4euh59rkPUtgWDhN1af1k4_ym9brv1S6KSonp3sN0whRR7GbMCaBWGeS I0l1KOdhnyFF7qYPArqA7PNUiiA8G61aEob899313ABi5Y5kQE3S3iZV0ZyS0BIAuE36IgAq7.dq Gwwxp.PVaTF.T8tMo3jfaGudRkVaHt7HEBnRK9sqHqjJO8Y5pXmt0wjsBJobXge8NDgL28hlSA0R KJHkz2P6BbQUJ5OymDK1JUuxGlE5y1SztRDhdgpmvzzWA94WxFU5JCWxEARtZRIPWnvU50jWVJQv jVGRoier9QSFNueOBA9f3DX6BZ2ZxUeSfG_KMaKBuC2haA8JrfAS7thLmldrxUjfS_lIuoOICvCB LTUoatLmoZ_OwRCsq5QQsyqnMXBezbrd9cCU1bv0z55koli9vbi74_d67Cfum6s.fyQyqIxyM2lI oCJggFl0p9dNjDw8sYHbqETxdfVgnjYHDM7_4u6rPI51lQjXiyCXQqAewdYtyN6lnTdbu2GJD9nd cdosCNCCwH4jDkEa0oJF1rcl1k9nUUO.g8BviGwq.EBpMBT_bGNJ._cRKNt2bukyujVnpXlzTkml vJNZN6rTPVidTadvEZ3GekwinMxsHFwbYDdzClX58h5uZQscL.ieL8y8yXZqfQpGTl8xtWcgvgYz fwQLkkIS_QSwr9Dh2IWgp_I5SQmQQT5XH8KnpO76UVNXVuFcBKv3VOuNa770iPoer1Gm4YahGqGR Bq9mpgZYPrVs1OeDCpL6qznzrsQtelnv6BS0gYnDa_ X-Sonic-MF: X-Sonic-ID: e6434dde-61b3-46c4-b1c1-0d411aedda5c Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ir2.yahoo.com with HTTP; Wed, 3 May 2023 08:12:00 +0000 Original-Received: by hermes--production-ir2-74cd8fc864-tk7pl (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID e7532affebf0e7e303f23e02e3b34e73; Wed, 03 May 2023 08:11:56 +0000 (UTC) In-Reply-To: (Alan Third's message of "Tue, 2 May 2023 23:36:34 +0100") X-Mailer: WebService/1.1.21417 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260966 Archived-At: Alan Third writes: > On Tue, May 02, 2023 at 03:21:46PM +0300, Eli Zaretskii wrote: >> > Date: Tue, 2 May 2023 11:14:56 +0100 >> > From: Alan Third >> > Cc: Eli Zaretskii , Po Lu , >> > 63187@debbugs.gnu.org >> > >> > Although, on reflection, your description sounds more like it's just >> > not clearing the end of lines correctly, which wouldn't necessarily >> > have anything to do with scrolling as such... >> >> Can that happen in this case? You will see in the code that (AFAIU) >> it copies a rectangle whose width is the total width of the window, so >> why would (not) clearing ends of lines be an issue? > > It depends where the actual problem is occurring. It's hard to tell > from the screenshots whether the rogue glyphs appear spontaneously in > the middle of the window, or as a new line is scrolled onto the > screen. > > If it's the latter then obviously the procedure is to clear the line > that's to be drawn, then draw the new content, however if the clearing > isn't done correctly then you end up with the end of the line that was > there previously still visible to the right of the new content. > > As it scrolls further, Emacs no doubt is clever enough to know that it > doesn't need to clear more than it drew for the last line, so the > rogue characters at the end stay for the subsequent line, and so on > until it hits a line that is long enough to wipe it all out. > > I hope I'm explaining this well enough. > > Either way, I don't know why it would be happening. Could we add some tracing (or assertions) to the NS port, to help understand this problem better? I've also seen some rogue characters from time to time (not frequently, and my Emacs sessions last long). I think it all started since the migration to IOSurface, but I'm not sure. I don't have clear steps to reproduce yet.