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 16:20:44 +0100 Message-ID: <87imyiox4j.fsf@gmx.net> References: <871s58e4gh.fsf@gmx.net> <5C443CB1.3050208@gmx.at> <87h8e3h90z.fsf@gmx.net> <5C4483B7.1060604@gmx.at> <87womyk0al.fsf@gnu.org> <5C457A3C.5040201@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.org; posting-host="ciao.gmane.org:195.159.176.228"; logging-data="16175"; 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 , Tassilo Horn To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 21 16:59:19 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 1glbyY-0003vC-CP for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jan 2019 16:59:02 +0100 Original-Received: from localhost ([127.0.0.1]:55141 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glbOT-0007SE-Gy for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jan 2019 10:21:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glbNn-000733-Ll for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 10:21:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1glbNm-0003I6-VX for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 10:21:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41051) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1glbNm-0003Hz-SB for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 10:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1glbNm-0008Po-Mh for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 10:21: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 15:21: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.154808405532306 (code B ref 34138); Mon, 21 Jan 2019 15:21:02 +0000 Original-Received: (at 34138) by debbugs.gnu.org; 21 Jan 2019 15:20:55 +0000 Original-Received: from localhost ([127.0.0.1]:40331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glbNf-0008P0-BP for submit@debbugs.gnu.org; Mon, 21 Jan 2019 10:20:55 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:50675) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glbNd-0008Ol-I0 for 34138@debbugs.gnu.org; Mon, 21 Jan 2019 10:20:54 -0500 Original-Received: from rosalinde ([178.1.151.238]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LiDKt-1hY7I62EMt-00nUVk; Mon, 21 Jan 2019 16:20:45 +0100 In-Reply-To: <5C457A3C.5040201@gmx.at> (martin rudalics's message of "Mon, 21 Jan 2019 08:52:28 +0100") X-Provags-ID: V03:K1:tZpLP1AtZ8zNwI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-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:154638 Archived-At: On Mon, 21 Jan 2019 08:52:28 +0100 martin rudalics wrote: >>> It seems that 'doc-view-new-window-function' fails in some way. This >>> time I have to CC Tassilo. Maybe he has a clue. >> >> No, sorry, not really. I've tried reproducing Stephen's issue both with >> -Q (using doc-view) and with my configuration (which also uses >> pdf-view-mode). But for me the greeting text and then the image of the >> first page for doc-view or the image of the first page for pdf-view-mode >> are displayed without any delay. >> >> I'm running the current master, 5961e4fa42. > > Strange because Andreas said that he can reproduce it as well. I'm > afraid we have to wait for further people to kick in to get a common > pattern of why this can fail. To me this looks like a race condition > where with the old window configuration change convention the image > producing system was reliably incapable of providing the image at the > time the hook was run while with the new convention the image may have > been already produced at the time the hook is run. It does seem like a race condition. I also had this suspicion after getting surprising and seemingly conflicting gdb backtraces that Eli asked for. Perhaps further evidence in this direction comes from two new observations I have made: there is no delay when visiting a PDF file via bookmark-jump or when opening a PDF attachment in Gnus. I tried stepping through the respective functions called in these cases (pdf-view-bookmark-jump-handler and mm-display-external) but didn't see why the behavior differs, which again suggests it's in redisplay. Steve Berman