GNU bug report logs - #47974
27.2; doc-view-mode freezes when used together with global-linum-mode

Previous Next

Package: emacs;

Reported by: revrari <at> mweb.co.za

Date: Fri, 23 Apr 2021 16:21:01 UTC

Severity: normal

Tags: fixed

Found in version 27.2

Fixed in version 28.1

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 47974 in the body.
You can then email your comments to 47974 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#47974; Package emacs. (Fri, 23 Apr 2021 16:21:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to revrari <at> mweb.co.za:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 23 Apr 2021 16:21:01 GMT) Full text and rfc822 format available.

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

From: "Raoul Comninos" <revrari <at> mweb.co.za>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.2; doc-view-mode freezes when used together with global-linum-mode
Date: Fri, 23 Apr 2021 18:15:27 +0200
[Message part 1 (text/plain, inline)]
When trying to view documents using `doc-view-mode' Emacs
slows down and eventually freezes. I traced this problem to
`global-linum-mode' which was set to `t' in my init.el file. I tested
this with Emacs -Q and I am able to replicate it.
`global-linum-mode' does not work with `doc-view-mode'. Emacs
does not crash but freezes. One has then to quit Emacs through
the
Windows task manager.

In GNU Emacs 27.2 (build 1, x86_64-w64-mingw32)
 of 2021-03-26 built on fv-az68-192
Repository revision:
4e952a7445daa0fb9df229ea61b69ccee3264d4a
Repository branch: master
Windowing system distributor 'Microsoft Corp.', version
10.0.19041
System Description: Microsoft Windows 10 Pro
(v10.0.2004.19041.928)

Recent messages:
Loading savehist...done
Loading paren...done
Loading winner...done
Loading c:/rari/.emacs.d/recentf...done
Loading c:/rari/.emacs.d/.session...done
(org-roam) total: 381, files-modified: 0, ids: 0, links: 0, tags:
0, titles: 0, refs: 0, deleted: 0
Initializing Hyperbole...done
Hyperbole 7.1.4 is ready for action.
For information about GNU Emacs and the GNU system, type C-h
C-a.
Making completion list...

Configured using:
 'configure --prefix=/mingw64 --build=x86_64-w64-mingw32
--with-modules
 --without-dbus --without-compress-install
'CFLAGS=-march=x86-64
 -mtune=generic -O2 -pipe'
CPPFLAGS=-D__USE_MINGW_ANSI_STDIO=1
 'LDFLAGS=-pipe

-Wl,--dynamicbase,--high-entropy-va,--nxcompat,--default-image-
base-high''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY
ACL GNUTLS LIBXML2
HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES
THREADS JSON PDUMPER GMP

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1252

Major mode: Org

Minor modes in effect:
  winner-mode: t
  show-paren-mode: t
  savehist-mode: t
  save-place-mode: t
  delete-selection-mode: t
  recentf-mode: t
  persistent-scratch-autosave-mode: t
  org-roam-mode: t
  hyperbole-mode: t
  tooltip-mode: t
  global-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
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  global-visual-line-mode: t
  visual-line-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug sendmail session winner paren
savehist
saveplace grep elec-pair delsel cus-start cus-load two-column
remember
recentf tree-widget dired+ w32-browser image-dired image-file
bookmark+
bookmark+-key edmacro kmacro bookmark+-1 bookmark+-bmu
bookmark+-lit
bookmark dired-x dired-aux cl-extra ol-eww eww mm-url thingatpt
url-queue ol-rmail ol-mhe ol-irc ol-info ol-gnus nnir gnus-sum url
url-proxy url-privacy url-expand url-methods url-history mailcap
shr
url-cookie url-domsuf url-util url-parse auth-source json map
url-vars
svg gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail
mail-source
utf7 netrc nnoo parse-time iso8601 gnus-spec gnus-int
gnus-range message
rmc puny rfc822 mml mml-sec password-cache epa epg
epg-config mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader
gnus-win gnus nnheader gnus-util rmail rmail-loaddefs rfc2047
rfc2045
ietf-drums text-property-search mail-utils mm-util mail-prsvr
wid-edit
ol-docview doc-view jka-compr image-mode exif ol-bibtex bibtex
ol-bbdb
ol-w3m persistent-scratch icomplete-vertical icomplete org-roam
org-roam-link org-roam-graph xml org-roam-doctor
org-roam-dailies
org-roam-capture org-roam-db emacsql-sqlite3 emacsql
emacsql-compiler
org-capture org-roam-completion org-roam-buffer org-roam-faces
org-roam-macs org-roam-compat rx f s dash org-id org-refile
showkey
hyperbole hinit hibtypes hib-doc-id klink hib-kbd hib-debbugs
hib-social
hsys-www hib-org hsys-org org-element avl-tree org ob ob-tangle
ob-ref
ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint
org-pcomplete pcomplete org-list org-faces org-entities time-date
org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys
org-compat advice org-macs org-loaddefs format-spec hypb-ert
ert pp ewoc
debug backtrace hui-mini hui hactypes hui-mouse hmouse-key
hargs
hmouse-tag etags fileloop generator xref cl-seq project eieio
eieio-core
eieio-loaddefs find-func hmouse-info info hui-menu hyrolo-menu
hui-jmenu
hpath subr-x noutline outline hmouse-sh hmouse-drv windmove
hypb locate
compile comint ansi-color ring hui-window pulse hycontrol
easy-mmode
hsettings hui-em-but hyrolo hmail hbut view hact pcase hhist
hbdata
hbmap hmoccur derived help-mode cl-macs browse-url htz
cal-julian
cal-menu calendar cal-loaddefs hui-select rng-nxml rng-valid
rng-loc
rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn
nxml-ns
easymenu nxml-mode nxml-outln nxml-rap nxml-util nxml-enc
xmltok
sgml-mode seq byte-opt gv bytecomp byte-compile cconv dom
cl-loaddefs
cl-lib hvar set hversion hload-path xah-dired dired dired-loaddefs
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win
w32-vars
term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode
lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch
timer
select scroll-bar mouse jit-lock font-lock syntax facemenu
font-core
term/tty-colors frame minibuffer 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 composite charscript charprop case-table
epa-hook
jka-cmpr-hook help simple abbrev obarray 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 threads w32notify w32 multi-tty make-network-process
emacs)

