GNU bug report logs - #26980
25.2; Freeze & redisplay_internal & macOS

Previous Next

Package: emacs;

Reported by: Robert Vojta <rvojta <at> me.com>

Date: Thu, 18 May 2017 06:04:01 UTC

Severity: normal

Tags: moreinfo

Found in version 25.2

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26980 in the body.
You can then email your comments to 26980 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#26980; Package emacs. (Thu, 18 May 2017 06:04:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Robert Vojta <rvojta <at> me.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 18 May 2017 06:04:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Robert Vojta <rvojta <at> me.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.2; Freeze & redisplay_internal & macOS
Date: Thu, 18 May 2017 07:57:04 +0200
Hi,

I do use Emacs on macOS (10.12.5) and I'm experiencing lot of freezes. What does freeze means in this context?

 * C-g doesn't work
 * kill -SIGUSR2 works (sometimes have to send it two or more times to unfreeze it, but always helps)

I tried to install emacs via brew formula, tried emacs plus, tried emacs via brew cask. Same behavior in all of them.

It is somehow connected with CIDER & REPL (Clojure[Script]). This freeze did happen one time only when CIDER & REPL wasn’t running. But it happens several times per hour, per day, … when the REPL is running. Even when I’m not interacting with it. It’s totally random, but when it starts happening, it’s very frequent. Next day without freeze. Another day freezing á 5 minutes. And so on.

What I was doing when it freezes?

 * Scroll with mouse wheel
 * Refactor namespace
 * Simple typing clj code
 * Git fetch

As you can see, basically whatever can trigger this issue.

SIGUSR2 generates backtrace and it always ends up in redisplay_internal. Example:

> Debugger entered--Lisp error: (quit)
>   redisplay_internal\ \(C\ function\)()

Another example:

