all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dobler@kis.uni-freiburg.de
Cc: bug-gnu-emacs@gnu.org
Subject: Emacs 21 hangs in vm if scroll-margin=5 and Emacs.LineSpacing=1
Date: 16 Nov 2002 17:18:10 +0100	[thread overview]
Message-ID: <yg7bs4po5dp.fsf@cincinnatus.kis.uni-freiburg.de> (raw)

The following message is a courtesy copy of an article
that has been posted to gnu.emacs.vm.bug as well.

I am not perfectly sure where to post this -- it might be a problem of
Emacs or of VM -- but I want problem and workaround to be documented
somewhere on the web.

I am using VM to read my email and had it hang up Emacs every now and
then; the X window was still updated, but Emacs wouldn't react to any key
press and just run at 99% CPU usage for at least 10 minutes (after which I
killed the process). According to strace, it was doing

  --- SIGALRM (Alarm clock) ---
  gettimeofday({1037458979, 140315}, NULL) = 0
  gettimeofday({1037458979, 149317}, NULL) = 0
  gettimeofday({1037458979, 149872}, NULL) = 0
  setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 90443}}, NULL) = 0
  sigreturn()                             = ? (mask now [])

and so on.

I found that the problem was caused by setting

  (setq scroll-margin 5)

and at closer inspection the hang occured (reproducibly) when I was in the
following situation:

  +-------------------------------------------------------------+
  |   86    Some@sender   Nov 15    8/389  "Some subject"       |
  |   87    Some@sender   Nov 15   13/472  "Some subject"       |
  |   88    Some@sender   Nov 15   17/676  "Some subject"       |
  |   89    Some@sender   Nov 15   74/162  "Some subject"       |
  |   90    Some@sender   Nov 15   16/488  "Some subject"       |
  |-> 91    Some@sender   Nov 16   41/139  "Some subject"       |
  |   92    Some@sender   Nov 16  908/369  "Some subject"       |
  |   93  U Some@sender   Nov 16   23/996  "Some subject"       |
  |   94  U Some@sender   Nov 16    8/229  "Some subject"       |
  |   95  U Some@sender   Nov 16    9/275  "Some subject"       |
  |   96  U Some@sender   Nov 16    8/363  "Some subject"       |
  |   97  D Some@sender   Nov 16   21/777  "Some subject"       |
  |__--_VM_7.07:_INBOX_Summary_92_(of_98)__read___85%___16:49___|
  |From: Some@body                                              |
  |Sender: Some@body                                            |
  |To: me@here                                                  |
  |Subject: Some subject                                        |
  |Date: Some date                                              |
  |                                                             |
  |Some                                                         |
  |content                                                      |
  |...                                                          |
  |...                                                          |
  |...                                                          |
  |...                                                          |
  |...                                                          |
  |...                                                          |
  |...                                                          |
  |...                                                          |
  |...                                                          |
  |...                                                          |
  |...                                                          |
  |...                                                          |
  |...                                                          |
  |...                                                          |
  |...                                                          |
  |...                                                          |
  |...                                                          |
  |...                                                          |
  |...                                                          |
  |...                                                          |
  |...                                                          |
  |...                                                          |
  |...                                                          |
  |__**_VM_7.07:_INBOX_________91_(of_98)__read___All___16:49___|
  +-------------------------------------------------------------+

and pressed `n' to get to the next message. This is the point where the
last message line (that for message No.98) would appear in the
INBOX-Summary buffer -- but instead Emacs just hung up.

This problem does not occur with Xemacs and at closer inspection it only
occurs when I set the X11 resource
  Emacs.LineSpacing:  1
(I never got Xemacs to use an extra line spacing). Setting
Emacs.LineSpacing to 0 or not setting 'scroll-margin makes the problem
disappear. Also, I found no problem in a console window, only uner X.

Is that a bug of the rendering engine?


W o l f g a n g


System:
  SuSE Linux 8.0, kernel 2.4.18-4GB, Pentium 4 @ 1700MHz
  XFree86 v. 4.2.0
  Fvwm2 v.2.4.5
  GNU Emacs 21.1.1
  VM 7.07 (had the same problem with 7.05)
  Xresources:
    Emacs*background:       grey95
    Emacs*font:     -*-courier-medium-r-*-*-12-*-*-*-*-*-iso8859-1
    Emacs.ToolBar:  0
    Emacs.TopToolBarHeight: 0
    Emacs.geometry: 81x69+10+0
    Emacs.mode-line.AttributeBox:   off
    emacs.waitForWM:        false

--

 -------------------------------------------------------------------------
|  Wolfgang Dobler              Kiepenheuer Institute for Solar Physics  |
 -------------------------------------------------------------------------

             reply	other threads:[~2002-11-16 16:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-16 16:18 Dobler [this message]
2002-11-17  7:15 ` Emacs 21 hangs in vm if scroll-margin=5 and Emacs.LineSpacing=1 Richard Stallman
2002-11-18 10:40   ` Wolfgang Dobler
2002-11-19  8:47     ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yg7bs4po5dp.fsf@cincinnatus.kis.uni-freiburg.de \
    --to=dobler@kis.uni-freiburg.de \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.