GNU bug report logs - #27670
25.2; emacs GUI hangs when rxvt is busy displaying logs

Previous Next

Package: emacs;

Reported by: zhanghj <netjunegg <at> gmail.com>

Date: Wed, 12 Jul 2017 14:38:02 UTC

Severity: normal

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 27670 in the body.
You can then email your comments to 27670 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#27670; Package emacs. (Wed, 12 Jul 2017 14:38:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to zhanghj <netjunegg <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 12 Jul 2017 14:38:02 GMT) Full text and rfc822 format available.

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

From: zhanghj <netjunegg <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: netjune <at> qq.com
Subject: 25.2; emacs GUI hangs when rxvt is busy displaying logs
Date: Wed, 12 Jul 2017 22:35:32 +0800
system: debian 8 stable x86_64
emacs: emacs 25.2

1. Start rxvt-unicode and tmux.
2. Run a test program in tmux, which just prints text(include chinese chars) as fast as it can.
3. Start emacs GUI with "emacs -Q". Then open xdisp.c in emacs, and keep
pressing the "down" key.
4. After about 15 seconds, emacs GUI hangs.
5. Kill the test program in 2. Emacs GUI still hangs.




In GNU Emacs 25.2.1 (x86_64-apple-darwin16.5.0, NS appkit-1504.82 Version 10.12.4 (Build 16E195))
 of 2017-05-01 built on jundemac
Windowing system distributor 'Apple', version 10.3.1504
Configured using:
 'configure --with-ns '--enable-locallisppath=/Library/Application
 Support/Emacs/${version}/site-lisp:/Library/Application
 Support/Emacs/site-lisp' --with-modules --without-makeinfo
 --disable-acl --with-gnutls=no'

Configured features:
NOTIFY LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES

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

Major mode: C++/lah

Minor modes in effect:
  highlight-parentheses-mode: t
  company-mode: t
  yas-minor-mode: t
  flycheck-mode: t
  global-hl-line-mode: t
  recentf-mode: t
  irony-mode: t
  auto-insert-mode: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  server-mode: t
  ido-everywhere: t
  which-function-mode: t
  desktop-save-mode: t
  auto-image-file-mode: t
  global-auto-revert-mode: t
  icomplete-mode: t
  delete-selection-mode: t
  display-time-mode: t
  show-paren-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t

Recent messages:
expected expression [2 times]
Wrote /Users/jun/Projects/repo1/vbox_cloud_server2/common/timer_manager.cpp
Reverting buffer ‘main.cpp’.
Type C-c C-c to commit (C-c C-k to cancel).
git finished.
Type C-c C-c to commit (C-c C-k to cancel).
git finished.
Type a prefix key to toggle it. Run ’actions’ with their prefixes. ’?’ for more help.
Running git push -v origin master:refs/heads/master
git finished.

Load-path shadows:
/Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/seq hides ~/.lisp/lib/seq
/Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/let-alist hides ~/.lisp/lib/let-alist

Features:
(shadow sort mail-extr emacsbug sendmail hippie-exp find-file
my-dev-funcs dabbrev misearch multi-isearch wgrep-ag wgrep grep ag
idomenu my-tools magit-bisect magit-key-mode magit esh-var esh-io
esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module
esh-mode esh-util ediff-merg ediff-wind ediff-diff ediff-mult ediff-help
ediff-init ediff-util ediff diff-mode log-edit message rfc822 mml
mml-sec password-cache epg epg-config mm-decode mm-bodies mm-encode
mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util help-fns
mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log
ox-beamer ox-latex ox-html ox-ascii ox-publish ox my-reminder bookmark
pp time-stamp my-flist-body dired-aux conf-mode js sgml-mode json map
make-mode sql view thingatpt highlight-parentheses company-dabbrev-code
company-dabbrev company-irony company-irony-c-headers company yasnippet
irony-completion irony-snippet flycheck-irony irony-diagnostics flycheck
rx dash compile let-alist cc-mode cc-fonts cc-guess cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs org-element org-rmail
org-mhe org-irc org-info org-gnus gnus-util org-docview doc-view subr-x
jka-compr image-mode dired-x dired org-bibtex bibtex org-bbdb org-w3m
ob-ditaa org org-macro org-footnote org-pcomplete pcomplete org-list
org-faces org-entities noutline outline org-version ob-emacs-lisp ob
ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint comint
ansi-color ring ob-core ob-eval org-compat org-macs org-loaddefs
format-spec cal-menu calendar cal-loaddefs my-session
solarized-dark-theme solarized-definitions smex hl-line main-init
windmove my-abbrev my-mail my-autoload recentf tree-widget wid-edit
my-fpos my-snippet advice my-completion irony find-func my-skeleton
autoinsert my-dev my-org my-files my-color-theme undo-tree derived
easy-mmode cl-seq cl-macs diff cl helm-autoload bbdb-autoload
prog-modes-autoload emmet-autoload csharp-autoload swift-mode-autoload
go-mode-autoload goodies-autoload evil-autoload expand-region-load
multiple-cursors-load wgrep-autoload iedit-autoload flycheck-autoload
magit-autoload git-modes-autoload irony-autoload company-autoload
yasnippet-autoload autoload-main server ido seq byte-opt gv bytecomp
byte-compile cl-extra help-mode easymenu cconv edmacro kmacro which-func
imenu desktop frameset image-file autorevert filenotify cl-loaddefs
pcase cl-lib icomplete delsel time paren time-date mule-util china-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 796382 105831)
 (symbols 48 54736 0)
 (miscs 40 4999 6974)
 (strings 32 91157 14212)
 (string-bytes 1 3461233)
 (vectors 16 64127)
 (vector-slots 8 1928131 81493)
 (floats 8 693 606)
 (intervals 56 14600 1544)
 (buffers 976 197))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#27670; Package emacs. (Fri, 14 Jul 2017 15:21:02 GMT) Full text and rfc822 format available.

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