> Debugger entered--entering a function:
> * command-error-default-function((quit) "" nil)
>   recursive-edit()
>   debug(error (quit))
>   ...
>   linum-after-scroll(#<window 3 on *Backtrace*> 2215)
>   redisplay_internal\ \(C\ function\)()

Would like to solve this issue, but don’t know how. What else I can provide to make this report more useful?

Thanks,
Robert



In GNU Emacs 25.2.1 (x86_64-apple-darwin16.5.0, NS appkit-1504.82 Version 10.12.4 (Build 16E195))
 of 2017-04-25 built on d12frosted.local
Windowing system distributor 'Apple', version 10.3.1504
Configured using:
 'configure --disable-dependency-tracking --disable-silent-rules
 --enable-locallisppath=/usr/local/share/emacs/site-lisp
 --infodir=/usr/local/Cellar/emacs-plus/25.2/share/info/emacs
 --prefix=/usr/local/Cellar/emacs-plus/25.2 --with-xml2 --without-dbus
 --with-gnutls --with-imagemagick --with-modules --with-rsvg --with-ns
 --disable-ns-self-contained'

Configured features:
JPEG RSVG IMAGEMAGICK NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS
NS MODULES

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

Major mode: Python

Minor modes in effect:
  company-statistics-mode: t
  company-quickhelp-mode: t
  company-quickhelp-local-mode: t
  company-mode: t
  anaconda-eldoc-mode: t
  anaconda-mode: t
  evil-matchit-mode: t
  hi-lock-mode: t
  goto-address-prog-mode: t
  bug-reference-prog-mode: t
  auto-highlight-symbol-mode: t
  highlight-numbers-mode: t
  highlight-parentheses-mode: t
  rainbow-delimiters-mode: t
  yas-global-mode: t
  yas-minor-mode: t
  projectile-mode: t
  recentf-mode: t
  hl-todo-mode: t
  winum-mode: t
  winner-mode: t
  volatile-highlights-mode: t
  global-vi-tilde-fringe-mode: t
  vi-tilde-fringe-mode: t
  spaceline-info-mode: t
  spaceline-helm-mode: t
  save-place-mode: t
  savehist-mode: t
  helm-descbinds-mode: t
  helm-mode: t
  helm-flx-mode: t
  popwin-mode: t
  persp-mode: t
  global-linum-mode: t
  linum-mode: t
  Info-breadcrumbs-in-mode-line-mode: t
  global-git-gutter+-mode: t
  git-gutter+-mode: t
  global-git-commit-mode: t
  async-bytecomp-package-mode: t
  shell-dirtrack-mode: t
  flycheck-pos-tip-mode: t
  global-flycheck-mode: t
  flycheck-mode: t
  flx-ido-mode: t
  eyebrowse-mode: t
  global-evil-surround-mode: t
  evil-surround-mode: t
  global-evil-search-highlight-persist: t
  evil-search-highlight-persist: t
  show-smartparens-global-mode: t
  show-smartparens-mode: t
  smartparens-mode: t
  evil-escape-mode: t
  global-anzu-mode: t
  anzu-mode: t
  eval-sexp-fu-flash-mode: t
  diff-auto-refine-mode: t
  clean-aindent-mode: t
  holy-mode: t
  which-key-mode: t
  override-global-mode: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  evil-mode: t
  evil-local-mode: t
  spacemacs-leader-override-mode: t
  global-spacemacs-leader-override-mode: t
  global-hl-line-mode: t
  xterm-mouse-mode: t
  global-auto-revert-mode: t
  ido-vertical-mode: t
  global-page-break-lines-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  hs-minor-mode: t

Recent messages:
Running git push -v origin master:refs/heads/master [2 times]
Git finished
mwheel-scroll: Beginning of buffer [7 times]
Mark set [2 times]
Saving file /Users/robertvojta/.emacs.d/.cache/recentf...
Wrote /Users/robertvojta/.emacs.d/.cache/recentf
M-m g s
M-m C-g is undefined
Auto-evilification could not remap these functions in map ‘edebug-mode-map’:
   - ‘edebug-Go-nonstop-mode’ originally mapped on ‘G’

Load-path shadows:
/Users/robertvojta/.emacs.d/elpa/org-bullets-20140918.1137/org-bullets hides /Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-bullets
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ox hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ox
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ox-texinfo hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ox-texinfo
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ox-publish hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ox-publish
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ox-org hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ox-org
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ox-odt hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ox-odt
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ox-md hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ox-md
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ox-man hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ox-man
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ox-latex hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ox-latex
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ox-icalendar hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ox-icalendar
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ox-html hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ox-html
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ox-beamer hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ox-beamer
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ox-ascii hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ox-ascii
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-w3m hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-w3m
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-version hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-version
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-timer hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-timer
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-table hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-table
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-src hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-src
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-rmail hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-rmail
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-protocol hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-protocol
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-plot hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-plot
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-pcomplete hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-pcomplete
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-mouse hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-mouse
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-mobile hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-mobile
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-mhe hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-mhe
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-macs hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-macs
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-macro hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-macro
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-loaddefs hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-loaddefs
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-list hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-list
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-irc hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-irc
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-install hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-install
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-inlinetask hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-inlinetask
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-info hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-info
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-indent hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-indent
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-id hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-id
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-habit hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-habit
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-gnus hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-gnus
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-footnote hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-footnote
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-feed hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-feed
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-faces hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-faces
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-eshell hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-eshell
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-entities hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-entities
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-element hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-element
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-docview hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-docview
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-datetree hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-datetree
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-ctags hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-ctags
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-crypt hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-crypt
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-compat hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-compat
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-colview hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-colview
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-clock hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-clock
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-capture hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-capture
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-bibtex hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-bibtex
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-bbdb hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-bbdb
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-attach hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-attach
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-archive hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-archive
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/org-agenda hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/org-agenda
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-tangle hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-tangle
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-table hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-table
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-sqlite hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-sqlite
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-sql hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-sql
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-shen hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-shen
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-screen hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-screen
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-scheme hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-scheme
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-scala hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-scala
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-sass hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-sass
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-ruby hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-ruby
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-ref hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-ref
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-R hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-R
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-python hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-python
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-plantuml hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-plantuml
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-picolisp hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-picolisp
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-perl hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-perl
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-org hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-org
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-octave hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-octave
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-ocaml hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-ocaml
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-mscgen hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-mscgen
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-maxima hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-maxima
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-matlab hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-matlab
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-makefile hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-makefile
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-lob hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-lob
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-lisp hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-lisp
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-lilypond hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-lilypond
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-ledger hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-ledger
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-latex hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-latex
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-keys hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-keys
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-js hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-js
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-java hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-java
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-io hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-io
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-haskell hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-haskell
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-gnuplot hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-gnuplot
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-fortran hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-fortran
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-exp hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-exp
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-eval hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-eval
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-emacs-lisp hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-emacs-lisp
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-dot hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-dot
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-ditaa hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-ditaa
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-css hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-css
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-core hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-core
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-comint hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-comint
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-clojure hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-clojure
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-calc hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-calc
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-C hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-C
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-awk hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-awk
/Users/robertvojta/.emacs.d/elpa/org-plus-contrib-20170502/ob-asymptote hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/org/ob-asymptote
/Users/robertvojta/.emacs.d/elpa/seq-2.20/seq hides /usr/local/Cellar/emacs-plus/25.2/share/emacs/25.2/lisp/emacs-lisp/seq

Features:
(shadow sort mail-extr emacsbug sendmail helm-command helm-elisp
helm-eval edebug fill-column-indicator magit-gitflow git-rebase
evil-magit magit-obsolete magit-blame magit-stash magit-bisect
magit-remote magit-commit magit-sequence magit-notes magit-worktree
magit-branch magit-files magit-refs magit-status magit magit-repos
magit-apply magit-wip magit-log magit-diff smerge-mode magit-core
magit-autorevert magit-process magit-margin magit-mode magit-git
magit-section magit-popup json-mode json-reformat json-snatcher js
smartparens-html sgml-mode imenu cc-mode cc-fonts cc-guess cc-menus
cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs shell-pop term
ehelp mwim network-stream nsm starttls url-cache url-http tls gnutls
url-gw url-auth vc-git open-junk-file company-statistics company-files
company-keywords company-etags company-gtags company-template
company-dabbrev-code company-dabbrev company-anaconda company-quickhelp
company anaconda-mode pythonic evil-matchit hi-lock goto-addr
bug-reference auto-highlight-symbol highlight-numbers parent-mode
highlight-parentheses hideshow rainbow-delimiters clojure-snippets
yasnippet smartparens-python python image-file projectile grep ibuf-ext
ibuffer recentf tree-widget hl-todo xterm-color ws-butler winum winner
etags xref project volatile-highlights vi-tilde-fringe spaceline-config
spaceline-segments spaceline powerline powerline-separators color
powerline-themes smartparens-config smartparens-ruby saveplace savehist
ruby-test-mode pcre2el rxt re-builder ruby-mode smie restclient-helm
restclient helm-descbinds helm-mode helm-files image-dired dired-x
dired-aux ffap helm-buffers helm-tags helm-bookmark helm-adaptive
helm-info bookmark pp helm-locate helm-grep helm-regexp helm-external
helm-net browse-url xml url url-proxy url-privacy url-expand url-methods
url-history url-cookie url-domsuf url-util mailcap helm-utils compile
helm-help helm-types helm-flx helm helm-source helm-multi-match helm-lib
popwin persp-mode linum info+ image-mode git-gutter-fringe+
git-gutter-fringe fringe-helper git-gutter+ git-commit with-editor
async-bytecomp async tramp-sh server magit-utils crm log-edit message
dired rfc822 mml mml-sec epg mailabbrev mail-utils gmm-utils mailheader
pcvs-util add-log tramp tramp-compat tramp-loaddefs trampver shell
pcomplete comint ansi-color git-gutter flycheck-pos-tip pos-tip flycheck
find-func flx-ido flx eyebrowse format-spec evil-unimpaired f s
evil-surround evil-search-highlight-persist evil-numbers evil-lisp-state
smartparens dash evil-indent-plus evil-exchange evil-escape evil-args
evil-anzu anzu cider-eval-sexp-fu eval-sexp-fu rx highlight noutline
outline diff-hl vc-dir ewoc vc vc-dispatcher diff-mode
clean-aindent-mode cal-menu calendar cal-loaddefs adaptive-wrap
hybrid-mode exec-path-from-shell evil-evilified-state which-key
use-package diminish bind-key hydra lv cus-edit cus-start cus-load evil
evil-integration undo-tree diff evil-maps evil-commands evil-jumps
evil-command-window evil-types evil-search evil-ex evil-macros
evil-repeat evil-states evil-core evil-common windmove thingatpt rect
evil-digraphs evil-vars ring info bind-map quelpa url-parse auth-source
gnus-util password-cache url-vars package-build mm-decode mm-bodies
mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util help-fns
mail-prsvr json map lisp-mnt hl-line xt-mouse autorevert filenotify
disp-table wid-edit spacemacs-dark-theme spacemacs-common finder-inf
core-configuration-layer eieio-compat cl-seq ht cl warnings package
epg-config eieio eieio-core ido-vertical-mode ido seq byte-opt bytecomp
byte-compile cl-extra help-mode cconv core-spacemacs
core-use-package-ext core-transient-state core-micro-state core-toggle
core-keybindings core-fonts-support core-spacemacs-buffer core-funcs
cl-macs gv core-themes-support core-display-init core-jump
core-auto-completion core-release-management core-dotspacemacs
core-command-line core-debug edmacro kmacro derived advice profiler
easymenu cl-loaddefs cl-lib page-break-lines easy-mmode subr-x pcase
time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel ns-win ucs-normalize term/common-win 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 kqueue cocoa ns
multi-tty make-network-process emacs)

Memory information:
((conses 16 827392 821801)
 (symbols 48 63500 37)
 (miscs 40 1406 5400)
 (strings 32 161674 324685)
 (string-bytes 1 5795997)
 (vectors 16 95892)
 (vector-slots 8 2300194 477249)
 (floats 8 2044 4496)
 (intervals 56 3624 5321)
 (buffers 976 43))





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26980; Package emacs. (Thu, 18 May 2017 15:04:01 GMT) Full text and rfc822 format available.

Message #8 received at 26980 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Robert Vojta <rvojta <at> me.com>
Cc: 26980 <at> debbugs.gnu.org
Subject: Re: bug#26980: 25.2; Freeze & redisplay_internal & macOS
Date: Thu, 18 May 2017 18:02:55 +0300
> From: Robert Vojta <rvojta <at> me.com>
> Date: Thu, 18 May 2017 07:57:04 +0200
> 
> What I was doing when it freezes?
> 
>  * Scroll with mouse wheel
>  * Refactor namespace
>  * Simple typing clj code
>  * Git fetch
> 
> As you can see, basically whatever can trigger this issue.
> 
> SIGUSR2 generates backtrace and it always ends up in redisplay_internal. Example:
> 
> > Debugger entered--Lisp error: (quit)
> >   redisplay_internal\ \(C\ function\)()
> 
> Another example:
> 
> > Debugger entered--entering a function:
> > * command-error-default-function((quit) "" nil)
> >   recursive-edit()
> >   debug(error (quit))
> >   ...
> >   linum-after-scroll(#<window 3 on *Backtrace*> 2215)
> >   redisplay_internal\ \(C\ function\)()
> 
> Would like to solve this issue, but don’t know how. What else I can provide to make this report more useful?

Please attach GDB to a freezing Emacs and show the C-level backtrace.
That will show more information, specifically below
redisplay_internal.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26980; Package emacs. (Fri, 19 May 2017 11:21:01 GMT) Full text and rfc822 format available.

Message #11 received at 26980 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Robert Vojta <rvojta <at> me.com>
Cc: alan <at> idiocy.org, 26980 <at> debbugs.gnu.org
Subject: Re: bug#26980: 25.2; Freeze & redisplay_internal & macOS
Date: Fri, 19 May 2017 14:20:29 +0300
> From: Robert Vojta <rvojta <at> me.com>
> Date: Fri, 19 May 2017 12:27:19 +0200
> Cc: Alan Third <alan <at> idiocy.org>, 26980 <at> debbugs.gnu.org
> 
> (lldb) attach 72569
> Process 72569 stopped
> * thread #1: tid = 0x68a63f, 0x000000010035e403 Emacs`lookup_char_property(plist=4369609187, prop=13392, textprop=true) + 131 at intervals.c:1760, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
>     frame #0: 0x000000010035e403 Emacs`lookup_char_property(plist=4369609187, prop=13392, textprop=true) + 131 at intervals.c:1760
>    1757	      tem = XCAR (tail);
>    1758	      if (EQ (prop, tem))
>    1759		return Fcar (XCDR (tail));
> -> 1760	      if (EQ (tem, Qcategory))
>    1761		{
>    1762		  tem = Fcar (XCDR (tail));
>    1763		  if (SYMBOLP (tem))
> 
> 
> (lldb) thread backtrace
> * thread #1: tid = 0x68a63f, 0x000000010035e403 Emacs`lookup_char_property(plist=4369609187, prop=13392, textprop=true) + 131 at intervals.c:1760, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
>   * frame #0: 0x000000010035e403 Emacs`lookup_char_property(plist=4369609187, prop=13392, textprop=true) + 131 at intervals.c:1760
>     frame #1: 0x000000010035e372 Emacs`textget(plist=4369609187, prop=13392) + 34 at intervals.c:1746
>     frame #2: 0x0000000100364c5b Emacs`Fnext_single_property_change(position=19506, prop=13392, object=4621909941, limit=21506) + 379 at textprop.c:1027
>     frame #3: 0x000000010036ceec Emacs`find_composition(pos=4876, limit=5376, start=0x00007fff5fbf65c0, end=0x00007fff5fbf65b8, prop=0x00007fff5fbf65a8, object=0) + 204 at composite.c:434
>     frame #4: 0x000000010036e662 Emacs`composition_compute_stop_pos(cmp_it=0x00007fff5fbf8950, charpos=4876, bytepos=4876, endpos=5376, string=0) + 338 at composite.c:979
>     frame #5: 0x00000001000800fc Emacs`compute_stop_pos(it=0x00007fff5fbf80d0) + 1212 at xdisp.c:3554
>     frame #6: 0x000000010007f099 Emacs`handle_stop(it=0x00007fff5fbf80d0) + 665 at xdisp.c:3452
>     frame #7: 0x0000000100084a2d Emacs`next_element_from_buffer(it=0x00007fff5fbf80d0) + 621 at xdisp.c:8352
>     frame #8: 0x000000010003b4a8 Emacs`get_next_display_element(it=0x00007fff5fbf80d0) + 56 at xdisp.c:6948
>     frame #9: 0x000000010005ac19 Emacs`display_line(it=0x00007fff5fbf80d0, cursor_vpos=24) + 1065 at xdisp.c:20809
>     frame #10: 0x000000010005a529 Emacs`try_window(window=4361665229, pos=(charpos = 4022, bytepos = 4022), flags=0) + 249 at xdisp.c:17457
>     frame #11: 0x000000010008f1a9 Emacs`redisplay_window(window=4361665229, just_this_one_p=false) + 3977 at xdisp.c:16647
>     frame #12: 0x000000010008e20d Emacs`redisplay_window_0(window=4361665229) + 61 at xdisp.c:14664
>     frame #13: 0x000000010028725a Emacs`internal_condition_case_1(bfun=(Emacs`redisplay_window_0 at xdisp.c:14662), arg=4361665229, handlers=4337042083, hfun=(Emacs`redisplay_window_error at xdisp.c:14655)) + 138 at eval.c:1350
>     frame #14: 0x000000010008c7fb Emacs`redisplay_windows(window=4361665229) + 187 at xdisp.c:14644
>     frame #15: 0x000000010008c7aa Emacs`redisplay_windows(window=4361664733) + 106 at xdisp.c:14638
>     frame #16: 0x000000010005712e Emacs`redisplay_internal + 6270 at xdisp.c:14134
>     frame #17: 0x0000000100058a19 Emacs`redisplay + 9 at xdisp.c:13362
>     frame #18: 0x0000000100181735 Emacs`read_char(commandflag=1, map=4870821907, prev_event=0, used_mouse_menu=0x00007fff5fbff337, end_time=0x0000000000000000) + 1829 at keyboard.c:2482

Thanks.  Can you now use the methodology described in etc/DEBUG under
"If the symptom of the bug is that Emacs fails to respond" to try to
establish where it is looping?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26980; Package emacs. (Fri, 19 May 2017 15:09:02 GMT) Full text and rfc822 format available.

Message #14 received at 26980 <at> debbugs.gnu.org (full text, mbox):

From: Robert Vojta <rvojta <at> me.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Alan Third <alan <at> idiocy.org>, 26980 <at> debbugs.gnu.org
Subject: Re: bug#26980: 25.2; Freeze & redisplay_internal & macOS
Date: Fri, 19 May 2017 12:27:19 +0200
Hi,

rebuild from source with debug info:

 * git, master, commit df9bec3b39b12b33db8f5a97d86797f6636e5e7d (Fri May 19 10:01:23 2017 +0300)

I trashed the yesterday’s freeze backtrace (no debug info), but it was stuck in assq_no_quit & lot of functions about faces (merge_face, …). Today’s one contains:

(lldb) attach 72569
Process 72569 stopped
* thread #1: tid = 0x68a63f, 0x000000010035e403 Emacs`lookup_char_property(plist=4369609187, prop=13392, textprop=true) + 131 at intervals.c:1760, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x000000010035e403 Emacs`lookup_char_property(plist=4369609187, prop=13392, textprop=true) + 131 at intervals.c:1760
   1757	      tem = XCAR (tail);
   1758	      if (EQ (prop, tem))
   1759		return Fcar (XCDR (tail));
-> 1760	      if (EQ (tem, Qcategory))
   1761		{
   1762		  tem = Fcar (XCDR (tail));
   1763		  if (SYMBOLP (tem))


(lldb) thread backtrace
* thread #1: tid = 0x68a63f, 0x000000010035e403 Emacs`lookup_char_property(plist=4369609187, prop=13392, textprop=true) + 131 at intervals.c:1760, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x000000010035e403 Emacs`lookup_char_property(plist=4369609187, prop=13392, textprop=true) + 131 at intervals.c:1760
    frame #1: 0x000000010035e372 Emacs`textget(plist=4369609187, prop=13392) + 34 at intervals.c:1746
    frame #2: 0x0000000100364c5b Emacs`Fnext_single_property_change(position=19506, prop=13392, object=4621909941, limit=21506) + 379 at textprop.c:1027
    frame #3: 0x000000010036ceec Emacs`find_composition(pos=4876, limit=5376, start=0x00007fff5fbf65c0, end=0x00007fff5fbf65b8, prop=0x00007fff5fbf65a8, object=0) + 204 at composite.c:434
    frame #4: 0x000000010036e662 Emacs`composition_compute_stop_pos(cmp_it=0x00007fff5fbf8950, charpos=4876, bytepos=4876, endpos=5376, string=0) + 338 at composite.c:979
    frame #5: 0x00000001000800fc Emacs`compute_stop_pos(it=0x00007fff5fbf80d0) + 1212 at xdisp.c:3554
    frame #6: 0x000000010007f099 Emacs`handle_stop(it=0x00007fff5fbf80d0) + 665 at xdisp.c:3452
    frame #7: 0x0000000100084a2d Emacs`next_element_from_buffer(it=0x00007fff5fbf80d0) + 621 at xdisp.c:8352
    frame #8: 0x000000010003b4a8 Emacs`get_next_display_element(it=0x00007fff5fbf80d0) + 56 at xdisp.c:6948
    frame #9: 0x000000010005ac19 Emacs`display_line(it=0x00007fff5fbf80d0, cursor_vpos=24) + 1065 at xdisp.c:20809
    frame #10: 0x000000010005a529 Emacs`try_window(window=4361665229, pos=(charpos = 4022, bytepos = 4022), flags=0) + 249 at xdisp.c:17457
    frame #11: 0x000000010008f1a9 Emacs`redisplay_window(window=4361665229, just_this_one_p=false) + 3977 at xdisp.c:16647
    frame #12: 0x000000010008e20d Emacs`redisplay_window_0(window=4361665229) + 61 at xdisp.c:14664
    frame #13: 0x000000010028725a Emacs`internal_condition_case_1(bfun=(Emacs`redisplay_window_0 at xdisp.c:14662), arg=4361665229, handlers=4337042083, hfun=(Emacs`redisplay_window_error at xdisp.c:14655)) + 138 at eval.c:1350
    frame #14: 0x000000010008c7fb Emacs`redisplay_windows(window=4361665229) + 187 at xdisp.c:14644
    frame #15: 0x000000010008c7aa Emacs`redisplay_windows(window=4361664733) + 106 at xdisp.c:14638
    frame #16: 0x000000010005712e Emacs`redisplay_internal + 6270 at xdisp.c:14134
    frame #17: 0x0000000100058a19 Emacs`redisplay + 9 at xdisp.c:13362
    frame #18: 0x0000000100181735 Emacs`read_char(commandflag=1, map=4870821907, prev_event=0, used_mouse_menu=0x00007fff5fbff337, end_time=0x0000000000000000) + 1829 at keyboard.c:2482
    frame #19: 0x000000010017d710 Emacs`read_key_sequence(keybuf=0x00007fff5fbff650, bufsize=30, prompt=0, dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) + 1744 at keyboard.c:9122
    frame #20: 0x000000010017c2d2 Emacs`command_loop_1 + 1442 at keyboard.c:1370
    frame #21: 0x000000010028719f Emacs`internal_condition_case(bfun=(Emacs`command_loop_1 at keyboard.c:1261), handlers=17520, hfun=(Emacs`cmd_error at keyboard.c:940)) + 127 at eval.c:1326
    frame #22: 0x0000000100191c4c Emacs`command_loop_2(ignore=0) + 44 at keyboard.c:1112
    frame #23: 0x0000000100286958 Emacs`internal_catch(tag=45312, func=(Emacs`command_loop_2 at keyboard.c:1108), arg=0) + 72 at eval.c:1091
    frame #24: 0x000000010017b288 Emacs`command_loop + 280 at keyboard.c:1091
    frame #25: 0x000000010017b0f0 Emacs`recursive_edit_1 + 192 at keyboard.c:697
    frame #26: 0x000000010017b428 Emacs`Frecursive_edit + 312 at keyboard.c:768
    frame #27: 0x0000000100179124 Emacs`main(argc=1, argv=0x00007fff5fbffca0) + 6916 at emacs.c:1690
    frame #28: 0x00007fffe7c33235 libdyld.dylib`start + 1
(lldb) 






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26980; Package emacs. (Fri, 19 May 2017 15:09:03 GMT) Full text and rfc822 format available.

Message #17 received at 26980 <at> debbugs.gnu.org (full text, mbox):

From: Robert Vojta <rvojta <at> me.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: alan <at> idiocy.org, 26980 <at> debbugs.gnu.org
Subject: Re: bug#26980: 25.2; Freeze & redisplay_internal & macOS
Date: Fri, 19 May 2017 13:40:24 +0200
> Thanks.  Can you now use the methodology described in etc/DEBUG under
> "If the symptom of the bug is that Emacs fails to respond" to try to
> establish where it is looping?

Yep, waiting for the next freeze.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26980; Package emacs. (Thu, 25 May 2017 17:00:02 GMT) Full text and rfc822 format available.

Message #20 received at 26980 <at> debbugs.gnu.org (full text, mbox):

From: Robert Vojta <rvojta <at> me.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: alan <at> idiocy.org, 26980 <at> debbugs.gnu.org
Subject: Re: bug#26980: 25.2; Freeze & redisplay_internal & macOS
Date: Thu, 25 May 2017 18:59:20 +0200
Hi Eli,

almost a week without crash. But it’s here. This line ...

https://github.com/emacs-mirror/emacs/blob/master/src/xdisp.c#L14134

… always sets fonts_changed to 1 and thus …

https://github.com/emacs-mirror/emacs/blob/master/src/xdisp.c#L14160

… goto retry_frame is executed and so on. It’s stuck in this loop. Going deeper to see what and why it is setting this to 1.

R.



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26980; Package emacs. (Fri, 26 May 2017 10:39:01 GMT) Full text and rfc822 format available.

Message #23 received at 26980 <at> debbugs.gnu.org (full text, mbox):

From: Robert Vojta <rvojta <at> me.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: alan <at> idiocy.org, 26980 <at> debbugs.gnu.org
Subject: Re: bug#26980: 25.2; Freeze & redisplay_internal & macOS
Date: Fri, 26 May 2017 12:38:44 +0200
Hi,

found some time to continue with this issue. fonts_changed are modified here:

* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 4.1
    frame #0: 0x0000000100092643 Emacs`redisplay_window(window=4836536885, just_this_one_p=false) at xdisp.c:17288
   17285	      if (WINDOW_WANTS_MODELINE_P (w)
   17286		  && CURRENT_MODE_LINE_HEIGHT (w) != DESIRED_MODE_LINE_HEIGHT (w))
   17287		{
-> 17288		  f->fonts_changed = true;
   17289		  w->mode_line_height = -1;
   17290		  MATRIX_MODE_LINE_ROW (w->current_matrix)->height
   17291		    = DESIRED_MODE_LINE_HEIGHT (w);
(lldb)

It’s pretty hard to say why this happens, because I know nothing about Emacs internals. Going to focus on CURRENT_MODE_LINE_HEIGHT(w) and DESIRED_MODE_LINE_HEIGHT(w).

R.



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26980; Package emacs. (Fri, 26 May 2017 11:03:02 GMT) Full text and rfc822 format available.

Message #26 received at 26980 <at> debbugs.gnu.org (full text, mbox):

From: Robert Vojta <rvojta <at> me.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: alan <at> idiocy.org, 26980 <at> debbugs.gnu.org
Subject: Re: bug#26980: 25.2; Freeze & redisplay_internal & macOS
Date: Fri, 26 May 2017 13:01:52 +0200
> * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 4.1
>    frame #0: 0x0000000100092643 Emacs`redisplay_window(window=4836536885, just_this_one_p=false) at xdisp.c:17288
>   17285	      if (WINDOW_WANTS_MODELINE_P (w)
>   17286		  && CURRENT_MODE_LINE_HEIGHT (w) != DESIRED_MODE_LINE_HEIGHT (w))
>   17287		{
> -> 17288		  f->fonts_changed = true;
>   17289		  w->mode_line_height = -1;
>   17290		  MATRIX_MODE_LINE_ROW (w->current_matrix)->height
>   17291		    = DESIRED_MODE_LINE_HEIGHT (w);
> (lldb)

9: file = 'xdisp.c', line = 17288, exact_match = 0, locations = 1, resolved = 1, hit count = 225
    Breakpoint commands:
      p w->mode_line_height
      p (w->desired_matrix->rows + w->desired_matrix->nrows - 1)->height
      process continue

Never ending loop where CURRENT_MODE_LINE_HEIGHT(w) returns 21 and DESIRED_MODE_LINE_HEIGHT(w) returns 20.

(lldb)  p w->mode_line_height
(int) $587 = 21
(lldb)  p (w->desired_matrix->rows + w->desired_matrix->nrows - 1)->height
(int) $588 = 20
(lldb)  process continue
Process 75132 resuming
Command #3 'process continue' continued the target.
(lldb)  p w->mode_line_height
(int) $589 = 21
(lldb)  p (w->desired_matrix->rows + w->desired_matrix->nrows - 1)->height
(int) $590 = 20
(lldb)  process continue
Process 75132 resuming
Command #3 'process continue' continued the target.
(lldb)  p w->mode_line_height
(int) $591 = 21
(lldb)  p (w->desired_matrix->rows + w->desired_matrix->nrows - 1)->height
(int) $592 = 20
(lldb)  process continue
Process 75132 resuming
Command #3 'process continue' continued the target.
(lldb)  p w->mode_line_height
(int) $593 = 21
…

R.



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26980; Package emacs. (Fri, 26 May 2017 19:45:01 GMT) Full text and rfc822 format available.

Message #29 received at 26980 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Robert Vojta <rvojta <at> me.com>
Cc: alan <at> idiocy.org, 26980 <at> debbugs.gnu.org
Subject: Re: bug#26980: 25.2; Freeze & redisplay_internal & macOS
Date: Fri, 26 May 2017 22:44:31 +0300
> From: Robert Vojta <rvojta <at> me.com>
> Date: Fri, 26 May 2017 13:01:52 +0200
> Cc: alan <at> idiocy.org, 26980 <at> debbugs.gnu.org
> 
> > * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 4.1
> >    frame #0: 0x0000000100092643 Emacs`redisplay_window(window=4836536885, just_this_one_p=false) at xdisp.c:17288
> >   17285	      if (WINDOW_WANTS_MODELINE_P (w)
> >   17286		  && CURRENT_MODE_LINE_HEIGHT (w) != DESIRED_MODE_LINE_HEIGHT (w))
> >   17287		{
> > -> 17288		  f->fonts_changed = true;
> >   17289		  w->mode_line_height = -1;
> >   17290		  MATRIX_MODE_LINE_ROW (w->current_matrix)->height
> >   17291		    = DESIRED_MODE_LINE_HEIGHT (w);
> > (lldb)
> 
> 9: file = 'xdisp.c', line = 17288, exact_match = 0, locations = 1, resolved = 1, hit count = 225
>     Breakpoint commands:
>       p w->mode_line_height
>       p (w->desired_matrix->rows + w->desired_matrix->nrows - 1)->height
>       process continue
> 
> Never ending loop where CURRENT_MODE_LINE_HEIGHT(w) returns 21 and DESIRED_MODE_LINE_HEIGHT(w) returns 20.
> 
> (lldb)  p w->mode_line_height
> (int) $587 = 21
> (lldb)  p (w->desired_matrix->rows + w->desired_matrix->nrows - 1)->height
> (int) $588 = 20

Can you see where w->mode_line_height is computed, and try to
understand why it comes out as 21 instead of 20?

Also, what is supposed to be displayed on the mode line in this
window?  Something special you have there?

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26980; Package emacs. (Mon, 29 May 2017 09:38:01 GMT) Full text and rfc822 format available.

Message #32 received at 26980 <at> debbugs.gnu.org (full text, mbox):

From: Robert Vojta <rvojta <at> me.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: alan <at> idiocy.org, 26980 <at> debbugs.gnu.org
Subject: Re: bug#26980: 25.2; Freeze & redisplay_internal & macOS
Date: Mon, 29 May 2017 11:37:42 +0200
It’s caused by unicode character number 9448 (ⓨ). In 99% of cases, ascent of this character is 16, descent is 4, thus the sum is 20 and it equals to desired mode line height (20). Works like a charm.

What troubles me is that sometimes the descent is 5. Sometimes means it’s totally random. For the whole week, it’s always 4, works. And boom, it’s 5 -> 16 + 5 -> 21 -> 21 != 20 and never ending loop is here.

And to answer what I have in mode line - Powerline theme from Spacemacs https://github.com/TheBB/spaceline

R.



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26980; Package emacs. (Tue, 30 May 2017 07:47:02 GMT) Full text and rfc822 format available.

Message #35 received at 26980 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Robert Vojta <rvojta <at> me.com>
Cc: alan <at> idiocy.org, 26980 <at> debbugs.gnu.org
Subject: Re: bug#26980: 25.2; Freeze & redisplay_internal & macOS
Date: Tue, 30 May 2017 10:46:29 +0300
> From: Robert Vojta <rvojta <at> me.com>
> Date: Mon, 29 May 2017 11:37:42 +0200
> Cc: alan <at> idiocy.org, 26980 <at> debbugs.gnu.org
> 
> It’s caused by unicode character number 9448 (ⓨ). In 99% of cases, ascent of this character is 16, descent is 4, thus the sum is 20 and it equals to desired mode line height (20). Works like a charm.
> 
> What troubles me is that sometimes the descent is 5. Sometimes means it’s totally random. For the whole week, it’s always 4, works. And boom, it’s 5 -> 16 + 5 -> 21 -> 21 != 20 and never ending loop is here.

Can you see if those instances with descent of 5 are because the
character is displayed using a different font, by any chance?

Another, perhaps more probable cause could be that in some cases
CURRENT_MODE_LINE_HEIGHT uses the value of w->mode_line_height, and
sometimes it needs to estimate the height by calling
estimate_mode_line_height.  Maybe something is inconsistent between
the estimation and the actual value.

Also, the offending character is displayed on the mode line, right?
Could you please show a screenshot of a window with the mode line
formatted as it should when Emacs freezes?

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26980; Package emacs. (Tue, 30 May 2017 08:34:02 GMT) Full text and rfc822 format available.

Message #38 received at 26980 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Robert Vojta <rvojta <at> me.com>
Cc: alan <at> idiocy.org, 26980 <at> debbugs.gnu.org
Subject: Re: bug#26980: 25.2; Freeze & redisplay_internal & macOS
Date: Tue, 30 May 2017 11:33:31 +0300
> From: Robert Vojta <rvojta <at> me.com>
> Date: Tue, 30 May 2017 10:02:55 +0200
> Cc: alan <at> idiocy.org, 26980 <at> debbugs.gnu.org
> 
> > Can you see if those instances with descent of 5 are because the
> > character is displayed using a different font, by any chance?
> 
> This character is displayed via another font for sure. I tested this in different apps to check it.

Not sure I understand you: I meant perhaps the display where the
descent is 4 uses one font, while the display where the descent is 5
uses a different font.

> > Could you please show a screenshot of a window with the mode line
> > formatted as it should when Emacs freezes?
> 
> It freezes randomly in different modes (Python, Clojure, shell, diff, magit, …). Check screenshot how it looks like in almost all of them.

Thanks.  I see that characters in the area you highlighted overlap
each other, which might already be a sing of some display problem.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26980; Package emacs. (Tue, 30 May 2017 15:31:02 GMT) Full text and rfc822 format available.

Message #41 received at 26980 <at> debbugs.gnu.org (full text, mbox):

From: Robert Vojta <rvojta <at> me.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: alan <at> idiocy.org, 26980 <at> debbugs.gnu.org
Subject: Re: bug#26980: 25.2; Freeze & redisplay_internal & macOS
Date: Tue, 30 May 2017 10:02:55 +0200
[Message part 1 (text/plain, inline)]
> Can you see if those instances with descent of 5 are because the
> character is displayed using a different font, by any chance?

This character is displayed via another font for sure. I tested this in different apps to check it.

> Another, perhaps more probable cause could be that in some cases
> CURRENT_MODE_LINE_HEIGHT uses the value of w->mode_line_height, and
> sometimes it needs to estimate the height by calling
> estimate_mode_line_height.  Maybe something is inconsistent between
> the estimation and the actual value.

Will check.

> Also, the offending character is displayed on the mode line, right?
> Could you please show a screenshot of a window with the mode line
> formatted as it should when Emacs freezes?

It freezes randomly in different modes (Python, Clojure, shell, diff, magit, …). Check screenshot how it looks like in almost all of them.

If the screenshot will not go through, here’s link:

https://www.dropbox.com/s/h25wzqlcplobdjt/Screen_Shot_2017-05-30_at_09_55_37.png?dl=0

R.

[Message part 2 (text/html, inline)]
[Screen_Shot_2017-05-30_at_09_55_37.png (image/png, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26980; Package emacs. (Sun, 29 Sep 2019 15:07:01 GMT) Full text and rfc822 format available.

Message #44 received at 26980 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Robert Vojta <rvojta <at> me.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, alan <at> idiocy.org, 26980 <at> debbugs.gnu.org
Subject: Re: bug#26980: 25.2; Freeze & redisplay_internal & macOS
Date: Sun, 29 Sep 2019 17:06:52 +0200
Robert Vojta <rvojta <at> me.com> writes:

>  Another, perhaps more probable cause could be that in some cases
>  CURRENT_MODE_LINE_HEIGHT uses the value of w->mode_line_height, and
>  sometimes it needs to estimate the height by calling
>  estimate_mode_line_height.  Maybe something is inconsistent between
>  the estimation and the actual value.
>
> Will check.

Are you still seeing this problem in modern versions of Emacs?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26980; Package emacs. (Mon, 14 Oct 2019 07:34:02 GMT) Full text and rfc822 format available.

Message #47 received at 26980 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Robert Vojta <rvojta <at> me.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, alan <at> idiocy.org, 26980 <at> debbugs.gnu.org
Subject: Re: bug#26980: 25.2; Freeze & redisplay_internal & macOS
Date: Mon, 14 Oct 2019 09:33:12 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Robert Vojta <rvojta <at> me.com> writes:
>
>>  Another, perhaps more probable cause could be that in some cases
>>  CURRENT_MODE_LINE_HEIGHT uses the value of w->mode_line_height, and
>>  sometimes it needs to estimate the height by calling
>>  estimate_mode_line_height.  Maybe something is inconsistent between
>>  the estimation and the actual value.
>>
>> Will check.
>
> Are you still seeing this problem in modern versions of Emacs?

More information was requested some weeks back, but no response was
given, so I'm closing this bug report.  If you're still seeing this
problem, please reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 26980 <at> debbugs.gnu.org and Robert Vojta <rvojta <at> me.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 14 Oct 2019 07:34:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 11 Nov 2019 12:24:13 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 166 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.