From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Peter Flynn Newsgroups: gmane.emacs.bugs Subject: bug#46607: 25.2; Emacs hangs with Error running timer 'blink-cursor-start' Date: Wed, 17 Feb 2021 23:09:25 +0000 Organization: Silmaril Consultants Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40496"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 To: 46607@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 18 00:25:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lCWBz-000AMi-3w for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Feb 2021 00:25:11 +0100 Original-Received: from localhost ([::1]:50170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCWBy-0001Zo-5q for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Feb 2021 18:25:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCWBq-0001ZT-QZ for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2021 18:25:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33824) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCWBq-0008VV-IB for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2021 18:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lCWBq-0001tb-BE for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2021 18:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Peter Flynn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Feb 2021 23:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46607 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16136042577213 (code B ref -1); Wed, 17 Feb 2021 23:25:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Feb 2021 23:24:17 +0000 Original-Received: from localhost ([127.0.0.1]:45370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCWB6-0001sG-8s for submit@debbugs.gnu.org; Wed, 17 Feb 2021 18:24:17 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:44374) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCVws-0001UH-RO for submit@debbugs.gnu.org; Wed, 17 Feb 2021 18:09:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44678) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCVws-0005bp-MZ for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2021 18:09:34 -0500 Original-Received: from orion.myhost.ie ([217.115.118.6]:55568) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCVwp-00049q-Cu for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2021 18:09:33 -0500 Original-Received: from [192.168.0.180] (unknown [79.97.20.231]) (Authenticated sender: peter@silmaril.ie) by orion.myhost.ie (Postfix) with ESMTPSA id 1AFAA1603EF for ; Wed, 17 Feb 2021 23:09:26 +0000 (GMT) Content-Language: en-US Received-SPF: pass client-ip=217.115.118.6; envelope-from=peter@silmaril.ie; helo=orion.myhost.ie X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 17 Feb 2021 18:24:15 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:200227 Archived-At: 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 🇪🇺