From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21732: 25.0.50; intermittent failure using windmove when in doc-view buffer Date: Sat, 07 Nov 2015 14:30:45 +0200 Message-ID: <83r3k2outm.fsf@gnu.org> References: <83lhavt0ic.fsf@gnu.org> <874mhiw34z.fsf@gnu.org> <562B3A2D.9060705@gmx.at> <562B4D9C.8050103@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1446899483 29615 80.91.229.3 (7 Nov 2015 12:31:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Nov 2015 12:31:23 +0000 (UTC) Cc: 21732@debbugs.gnu.org, tsdh@gnu.org To: Daniel McClanahan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 07 13:31:12 2015 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 1Zv2eE-0004ik-Vh for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Nov 2015 13:31:11 +0100 Original-Received: from localhost ([::1]:43480 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zv2eE-0000SQ-3m for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Nov 2015 07:31:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zv2eA-0000SK-13 for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2015 07:31:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zv2e6-0004rZ-Q6 for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2015 07:31:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37566) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zv2e6-0004rV-Mt for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2015 07:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zv2e6-0007lc-89 for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2015 07:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Nov 2015 12:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21732 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21732-submit@debbugs.gnu.org id=B21732.144689945729468 (code B ref 21732); Sat, 07 Nov 2015 12:31:02 +0000 Original-Received: (at 21732) by debbugs.gnu.org; 7 Nov 2015 12:30:57 +0000 Original-Received: from localhost ([127.0.0.1]:56507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zv2e0-0007e8-0Q for submit@debbugs.gnu.org; Sat, 07 Nov 2015 07:30:56 -0500 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:40325) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zv2dx-0007Zc-4T for 21732@debbugs.gnu.org; Sat, 07 Nov 2015 07:30:54 -0500 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NXG005002NWJ200@mtaout28.012.net.il> for 21732@debbugs.gnu.org; Sat, 07 Nov 2015 14:29:46 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NXG002FC2PLSO20@mtaout28.012.net.il>; Sat, 07 Nov 2015 14:29:46 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.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:108516 Archived-At: > From: Daniel McClanahan > Date: Sat, 7 Nov 2015 03:51:15 -0600 > Cc: Tassilo Horn , 21732@debbugs.gnu.org, Eli Zaretskii > > Sorry for the late response, I've been working with other things and > haven't had time to analyze it when this was reproduced. Managed to > reproduce it today and had time to attach gdb. Before you check out > the stack trace, note the following paragraph first. > > Eli, thanks for the suggestion to attempt to manually trigger the > error. After viewing the "*Backtrace*" buffer, I manually tried to > enter a huge value for `posn-at-point' (I tried the exact value > 681965) on a doc-view buffer, and received the wholenump error > reliably, but ONLY in the buffer which displays the error I described > in the original post. In other buffers (I tried C, org-mode, and other > doc-view buffers), (posn-at-point 681965 (selected-window)) just > returns nil instead of erroring out. It's interesting to note that > currently the doc-view buffer which I was able to reproduce the error > on is no longer displaying the error when I use `windmove-up', but is > still erroring out when I run (posn-at-point 681965 > (selected-window)). > > In short: > - (posn-at-point 681965 (selected-window)) returns nil on most > buffers. (Replace 681965 with some point outside the buffer range.) > - On doc-view buffers which have already gone into the failure state > (through black magic we don't know yet), it throws the wholenump > error. > - This appears to be a buffer thing, not a window thing, since closing > and reopening the window displaying the failing buffer and running > (posn-at-point 681965 (selected-window)) causes the wholenump error. Thanks for looking into this. I cannot run doc-view here, unfortunately. Can I ask you to step inside pos_visible_p, which is called by Fpos_visible_in_window_p, and see where this negative Y coordinate is produced? I think this somehow happens because doc-view in effect lets Emacs show a large image, but I couldn't reproduce the problem by visiting an image file, so there's probably something I'm missing.