GNU bug report logs - #9168
24.0.50; x-popup-dialog can freeze Emacs on OS X

Previous Next

Package: emacs;

Reported by: Ivan Andrus <darthandrus <at> gmail.com>

Date: Mon, 25 Jul 2011 14:39:01 UTC

Severity: normal

Found in version 24.0.50

Done: Jan Djärv <jan.h.d <at> swipnet.se>

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 9168 in the body.
You can then email your comments to 9168 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 owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9168; Package emacs. (Mon, 25 Jul 2011 14:39:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ivan Andrus <darthandrus <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 25 Jul 2011 14:39:01 GMT) Full text and rfc822 format available.

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

From: Ivan Andrus <darthandrus <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; x-popup-dialog can freeze Emacs on OS X
Date: Mon, 25 Jul 2011 16:37:58 +0200
From emacs -Q evaluating:

(x-popup-dialog t "hi")

will bring up a dialog with no way to dismiss it and no way to close it.  I have to force quit Emacs.  I can only test it on OS X right now.

I realize this is not the proper way to invoke x-popup-dialog, but something similar seems to be the cause of a problem that just happened to me in Customize.  I cannot reproduce it now, but ns_popup_dialog was in the gdb backtrace (which I foolishly didn't save), so I tried just running x-popup-dialog before reading the docstring and ran across this.  In the problem that I saw from inside customize I did not see a dialog at all, but the other symptoms were the same, so it may be that the dialog was displayed off screen where I simply couldn't dismiss it.



If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/Users/gvol/vcs/emacs/local/nextstep/Emacs.app/Contents/Resources/etc/DEBUG.


In GNU Emacs 24.0.50.6 (i386-apple-darwin10.8.0, NS apple-appkit-1038.36)
of 2011-07-25 on oroszlan.local
Windowing system distributor `Apple', version 10.3.1038
configured using `configure  '--with-ns''

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: nil
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  highlight-parentheses-mode: t
  highlight-symbol-mode: t
  hi-lock-mode: t
  drag-stuff-global-mode: t
  drag-stuff-mode: t
  eldoc-mode: t
  hl-sexp-mode: t
  which-function-mode: t
  show-paren-mode: t
  recentf-mode: t
  msb-mode: t
  ido-everywhere: t
  global-hl-line-mode: t
  delete-selection-mode: t
  auto-image-file-mode: t
  auto-insert-mode: t
  yas/global-mode: t
  global-visible-mark-mode: t
  visible-mark-mode: t
  gvol-mode: t
  desktop-save-mode: t
  command-frequency-autosave-mode: t
  command-frequency-mode: t
  itunes-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-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
  transient-mark-mode: t

Recent input:
y M-x e m a c s <tab> r e <tab> <backspace> <backspace> 
C-g M-x r e p o <tab> r <tab> <return>

Recent messages:
Making completion list...
Desktop lazily opening results.gap (5 remaining)...
tex now compiling remotely
tex now compiling locally
Current project is tex
iTunes not running
Desktop lazily opening results.gap (5 remaining)...done
Desktop lazily opening trac.org (4 remaining)...
iTunes not running
Desktop lazily opening trac.org (4 remaining)...done

Load-path shadows:
None found.

Features:
(shadow sort mail-extr message rfc822 mml mml-sec mm-decode mm-bodies
mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev
mail-utils gmm-utils mailheader subword emacsbug gvol-light-theme
sage-mode compile ansi-color python-21 python gap-mode gap-process
highlight-parentheses highlight-symbol hi-lock drag-stuff eldoc hl-sexp
thingatpt greedy-delete vc-hg reveal org-habit org-wl org-w3m org-vm
org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp
ob-exp org-exp-blocks org-info org-gnus org-docview org-bibtex org-bbdb
org-agenda ob-python org ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table
org-footnote org-src ob-comint comint ring ob-keys ob ob-eval
org-complete pcomplete org-list org-faces org-compat org-entities
org-macs noutline outline auctex-autoloads tex-site info
drag-stuff-autoloads highlight-parentheses-autoloads
highlight-symbol-autoloads speck-autoloads xml-rpc-autoloads package
tabulated-list saveplace uniquify jka-compr which-func imenu paren
recentf tree-widget wid-edit msb ido icomplete hl-line delsel image-file
cus-start cus-load diary-lib diary-loaddefs cal-menu calendar
cal-loaddefs warnings autoinsert yasnippet dropdown-list derived edmacro
kmacro help-mode view tramp tramp-compat auth-source eieio byte-opt
bytecomp byte-compile cconv macroexp gnus-util mm-util mail-prsvr
password-cache format-spec tramp-loaddefs visible-mark parenface fold cl
xml desktop browse-kill-ring backtr command-frequency uptimes pp server
easy-mmode assoc dired+ dired-x easymenu ediff-merg ediff-diff
ediff-wind ediff-mult ediff-help ediff-init ediff-util dired-aux dired
regexp-opt advice help-fns advice-preload windmove time-date tooltip
ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset
image fringe lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer loaddefs button faces cus-face files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process ns multi-tty
emacs)




Reply sent to Jan Djärv <jan.h.d <at> swipnet.se>:
You have taken responsibility. (Mon, 25 Jul 2011 21:56:02 GMT) Full text and rfc822 format available.

Notification sent to Ivan Andrus <darthandrus <at> gmail.com>:
bug acknowledged by developer. (Mon, 25 Jul 2011 21:56:02 GMT) Full text and rfc822 format available.

Message #10 received at 9168-done <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Ivan Andrus <darthandrus <at> gmail.com>
Cc: 9168-done <at> debbugs.gnu.org
Subject: Re: bug#9168: 24.0.50; x-popup-dialog can freeze Emacs on OS X
Date: Mon, 25 Jul 2011 23:55:14 +0200
Hello.

I checked in a fix so x-popup-dialog behaves the same as the X11 versions of 
Emacs, i.e.: (x-popup-dialog t "hi") throws an error, and if no buttons have 
been specified, as in (x-popup-dialog t '("hi")), an "Ok" button is shown.

	Jan D.


Ivan Andrus skrev 2011-07-25 16:37:
>  From emacs -Q evaluating:
>
> (x-popup-dialog t "hi")
>
> will bring up a dialog with no way to dismiss it and no way to close it.  I have to force quit Emacs.  I can only test it on OS X right now.
>
> I realize this is not the proper way to invoke x-popup-dialog, but something similar seems to be the cause of a problem that just happened to me in Customize.  I cannot reproduce it now, but ns_popup_dialog was in the gdb backtrace (which I foolishly didn't save), so I tried just running x-popup-dialog before reading the docstring and ran across this.  In the problem that I saw from inside customize I did not see a dialog at all, but the other symptoms were the same, so it may be that the dialog was displayed off screen where I simply couldn't dismiss it.
>
>
>
> If Emacs crashed, and you have the Emacs process in the gdb debugger,
> please include the output from the following gdb commands:
>      `bt full' and `xbacktrace'.
> For information about debugging Emacs, please read the file
> /Users/gvol/vcs/emacs/local/nextstep/Emacs.app/Contents/Resources/etc/DEBUG.
>
>
> In GNU Emacs 24.0.50.6 (i386-apple-darwin10.8.0, NS apple-appkit-1038.36)
> of 2011-07-25 on oroszlan.local
> Windowing system distributor `Apple', version 10.3.1038
> configured using `configure  '--with-ns''
>
> 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: nil
>    value of $XMODIFIERS: nil
>    locale-coding-system: nil
>    default enable-multibyte-characters: t
>
> Major mode: Lisp Interaction
>
> Minor modes in effect:
>    highlight-parentheses-mode: t
>    highlight-symbol-mode: t
>    hi-lock-mode: t
>    drag-stuff-global-mode: t
>    drag-stuff-mode: t
>    eldoc-mode: t
>    hl-sexp-mode: t
>    which-function-mode: t
>    show-paren-mode: t
>    recentf-mode: t
>    msb-mode: t
>    ido-everywhere: t
>    global-hl-line-mode: t
>    delete-selection-mode: t
>    auto-image-file-mode: t
>    auto-insert-mode: t
>    yas/global-mode: t
>    global-visible-mark-mode: t
>    visible-mark-mode: t
>    gvol-mode: t
>    desktop-save-mode: t
>    command-frequency-autosave-mode: t
>    command-frequency-mode: t
>    itunes-mode: t
>    tooltip-mode: t
>    mouse-wheel-mode: t
>    tool-bar-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
>    transient-mark-mode: t
>
> Recent input:
> y M-x e m a c s<tab>  r e<tab>  <backspace>  <backspace>
> C-g M-x r e p o<tab>  r<tab>  <return>
>
> Recent messages:
> Making completion list...
> Desktop lazily opening results.gap (5 remaining)...
> tex now compiling remotely
> tex now compiling locally
> Current project is tex
> iTunes not running
> Desktop lazily opening results.gap (5 remaining)...done
> Desktop lazily opening trac.org (4 remaining)...
> iTunes not running
> Desktop lazily opening trac.org (4 remaining)...done
>
> Load-path shadows:
> None found.
>
> Features:
> (shadow sort mail-extr message rfc822 mml mml-sec mm-decode mm-bodies
> mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev
> mail-utils gmm-utils mailheader subword emacsbug gvol-light-theme
> sage-mode compile ansi-color python-21 python gap-mode gap-process
> highlight-parentheses highlight-symbol hi-lock drag-stuff eldoc hl-sexp
> thingatpt greedy-delete vc-hg reveal org-habit org-wl org-w3m org-vm
> org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp
> ob-exp org-exp-blocks org-info org-gnus org-docview org-bibtex org-bbdb
> org-agenda ob-python org ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table
> org-footnote org-src ob-comint comint ring ob-keys ob ob-eval
> org-complete pcomplete org-list org-faces org-compat org-entities
> org-macs noutline outline auctex-autoloads tex-site info
> drag-stuff-autoloads highlight-parentheses-autoloads
> highlight-symbol-autoloads speck-autoloads xml-rpc-autoloads package
> tabulated-list saveplace uniquify jka-compr which-func imenu paren
> recentf tree-widget wid-edit msb ido icomplete hl-line delsel image-file
> cus-start cus-load diary-lib diary-loaddefs cal-menu calendar
> cal-loaddefs warnings autoinsert yasnippet dropdown-list derived edmacro
> kmacro help-mode view tramp tramp-compat auth-source eieio byte-opt
> bytecomp byte-compile cconv macroexp gnus-util mm-util mail-prsvr
> password-cache format-spec tramp-loaddefs visible-mark parenface fold cl
> xml desktop browse-kill-ring backtr command-frequency uptimes pp server
> easy-mmode assoc dired+ dired-x easymenu ediff-merg ediff-diff
> ediff-wind ediff-mult ediff-help ediff-init ediff-util dired-aux dired
> regexp-opt advice help-fns advice-preload windmove time-date tooltip
> ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset
> image fringe lisp-mode register page menu-bar rfn-eshadow timer select
> scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
> georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
> korean japanese hebrew greek romanian slovak czech european ethiopic
> indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
> abbrev minibuffer loaddefs button faces cus-face files text-properties
> overlay sha1 md5 base64 format env code-pages mule custom widget
> hashtable-print-readable backquote make-network-process ns multi-tty
> emacs)
>
>




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 23 Aug 2011 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 306 days ago.

Previous Next


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