Memory information:
((conses 16 363094 26634)
 (symbols 48 32020 1)
 (strings 32 101337 4094)
 (string-bytes 1 3406457)
 (vectors 16 44015)
 (vector-slots 8 488103 35304)
 (floats 8 321 37)
 (intervals 56 672 0)
 (buffers 1000 13))


[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47974; Package emacs. (Sun, 25 Apr 2021 11:03:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Raoul Comninos <revrari <at> mweb.co.za>
Cc: 47974 <at> debbugs.gnu.org
Subject: Re: bug#47974: 27.2;
 doc-view-mode freezes when used together with global-linum-mode
Date: Sun, 25 Apr 2021 06:02:20 -0500
"Raoul Comninos" <revrari <at> mweb.co.za> writes:

> When trying to view documents using `doc-view-mode' Emacs slows down and eventually freezes. I traced this problem to
> `global-linum-mode' which was set to `t' in my init.el file. I tested this with Emacs -Q and I am able to replicate it. `global-linum-mode' does
> not work with `doc-view-mode'. Emacs does not crash but freezes. One has then to quit Emacs through the
> Windows task manager.
>
> In GNU Emacs 27.2 (build 1, x86_64-w64-mingw32)
>  of 2021-03-26 built on fv-az68-192
> Repository revision: 4e952a7445daa0fb9df229ea61b69ccee3264d4a
> Repository branch: master
> Windowing system distributor 'Microsoft Corp.', version 10.0.19041
> System Description: Microsoft Windows 10 Pro (v10.0.2004.19041.928)

I guess the recipe here is:

0. emacs -Q
1. M-x global-linum-mode RET
2. C-x C-f <foo.pdf>

I can confirm Emacs is very unresponsive, but there is no freeze here.
This is on GNU/Linux and current master.

(I'm not seeing any unresponsiveness with `display-line-numbers-mode',
so a workaround might be to just use that instead.)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47974; Package emacs. (Sun, 25 Apr 2021 11:46:02 GMT) Full text and rfc822 format available.

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

From: Gregory Heytings <gregory <at> heytings.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: Raoul Comninos <revrari <at> mweb.co.za>, 47974 <at> debbugs.gnu.org
Subject: Re: bug#47974: 27.2; doc-view-mode freezes when used together with
 global-linum-mode
Date: Sun, 25 Apr 2021 11:45:41 +0000
>> When trying to view documents using `doc-view-mode' Emacs slows down 
>> and eventually freezes. I traced this problem to `global-linum-mode' 
>> which was set to `t' in my init.el file. I tested this with Emacs -Q 
>> and I am able to replicate it. `global-linum-mode' does not work with 
>> `doc-view-mode'. Emacs does not crash but freezes. One has then to quit 
>> Emacs through the Windows task manager.
>
> I guess the recipe here is:
>
> 0. emacs -Q
> 1. M-x global-linum-mode RET
> 2. C-x C-f <foo.pdf>
>
> I can confirm Emacs is very unresponsive, but there is no freeze here. 
> This is on GNU/Linux and current master.
>
> (I'm not seeing any unresponsiveness with `display-line-numbers-mode', 
> so a workaround might be to just use that instead.)
>

Why not just automatically turn these modes off in doc-view-mode with 
(setq-local global-linum-mode nil display-line-numbers-mode nil)?  Is 
there a good reason to see the "1" there?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47974; Package emacs. (Sun, 25 Apr 2021 13:55:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Gregory Heytings <gregory <at> heytings.org>
Cc: Raoul Comninos <revrari <at> mweb.co.za>, 47974 <at> debbugs.gnu.org
Subject: Re: bug#47974: 27.2;
 doc-view-mode freezes when used together with global-linum-mode
Date: Sun, 25 Apr 2021 08:54:48 -0500
Gregory Heytings <gregory <at> heytings.org> writes:

> Why not just automatically turn these modes off in doc-view-mode with
> (setq-local global-linum-mode nil display-line-numbers-mode nil)?  Is
> there a good reason to see the "1" there?

Sounds good to me.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47974; Package emacs. (Sun, 02 May 2021 09:30:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: Gregory Heytings <gregory <at> heytings.org>,
 Raoul Comninos <revrari <at> mweb.co.za>, 47974 <at> debbugs.gnu.org
Subject: Re: bug#47974: 27.2; doc-view-mode freezes when used together with
 global-linum-mode
Date: Sun, 02 May 2021 11:29:12 +0200
Stefan Kangas <stefan <at> marxist.se> writes:

> Gregory Heytings <gregory <at> heytings.org> writes:
>
>> Why not just automatically turn these modes off in doc-view-mode with
>> (setq-local global-linum-mode nil display-line-numbers-mode nil)?  Is
>> there a good reason to see the "1" there?
>
> Sounds good to me.

Me, too, so I made that change in Emacs 28.

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




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 02 May 2021 09:30:03 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 47974 <at> debbugs.gnu.org and revrari <at> mweb.co.za Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 02 May 2021 09:30: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. (Sun, 30 May 2021 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 345 days ago.

Previous Next


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