GNU bug report logs - #1089
Bug report: Hight CPU loading on scrolling

Previous Next

Package: emacs;

Reported by: Kostafey_Yandex <Kostafey <at> Yandex.ru>

Date: Sun, 5 Oct 2008 15:00:03 UTC

Severity: normal

Merged with 3198

Done: Chong Yidong <cyd <at> stupidchicken.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 1089 in the body.
You can then email your comments to 1089 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-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1089; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Kostafey_Yandex <Kostafey <at> Yandex.ru>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Kostafey_Yandex <Kostafey <at> Yandex.ru>
To: emacs-pretest-bug <at> gnu.org, help-emacs-windows <at> gnu.org
Subject: Bug report: Hight CPU loading on scrolling
Date: Sun, 5 Oct 2008 18:54:24 +0400
From:  <Kostafey <at> DB0TKD2J>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.60; Hight CPU loading on scrolling

We've got a bug on emacs text scrolling.

If we set scroll 'by line' like this
(setq scroll-step 1)

we can open rather long file (like emacs tutorial)
and press down buton for a some peiod of time.
After some smooth scroll period CPU loading increase,
so 'glitches' or scroll interrupts take place.

The CPU loading increase much more when we try to do the
same with russian tutorial (simply scroll down line-by-line).
The CPU loading increase more in newer version of emacs.

We tested this bug on different version of emacs.

They were:
emacs-22.1-bin-i386
emacs-22.2-bin-i386
emacs-22.3-bin-i386
emacs-from-cvs-080927
emacs-from-cvs-081003

We try it on 2 PC (with WinXP both).
It is'n matter how to start emacs, what version to use, or what
configuration to write to .emacs file to reproduce this bug.

-----------------------------------
---- HOW TO REPRODUCE THIS BUG ----
-----------------------------------
1. Start emacs with

emacs -Q

2. Then write
;(setq scroll-step 1)
and press C-x C-e

3. Open english (or russian) tutorial

4. Simply press key down for a some period of time

5. Then scrolling become smooth for a small period of time,
then CPU loading increased and scrolling become interrupted.
So, you'll got it.
----------------------------------

We prepared 2 bug reports for you from 2 PC (generated by emacs
text following below).

__BUG REPORT 1:
Testing on PC with CPU Pentium IV core duo T2400 1.83GHz and RAM 1024Gb

with ENGLISH tutorial I've got 15% CPU loading on scrolling

with RUSSIAN tutorial I've got 25% CPU loading on scrolling with
huge scrolling interrupts

__BUG REPORT 2:
Testing on PC with CPU Pentium III and RAM 633Gb

with ENGLISH tutorial we've got from 30% to 60% (sometimes, 100%) CPU 
loading on scrolling with huge scrolling interrupts

with RUSSIAN tutorial we've got 100% CPU loading on scrolling 
without possible to continue scrolling at all.

-----------------------------------
----------- BUG REPORT 1 ----------
-----------------------------------

In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
 of 2008-10-03 on LENNART-69DE564
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ru
  value of $XMODIFIERS: nil
  locale-coding-system: cp1251
  default-enable-multibyte-characters: t

Major mode: Text

Minor modes in effect:
  tooltip-mode: t
  tool-bar-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
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu> 
<send-emacs-bug-report>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Mark set
1
preceding-sexp: End of file during parsing
1
Making completion list...
Preparing tutorial ...

-----------------------------------
----------- BUG REPORT 2 ----------
-----------------------------------

In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
 of 2008-10-03 on LENNART-69DE564
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: RUS
  value of $XMODIFIERS: nil
  locale-coding-system: cp1251
  default-enable-multibyte-characters: t

Major mode: Text

Minor modes in effect:
  tooltip-mode: t
  tool-bar-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
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <menu-bar> <help-menu> <se
nd-emacs-bug-report>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
1
Making completion list...
Preparing tutorial ...

-- 
Yours faithfully,
 Konstantin                          mailto:Kostafey <at> Yandex.ru





bug closed, send any further explanations to Kostafey_Yandex <Kostafey <at> Yandex.ru> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> emacsbugs.donarmstrong.com. (Mon, 04 May 2009 23:40:04 GMT) Full text and rfc822 format available.

bug reopened, originator not changed. Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> emacsbugs.donarmstrong.com. (Wed, 06 May 2009 13:20:06 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1089; Package emacs. (Wed, 06 May 2009 13:25:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 06 May 2009 13:25:05 GMT) Full text and rfc822 format available.

Message #14 received at 1089 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Konstantin <Kostafey <at> yandex.ru>
Cc: 1089 <at> debbugs.gnu.org
Subject: Re: About #1089: Bug report: Hight CPU loading on scrolling
Date: Wed, 06 May 2009 09:21:25 -0400
Konstantin <Kostafey <at> yandex.ru> writes:

> emacs-from-cvs-090503 is not free of this bug.

> If we set scroll 'by line' like this
> (setq scroll-step 1)
>
> we can open rather long file (like emacs tutorial)
> and press down buton for a some peiod of time.
> After some smooth scroll period CPU loading increase,
> so 'glitches' or scroll interrupts take place.

The glitches are likely due to font locking taking place, and the
subsequent garbage collection.  If you disable font lock, you won't see
it.  Also, if you scroll through the file a second time, you also won't
see it.




Forcibly Merged 1089 3198. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 26 Jan 2010 02:21:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <bug-gnu-emacs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 23 Feb 2010 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 176 days ago.

Previous Next


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