all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#46607: 25.2; Emacs hangs with Error running timer 'blink-cursor-start'
@ 2021-02-17 23:09 Peter Flynn
  2021-02-18 11:51 ` Lars Ingebrigtsen
  2021-02-18 14:05 ` Eli Zaretskii
  0 siblings, 2 replies; 18+ messages in thread
From: Peter Flynn @ 2021-02-17 23:09 UTC (permalink / raw)
  To: 46607

For a blow-by-blow account, see
https://emacs.stackexchange.com/questions/36612/emacs-hung-with-error-running-timer-blink-cursor-start?noredirect=1#comment99937_36612

Summary:
====================================================================
The moment I start Emacs, I get the error message

Error running timer 'blink-cursor-start': (wrong-type-argument listp
0.5)

It then refuses all keyboard input; for example C-x d gets the error
message Wrong type argument: listp 10
====================================================================

I managed to run Emacs without the suggested -Q just enough to open the
messages buffer with the mouse and grab the contents. Then quit and run
again with -Q and paste the message contents into a file to save
it. This is what it says:

Loading 00debian-vars...done
Loading /etc/emacs/site-start.d/50asymptote.el (source)...done
Loading /etc/emacs/site-start.d/50autoconf.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el 
(source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el 
(source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...
Loading cjk-enc...done
Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...done
Loading /etc/emacs/site-start.d/50latex-cjk-thai.el (source)...done
Loading /etc/emacs/site-start.d/50texlive-lang-english.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
setq: Wrong type argument: listp, 10
Error running timer ‘blink-cursor-start’: (wrong-type-argument listp 
0.5) [2 times]
setq: Wrong type argument: listp, 0.7
Error running timer ‘blink-cursor-start’: (wrong-type-argument listp 
0.5) [5 times]
Mark set
Error running timer ‘blink-cursor-start’: (wrong-type-argument listp 0.5)
setq: Wrong type argument: listp, 0.7 [2 times]
Error running timer ‘blink-cursor-start’: (wrong-type-argument listp 0.5)
setq: Wrong type argument: listp, 0.7
Error running timer ‘blink-cursor-start’: (wrong-type-argument listp 
0.5) [4 times]

But I don't know where blink-cursor-start is called, or why it's
failing, but from comments in the emacs.se discussion, frame.el may be
involved.

The error is evident in the recent Linuxes I have installed from Ubuntu
17 onwards (currently present in Mint 19 and 20).
It is NOT connected with my personal .emacs because the error is present
even when there is no .emacs in the user account (or anywhere else).

user31744 just posted a confirmation that they get the identical error:

> I don't have an answer, I'm just posting to add another piece to the
> puzzle. I just upgraded my MacBook Pro to Catalina. Before this, I've
> had no problems with emacs. Now, when I start it without -Q, I have
> the 'blink-cursor-start' issue. It doesn't matter whether I'm starting
> emacs-app or the emacs you get if you do port install emacs
> +x11. Doing a (set debug-on-error) as the first statement in my
> .emacs, I get the following traceback. Debugger entered--Lisp error:
> (wrong-type-argument listp 0.5) cdr(0.5) (setq time (cdr time)) (prog1
> time (setq time (cdr time))) (car-safe (prog1 time (setq t – user31744
> Feb 10 at 1:43

Update: I have managed to get around it temporarily with the following
Bash script which uses xdotool to open my .emacs and do an eval-buffer
(yes I know, gag).
> #! /bin/bash
> 
> /usr/bin/emacs -Q $1 $2 $3 &
> sleep 8
> EWIN=`xdotool search --class Emacs | tail -1`
> 
> xdotool windowactivate $EWIN
> #key ctrl+x ctrl+f type ~/.emacs key ctrl+j type yes
> 
> # xdotool key --window $EWIN "ctrl+x" "d" "ctrl+j"
> xdotool key "ctrl+x" "ctrl+f"
> xdotool type "~/.emacs"
> xdotool key "ctrl+j"
> xdotool type "yes"
> xdotool key "ctrl+j"
> xdotool key --delay 20 "Escape" "x"
> xdotool type "eval-buffer"
> xdotool key --delay 20 "ctrl+j"
> xdotool key --delay 20 "ctrl+x" "k" "ctrl+j"

Maybe there is a timing error somewhere in what Emacs is loading from
its own config.

Stay safe
Peter

=====================================================================

In GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21)
  of 2017-09-22, modified by Debian built on lgw01-amd64-050
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
System Description:	Linux Mint 19.2 Tina

Configured using:
  'configure --build x86_64-linux-gnu --prefix=/usr
  --sharedstatedir=/var/lib --libexecdir=/usr/lib
  --localstatedir=/var/lib --infodir=/usr/share/info
  --mandir=/usr/share/man --with-pop=yes
 
--enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp
  --with-sound=alsa --without-gconf --build x86_64-linux-gnu
  --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib
  --localstatedir=/var/lib --infodir=/usr/share/info
  --mandir=/usr/share/man --with-pop=yes
 
--enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp
  --with-sound=alsa --without-gconf --with-x=yes --with-x-toolkit=gtk3
  --with-toolkit-scroll-bars 'CFLAGS=-g -O2
  -fdebug-prefix-map=/build/emacs25-jYekUr/emacs25-25.2+1=. 
-fstack-protector-strong
  -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time
  -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro''

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11

Important settings:
   value of $LANG: en_IE.UTF-8
   locale-coding-system: utf-8-unix

Major mode: Dired by date

Minor modes in effect:
   shell-dirtrack-mode: t
   tooltip-mode: t
   global-eldoc-mode: t
   electric-indent-mode: t
   mouse-wheel-mode: t
   tool-bar-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t
   buffer-read-only: t
   line-number-mode: t
   transient-mark-mode: t

Recent messages:
Setting up indent for shell type bash
Indentation variables are now local.
Indentation setup for shell type bash
Mark saved where search started [2 times]
Mark set
Mark saved where search started
Mark set [5 times]
scroll-up-command: End of buffer [5 times]
Saving file /home/peter/Downloads/packages...
Wrote /home/peter/Downloads/packages

Load-path shadows:
/usr/local/share/emacs/site-lisp/css-mode hides 
/usr/share/emacs/25.2/lisp/textmodes/css-mode
/usr/local/share/emacs/site-lisp/package hides 
/usr/share/emacs/25.2/lisp/emacs-lisp/package
/home/peter/.emacs.d/elpa/psgml-1.4.1/psgml-pkg hides 
/usr/local/share/emacs/site-lisp/psgml/psgml-pkg
/home/peter/.emacs.d/elpa/psgml-1.4.1/psgml-sysdep hides 
/usr/local/share/emacs/site-lisp/psgml/psgml-sysdep
/home/peter/.emacs.d/elpa/psgml-1.4.1/psgml-api hides 
/usr/local/share/emacs/site-lisp/psgml/psgml-api
/home/peter/.emacs.d/elpa/psgml-1.4.1/psgml-lucid hides 
/usr/local/share/emacs/site-lisp/psgml/psgml-lucid
/home/peter/.emacs.d/elpa/psgml-1.4.1/psgml-dtd hides 
/usr/local/share/emacs/site-lisp/psgml/psgml-dtd
/home/peter/.emacs.d/elpa/psgml-1.4.1/psgml hides 
/usr/local/share/emacs/site-lisp/psgml/psgml
/home/peter/.emacs.d/elpa/psgml-1.4.1/psgml-ids hides 
/usr/local/share/emacs/site-lisp/psgml/psgml-ids
/home/peter/.emacs.d/elpa/psgml-1.4.1/psgml-other hides 
/usr/local/share/emacs/site-lisp/psgml/psgml-other
/home/peter/.emacs.d/elpa/psgml-1.4.1/psgml-autoloads hides 
/usr/local/share/emacs/site-lisp/psgml/psgml-autoloads
/home/peter/.emacs.d/elpa/psgml-1.4.1/psgml-parse hides 
/usr/local/share/emacs/site-lisp/psgml/psgml-parse
/home/peter/.emacs.d/elpa/psgml-1.4.1/psgml-maint hides 
/usr/local/share/emacs/site-lisp/psgml/psgml-maint
/home/peter/.emacs.d/elpa/psgml-1.4.1/psgml-fs hides 
/usr/local/share/emacs/site-lisp/psgml/psgml-fs
/home/peter/.emacs.d/elpa/psgml-1.4.1/psgml-info hides 
/usr/local/share/emacs/site-lisp/psgml/psgml-info
/home/peter/.emacs.d/elpa/psgml-1.4.1/psgml-debug hides 
/usr/local/share/emacs/site-lisp/psgml/psgml-debug
/home/peter/.emacs.d/elpa/psgml-1.4.1/psgml-edit hides 
/usr/local/share/emacs/site-lisp/psgml/psgml-edit
/home/peter/.emacs.d/elpa/psgml-1.4.1/psgml-charent hides 
/usr/local/share/emacs/site-lisp/psgml/psgml-charent

Features:
(shadow sort mail-extr emacsbug message idna format-spec rfc822 mml
mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils
pcmpl-unix tex-mode latexenc tdtd-font tdtd xslide-process xslide-font
xslide-abbrev xslide-data etags xref project eieio byte-opt bytecomp
byte-compile cconv eieio-core cl-macs imenu compile xslide css-mode cl
gv apropos sh-script smie executable doc-view subr-x jka-compr
image-mode shell pcomplete comint ansi-color ring dired-aux psgml-edit
psgml-dtd psgml-parse psgml-api psgml-ids psgml-other psgml-sysdep
sgml-mode psgml cl-seq cl-extra help-mode edmacro misearch multi-isearch
kmacro nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid
rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn
nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc
xmltok dired package derived remem php-mode cc-mode cc-fonts cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
cl-loaddefs pcase cl-lib speedbar sb-image ezimage dframe easymenu
vc-dispatcher vc-svn time-date mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan
thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian
slovak czech european ethiopic indian cyrillic chinese charscript
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote dbusbind inotify
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 429962 41896)
  (symbols 48 37375 1)
  (miscs 40 5465 1442)
  (strings 32 102963 52254)
  (string-bytes 1 3110234)
  (vectors 16 46287)
  (vector-slots 8 1640432 21497)
  (floats 8 309 559)
  (intervals 56 23021 0)
  (buffers 976 46))
-- 
Peter Flynn
Cork 🇮🇪 Ireland 🇪🇺





^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2021-02-20 14:11 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-17 23:09 bug#46607: 25.2; Emacs hangs with Error running timer 'blink-cursor-start' Peter Flynn
2021-02-18 11:51 ` Lars Ingebrigtsen
2021-02-18 22:32   ` Peter Flynn
2021-02-18 23:03     ` Glenn Morris
2021-02-18 23:07       ` Peter Flynn
2021-02-18 23:31         ` Glenn Morris
2021-02-19 10:19           ` Peter Flynn
2021-02-19 16:33             ` Glenn Morris
2021-02-19 21:38               ` Peter Flynn
2021-02-20 12:28                 ` Lars Ingebrigtsen
2021-02-20 14:11                   ` Peter Flynn
2021-02-19 12:40     ` Lars Ingebrigtsen
2021-02-19 14:14       ` Peter Flynn
2021-02-19 14:19         ` Peter Flynn
2021-02-20 12:28         ` Lars Ingebrigtsen
2021-02-18 14:05 ` Eli Zaretskii
2021-02-18 22:37   ` Peter Flynn
2021-02-19 10:25   ` Peter Flynn

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.