From: zhanghj <netjunegg <at> gmail.com>
To: 27670 <at> debbugs.gnu.org
Subject: emacs hangs
Date: Fri, 14 Jul 2017 23:20:24 +0800
Keeping pressing the "down" key may be not sufficient on high
performance computers. You can replace the "down" key with the
"pagedown" key.

The operation on emacs now:
Keep pressing the "pagedown" key. When emacs lags, keep pressing the
"down" key.

Repeat the above operation. Emacs finally hangs and can't recover after
about 10 minutes. 10 minutes later after I close the busy rxvt window,
emacs still hangs (with no cpu usage). It seems that it will never
recover.

When it hangs, I can't close the emacs window because it doesn't
respond. I can only kill the emacs process.

I reproduced the problem more than 3 times on my linux machine recently.
Now I can't do heavy work on emacs, when my console app is outputing too
many logs in tmux (in rxvt), because emacs may hangs.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#27670; Package emacs. (Sat, 15 Jul 2017 11:34:01 GMT) Full text and rfc822 format available.

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

From: Daniel Clemente <n142857 <at> gmail.com>
To: 27670 <at> debbugs.gnu.org
Subject: emacs hangs
Date: Sat, 15 Jul 2017 14:32:50 +0300
Try to disable XIM, by adding this to ~/.Xresources
emacs*useXIM: off
…and reload it with xrdb .Xresources.

This corrected the hang in emacs for me, for many years. But rxvt still keeps hanging under the same conditions you describe. This is related to xcb_wait_for_event, see https://bugs.freedesktop.org/show_bug.cgi?id=78081




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#27670; Package emacs. (Mon, 05 Jul 2021 14:01:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: zhanghj <netjunegg <at> gmail.com>
Cc: netjune <at> qq.com, 27670 <at> debbugs.gnu.org
Subject: Re: bug#27670: 25.2; emacs GUI hangs when rxvt is busy displaying logs
Date: Mon, 05 Jul 2021 15:59:51 +0200
zhanghj <netjunegg <at> gmail.com> writes:

> 1. Start rxvt-unicode and tmux.
> 2. Run a test program in tmux, which just prints text(include chinese chars) as fast as it can.
> 3. Start emacs GUI with "emacs -Q". Then open xdisp.c in emacs, and keep
> pressing the "down" key.
> 4. After about 15 seconds, emacs GUI hangs.
> 5. Kill the test program in 2. Emacs GUI still hangs.

(I'm going through old bug reports that unfortunately got little response at
the time.)

Are you still seeing these issues in more recent versions of Emacs?  The
issue seems to be related to XIM functionality, and I vaguely remember
there being some fixes in that area recently.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#27670; Package emacs. (Sat, 07 May 2022 11:47:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: zhanghj <netjunegg <at> gmail.com>
Cc: netjune <at> qq.com, 27670 <at> debbugs.gnu.org
Subject: Re: bug#27670: 25.2; emacs GUI hangs when rxvt is busy displaying logs
Date: Sat, 07 May 2022 13:46:37 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Are you still seeing these issues in more recent versions of Emacs?  The
> issue seems to be related to XIM functionality, and I vaguely remember
> there being some fixes in that area recently.

More information was requested, but no response was given within a
few months, so I'm closing this bug report.  If the problem still exists,
please respond to this email and we'll reopen the bug report.

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




bug closed, send any further explanations to 27670 <at> debbugs.gnu.org and zhanghj <netjunegg <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 07 May 2022 11:47:02 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, 05 Jun 2022 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 326 days ago.

Previous Next


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