From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61667: 29.0.60; Failure to redisplay Date: Wed, 22 Feb 2023 14:17:45 +0200 Message-ID: <83mt55sxli.fsf@gnu.org> References: <04d7cb31-684c-07c0-ee7b-503514fc1a85@yandex.ru> <87a617eanz.fsf@yahoo.com> <4306cb76-a44c-3101-e43c-fd64afae4a51@yandex.ru> <871qmje2ws.fsf@yahoo.com> <83edqjtbss.fsf@gnu.org> <4e5e2a46-9b07-206a-6774-9f98f34cbd14@yandex.ru> <83y1orrolh.fsf@gnu.org> <83sfeyswdw.fsf@gnu.org> <877cwactgv.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27513"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61667@debbugs.gnu.org, dgutov@yandex.ru To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 22 13:18:23 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 1pUo4k-00073d-Oe for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Feb 2023 13:18:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUo4W-0007aP-7E; Wed, 22 Feb 2023 07:18:08 -0500 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 1pUo4U-0007Yx-5n for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2023 07:18:06 -0500 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 1pUo4Q-0005HA-VK for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2023 07:18:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pUo4Q-0006dJ-GZ for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2023 07:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Feb 2023 12:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61667 X-GNU-PR-Package: emacs Original-Received: via spool by 61667-submit@debbugs.gnu.org id=B61667.167706826325471 (code B ref 61667); Wed, 22 Feb 2023 12:18:02 +0000 Original-Received: (at 61667) by debbugs.gnu.org; 22 Feb 2023 12:17:43 +0000 Original-Received: from localhost ([127.0.0.1]:58182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUo46-0006cl-Uf for submit@debbugs.gnu.org; Wed, 22 Feb 2023 07:17:43 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUo42-0006cU-KI for 61667@debbugs.gnu.org; Wed, 22 Feb 2023 07:17:41 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUo3x-0005Ea-9D; Wed, 22 Feb 2023 07:17:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=t+nDhG1FG9d3mn8MKIg2xwUvXweImP3+ERPxzPN4gwU=; b=LKLEt1kJiciX Yx/2/+MZnV5QQiZXz71UZmwUAnLEbzW8vHD0uL2tfl4GGccaLOHgM4m7WxjMaWh42yqthuNckZpXD MSioeuLtEeLXBk5LDa/gPqjlaJasD5b/greFnoMb+Z4bnCvXDHtBEZRy2hj8WFsBxBvmGAY+/pb+N 9ByOowmIJFBUA/BODQCAMkHhPxG/RinwCnA46Kaqx7HtwnmeiAsVAqN78E2hKfbNEkusxFrgfpLBk gHUwKeOnH/KfyIILmfC4XGzcq8G+OaG6iiadFV3UgnHA0GmMpXUEZ2ZJe2Zfz3YNtq74RRwUiObcq SqyDwKHQMxMsn3yxjSa1OA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUo3w-0003xi-Iu; Wed, 22 Feb 2023 07:17:32 -0500 In-Reply-To: <877cwactgv.fsf@yahoo.com> (message from Po Lu on Wed, 22 Feb 2023 10:41:20 +0800) 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:256332 Archived-At: > From: Po Lu > Cc: Dmitry Gutov , 61667@debbugs.gnu.org > Date: Wed, 22 Feb 2023 10:41:20 +0800 > > Would you please start by instrumenting xterm.c as follows? > > diff --git a/src/xterm.c b/src/xterm.c > index 5feaa4aef0f..999ae5d37fb 100644 > --- a/src/xterm.c > +++ b/src/xterm.c > @@ -7518,6 +7518,10 @@ XTframe_up_to_date (struct frame *f) > FRAME_MOUSE_UPDATE (f); > > #ifdef HAVE_XDBE > + fprintf (stderr, "XTframe_up_to_date: %d, %d\n", > + buffer_flipping_blocked_p (), > + FRAME_X_NEED_BUFFER_FLIP (f)); > + > if (!buffer_flipping_blocked_p () > && FRAME_X_NEED_BUFFER_FLIP (f)) > show_back_buffer (f); > @@ -17736,6 +17740,8 @@ x_flush_dirty_back_buffer_on (struct frame *f) > || !FRAME_X_NEED_BUFFER_FLIP (f)) > return; > > + fprintf (stderr, "x_flush_dirty_back_buffer_on: called\n"); Careful with printfs, since we know this problem goes away when there are too many of them. Use fputs whenever you can, since fprintf can be much more expensive.