GNU bug report logs - #25176
26.0.50; nxml-mode hangs on first failing isearch after opening big file

Previous Next

Package: emacs;

Reported by: Kevin Brubeck Unhammer <unhammer <at> fsfe.org>

Date: Sun, 11 Dec 2016 21:49:01 UTC

Severity: normal

Tags: fixed

Merged with 33887

Found in versions 26.0.50, 26.1

Fixed in version 27.1

Done: Noam Postavsky <npostavs <at> gmail.com>

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 25176 in the body.
You can then email your comments to 25176 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#25176; Package emacs. (Sun, 11 Dec 2016 21:49:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kevin Brubeck Unhammer <unhammer <at> fsfe.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 11 Dec 2016 21:49:01 GMT) Full text and rfc822 format available.

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

From: Kevin Brubeck Unhammer <unhammer <at> fsfe.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.0.50;
 nxml-mode hangs on first failing isearch after opening big file
Date: Sun, 11 Dec 2016 22:48:17 +0100

Hi,

I think I've found a strange performance bug in nxml-mode, where the
first failing isearch will hang and require a C-g, whereas the second
(for the same string or any other) is near-instant.

To reproduce:

$ wget https://unhammer.org/k/nxml-isearch-hang.xml
$ emacs -Q nxml-isearch-hang.xml
# Then in emacs, answer yes and isearch for e.g. "x-x":
y C-s x - x

Now it'll hang, and require a C-g. A subsequent search, however, is
instant.

If I rename the file to end in .txt so it opens in fundamental-mode, I
don't get the hang. This is quite annoying, since I very often open huge
xml files and immediately start isearching for something, meaning I
always have to wait for the hang, C-g, then search again.




In GNU Emacs 26.0.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2016-12-09 built on lgw01-51
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
System Description:	Ubuntu 16.04.1 LTS


Configured using:
 'configure --build=x86_64-linux-gnu --prefix=/usr
 '--includedir=${prefix}/include' '--mandir=${prefix}/share/man'
 '--infodir=${prefix}/share/info' --sysconfdir=/etc --localstatedir=/var
 --disable-silent-rules '--libdir=${prefix}/lib/x86_64-linux-gnu'
 '--libexecdir=${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode
 --disable-dependency-tracking --prefix=/usr --sharedstatedir=/var/lib
 --program-suffix=-snapshot --with-modules=yes --with-x=yes
 --with-x-toolkit=gtk3 --with-xwidgets=yes 'CFLAGS=-g -O2
 -fstack-protector-strong -Wformat -Werror=format-security'
 '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 GCONF GSETTINGS
NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES XWIDGETS LIBSYSTEMD

Important settings:
  value of $LANG: nn_NO.UTF-8
  value of $XMODIFIERS: 
  locale-coding-system: utf-8




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25176; Package emacs. (Wed, 17 Apr 2019 23:51:02 GMT) Full text and rfc822 format available.

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

From: Noam Postavsky <npostavs <at> gmail.com>
To: Kevin Brubeck Unhammer <unhammer <at> fsfe.org>
Cc: 25176 <at> debbugs.gnu.org
Subject: Re: bug#25176: 26.0.50;
 nxml-mode hangs on first failing isearch after opening big file
Date: Wed, 17 Apr 2019 19:50:34 -0400
merge 25176 33887
quit

Kevin Brubeck Unhammer <unhammer <at> fsfe.org> writes:

> To reproduce:
>
> $ wget https://unhammer.org/k/nxml-isearch-hang.xml
> $ emacs -Q nxml-isearch-hang.xml
> # Then in emacs, answer yes and isearch for e.g. "x-x":
> y C-s x - x
>
> Now it'll hang, and require a C-g. A subsequent search, however, is
> instant.

The file is now 404, but I this sounds the same as Bug#33887 "26.1;
Emacs hangs for several seconds when going to the end of an XML file in
nXML mode".




Merged 25176 33887. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 17 Apr 2019 23:51:02 GMT) Full text and rfc822 format available.

Added tag(s) fixed. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 04 Jun 2019 12:57:04 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 33887 <at> debbugs.gnu.org and Vincent Lefevre <vincent <at> vinc17.net> Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 04 Jun 2019 12:57:05 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. (Wed, 03 Jul 2019 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 353 days ago.

Previous Next


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