From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#61667: 29.0.60; Failure to redisplay Date: Tue, 21 Feb 2023 17:43:46 +0200 Message-ID: References: <04d7cb31-684c-07c0-ee7b-503514fc1a85@yandex.ru> <83o7pntdfv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2967"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: 61667@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 21 16:44:24 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 1pUUoa-0000eQ-8x for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Feb 2023 16:44:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUUoG-0004tW-Ez; Tue, 21 Feb 2023 10:44:04 -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 1pUUoE-0004t2-Nc for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2023 10:44:02 -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 1pUUoE-0002tY-EN for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2023 10:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pUUoE-0005rk-0x for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2023 10:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Feb 2023 15:44:01 +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.167699423922533 (code B ref 61667); Tue, 21 Feb 2023 15:44:01 +0000 Original-Received: (at 61667) by debbugs.gnu.org; 21 Feb 2023 15:43:59 +0000 Original-Received: from localhost ([127.0.0.1]:57078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUUoA-0005rN-SG for submit@debbugs.gnu.org; Tue, 21 Feb 2023 10:43:59 -0500 Original-Received: from mail-wm1-f45.google.com ([209.85.128.45]:39591) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUUo7-0005r8-Mi for 61667@debbugs.gnu.org; Tue, 21 Feb 2023 10:43:58 -0500 Original-Received: by mail-wm1-f45.google.com with SMTP id o4-20020a05600c4fc400b003e1f5f2a29cso3968671wmq.4 for <61667@debbugs.gnu.org>; Tue, 21 Feb 2023 07:43:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=xEmrLcBPEMaSbBlYK1mXTGttNgKWjvpwQ9cyRZPSM2A=; b=O1cYD4KhZ2ENQiPbP/80BeA/uy/aM5OUTr/4BXKEU1g4pd10qWjsEeBMscSX/RgIi7 T1ZHEvCfrWZBPdhQx65IAYpRaELuPJXk7JEB8FtUdCYmwim6A4p9gDGCvem/KNKi8/xI WX4U6cK3g0QWW5bVN8JWFXT5vsJLxealIUmvpKrpY19/Jdc7O2nAnRxVl1bZNGUjxlyW yPPSPTeYiX/iM5XYBNTXFlHhCX+72Cp6+amXYWsIBcFO4IAefiQXyGDi1BV10U7UFdcu E8v0uSQFvDvBYwE36HRCwBj5i2X3fE8Q9tLPed3a4Ivj0loltVDp7b1UrtzEM5eTA5x7 csAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xEmrLcBPEMaSbBlYK1mXTGttNgKWjvpwQ9cyRZPSM2A=; b=VkCuVWMbWjUxIt58Nd5P9rVZEVU9urp9WdFJ/dufBiI0pqARAtMHR4cCeu5J53tlIA WEn8rxnzMZzqMD1CKsPEilSs9+GOhpGPcQbH2YU9y0K8mZQ8AOJbbjpSikV7DKxPm4zP FmkyXytzc+mQBXYqmnNthVnLpTqd9F66FicB7ysrl1hsxiQyFoSKPylRjiaEmvEGWKEY b6pslYH7eRJSlUxVHNantUU/IM+13djlgGphYT0c281oWN4kVjCuyNRtTmCPIC9qFt6Z l9/per0QhlKwJT/NKGdcT71GO/64MkmraitgryignY6Shvn30UmYBJad3/zHrosAXJvm tmGw== X-Gm-Message-State: AO0yUKVnxWqNmVuEmNvZHTeZNzT9Vs9jOH1so1sQFQA2h7f7Sz7IVsWP 9/AbJIeOpHNQ/rHM8GQQhQQ= X-Google-Smtp-Source: AK7set9Tnrx+IspMmwwmboogRA2m8nZUkp+d+utmBQk8jhJybqiARCa1yrxkyYZ2c7jo/by2+AHyUg== X-Received: by 2002:a05:600c:2ad6:b0:3df:f2a5:49e0 with SMTP id t22-20020a05600c2ad600b003dff2a549e0mr4732440wme.40.1676994229397; Tue, 21 Feb 2023 07:43:49 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id m4-20020a05600c40c400b003e223fe0a3asm4751115wmh.27.2023.02.21.07.43.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Feb 2023 07:43:48 -0800 (PST) Content-Language: en-US In-Reply-To: <83o7pntdfv.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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256289 Archived-At: On 21/02/2023 14:23, Eli Zaretskii wrote: >> Date: Tue, 21 Feb 2023 04:53:58 +0200 >> From: Dmitry Gutov >> >> This has been happening from time to time recently: > > Any idea how recent is "recently"? A month-ish? I also hadn't realized right away that it was the problem with redisplay. Some of the delays might have been a little shorter previously. They are sometimes shorter than 1-2 seconds now as well. >> I visit a file (either through recents or through >> project-find-file), and the buffer stays blank for a while, giving >> an appearance that it's "loading". > > You visit a file that is not already visited in some buffer in the > current Emacs session? Usually, yes. I don't remember an exception to this. > Does it happen only immediately after visiting a file, i.e. upon what > should have been the initial display of the file you visited? Yes. > Or does > it happen in other situations as well? If this happens only upon > visiting an unvisited file, does it happen every time you visit such a > file? Only sometimes. Randomly. > Do you have some features enabled that affect the initial display of a > visited file? Like save-place or something else that invokes a hook > upon visiting? Or some display-related feature that could be > relevant? If you do, what are those features/hooks? I did have save-place set to t, but I can reproduce it without that. Other hooks upon visiting? diff-hl-mode adds to find-file-hook to check VCS status. But the file I'm currently reproducing it with is in non-VCS controlled directory, so no visualization is added. >> This happens with my personal configuration, and rather randomly. How >> should I go about debugging it? > > Does it help to disable double buffering? Looks like it does: emacs --eval "(modify-frame-parameters nil '((inhibit-double-buffering . t)))" That "fixes" the scenario. :-( I also tried rebuilding Emacs with '--with-xdbe=no', to eliminate additional factors such as Lisp evaluation and frame parameter modification, but it fails with xterm.c: In function ‘x_end_cr_clip’: xterm.c:5833:7: warning: implicit declaration of function ‘FRAME_X_DOUBLE_BUFFERED_P’ [-Wimplicit-function-declaration] 5833 | if (FRAME_X_DOUBLE_BUFFERED_P (f)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ xterm.c:5833:7: warning: nested extern declaration of ‘FRAME_X_DOUBLE_BUFFERED_P’ [-Wnested-externs] xterm.c: In function ‘handle_one_xevent’: xterm.c:20904:17: warning: implicit declaration of function ‘x_drop_xrender_surfaces’; did you mean ‘font_drop_xrender_surfaces’? [-Wimplicit-function-declaration] 20904 | x_drop_xrender_surfaces (f); | ^~~~~~~~~~~~~~~~~~~~~~~ | font_drop_xrender_surfaces xterm.c:20904:17: warning: nested extern declaration of ‘x_drop_xrender_surfaces’ [-Wnested-externs] ... ... CCLD temacs /usr/bin/ld: xterm.o: in function `x_update_end': /home/dgutov/vc/emacs/src/xterm.c:7361: undefined reference to `FRAME_X_DOUBLE_BUFFERED_P' /usr/bin/ld: xterm.o: in function `x_end_cr_clip': /home/dgutov/vc/emacs/src/xterm.c:5833: undefined reference to `FRAME_X_DOUBLE_BUFFERED_P' /usr/bin/ld: /home/dgutov/vc/emacs/src/xterm.c:5833: undefined reference to `FRAME_X_DOUBLE_BUFFERED_P' /usr/bin/ld: /home/dgutov/vc/emacs/src/xterm.c:5833: undefined reference to `FRAME_X_DOUBLE_BUFFERED_P' /usr/bin/ld: /home/dgutov/vc/emacs/src/xterm.c:5833: undefined reference to `FRAME_X_DOUBLE_BUFFERED_P' /usr/bin/ld: xterm.o:/home/dgutov/vc/emacs/src/xterm.c:5833: more undefined references to `FRAME_X_DOUBLE_BUFFERED_P' follow even after 'make extraclean'. Revision e83c78b8c7784254. > Do you see anything interesting in *Messages* after such an incident? Nope.