From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#12876: 24.3.50; DocView problem with cached files Date: Tue, 13 Nov 2012 12:12:42 +0100 Message-ID: <87ip99g3it.fsf@rosalinde.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352805235 25038 80.91.229.3 (13 Nov 2012 11:13:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Nov 2012 11:13:55 +0000 (UTC) To: 12876@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 13 12:14:02 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TYERL-0004ti-B8 for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Nov 2012 12:13:59 +0100 Original-Received: from localhost ([::1]:34517 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYER2-00083H-Nk for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Nov 2012 06:13:40 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYEQy-000835-9Y for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2012 06:13:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYEQv-0004PQ-6y for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2012 06:13:36 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYEQv-0004PK-3q for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2012 06:13:33 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TYERO-0001iN-7d for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2012 06:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Nov 2012 11:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12876 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13528052276562 (code B ref -1); Tue, 13 Nov 2012 11:14:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Nov 2012 11:13:47 +0000 Original-Received: from localhost ([127.0.0.1]:37614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYER6-0001hj-0b for submit@debbugs.gnu.org; Tue, 13 Nov 2012 06:13:47 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43510) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYER0-0001hY-IP for submit@debbugs.gnu.org; Tue, 13 Nov 2012 06:13:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYEQU-0004Js-81 for submit@debbugs.gnu.org; Tue, 13 Nov 2012 06:13:09 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:44050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYEQU-0004Jo-4k for submit@debbugs.gnu.org; Tue, 13 Nov 2012 06:13:06 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYEQQ-0007wP-Up for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2012 06:13:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYEQN-0004IM-SB for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2012 06:13:02 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:36091) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TYEQN-0004He-Ix for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2012 06:12:59 -0500 Original-Received: (qmail invoked by alias); 13 Nov 2012 11:12:45 -0000 Original-Received: from i59F54C6E.versanet.de (EHLO rosalinde.fritz.box) [89.245.76.110] by mail.gmx.net (mp033) with SMTP; 13 Nov 2012 12:12:45 +0100 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX19aSiMAsLpaVsybAqvQrdqcZIW4mWf3XyCx/6VFxD fINlQNEckS3K6g User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -4.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: -4.2 (----) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66857 Archived-At: When I revisit a PDF file that DocView has cached (also when starting with -Q, with the cache /tmp/docview1000), trying to scroll past the bottom or top of the page fails with the error "doc-view-scroll-up-or-next-page: Wrong type argument: number-or-marker-p, nil" or "doc-view-scroll-down-or-previous-page: Wrong type argument: number-or-marker-p, nil" and in either case also with "Error during redisplay: (eval (number-to-string (doc-view-current-page))) signaled (wrong-type-argument numberp nil)". In addition, the page number indication in the mode line looks odd: e.g. for a one page document it shows "P/1", for a five page document it shows "P/5" (only the first page is displayed). This problem vanishes if I type `C-c C-c' to view the PDF source and then type it again to redisplay the image: now scrolling works and the mode line displays "P1/1" or "P1/5". If I kill the buffer and revisit the cached file, the problem reoccurs. Instead of `C-c C-c', typing `W' or `H' also redisplays the image, and now scrolling works but the size is unaltered; repeating `W' or `H' correctly displays the changed size. Finally, if I delete the cache and then revisit the file, there is no problem (but there is as soon as I revisit a cached file). The problem does not seem to happen with large PDF that have many pages; maybe these are not cached. It also does not happen with PS files, but those are initially visited in ps-mode and I have to type `C-c C-c' to view the image, so this may circumvent the problem I see with PDF files (I currently cannot view ODF or DOCX files with DocView). I think this problem started some time between trunk revisions 110689 and 110748 (it happened with my build from the latter but not with my build from the former revision); I haven't had time to bisect. It also happens with the emacs-24 branch, revno 110854; it does not happen with the openSUSE build of 24.2 from 2012-10-10. In GNU Emacs 24.3.50.1 (x86_64-suse-linux-gnu, GTK+ Version 3.4.4) of 2012-11-12 on rosalinde Bzr revision: 110874 monnier@iro.umontreal.ca-20121112204343-9y1tr86dl71iztk7 Windowing system distributor `The X.Org Foundation', version 11.0.11203000 System Description: openSUSE 12.2 (x86_64) Configured using: `configure '--without-toolkit-scroll-bars' 'CFLAGS=-g3 -O0'' Recent messages: Error during redisplay: (eval (number-to-string (doc-view-current-page))) signaled (wrong-type-argument numberp nil) [7 times] DocView: using cached files! Type C-c C-c to toggle between editing or viewing the document. Error during redisplay: (eval (number-to-string (doc-view-current-page))) signaled (wrong-type-argument numberp nil) Quit Opening nntp server on news.gmane.org... gnutls.c: [1] Note that the security level of the Diffie-Hellman key exchange has been lowered to 256 bits and this may allow decryption of the session data