From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.ciao.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#34138: 27.0.50; Delayed display of PDF file images Date: Mon, 21 Jan 2019 23:27:58 +0100 Message-ID: <87a7jtd4sx.fsf@gmx.net> References: <871s58e4gh.fsf@gmx.net> <5C443CB1.3050208@gmx.at> <87h8e3h90z.fsf@gmx.net> <5C4483B7.1060604@gmx.at> <87d0orgz0a.fsf@gmx.net> <837eezbazk.fsf@gnu.org> <878szfgwdu.fsf@gmx.net> <8336pnb9cq.fsf@gnu.org> <874la3gujy.fsf@gmx.net> <831s57b7ev.fsf@gnu.org> <87zhrvfdzu.fsf@gmx.net> <83zhrv9qe5.fsf@gnu.org> <87sgxnf48d.fsf@gmx.net> <83pnsq9f47.fsf@gnu.org> <871s56dm5q.fsf@gmx.net> <83lg3e9dd6.fsf@gnu.org> <87womxdgdq.fsf@gmx.net> <83fttlam3b.fsf@gnu.org> <87sgxlrfgg.fsf@hochschule-trier.de> <83bm49aj3q.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.org; posting-host="ciao.gmane.org:195.159.176.228"; logging-data="168436"; mail-complaints-to="usenet@ciao.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 34138@debbugs.gnu.org, Andreas Politz , tsdh@gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 21 23:32:24 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gli7B-000hh3-Pe for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jan 2019 23:32:22 +0100 Original-Received: from localhost ([127.0.0.1]:35135 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gli7A-0003GX-Dv for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jan 2019 17:32:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gli6z-0003E9-Jp for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 17:32:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gli3z-0003Rj-5J for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 17:29:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41346) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gli3y-0003RG-Vl for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 17:29:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gli3y-0003zf-EJ for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 17:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Jan 2019 22:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34138 X-GNU-PR-Package: emacs Original-Received: via spool by 34138-submit@debbugs.gnu.org id=B34138.154810969115287 (code B ref 34138); Mon, 21 Jan 2019 22:29:02 +0000 Original-Received: (at 34138) by debbugs.gnu.org; 21 Jan 2019 22:28:11 +0000 Original-Received: from localhost ([127.0.0.1]:40627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gli38-0003yV-UC for submit@debbugs.gnu.org; Mon, 21 Jan 2019 17:28:11 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:36993) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gli37-0003yH-50 for 34138@debbugs.gnu.org; Mon, 21 Jan 2019 17:28:10 -0500 Original-Received: from rosalinde ([178.1.151.238]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MJSQ7-1gndj01oLr-0035FL; Mon, 21 Jan 2019 23:28:01 +0100 In-Reply-To: <83bm49aj3q.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 21 Jan 2019 21:47:21 +0200") X-Provags-ID: V03:K1:gac+eTXcKecX/xRDnOqEs0yj1agRSXjR1EKhbNN0Z6slBBD0Fsj Gr/nEC3vOBHAwf5F6QQ681RM5yopsAErk08Oea5mw9P7cC5jfHjEmLgQVJs/kgmge/wHT7L vjQqek5l856PMJcvrKlawqYK4ZPxBpxz3E+5rnIcRNhfADpqDm0JGiR7Ku2hVVzixh5ITfD IRmCoE7sVCLp2TWqf0OpQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:zFXuW+qxmgg=:WYvSdleabjAypmtKuqv76+ AnYYEmxk4qgIAn8yqyQvXpIL7JrMHnhgLOG/LAHjlVn7s+b0rGfcS0xGx5SG8Gi9h3qbbSD6d i2d7OuutcAYHSSI+VPaisBQlidblFnjmojj2BtiY4pqTLNMUwOuP8TLrq8mApl9m6c/bE4AIe vWzQ8bpa7rKgttKwLPaDL6WjC4zMl+SRs/xTJZ/PHTD7MIkeP41cPjmqA4RTebwvb3O9mv5WK 1ZDawxpIOQAhjFMbFfErPPWR/jRDt+S+m/+jFGSLK94b2IeWT2wLaQG5U4vcQBLohJBjqPVOk +Hwdd69tN2Dk6F7tEzJydtrYivqHLSlT71ThSnm0O+nBslgSezb2G/PkUPJPpG35UbkKLFAei mdBP3VoO3RSfUObX7pbxc7JPcleoX4/PEpL2DaihFWw2HFPFAGPm+Y0A9eiAzzcdR/a5zRF2f GhIZ5kh3lSxnJggp/dQWBDYPGyxA0vId3mfjHvvVisceuTM3zaQfjRsaTbfcgm9AYTNSs6qZJ VuesWPSMlyCbe4VuE79xpo0GS03KcBZb57bUMM1kgiW7GaTSS2YpCYfhcwujjr/rA4R5Ah1N0 UOfHC45xmz26uc1WO4yxwkvAV8aRno5nqSROd+CSQa7FxLn0G/B/RsgoJvnzZPuSh913pxmMu Styyu1Yb89Ozb+e+YHvOwzgU5bnuuMc8ASkNijKFWXRbm8K27GMN83JRZg2EDULyKoJva7Jx4 PcUN5XxTaAVpGy88TZ814Y+JIeo1tKXeW4dN5yspIjsz9z9RMtXMVMqbuPTjDW2RvzdIChb5 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:154665 Archived-At: --=-=-= Content-Type: text/plain On Mon, 21 Jan 2019 21:47:21 +0200 Eli Zaretskii wrote: >> From: Andreas Politz >> Cc: Stephen Berman , rudalics@gmx.at, >> 34138@debbugs.gnu.org, tsdh@gnu.org >> Date: Mon, 21 Jan 2019 20:14:07 +0100 >> >> image-mode uses window-configuration-change-hook to check whether a new >> window for the buffer it was activated for was created. In this case it >> runs the hook image-mode-new-window-functions. This is the hook >> pdf-tools attaches itself to in order to create an overlay with a window >> property and the image of the current page. >> >> Usually, i.e. in Emacs 26.1, this is sufficient for the image to be >> visible immediately (or at least immediately after the function has >> returned and Emacs is idle). Conversely, in the current master branch, >> the image is not visible until, as it seems, the next redraw cycle. >> >> Note, that I don't see a delay. Rather nothing seems to happen until I >> trigger a redisplay, for example via M-x. > > So it's indeed a redisplay problem. Can you build both Emacs 26 and > Emacs 27 with --enable-checking, then disable blink-cursor-mode and > global-eldoc-mode, then invoke "M-x trace-redisplay", and show the > trace displayed on stderr in both versions when you visit a PDF file? > Please invoke trace-redisplay _before_ you visit the PDF file. I'm > especially interested in what happens in Emacs 27 after you visit the > PDF file, but _before_ you type "M-x" that causes the image to be > displayed. IOW, what trace do you see after visiting the PDF file > during that time that "nothing seems to happen", as compared to what > happens in Emacs 26. I did this and have attached the traces. Both show the PDF files (I used different ones in each Emacs) being opened early in the trace: in emacs-26 the image was immediately displayed and the trace continued and then paused and I killed emacs; in emacs-master the first trace lines showing the PDF file correspond to the raw PDF being displayed, following by the same kind of trace lines as in emacs-26, but then two lines with the PDF file again, which is when the image display appeared, after which the trace paused and I killed emacs. As in all my other test runs, here again the image appeared without any keyboard input, but interestingly and surprisingly, this time it took less than 10 seconds, as compared to 30-60 seconds in most of the other runs (which were without tracing). Steve Berman --=-=-= Content-Type: text/plain Content-Disposition: attachment Content-Description: emacs-26 trace-redisplay steve [ ~/build/emacs-26/src ]$ ./emacs redisplay_preserve_echo_area (2) redisplay_internal 0 0x1314c30 (manual): same window start 0x1314c30 (manual): 1 redisplay_internal 0 redisplay_preserve_echo_area (8) redisplay_internal 0 redisplay_preserve_echo_area (8) redisplay_internal 0 redisplay_internal 0 0x1314c30 (R-lang.pdf): same window start 0x1314c30 (R-lang.pdf): 1 redisplay_preserve_echo_area (8) redisplay_internal 0 redisplay_preserve_echo_area (8) redisplay_internal 0 redisplay_preserve_echo_area (8) redisplay_internal 0 redisplay_preserve_echo_area (12) redisplay_internal 0 redisplay_preserve_echo_area (9) redisplay_internal 0 redisplay_internal 0 redisplay_preserve_echo_area (12) redisplay_internal 0 redisplay_preserve_echo_area (9) redisplay_internal 0 redisplay_internal 0 redisplay_preserve_echo_area (12) redisplay_internal 0 redisplay_preserve_echo_area (9) redisplay_internal 0 redisplay_internal 0 redisplay_preserve_echo_area (12) redisplay_internal 0 redisplay_preserve_echo_area (9) redisplay_internal 0 redisplay_internal 0 redisplay_preserve_echo_area (12) redisplay_internal 0 redisplay_preserve_echo_area (9) redisplay_internal 0 redisplay_internal 0 redisplay_preserve_echo_area (12) redisplay_internal 0 redisplay_preserve_echo_area (9) redisplay_internal 0 redisplay_internal 0 redisplay_preserve_echo_area (12) redisplay_internal 0 redisplay_preserve_echo_area (9) redisplay_internal 0 redisplay_internal 0 redisplay_preserve_echo_area (12) redisplay_internal 0 redisplay_preserve_echo_area (9) redisplay_internal 0 redisplay_internal 0 redisplay_preserve_echo_area (12) redisplay_internal 0 redisplay_preserve_echo_area (9) redisplay_internal 0 redisplay_internal 0 redisplay_internal 0 redisplay_preserve_echo_area (8) redisplay_internal 0 steve [ ~/build/emacs-26/src ]$ --=-=-= Content-Type: text/plain Content-Disposition: attachment Content-Description: emacs-master trace-redisplay steve [ ~/build/emacs/src ]$ ./emacs redisplay_preserve_echo_area (2) redisplay_internal 0 0x17bcd50 (manual): same window start 0x17bcd50 (manual): 1 redisplay_internal 0 redisplay_internal 0 0x17bcd50 (R-data.pdf): same window start 0x17bcd50 (R-data.pdf): 1 redisplay_preserve_echo_area (8) redisplay_internal 0 redisplay_preserve_echo_area (8) redisplay_internal 0 redisplay_preserve_echo_area (12) redisplay_internal 0 redisplay_preserve_echo_area (9) redisplay_internal 0 redisplay_internal 0 redisplay_preserve_echo_area (12) redisplay_internal 0 redisplay_preserve_echo_area (9) redisplay_internal 0 redisplay_internal 0 redisplay_preserve_echo_area (12) redisplay_internal 0 redisplay_preserve_echo_area (9) redisplay_internal 0 redisplay_internal 0 redisplay_preserve_echo_area (12) redisplay_internal 0 redisplay_preserve_echo_area (9) redisplay_internal 0 redisplay_internal 0 redisplay_preserve_echo_area (12) redisplay_internal 0 redisplay_preserve_echo_area (9) redisplay_internal 0 redisplay_internal 0 redisplay_preserve_echo_area (12) redisplay_internal 0 redisplay_preserve_echo_area (9) redisplay_internal 0 redisplay_internal 0 redisplay_preserve_echo_area (12) redisplay_internal 0 redisplay_preserve_echo_area (9) redisplay_internal 0 redisplay_internal 0 redisplay_preserve_echo_area (12) redisplay_internal 0 redisplay_preserve_echo_area (9) redisplay_internal 0 redisplay_internal 0 redisplay_preserve_echo_area (12) redisplay_internal 0 redisplay_preserve_echo_area (9) redisplay_internal 0 redisplay_internal 0 redisplay_preserve_echo_area (8) redisplay_internal 0 0x17bcd50 (R-data.pdf): same window start 0x17bcd50 (R-data.pdf): 1 redisplay_preserve_echo_area (9) redisplay_internal 0 redisplay_preserve_echo_area (8) redisplay_internal 0 redisplay_internal 0 redisplay_preserve_echo_area (8) redisplay_internal 0 steve [ ~/build/emacs/src ]$ --=-=-=--