unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: Ian Perryman <iperryman@xtreme-eda.com>,
	Paul Eggert <eggert@cs.ucla.edu>
Cc: 23842@debbugs.gnu.org
Subject: bug#23842: 24.4; Runaway background process
Date: Mon, 27 Jun 2016 09:24:06 -0400	[thread overview]
Message-ID: <02ecaa18-2108-e5c7-c7c4-56896a9c2869@cornell.edu> (raw)
In-Reply-To: <CANoMOPc57o-Y-c1qNG8GPBNYmODsJqqsJBKhq2rWB=BTs_w_Qw@mail.gmail.com>

On 6/27/2016 8:46 AM, Ian Perryman wrote:
> I tried down grading to emacs 24.1.1 in windows to see if the problem
> still exists.
>
> The good news is that the process does not runaway to 100% CPU like with
> emacs 24.4, but it still does not do the completion.  I get the "wrong
> type argument: window-live-p, #<window 5>"
>
> The window # would change as I tried it multiple times.
>
> This appears to the be the same issue that is now reported in emacs 25.
>
> The same error is given in emacs 23.1.1
>
> Not sure when this worked.

I know virtually nothing about how completion works, but a glance at 
verilog-mode.el shows the following code, in both 
verilog-show-completions and verilog-complete-word:

     ;; Show possible completions in a temporary buffer.
     (with-output-to-temp-buffer "*Completions*"
       (display-completion-list allcomp))
     ;; Wait for a key press. Then delete *Completion*  window
     (momentary-string-display "" (point))
     (delete-window (get-buffer-window (get-buffer "*Completions*")))))

It's hard to see how this could possibly work.  As soon as you click in 
the *Completion* window, the window is deleted.  Here's a lisp backtrace:

Debugger entered--Lisp error: (wrong-type-argument window-live-p 
#<window 6>)
   get-char-property(129 follow-link #<window 6>)
   mouse-posn-property((#<window 6> 129 (35 . 76) 415716125 nil 129 (3 . 
4) nil (8 . 4) (9 . 18)) follow-link)
   mouse-on-link-p((#<window 6> 129 (35 . 76) 415716125 nil 129 (3 . 4) 
nil (8 . 4) (9 . 18)))
   mouse--down-1-maybe-follows-link(nil)

The error is generated when Fget_char_property (in textprop.c) calls 
get_char_property_and_overlay, which calls CHECK_LIVE_WINDOW on a window 
that has already been deleted.

Ken





  reply	other threads:[~2016-06-27 13:24 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-24 19:08 bug#23842: 24.4; Runaway background process Ian Perryman
2016-06-24 20:02 ` bug#23842: Dribble files Ian Perryman
2016-06-25  7:00   ` Eli Zaretskii
2016-06-26  0:55     ` Ian Perryman
2016-06-25  6:50 ` bug#23842: 24.4; Runaway background process Eli Zaretskii
2016-06-25 20:49   ` Noam Postavsky
2016-06-26  2:37     ` Eli Zaretskii
2016-06-26  8:51 ` Paul Eggert
2016-06-26 17:04   ` Glenn Morris
2016-06-26 19:02     ` Ian Perryman
2016-06-26 19:50       ` Paul Eggert
2016-06-27 12:46         ` Ian Perryman
2016-06-27 13:24           ` Ken Brown [this message]
2016-06-27 13:51             ` Ian Perryman
2016-08-14  2:36               ` npostavs
2016-12-20  3:58                 ` npostavs
2016-06-27 15:49             ` Eli Zaretskii
2016-06-27 16:54               ` Ken Brown
2016-06-26 19:48     ` Paul Eggert
2016-12-21 23:37 ` Wilson Snyder
2016-12-22  2:44   ` npostavs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=02ecaa18-2108-e5c7-c7c4-56896a9c2869@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=23842@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=iperryman@xtreme-eda.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).