From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#34138: 27.0.50; Delayed display of PDF file images Date: Sun, 20 Jan 2019 12:18:36 +0100 Message-ID: <87h8e3h90z.fsf@gmx.net> References: <871s58e4gh.fsf@gmx.net> <5C443CB1.3050208@gmx.at> NNTP-Posting-Host: ciao.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ciao.gmane.org 1547983151 222947 195.159.176.228 (20 Jan 2019 11:19:11 GMT) X-Complaints-To: usenet@ciao.gmane.org NNTP-Posting-Date: Sun, 20 Jan 2019 11:19:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 34138@debbugs.gnu.org, Andreas Politz , Andreas Politz To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 20 12:19:09 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.84_2) (envelope-from ) id 1glB85-000vyP-Gl for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Jan 2019 12:19:05 +0100 Original-Received: from localhost ([127.0.0.1]:38412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glB8E-0006aP-Bg for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Jan 2019 06:19:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glB83-0006YB-NV for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2019 06:19:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1glB83-0003MI-0o for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2019 06:19:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39091) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1glB82-0003Ll-Tp for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2019 06:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1glB82-0003o1-9X for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2019 06:19: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: Sun, 20 Jan 2019 11:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34138 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 34138-submit@debbugs.gnu.org id=B34138.154798313714618 (code B ref 34138); Sun, 20 Jan 2019 11:19:02 +0000 Original-Received: (at 34138) by debbugs.gnu.org; 20 Jan 2019 11:18:57 +0000 Original-Received: from localhost ([127.0.0.1]:38372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glB7x-0003ni-Ea for submit@debbugs.gnu.org; Sun, 20 Jan 2019 06:18:57 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:35217) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glB7u-0003nT-NO for 34138@debbugs.gnu.org; Sun, 20 Jan 2019 06:18:55 -0500 Original-Received: from rosalinde ([92.73.79.34]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LngRb-1hQong26yF-00hwwj; Sun, 20 Jan 2019 12:18:39 +0100 In-Reply-To: <5C443CB1.3050208@gmx.at> (martin rudalics's message of "Sun, 20 Jan 2019 10:17:37 +0100") X-Provags-ID: V03:K1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8MKgtaM0No 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:154608 Archived-At: On Sun, 20 Jan 2019 10:17:37 +0100 martin rudalics wrote: >> Since a recent commit, I'm seeing a delay in the display of PDF files as >> images (both with -Q and with my initializations). I see this in both >> doc-view-mode and pdf-view-mode (from the pdf-tools package, available >> from MELPA). In doc-view-mode, on visiting a PDF file, it at first >> appears as raw PDF, as when visiting it in fundamental-mode, and only >> after a few seconds does the image appear. > > I cannot see how 'doc-view-mode' could be possibly affected by the > changes you identified below. It doesn't run any of the affected > hooks. Have you tried running 'doc-view-mode' without loading > 'pdf-view-mode'? Yes, as I noted, I also see this with -Q. >> The same happens in >> pdf-view-mode but there the delay is much longer -- with some files it >> takes close to a minute on my machine before the image is displayed, >> unless I provide keyboard input, which makes the image appear >> immediately. > > These might be related although going through the sources of > =E2=80=98pdf-view-mode=E2=80=99 I cannot see any problem. 'pdf-util-wind= ow-attach' > uses a workaround for deleting a window after running > 'window-configuration-change-hook' and there I see a different source > of trouble: > > 'display-buffer-split-below-and-attach' calls 'window--display-buffer' > with a fifth argument and that has been changed in another commit. > Please remove the display-buffer-mark-dedicated argument in that call > and see whether the problem persists. CC-ing Andreas to make an > appropriate change in pdf-util.el. AFAICS display-buffer-split-below-and-attach is only used in the defcustom pdf-annot-edit-contents-display-buffer-action, which specified the "Display action when showing the edit buffer", so it's irrelevent for just displaying the PDF file. Anyway, I modified and instrumented the function, but it wasn't called on visiting the file. >> In addition, in pdf-view-mode this appears in *Message*: >> Error during redisplay: (eval (pdf-misc-size-indication)) signaled >> (error "Invalid image specification: nil"). > > This should come from the 'image-display-size' call in > 'pdf-view-image-size'. Could you get a backtrace for it? There is no Lisp backtrace, just the "error during redisplay" message. That eval expression is a modeline construct, so I guess this needs to be debugged at the C level. I could try to do that but probably need guidance. (Ah, I just saw Andreas's post that he could reproduce the issue, so hopefully he can debug it.) Steve Berman