GNU bug report logs -
#29548
25.2; How to DEBUG get-device-terminal
Previous Next
Reported by: Live System User <nyc4bos <at> aol.com>
Date: Sun, 3 Dec 2017 15:43:01 UTC
Severity: normal
Tags: moreinfo, wontfix
Merged with 22362,
23378
Found in versions 24.5, 25.0.92, 25.2
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 29548 <at> debbugs.gnu.org (full text, mbox):
Live System User <nyc4bos <at> aol.com> writes:
> Hi,
>
> I currently have an Emacs (GUI) proceaa giving the
> error:
>
> get-device-terminal: Invalid argument #<terminal 5> in
> 'get-device-terminal'
> Error running timer battery-update-handler' (error Invalid argument
> #<terminal 5> in 'get-device-terminal'")
>
> I belive this happened in my setup after I did the following
> in conjuction with an Emacs daemon process:
>
> (From a terminall shell prompt)
> $ emacsclient -c file1.txt
> (Emacs frame pops up)
>
> From another terminal shell prompt::
> $ emacsclient -t file1.txt
> (terminal shows Emacs with file1.txt buffer)
> 'C-x 5 0' "(delete-frame)" in Emacs (TTY)
> (terminal "clears" -- Emacs (TTY) mo longer on scree, as
> expected, but mot returned to system shell prompt)
> (Emacs (GUI) frame starts showing 'get-device-terminql'
> error messages abd is umresponsive to any keyboard input)
>
> This Emacs process is still avaiable to GDB, if useful.
Looks like that error comes from a condition-case-unless-debug handler
(in timer-event-handler). Can you set `debug-on-error' from an
emacsclient and get a backtrace? Otherwise I think 'break Fsignal' in
GDB should give some info as well (make sure that src/.gdbinit is
sourced so you get a lisp backtrace in addition to the C one).
This bug report was last modified 6 years and 134 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.