unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9310: BadWindow error with quail guidance frame
@ 2011-08-16 20:15 Stefan Monnier
  2011-08-17  6:03 ` Jan D.
  0 siblings, 1 reply; 10+ messages in thread
From: Stefan Monnier @ 2011-08-16 20:15 UTC (permalink / raw)
  To: 9310

emacs -Q --eval "(setq default-frame-alist '((minibuffer . nil)))" --eval '(quail-define-package "Agda" "UTF-8" "A" t)'
C-u C-\ agda RET
M-%

and I get the appended backtrace.  As the input method name explains,
I bump into this problem when I use Agda (i.e. pretty often these days).


        Stefan


Breakpoint 6, x_error_quitter (display=0x88f9000, event=0xbfffbaf0)
    at xterm.c:7882
(gdb) bt
#0  x_error_quitter (display=0x88f9000, event=0xbfffbaf0) at xterm.c:7882
#1  0x081b3ee9 in x_error_handler (display=0x88f9000, event=0xbfffbaf0)
    at xterm.c:7861
#2  0xb74940d3 in _XError () from /usr/lib/i386-linux-gnu/libX11.so.6
#3  0xb7490d7d in ?? () from /usr/lib/i386-linux-gnu/libX11.so.6
#4  0xb7490dd7 in ?? () from /usr/lib/i386-linux-gnu/libX11.so.6
#5  0xb7491c90 in _XReply () from /usr/lib/i386-linux-gnu/libX11.so.6
#6  0xb748d236 in XSync () from /usr/lib/i386-linux-gnu/libX11.so.6
#7  0xb748d2d3 in ?? () from /usr/lib/i386-linux-gnu/libX11.so.6
#8  0xb746b0e3 in XSetWindowBorder () from /usr/lib/i386-linux-gnu/libX11.so.6
#9  0x081aa3f2 in frame_highlight (f=0x8be6610) at xterm.c:3357
#10 0x081aab15 in x_frame_rehighlight (dpyinfo=0x8937000) at xterm.c:3560
#11 0x081aa9ad in XTframe_rehighlight (frame=0x8c793d8) at xterm.c:3532
#12 0x080721bd in Fredirect_frame_focus (frame=..., focus_frame=...)
    at frame.c:1970
#13 0x0806b5a7 in do_switch_frame (frame=..., track=1, for_deletion=0, 
    norecord=...) at frame.c:822
#14 0x0806c0c3 in Fselect_frame (frame=..., norecord=...) at frame.c:874
#15 0x080fec98 in select_frame_norecord (frame=...) at window.c:2921
#16 0x080fefbf in run_window_configuration_change_hook (f=0x8be6610)
    at window.c:2946
#17 0x081bdea3 in x_set_menu_bar_lines (f=0x8be6610, value=..., oldval=...)
    at xfns.c:1268
#18 0x08075d83 in x_set_frame_parameters (f=0x8be6610, alist=...)
    at frame.c:2924
#19 0x0807abcd in x_default_parameter (f=0x8be6610, alist=..., prop=..., 
    deflt=..., xprop=0x0, xclass=0x0, type=RES_TYPE_NUMBER) at frame.c:3919
#20 0x081c24ca in Fx_create_frame (parms=...) at xfns.c:3319
#21 0x08341926 in Ffuncall (nargs=2, args=0xbfffc260) at eval.c:3009
#22 0x083bae73 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., 
    args_template=..., nargs=0, args=0x0) at bytecode.c:785
#23 0x08342c29 in funcall_lambda (fun=..., nargs=1, arg_vector=0x4)
    at eval.c:3240
#24 0x08341dec in Ffuncall (nargs=2, args=0xbfffc5f0) at eval.c:3058
#25 0x083bae73 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., 
    args_template=..., nargs=0, args=0x0) at bytecode.c:785
#26 0x08342c29 in funcall_lambda (fun=..., nargs=1, arg_vector=0x5)
    at eval.c:3240
#27 0x08341dec in Ffuncall (nargs=2, args=0xbfffc990) at eval.c:3058
#28 0x083bae73 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., 
    args_template=..., nargs=0, args=0x0) at bytecode.c:785
#29 0x08342c29 in funcall_lambda (fun=..., nargs=0, arg_vector=0x7)
    at eval.c:3240
#30 0x08341dec in Ffuncall (nargs=1, args=0xbfffcd30) at eval.c:3058
#31 0x083bae73 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., 
    args_template=..., nargs=0, args=0x0) at bytecode.c:785
#32 0x08342c29 in funcall_lambda (fun=..., nargs=0, arg_vector=0x5)
    at eval.c:3240
#33 0x08341dec in Ffuncall (nargs=1, args=0xbfffd0d0) at eval.c:3058
#34 0x083bae73 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., 
    args_template=..., nargs=0, args=0x0) at bytecode.c:785
#35 0x08342c29 in funcall_lambda (fun=..., nargs=0, arg_vector=0x5)
    at eval.c:3240
#36 0x08341dec in Ffuncall (nargs=1, args=0xbfffd470) at eval.c:3058
#37 0x083bae73 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., 
    args_template=..., nargs=0, args=0x0) at bytecode.c:785
#38 0x08342c29 in funcall_lambda (fun=..., nargs=1, arg_vector=0x4)
    at eval.c:3240
#39 0x08341dec in Ffuncall (nargs=2, args=0xbfffd934) at eval.c:3058
#40 0x0833fa9e in Fapply (nargs=3, args=0xbfffd934) at eval.c:2457
#41 0x0834163d in Ffuncall (nargs=4, args=0xbfffd930) at eval.c:2991
#42 0x083bae73 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., 
    args_template=..., nargs=0, args=0x0) at bytecode.c:785
#43 0x08342c29 in funcall_lambda (fun=..., nargs=1, arg_vector=0x6)
    at eval.c:3240
#44 0x08341dec in Ffuncall (nargs=2, args=0xbfffdcdc) at eval.c:3058
#45 0x08340bed in call1 (fn=..., arg1=...) at eval.c:2778
#46 0x082bed37 in read_minibuf (map=..., initial=..., prompt=..., 
    backup_n=..., expflag=0, histvar=..., histpos=..., defalt=..., 
    allow_props=0, inherit_input_method=1) at minibuf.c:666
#47 0x082bff32 in Fread_from_minibuffer (prompt=..., initial_contents=..., 
    keymap=..., read=..., hist=..., default_value=..., 
    inherit_input_method=...) at minibuf.c:967
#48 0x08341cbf in Ffuncall (nargs=8, args=0xbfffdfa0) at eval.c:3035
#49 0x083bae73 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., 
    args_template=..., nargs=0, args=0x0) at bytecode.c:785
#50 0x08342c29 in funcall_lambda (fun=..., nargs=2, arg_vector=0x9)
    at eval.c:3240
#51 0x08341dec in Ffuncall (nargs=3, args=0xbfffe350) at eval.c:3058
#52 0x083bae73 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., 
    args_template=..., nargs=0, args=0x0) at bytecode.c:785
#53 0x08342c29 in funcall_lambda (fun=..., nargs=2, arg_vector=0x5)
    at eval.c:3240
#54 0x083421d0 in apply_lambda (fun=..., args=...) at eval.c:3117
#55 0x0833f7bd in eval_sub (form=...) at eval.c:2402
#56 0x0833b596 in Flet (args=...) at eval.c:1065
#57 0x0833ed71 in eval_sub (form=...) at eval.c:2305
#58 0x0833e799 in Feval (form=..., lexical=...) at eval.c:2211
#59 0x08335768 in Fcall_interactively (function=..., record_flag=..., 
    keys=...) at callint.c:346
#60 0x08341a2b in Ffuncall (nargs=4, args=0xbfffec94) at eval.c:3016
#61 0x08340c89 in call3 (fn=..., arg1=..., arg2=..., arg3=...) at eval.c:2809
#62 0x0827c2f1 in Fcommand_execute (cmd=..., record_flag=..., keys=..., 
    special=...) at keyboard.c:10274
#63 0x0825b989 in command_loop_1 () at keyboard.c:1572
#64 0x0833c70c in internal_condition_case (bfun=0x825a72c <command_loop_1>, 
    handlers=..., hfun=0x8259d74 <cmd_error>) at eval.c:1493
#65 0x0825a2c3 in command_loop_2 (ignore=...) at keyboard.c:1156
#66 0x0833bf0a in internal_catch (tag=..., func=0x825a297 <command_loop_2>, 
    arg=...) at eval.c:1247
#67 0x0825a26c in command_loop () at keyboard.c:1135
#68 0x08259666 in recursive_edit_1 () at keyboard.c:756
#69 0x08259a06 in Frecursive_edit () at keyboard.c:820
#70 0x08257151 in main (argc=6, argv=0xbffff574) at emacs.c:1705

Lisp Backtrace:
"x-create-frame" (0xbfffc264)
"x-create-frame-with-faces" (0xbfffc5f4)
"make-frame" (0xbfffc994)
"quail-make-guidance-frame" (0xbfffcd34)
"quail-show-guidance" (0xbfffd0d4)
"quail-activate" (0xbfffd474)
"quail-use-package" (0xbfffd938)
"apply" (0xbfffd934)
"activate-input-method" (0xbfffdce0)
"read-from-minibuffer" (0xbfffdfa4)
"query-replace-read-from" (0xbfffe354)
"query-replace-read-args" (0xbfffe630)
"let" (0xbfffe938)
"call-interactively" (0xbfffec98)




In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.4)
 of 2011-08-12 on faina
Windowing system distributor `The X.Org Foundation', version 11.0.11002000
configured using `configure  'CFLAGS=-Wall -Wno-pointer-sign -DUSE_LISP_UNION_TYPE -DSYNC_INPUT -DENABLE_CHECKING -DXASSERTS -DFONTSET_DEBUG -g -O1 -I/usr/include/GNUstep' 'LDFLAGS=-L/home/monnier/src/Xaw3d' 'CPPFLAGS=-I/home/monnier/src/Xaw3d' '--enable-maintainer-mode''

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: fr_CH.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  diff-auto-refine-mode: t
  gnus-undo-mode: t
  electric-pair-mode: t
  electric-indent-mode: t
  url-handler-mode: t
  global-reveal-mode: t
  reveal-mode: t
  auto-insert-mode: t
  savehist-mode: t
  minibuffer-electric-default-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
SPC c o m p l e t e SPC C-e <M-backspace> <M-backspace> 
<M-backspace> <M-backspace> <M-backspace> <M-backspace> 
<M-backspace> <M-backspace> <backspace> <backspace> 
. <switch-frame> <switch-frame> <help-echo> <down-mouse-1> 
<mouse-1> <backspace> <backspace> <backspace> <backspace> 
SPC p o w e r C-e <right> <down> <left> <right> <down> 
<right> <up> <left> <right> <right> <up> <up> <up> 
<left> <right> <up> <left> <right> <down> <left> <right> 
<down> <down> <down> <down> C-q C-j C-q C-j C-q C-j 
M-i S t e f a n <switch-frame> <switch-frame> <down-mouse-1> 
<mouse-movement> <mouse-1> p r o b l e m SPC C-e <right> 
<down> <left> <right> <down> <left> <right> <up> <up> 
<up> <up> <left> <right> <down> <left> <right> <down> 
<left> <right> <down> <left> <right> <up> <left> <right> 
<up> <up> <left> <right> <down> <down> <left> <right> 
<down> <left> <right> <down> <left> <right> <up> <left> 
<right> <up> <left> <right> <down> <left> <right> <down> 
<left> <right> <up> <up> <left> <right> <down> <left> 
<right> <down> <left> <right> <up> <left> <right> <up> 
<left> <right> <down> <left> <right> <down> <left> 
<right> <up> <up> <left> <right> <down> <left> <right> 
<down> <left> <right> <up> <left> <right> <up> <left> 
<right> <down> <left> <right> <down> <left> <right> 
<up> <up> <left> <right> <down> <left> <right> <down> 
<left> <right> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <down-mouse-1> <mouse-movement> <mouse-1> 
SPC ( a k a SPC <down-mouse-2> <mouse-2> C-e <switch-frame> 
<switch-frame> M-q C-a <up> S e e SPC SPC <backspace> 
M-q <down> <down> <left> . C-c C-c q s <switch-frame> 
<switch-frame> <switch-frame> C-x 5 0 <switch-frame> 
g <select-window> <select-window> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <return> <return> 
M-> q s <select-window> <select-window> <select-window> 
<select-window> <up> <return> M-> q s <down> <return> 
<return> <select-window> <select-window> k q s <down> 
<down> <return> C-g <select-window> M-x r e p o <tab> 
r <tab> <return>

Recent messages:
Expiring articles...done
Saving /home/monnier/var/newsrc.eld...
Saving file /home/monnier/var/newsrc.eld...
Wrote /home/monnier/var/newsrc.eld
Saving /home/monnier/var/newsrc.eld...done
Retrieving newsgroup: nnimap+diro:emacs...
Quit getting the articles to read
Quit
Warning: interactive-p is obsolete! [3 times]
Making completion list...

Load-path shadows:
/usr/share/emacs23/site-lisp/bbdb/bbdb-com hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-com
/usr/share/emacs23/site-lisp/bbdb/bbdb-ftp hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-ftp
/usr/share/emacs23/site-lisp/bbdb/bbdb-rmail hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-rmail
/usr/share/emacs23/site-lisp/bbdb/bbdb-mhe hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-mhe
/usr/share/emacs23/site-lisp/bbdb/bbdb-gui hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-gui
/usr/share/emacs23/site-lisp/bbdb/bbdb-print hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-print
/usr/share/emacs23/site-lisp/bbdb/bbdb hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb
/usr/share/emacs23/site-lisp/bbdb/bbdb-w3 hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-w3
/usr/share/emacs23/site-lisp/bbdb/bbdb-sc hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-sc
/usr/share/emacs23/site-lisp/bbdb/bbdb-whois hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-whois
/usr/share/emacs23/site-lisp/bbdb/bbdb-snarf hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-snarf
/usr/share/emacs23/site-lisp/bbdb/bbdb-merge hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-merge
/usr/share/emacs23/site-lisp/bbdb/bbdb-vm hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-vm
/usr/share/emacs23/site-lisp/bbdb/bbdb-migrate hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-migrate
/usr/share/emacs23/site-lisp/bbdb/bbdb-gnus hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-gnus
/usr/share/emacs23/site-lisp/bbdb/bbdb-hooks hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-hooks

Features:
(shadow emacsbug canlock multi-isearch ielm comint ring diff-mode
jka-compr gnus-fun mailalias sendmail supercite regi mule-util nnfolder
gnus-html browse-url xml url-cache mm-url url url-proxy url-privacy
url-expand url-methods url-history url-cookie url-util flow-fill
executable copyright pp sort smiley ansi-color gnus-cite mail-extr
gnus-async gnus-bcklg qp gnus-ml nndraft nnmh rfc2104 nnimap parse-time
utf7 netrc nnagent nnml network-stream starttls tls gnus-agent gnus-srvr
gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015
epg-config mm-view mml-smime smime dig mailcap nntp gnus-cache nnir
gnus-sum nnoo gnus-group gnus-undo nnmail mail-source server gnus-start
gnus-spec gnus-int gnus-range message format-spec rfc822 mml mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems
nnheader mail-utils wid-edit noutline outline easy-mmode flyspell ispell
eldoc checkdoc regexp-opt thingatpt help-mode easymenu view prog-mode
electric url-handlers url-parse auth-source warnings eieio byte-opt
bytecomp byte-compile cconv macroexp assoc gnus-util password-cache
url-vars mm-util mail-prsvr reveal autoinsert uniquify advice help-fns
advice-preload time-date savehist minibuf-eldef disp-table cl
cl-loaddefs package tabulated-list proof-site proof-autoloads pg-vars
bbdb-autoloads agda2 tooltip ediff-hook vc-hooks lisp-float-type mwheel
x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page
newcomment menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax 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 dbusbind dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit
x multi-tty emacs)





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#9310: BadWindow error with quail guidance frame
  2011-08-16 20:15 bug#9310: BadWindow error with quail guidance frame Stefan Monnier
@ 2011-08-17  6:03 ` Jan D.
  2011-08-17 13:46   ` Stefan Monnier
  0 siblings, 1 reply; 10+ messages in thread
From: Jan D. @ 2011-08-17  6:03 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 9310

Stefan Monnier skrev 2011-08-16 22:15:
> emacs -Q --eval "(setq default-frame-alist '((minibuffer . nil)))" --eval '(quail-define-package "Agda" "UTF-8" "A" t)'
> C-u C-\ agda RET
> M-%
>
> and I get the appended backtrace.  As the input method name explains,
> I bump into this problem when I use Agda (i.e. pretty often these days).
>

Is it possible that the frame switched to (0x8c793d8 at #13) is deleted?

	Jan D.

>
>          Stefan
>
>
> Breakpoint 6, x_error_quitter (display=0x88f9000, event=0xbfffbaf0)
>      at xterm.c:7882
> (gdb) bt
> #0  x_error_quitter (display=0x88f9000, event=0xbfffbaf0) at xterm.c:7882
> #1  0x081b3ee9 in x_error_handler (display=0x88f9000, event=0xbfffbaf0)
>      at xterm.c:7861
> #2  0xb74940d3 in _XError () from /usr/lib/i386-linux-gnu/libX11.so.6
> #3  0xb7490d7d in ?? () from /usr/lib/i386-linux-gnu/libX11.so.6
> #4  0xb7490dd7 in ?? () from /usr/lib/i386-linux-gnu/libX11.so.6
> #5  0xb7491c90 in _XReply () from /usr/lib/i386-linux-gnu/libX11.so.6
> #6  0xb748d236 in XSync () from /usr/lib/i386-linux-gnu/libX11.so.6
> #7  0xb748d2d3 in ?? () from /usr/lib/i386-linux-gnu/libX11.so.6
> #8  0xb746b0e3 in XSetWindowBorder () from /usr/lib/i386-linux-gnu/libX11.so.6
> #9  0x081aa3f2 in frame_highlight (f=0x8be6610) at xterm.c:3357
> #10 0x081aab15 in x_frame_rehighlight (dpyinfo=0x8937000) at xterm.c:3560
> #11 0x081aa9ad in XTframe_rehighlight (frame=0x8c793d8) at xterm.c:3532
> #12 0x080721bd in Fredirect_frame_focus (frame=..., focus_frame=...)
>      at frame.c:1970
> #13 0x0806b5a7 in do_switch_frame (frame=..., track=1, for_deletion=0,
>      norecord=...) at frame.c:822
> #14 0x0806c0c3 in Fselect_frame (frame=..., norecord=...) at frame.c:874
> #15 0x080fec98 in select_frame_norecord (frame=...) at window.c:2921
> #16 0x080fefbf in run_window_configuration_change_hook (f=0x8be6610)
>      at window.c:2946
> #17 0x081bdea3 in x_set_menu_bar_lines (f=0x8be6610, value=..., oldval=...)
>      at xfns.c:1268
> #18 0x08075d83 in x_set_frame_parameters (f=0x8be6610, alist=...)
>      at frame.c:2924
> #19 0x0807abcd in x_default_parameter (f=0x8be6610, alist=..., prop=...,
>      deflt=..., xprop=0x0, xclass=0x0, type=RES_TYPE_NUMBER) at frame.c:3919
> #20 0x081c24ca in Fx_create_frame (parms=...) at xfns.c:3319
> #21 0x08341926 in Ffuncall (nargs=2, args=0xbfffc260) at eval.c:3009
> #22 0x083bae73 in exec_byte_code (bytestr=..., vector=..., maxdepth=...,
>      args_template=..., nargs=0, args=0x0) at bytecode.c:785
> #23 0x08342c29 in funcall_lambda (fun=..., nargs=1, arg_vector=0x4)
>      at eval.c:3240
> #24 0x08341dec in Ffuncall (nargs=2, args=0xbfffc5f0) at eval.c:3058
> #25 0x083bae73 in exec_byte_code (bytestr=..., vector=..., maxdepth=...,
>      args_template=..., nargs=0, args=0x0) at bytecode.c:785
> #26 0x08342c29 in funcall_lambda (fun=..., nargs=1, arg_vector=0x5)
>      at eval.c:3240
> #27 0x08341dec in Ffuncall (nargs=2, args=0xbfffc990) at eval.c:3058
> #28 0x083bae73 in exec_byte_code (bytestr=..., vector=..., maxdepth=...,
>      args_template=..., nargs=0, args=0x0) at bytecode.c:785
> #29 0x08342c29 in funcall_lambda (fun=..., nargs=0, arg_vector=0x7)
>      at eval.c:3240
> #30 0x08341dec in Ffuncall (nargs=1, args=0xbfffcd30) at eval.c:3058
> #31 0x083bae73 in exec_byte_code (bytestr=..., vector=..., maxdepth=...,
>      args_template=..., nargs=0, args=0x0) at bytecode.c:785
> #32 0x08342c29 in funcall_lambda (fun=..., nargs=0, arg_vector=0x5)
>      at eval.c:3240
> #33 0x08341dec in Ffuncall (nargs=1, args=0xbfffd0d0) at eval.c:3058
> #34 0x083bae73 in exec_byte_code (bytestr=..., vector=..., maxdepth=...,
>      args_template=..., nargs=0, args=0x0) at bytecode.c:785
> #35 0x08342c29 in funcall_lambda (fun=..., nargs=0, arg_vector=0x5)
>      at eval.c:3240
> #36 0x08341dec in Ffuncall (nargs=1, args=0xbfffd470) at eval.c:3058
> #37 0x083bae73 in exec_byte_code (bytestr=..., vector=..., maxdepth=...,
>      args_template=..., nargs=0, args=0x0) at bytecode.c:785
> #38 0x08342c29 in funcall_lambda (fun=..., nargs=1, arg_vector=0x4)
>      at eval.c:3240
> #39 0x08341dec in Ffuncall (nargs=2, args=0xbfffd934) at eval.c:3058
> #40 0x0833fa9e in Fapply (nargs=3, args=0xbfffd934) at eval.c:2457
> #41 0x0834163d in Ffuncall (nargs=4, args=0xbfffd930) at eval.c:2991
> #42 0x083bae73 in exec_byte_code (bytestr=..., vector=..., maxdepth=...,
>      args_template=..., nargs=0, args=0x0) at bytecode.c:785
> #43 0x08342c29 in funcall_lambda (fun=..., nargs=1, arg_vector=0x6)
>      at eval.c:3240
> #44 0x08341dec in Ffuncall (nargs=2, args=0xbfffdcdc) at eval.c:3058
> #45 0x08340bed in call1 (fn=..., arg1=...) at eval.c:2778
> #46 0x082bed37 in read_minibuf (map=..., initial=..., prompt=...,
>      backup_n=..., expflag=0, histvar=..., histpos=..., defalt=...,
>      allow_props=0, inherit_input_method=1) at minibuf.c:666
> #47 0x082bff32 in Fread_from_minibuffer (prompt=..., initial_contents=...,
>      keymap=..., read=..., hist=..., default_value=...,
>      inherit_input_method=...) at minibuf.c:967
> #48 0x08341cbf in Ffuncall (nargs=8, args=0xbfffdfa0) at eval.c:3035
> #49 0x083bae73 in exec_byte_code (bytestr=..., vector=..., maxdepth=...,
>      args_template=..., nargs=0, args=0x0) at bytecode.c:785
> #50 0x08342c29 in funcall_lambda (fun=..., nargs=2, arg_vector=0x9)
>      at eval.c:3240
> #51 0x08341dec in Ffuncall (nargs=3, args=0xbfffe350) at eval.c:3058
> #52 0x083bae73 in exec_byte_code (bytestr=..., vector=..., maxdepth=...,
>      args_template=..., nargs=0, args=0x0) at bytecode.c:785
> #53 0x08342c29 in funcall_lambda (fun=..., nargs=2, arg_vector=0x5)
>      at eval.c:3240
> #54 0x083421d0 in apply_lambda (fun=..., args=...) at eval.c:3117
> #55 0x0833f7bd in eval_sub (form=...) at eval.c:2402
> #56 0x0833b596 in Flet (args=...) at eval.c:1065
> #57 0x0833ed71 in eval_sub (form=...) at eval.c:2305
> #58 0x0833e799 in Feval (form=..., lexical=...) at eval.c:2211
> #59 0x08335768 in Fcall_interactively (function=..., record_flag=...,
>      keys=...) at callint.c:346
> #60 0x08341a2b in Ffuncall (nargs=4, args=0xbfffec94) at eval.c:3016
> #61 0x08340c89 in call3 (fn=..., arg1=..., arg2=..., arg3=...) at eval.c:2809
> #62 0x0827c2f1 in Fcommand_execute (cmd=..., record_flag=..., keys=...,
>      special=...) at keyboard.c:10274
> #63 0x0825b989 in command_loop_1 () at keyboard.c:1572
> #64 0x0833c70c in internal_condition_case (bfun=0x825a72c<command_loop_1>,
>      handlers=..., hfun=0x8259d74<cmd_error>) at eval.c:1493
> #65 0x0825a2c3 in command_loop_2 (ignore=...) at keyboard.c:1156
> #66 0x0833bf0a in internal_catch (tag=..., func=0x825a297<command_loop_2>,
>      arg=...) at eval.c:1247
> #67 0x0825a26c in command_loop () at keyboard.c:1135
> #68 0x08259666 in recursive_edit_1 () at keyboard.c:756
> #69 0x08259a06 in Frecursive_edit () at keyboard.c:820
> #70 0x08257151 in main (argc=6, argv=0xbffff574) at emacs.c:1705
>
> Lisp Backtrace:
> "x-create-frame" (0xbfffc264)
> "x-create-frame-with-faces" (0xbfffc5f4)
> "make-frame" (0xbfffc994)
> "quail-make-guidance-frame" (0xbfffcd34)
> "quail-show-guidance" (0xbfffd0d4)
> "quail-activate" (0xbfffd474)
> "quail-use-package" (0xbfffd938)
> "apply" (0xbfffd934)
> "activate-input-method" (0xbfffdce0)
> "read-from-minibuffer" (0xbfffdfa4)
> "query-replace-read-from" (0xbfffe354)
> "query-replace-read-args" (0xbfffe630)
> "let" (0xbfffe938)
> "call-interactively" (0xbfffec98)
>
>
>
>
> In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.4)
>   of 2011-08-12 on faina
> Windowing system distributor `The X.Org Foundation', version 11.0.11002000
> configured using `configure  'CFLAGS=-Wall -Wno-pointer-sign -DUSE_LISP_UNION_TYPE -DSYNC_INPUT -DENABLE_CHECKING -DXASSERTS -DFONTSET_DEBUG -g -O1 -I/usr/include/GNUstep' 'LDFLAGS=-L/home/monnier/src/Xaw3d' 'CPPFLAGS=-I/home/monnier/src/Xaw3d' '--enable-maintainer-mode''
>
> 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: fr_CH.UTF-8
>    value of $XMODIFIERS: nil
>    locale-coding-system: utf-8-unix
>    default enable-multibyte-characters: t
>
> Major mode: Group
>
> Minor modes in effect:
>    diff-auto-refine-mode: t
>    gnus-undo-mode: t
>    electric-pair-mode: t
>    electric-indent-mode: t
>    url-handler-mode: t
>    global-reveal-mode: t
>    reveal-mode: t
>    auto-insert-mode: t
>    savehist-mode: t
>    minibuffer-electric-default-mode: t
>    mouse-wheel-mode: t
>    menu-bar-mode: t
>    file-name-shadow-mode: t
>    global-font-lock-mode: t
>    font-lock-mode: t
>    auto-composition-mode: t
>    auto-encryption-mode: t
>    auto-compression-mode: t
>    line-number-mode: t
>    transient-mark-mode: t
>
> Recent input:
> SPC c o m p l e t e SPC C-e<M-backspace>  <M-backspace>
> <M-backspace>  <M-backspace>  <M-backspace>  <M-backspace>
> <M-backspace>  <M-backspace>  <backspace>  <backspace>
> .<switch-frame>  <switch-frame>  <help-echo>  <down-mouse-1>
> <mouse-1>  <backspace>  <backspace>  <backspace>  <backspace>
> SPC p o w e r C-e<right>  <down>  <left>  <right>  <down>
> <right>  <up>  <left>  <right>  <right>  <up>  <up>  <up>
> <left>  <right>  <up>  <left>  <right>  <down>  <left>  <right>
> <down>  <down>  <down>  <down>  C-q C-j C-q C-j C-q C-j
> M-i S t e f a n<switch-frame>  <switch-frame>  <down-mouse-1>
> <mouse-movement>  <mouse-1>  p r o b l e m SPC C-e<right>
> <down>  <left>  <right>  <down>  <left>  <right>  <up>  <up>
> <up>  <up>  <left>  <right>  <down>  <left>  <right>  <down>
> <left>  <right>  <down>  <left>  <right>  <up>  <left>  <right>
> <up>  <up>  <left>  <right>  <down>  <down>  <left>  <right>
> <down>  <left>  <right>  <down>  <left>  <right>  <up>  <left>
> <right>  <up>  <left>  <right>  <down>  <left>  <right>  <down>
> <left>  <right>  <up>  <up>  <left>  <right>  <down>  <left>
> <right>  <down>  <left>  <right>  <up>  <left>  <right>  <up>
> <left>  <right>  <down>  <left>  <right>  <down>  <left>
> <right>  <up>  <up>  <left>  <right>  <down>  <left>  <right>
> <down>  <left>  <right>  <up>  <left>  <right>  <up>  <left>
> <right>  <down>  <left>  <right>  <down>  <left>  <right>
> <up>  <up>  <left>  <right>  <down>  <left>  <right>  <down>
> <left>  <right>  <switch-frame>  <switch-frame>  <switch-frame>
> <switch-frame>  <switch-frame>  <switch-frame>  <switch-frame>
> <switch-frame>  <switch-frame>  <switch-frame>  <switch-frame>
> <switch-frame>  <switch-frame>  <switch-frame>  <switch-frame>
> <switch-frame>  <down-mouse-1>  <mouse-movement>  <mouse-1>
> SPC ( a k a SPC<down-mouse-2>  <mouse-2>  C-e<switch-frame>
> <switch-frame>  M-q C-a<up>  S e e SPC SPC<backspace>
> M-q<down>  <down>  <left>  . C-c C-c q s<switch-frame>
> <switch-frame>  <switch-frame>  C-x 5 0<switch-frame>
> g<select-window>  <select-window>  <up>  <up>  <up>  <up>
> <up>  <up>  <up>  <up>  <up>  <up>  <up>  <return>  <return>
> M->  q s<select-window>  <select-window>  <select-window>
> <select-window>  <up>  <return>  M->  q s<down>  <return>
> <return>  <select-window>  <select-window>  k q s<down>
> <down>  <return>  C-g<select-window>  M-x r e p o<tab>
> r<tab>  <return>
>
> Recent messages:
> Expiring articles...done
> Saving /home/monnier/var/newsrc.eld...
> Saving file /home/monnier/var/newsrc.eld...
> Wrote /home/monnier/var/newsrc.eld
> Saving /home/monnier/var/newsrc.eld...done
> Retrieving newsgroup: nnimap+diro:emacs...
> Quit getting the articles to read
> Quit
> Warning: interactive-p is obsolete! [3 times]
> Making completion list...
>
> Load-path shadows:
> /usr/share/emacs23/site-lisp/bbdb/bbdb-com hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-com
> /usr/share/emacs23/site-lisp/bbdb/bbdb-ftp hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-ftp
> /usr/share/emacs23/site-lisp/bbdb/bbdb-rmail hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-rmail
> /usr/share/emacs23/site-lisp/bbdb/bbdb-mhe hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-mhe
> /usr/share/emacs23/site-lisp/bbdb/bbdb-gui hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-gui
> /usr/share/emacs23/site-lisp/bbdb/bbdb-print hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-print
> /usr/share/emacs23/site-lisp/bbdb/bbdb hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb
> /usr/share/emacs23/site-lisp/bbdb/bbdb-w3 hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-w3
> /usr/share/emacs23/site-lisp/bbdb/bbdb-sc hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-sc
> /usr/share/emacs23/site-lisp/bbdb/bbdb-whois hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-whois
> /usr/share/emacs23/site-lisp/bbdb/bbdb-snarf hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-snarf
> /usr/share/emacs23/site-lisp/bbdb/bbdb-merge hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-merge
> /usr/share/emacs23/site-lisp/bbdb/bbdb-vm hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-vm
> /usr/share/emacs23/site-lisp/bbdb/bbdb-migrate hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-migrate
> /usr/share/emacs23/site-lisp/bbdb/bbdb-gnus hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-gnus
> /usr/share/emacs23/site-lisp/bbdb/bbdb-hooks hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-hooks
>
> Features:
> (shadow emacsbug canlock multi-isearch ielm comint ring diff-mode
> jka-compr gnus-fun mailalias sendmail supercite regi mule-util nnfolder
> gnus-html browse-url xml url-cache mm-url url url-proxy url-privacy
> url-expand url-methods url-history url-cookie url-util flow-fill
> executable copyright pp sort smiley ansi-color gnus-cite mail-extr
> gnus-async gnus-bcklg qp gnus-ml nndraft nnmh rfc2104 nnimap parse-time
> utf7 netrc nnagent nnml network-stream starttls tls gnus-agent gnus-srvr
> gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015
> epg-config mm-view mml-smime smime dig mailcap nntp gnus-cache nnir
> gnus-sum nnoo gnus-group gnus-undo nnmail mail-source server gnus-start
> gnus-spec gnus-int gnus-range message format-spec rfc822 mml mml-sec
> mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
> ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems
> nnheader mail-utils wid-edit noutline outline easy-mmode flyspell ispell
> eldoc checkdoc regexp-opt thingatpt help-mode easymenu view prog-mode
> electric url-handlers url-parse auth-source warnings eieio byte-opt
> bytecomp byte-compile cconv macroexp assoc gnus-util password-cache
> url-vars mm-util mail-prsvr reveal autoinsert uniquify advice help-fns
> advice-preload time-date savehist minibuf-eldef disp-table cl
> cl-loaddefs package tabulated-list proof-site proof-autoloads pg-vars
> bbdb-autoloads agda2 tooltip ediff-hook vc-hooks lisp-float-type mwheel
> x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page
> newcomment menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
> font-lock syntax 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 dbusbind dynamic-setting
> system-font-setting font-render-setting move-toolbar gtk x-toolkit
> x multi-tty emacs)
>
>






^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#9310: BadWindow error with quail guidance frame
  2011-08-17  6:03 ` Jan D.
@ 2011-08-17 13:46   ` Stefan Monnier
  2011-08-17 16:39     ` Jan Djärv
  0 siblings, 1 reply; 10+ messages in thread
From: Stefan Monnier @ 2011-08-17 13:46 UTC (permalink / raw)
  To: Jan D.; +Cc: 9310

>> emacs -Q --eval "(setq default-frame-alist '((minibuffer . nil)))" --eval
>> (quail-define-package "Agda" "UTF-8" "A" t)'
>> C-u C-\ agda RET
>> M-%
>> 
>> and I get the appended backtrace.  As the input method name explains,
>> I bump into this problem when I use Agda (i.e. pretty often these days).
> Is it possible that the frame switched to (0x8c793d8 at #13) is deleted?

AFAIK no frame is deleted in the above scenario, and the frame's
`terminal' field is not NULL (if that's what you were asking).
0x8c793d8 is the minibuffer-only frame.

IIUC your question, you can't reproduce it on your end?


        Stefan





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#9310: BadWindow error with quail guidance frame
  2011-08-17 13:46   ` Stefan Monnier
@ 2011-08-17 16:39     ` Jan Djärv
  2011-08-17 21:45       ` Chong Yidong
  2011-08-23  2:23       ` Stefan Monnier
  0 siblings, 2 replies; 10+ messages in thread
From: Jan Djärv @ 2011-08-17 16:39 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 9310



Stefan Monnier skrev 2011-08-17 15:46:
>>> emacs -Q --eval "(setq default-frame-alist '((minibuffer . nil)))" --eval
>>> (quail-define-package "Agda" "UTF-8" "A" t)'
>>> C-u C-\ agda RET
>>> M-%
>>>
>>> and I get the appended backtrace.  As the input method name explains,
>>> I bump into this problem when I use Agda (i.e. pretty often these days).
>> Is it possible that the frame switched to (0x8c793d8 at #13) is deleted?
>
> AFAIK no frame is deleted in the above scenario, and the frame's
> `terminal' field is not NULL (if that's what you were asking).
> 0x8c793d8 is the minibuffer-only frame.
>
> IIUC your question, you can't reproduce it on your end?
>

No I can not.

	Jan D.






^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#9310: BadWindow error with quail guidance frame
  2011-08-17 16:39     ` Jan Djärv
@ 2011-08-17 21:45       ` Chong Yidong
  2011-08-23  2:23       ` Stefan Monnier
  1 sibling, 0 replies; 10+ messages in thread
From: Chong Yidong @ 2011-08-17 21:45 UTC (permalink / raw)
  To: Jan Djärv; +Cc: 9310

Jan Djärv <jan.h.d@swipnet.se> writes:

>> IIUC your question, you can't reproduce it on your end?
>
> No I can not.

FWIW, neither can I.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#9310: BadWindow error with quail guidance frame
  2011-08-17 16:39     ` Jan Djärv
  2011-08-17 21:45       ` Chong Yidong
@ 2011-08-23  2:23       ` Stefan Monnier
  2011-08-23  6:17         ` Jan D.
  1 sibling, 1 reply; 10+ messages in thread
From: Stefan Monnier @ 2011-08-23  2:23 UTC (permalink / raw)
  To: Jan Djärv; +Cc: 9310

>>>> emacs -Q --eval "(setq default-frame-alist '((minibuffer . nil)))" --eval
>>>> (quail-define-package "Agda" "UTF-8" "A" t)'
>>>> C-u C-\ agda RET
>>>> M-%
>>>> and I get the appended backtrace.  As the input method name explains,
>>>> I bump into this problem when I use Agda (i.e. pretty often these days).
>>> Is it possible that the frame switched to (0x8c793d8 at #13) is deleted?
>> AFAIK no frame is deleted in the above scenario, and the frame's
>> `terminal' field is not NULL (if that's what you were asking).
>> 0x8c793d8 is the minibuffer-only frame.
>> IIUC your question, you can't reproduce it on your end?
> No I can not.

Can someone help me figure out how to debug this (my X11 programming is
part rusty part nonexistent)?


        Stefan





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#9310: BadWindow error with quail guidance frame
  2011-08-23  2:23       ` Stefan Monnier
@ 2011-08-23  6:17         ` Jan D.
  2011-08-23 19:40           ` Stefan Monnier
  0 siblings, 1 reply; 10+ messages in thread
From: Jan D. @ 2011-08-23  6:17 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 9310

Stefan Monnier skrev 2011-08-23 04:23:
>>>>> emacs -Q --eval "(setq default-frame-alist '((minibuffer . nil)))" --eval
>>>>> (quail-define-package "Agda" "UTF-8" "A" t)'
>>>>> C-u C-\ agda RET
>>>>> M-%
>>>>> and I get the appended backtrace.  As the input method name explains,
>>>>> I bump into this problem when I use Agda (i.e. pretty often these days).
>>>> Is it possible that the frame switched to (0x8c793d8 at #13) is deleted?
>>> AFAIK no frame is deleted in the above scenario, and the frame's
>>> `terminal' field is not NULL (if that's what you were asking).
>>> 0x8c793d8 is the minibuffer-only frame.
>>> IIUC your question, you can't reproduce it on your end?
>> No I can not.
>
> Can someone help me figure out how to debug this (my X11 programming is
> part rusty part nonexistent)?
>

Basically set synchronized and break in the error function.  Then go up 
the call stack to find the frame the window belongs to, or see if it is 
some uninitialized value.

	Jan D.







^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#9310: BadWindow error with quail guidance frame
  2011-08-23  6:17         ` Jan D.
@ 2011-08-23 19:40           ` Stefan Monnier
  2011-08-24 13:32             ` Jan D.
  0 siblings, 1 reply; 10+ messages in thread
From: Stefan Monnier @ 2011-08-23 19:40 UTC (permalink / raw)
  To: Jan D.; +Cc: 9310

> Basically set synchronized and break in the error function.

OK, that part was already done.

> Then go up the call stack to find the frame the window belongs to,

That as well: it's the minibuffer-only frame.

> or see if it is some uninitialized value.

Doesn't look like it, the frames involved seem to have sensible
field values.  This problem started around the time the new window.c code
was installed, FWIW (which doesn't mean it's actually related).


        Stefan


(gdb) bt
#0  x_error_quitter (display=0x890b200, event=0xbfffba10) at xterm.c:7882
#1  0x081b4f29 in x_error_handler (display=0x890b200, event=0xbfffba10)
    at xterm.c:7861
#2  0xb747d0d3 in _XError () from /usr/lib/i386-linux-gnu/libX11.so.6
#3  0xb7479d7d in ?? () from /usr/lib/i386-linux-gnu/libX11.so.6
#4  0xb7479dd7 in ?? () from /usr/lib/i386-linux-gnu/libX11.so.6
#5  0xb747ac90 in _XReply () from /usr/lib/i386-linux-gnu/libX11.so.6
#6  0xb7476236 in XSync () from /usr/lib/i386-linux-gnu/libX11.so.6
#7  0xb74762d3 in ?? () from /usr/lib/i386-linux-gnu/libX11.so.6
#8  0xb74540e3 in XSetWindowBorder () from /usr/lib/i386-linux-gnu/libX11.so.6
#9  0x081ab432 in frame_highlight (f=0x89bb020) at xterm.c:3357
#10 0x081abb55 in x_frame_rehighlight (dpyinfo=0x89499c8) at xterm.c:3560
#11 0x081ab9ed in XTframe_rehighlight (frame=0x8c968e8) at xterm.c:3532
#12 0x08072c95 in Fredirect_frame_focus (frame=..., focus_frame=...)
    at frame.c:1970
[...]
(gdb) up
#10 0x081abb55 in x_frame_rehighlight (dpyinfo=0x89499c8) at xterm.c:3560
(gdb) 
#11 0x081ab9ed in XTframe_rehighlight (frame=0x8c968e8) at xterm.c:3532
(gdb) 
#12 0x08072c95 in Fredirect_frame_focus (frame=..., focus_frame=...)
    at frame.c:1970
(gdb) hp frame
Undefined command: "hp".  Try "help".
(gdb) p frame
$1 = {
  i = -1592185571, 
  s = {
    val = 18427165, 
    type = Lisp_Vectorlike
  }, 
  u = {
    val = 18427165, 
    type = Lisp_Vectorlike
  }
}
(gdb) xframe
$2 = (struct frame *) 0x8c968e8
"emacs@ceviche"
(gdb) p focus_frame
$3 = {
  i = -1592560124, 
  s = {
    val = 18052612, 
    type = Lisp_Vectorlike
  }, 
  u = {
    val = 18052612, 
    type = Lisp_Vectorlike
  }
}
(gdb) xframe
$4 = (struct frame *) 0x89bb020
" *Minibuf-0*"
(gdb) p *$2
$5 = {
  header = {
    size = 1073742870, 
    next = {
      buffer = 0x87bc8d0, 
      vector = 0x87bc8d0
    }
  }, 
  name = {
    i = -2129031219, 
    s = {
      val = 18452429, 
      type = Lisp_String
    }, 
    u = {
      val = 18452429, 
      type = Lisp_String
    }
  }, 
  icon_name = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  title = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  focus_frame = {
    i = -1592560124, 
    s = {
      val = 18052612, 
      type = Lisp_Vectorlike
    }, 
    u = {
      val = 18052612, 
      type = Lisp_Vectorlike
    }
  }, 
  root_window = {
    i = -1592344072, 
    s = {
      val = 18268664, 
      type = Lisp_Vectorlike
    }, 
    u = {
      val = 18268664, 
      type = Lisp_Vectorlike
    }
  }, 
  selected_window = {
    i = -1592344072, 
    s = {
      val = 18268664, 
      type = Lisp_Vectorlike
    }, 
    u = {
      val = 18268664, 
      type = Lisp_Vectorlike
    }
  }, 
  minibuffer_window = {
    i = -1592185824, 
    s = {
      val = 18426912, 
      type = Lisp_Vectorlike
    }, 
    u = {
      val = 18426912, 
      type = Lisp_Vectorlike
    }
  }, 
  param_alist = {
    i = -1055526342, 
    s = {
      val = 18215482, 
      type = Lisp_Cons
    }, 
    u = {
      val = 18215482, 
      type = Lisp_Cons
    }
  }, 
  scroll_bars = {
    i = -1592519606, 
    s = {
      val = 18093130, 
      type = Lisp_Vectorlike
    }, 
    u = {
      val = 18093130, 
      type = Lisp_Vectorlike
    }
  }, 
  condemned_scroll_bars = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  menu_bar_items = {
    i = -1592182536, 
    s = {
      val = 18430200, 
      type = Lisp_Vectorlike
    }, 
    u = {
      val = 18430200, 
      type = Lisp_Vectorlike
    }
  }, 
  face_alist = {
    i = -1055529916, 
    s = {
      val = 18211908, 
      type = Lisp_Cons
    }, 
    u = {
      val = 18211908, 
      type = Lisp_Cons
    }
  }, 
  menu_bar_vector = {
    i = -1592118417, 
    s = {
      val = 18494319, 
      type = Lisp_Vectorlike
    }, 
    u = {
      val = 18494319, 
      type = Lisp_Vectorlike
    }
  }, 
  buffer_predicate = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  buffer_list = {
    i = -1055455327, 
    s = {
      val = 18286497, 
      type = Lisp_Cons
    }, 
    u = {
      val = 18286497, 
      type = Lisp_Cons
    }
  }, 
  buried_buffer_list = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  menu_bar_window = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  tool_bar_window = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  tool_bar_items = {
    i = -1592197120, 
    s = {
      val = 18415616, 
      type = Lisp_Vectorlike
    }, 
    u = {
      val = 18415616, 
      type = Lisp_Vectorlike
    }
  }, 
  tool_bar_position = {
    i = 1091524773, 
    s = {
      val = 17782949, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17782949, 
      type = Lisp_Symbol
    }
  }, 
  desired_tool_bar_string = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  current_tool_bar_string = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  face_cache = 0x8cb0e88, 
  menu_bar_items_used = 0, 
  namebuf = 0x0, 
  current_pool = 0x0, 
  desired_pool = 0x0, 
  desired_matrix = 0x0, 
  current_matrix = 0x0, 
  glyphs_initialized_p = 1, 
  resized_p = 0, 
  force_flush_display_p = 0, 
  default_face_done_p = 1, 
  already_hscrolled_p = 0, 
  updated_p = 1, 
  minimize_tool_bar_window_p = 0, 
  external_tool_bar = 1, 
  tool_bar_lines = 0, 
  n_tool_bar_rows = 0, 
  n_tool_bar_items = 13, 
  decode_mode_spec_buffer = 0x8c959e8 "", 
  insert_line_cost = 0x0, 
  delete_line_cost = 0x0, 
  insert_n_lines_cost = 0x0, 
  delete_n_lines_cost = 0x0, 
  text_lines = 35, 
  text_cols = 80, 
  total_lines = 0, 
  total_cols = 84, 
  new_text_lines = 0, 
  new_text_cols = 0, 
  left_pos = 182, 
  top_pos = 22, 
  pixel_height = 805, 
  pixel_width = 924, 
  resx = 124, 
  resy = 124, 
  x_pixels_diff = 5, 
  y_pixels_diff = 50, 
  win_gravity = 1, 
  size_hint_flags = 3, 
  border_width = 0, 
  internal_border_width = 0, 
  column_width = 11, 
  space_width = 11, 
  line_height = 23, 
  output_method = output_x_window, 
  terminal = 0x89494b0, 
  output_data = {
    tty = 0x8b61128, 
    x = 0x8b61128, 
    w32 = 0x8b61128, 
    ns = 0x8b61128, 
    nothing = 146149672
  }, 
  font_driver_list = 0x8cc0fe0, 
  font_data_list = 0x8a01a10, 
  fringe_cols = 2, 
  left_fringe_width = 11, 
  right_fringe_width = 11, 
  want_fullscreen = FULLSCREEN_NONE, 
  menu_bar_lines = 0, 
  external_menu_bar = 1, 
  display_preempted = 0 '\000', 
  visible = 1 '\001', 
  iconified = 0 '\000', 
  async_visible = 1 '\001', 
  async_iconified = 0 '\000', 
  garbaged = 0 '\000', 
  has_minibuffer = 0 '\000', 
  wants_modeline = 1 '\001', 
  can_have_scroll_bars = 1 '\001', 
  auto_raise = 0 '\000', 
  auto_lower = 0 '\000', 
  no_split = 0 '\000', 
  explicit_name = 0 '\000', 
  window_sizes_changed = 0 '\000', 
  mouse_moved = 1 '\001', 
  pointer_invisible = 0 '\000', 
  vertical_scroll_bar_type = vertical_scroll_bar_right, 
  desired_cursor = FILLED_BOX_CURSOR, 
  cursor_width = 1, 
  blink_off_cursor = DEFAULT_CURSOR, 
  blink_off_cursor_width = 0, 
  message_buf = 0x8a0de40 "\030\304\374\266\030\304", <incomplete sequence \374\266>, 
  scroll_bottom_vpos = -1, 
  config_scroll_bar_width = 16, 
  config_scroll_bar_cols = 2, 
  scroll_bar_actual_width = 22, 
  cost_calculation_baud_rate = 19200, 
  alpha = {-1, -1}, 
  gamma = 0, 
  extra_line_spacing = 0, 
  background_pixel = 16777215, 
  foreground_pixel = 0
}
(gdb) p *$4
$6 = {
  header = {
    size = 1073742870, 
    next = {
      buffer = 0x8c20b00, 
      vector = 0x8c20b00
    }
  }, 
  name = {
    i = -2129557179, 
    s = {
      val = 17926469, 
      type = Lisp_String
    }, 
    u = {
      val = 17926469, 
      type = Lisp_String
    }
  }, 
  icon_name = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  title = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  focus_frame = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  root_window = {
    i = -1592630761, 
    s = {
      val = 17981975, 
      type = Lisp_Vectorlike
    }, 
    u = {
      val = 17981975, 
      type = Lisp_Vectorlike
    }
  }, 
  selected_window = {
    i = -1592630761, 
    s = {
      val = 17981975, 
      type = Lisp_Vectorlike
    }, 
    u = {
      val = 17981975, 
      type = Lisp_Vectorlike
    }
  }, 
  minibuffer_window = {
    i = -1592185824, 
    s = {
      val = 18426912, 
      type = Lisp_Vectorlike
    }, 
    u = {
      val = 18426912, 
      type = Lisp_Vectorlike
    }
  }, 
  param_alist = {
    i = -1055455627, 
    s = {
      val = 18286197, 
      type = Lisp_Cons
    }, 
    u = {
      val = 18286197, 
      type = Lisp_Cons
    }
  }, 
  scroll_bars = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  condemned_scroll_bars = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  menu_bar_items = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  face_alist = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  menu_bar_vector = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  buffer_predicate = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  buffer_list = {
    i = -1055455706, 
    s = {
      val = 18286118, 
      type = Lisp_Cons
    }, 
    u = {
      val = 18286118, 
      type = Lisp_Cons
    }
  }, 
  buried_buffer_list = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  menu_bar_window = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  tool_bar_window = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  tool_bar_items = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  tool_bar_position = {
    i = 1091524773, 
    s = {
      val = 17782949, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17782949, 
      type = Lisp_Symbol
    }
  }, 
  desired_tool_bar_string = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  current_tool_bar_string = {
    i = 1091521569, 
    s = {
      val = 17779745, 
      type = Lisp_Symbol
    }, 
    u = {
      val = 17779745, 
      type = Lisp_Symbol
    }
  }, 
  face_cache = 0x8bdc7c8, 
  menu_bar_items_used = 0, 
  namebuf = 0x0, 
  current_pool = 0x0, 
  desired_pool = 0x0, 
  desired_matrix = 0x0, 
  current_matrix = 0x0, 
  glyphs_initialized_p = 1, 
  resized_p = 0, 
  force_flush_display_p = 0, 
  default_face_done_p = 0, 
  already_hscrolled_p = 0, 
  updated_p = 0, 
  minimize_tool_bar_window_p = 0, 
  external_tool_bar = 0, 
  tool_bar_lines = 0, 
  n_tool_bar_rows = 0, 
  n_tool_bar_items = 0, 
  decode_mode_spec_buffer = 0x8dc03f0 "0\304\374\266\230ͽ\bre/pixmaps/default/cursors/sb_h_doub\031", 
  insert_line_cost = 0x0, 
  delete_line_cost = 0x0, 
  insert_n_lines_cost = 0x0, 
  delete_n_lines_cost = 0x0, 
  text_lines = 10, 
  text_cols = 10, 
  total_lines = 0, 
  total_cols = 10, 
  new_text_lines = 0, 
  new_text_cols = 0, 
  left_pos = 0, 
  top_pos = 0, 
  pixel_height = 0, 
  pixel_width = 0, 
  resx = 124, 
  resy = 124, 
  x_pixels_diff = 0, 
  y_pixels_diff = 0, 
  win_gravity = 0, 
  size_hint_flags = 0, 
  border_width = 0, 
  internal_border_width = 0, 
  column_width = 11, 
  space_width = 11, 
  line_height = 23, 
  output_method = output_x_window, 
  terminal = 0x89494b0, 
  output_data = {
    tty = 0x8c4ba80, 
    x = 0x8c4ba80, 
    w32 = 0x8c4ba80, 
    ns = 0x8c4ba80, 
    nothing = 147110528
  }, 
  font_driver_list = 0x8a01858, 
  font_data_list = 0x0, 
  fringe_cols = 2, 
  left_fringe_width = 11, 
  right_fringe_width = 11, 
  want_fullscreen = FULLSCREEN_NONE, 
  menu_bar_lines = 0, 
  external_menu_bar = 0, 
  display_preempted = 0 '\000', 
  visible = 0 '\000', 
  iconified = 0 '\000', 
  async_visible = 0 '\000', 
  async_iconified = 0 '\000', 
  garbaged = 1 '\001', 
  has_minibuffer = 0 '\000', 
  wants_modeline = 1 '\001', 
  can_have_scroll_bars = 1 '\001', 
  auto_raise = 0 '\000', 
  auto_lower = 0 '\000', 
  no_split = 0 '\000', 
  explicit_name = 1 '\001', 
  window_sizes_changed = 0 '\000', 
  mouse_moved = 0 '\000', 
  pointer_invisible = 0 '\000', 
  vertical_scroll_bar_type = vertical_scroll_bar_right, 
  desired_cursor = FILLED_BOX_CURSOR, 
  cursor_width = 0, 
  blink_off_cursor = FILLED_BOX_CURSOR, 
  blink_off_cursor_width = 0, 
  message_buf = 0x8c1fea0 "0\304\374\266\350\003\334\bnnier/.icons/default/cursors/sb_h_do\031", 
  scroll_bottom_vpos = 0, 
  config_scroll_bar_width = 0, 
  config_scroll_bar_cols = 2, 
  scroll_bar_actual_width = 0, 
  cost_calculation_baud_rate = 0, 
  alpha = {0, 0}, 
  gamma = 0, 
  extra_line_spacing = 0, 
  background_pixel = 16777215, 
  foreground_pixel = 0
}
(gdb) 





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#9310: BadWindow error with quail guidance frame
  2011-08-23 19:40           ` Stefan Monnier
@ 2011-08-24 13:32             ` Jan D.
  2011-10-14 17:46               ` Stefan Monnier
  0 siblings, 1 reply; 10+ messages in thread
From: Jan D. @ 2011-08-24 13:32 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 9310

Stefan Monnier skrev 2011-08-23 21:40:
>> Basically set synchronized and break in the error function.
>
> OK, that part was already done.
>
>> Then go up the call stack to find the frame the window belongs to,
>
> That as well: it's the minibuffer-only frame.
>
>> or see if it is some uninitialized value.
>
> Doesn't look like it, the frames involved seem to have sensible
> field values.  This problem started around the time the new window.c code
> was installed, FWIW (which doesn't mean it's actually related).
>
>

You can try xwininfo -id <the window> to see if there is something 
special about that window.  Compare with another window you have in Emacs.

	Jan D.


>          Stefan
>
>
> (gdb) bt
> #0  x_error_quitter (display=0x890b200, event=0xbfffba10) at xterm.c:7882
> #1  0x081b4f29 in x_error_handler (display=0x890b200, event=0xbfffba10)
>      at xterm.c:7861
> #2  0xb747d0d3 in _XError () from /usr/lib/i386-linux-gnu/libX11.so.6
> #3  0xb7479d7d in ?? () from /usr/lib/i386-linux-gnu/libX11.so.6
> #4  0xb7479dd7 in ?? () from /usr/lib/i386-linux-gnu/libX11.so.6
> #5  0xb747ac90 in _XReply () from /usr/lib/i386-linux-gnu/libX11.so.6
> #6  0xb7476236 in XSync () from /usr/lib/i386-linux-gnu/libX11.so.6
> #7  0xb74762d3 in ?? () from /usr/lib/i386-linux-gnu/libX11.so.6
> #8  0xb74540e3 in XSetWindowBorder () from /usr/lib/i386-linux-gnu/libX11.so.6
> #9  0x081ab432 in frame_highlight (f=0x89bb020) at xterm.c:3357
> #10 0x081abb55 in x_frame_rehighlight (dpyinfo=0x89499c8) at xterm.c:3560
> #11 0x081ab9ed in XTframe_rehighlight (frame=0x8c968e8) at xterm.c:3532
> #12 0x08072c95 in Fredirect_frame_focus (frame=..., focus_frame=...)
>      at frame.c:1970
> [...]
> (gdb) up
> #10 0x081abb55 in x_frame_rehighlight (dpyinfo=0x89499c8) at xterm.c:3560
> (gdb)
> #11 0x081ab9ed in XTframe_rehighlight (frame=0x8c968e8) at xterm.c:3532
> (gdb)
> #12 0x08072c95 in Fredirect_frame_focus (frame=..., focus_frame=...)
>      at frame.c:1970
> (gdb) hp frame
> Undefined command: "hp".  Try "help".
> (gdb) p frame
> $1 = {
>    i = -1592185571,
>    s = {
>      val = 18427165,
>      type = Lisp_Vectorlike
>    },
>    u = {
>      val = 18427165,
>      type = Lisp_Vectorlike
>    }
> }
> (gdb) xframe
> $2 = (struct frame *) 0x8c968e8
> "emacs@ceviche"
> (gdb) p focus_frame
> $3 = {
>    i = -1592560124,
>    s = {
>      val = 18052612,
>      type = Lisp_Vectorlike
>    },
>    u = {
>      val = 18052612,
>      type = Lisp_Vectorlike
>    }
> }
> (gdb) xframe
> $4 = (struct frame *) 0x89bb020
> " *Minibuf-0*"
> (gdb) p *$2
> $5 = {
>    header = {
>      size = 1073742870,
>      next = {
>        buffer = 0x87bc8d0,
>        vector = 0x87bc8d0
>      }
>    },
>    name = {
>      i = -2129031219,
>      s = {
>        val = 18452429,
>        type = Lisp_String
>      },
>      u = {
>        val = 18452429,
>        type = Lisp_String
>      }
>    },
>    icon_name = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    title = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    focus_frame = {
>      i = -1592560124,
>      s = {
>        val = 18052612,
>        type = Lisp_Vectorlike
>      },
>      u = {
>        val = 18052612,
>        type = Lisp_Vectorlike
>      }
>    },
>    root_window = {
>      i = -1592344072,
>      s = {
>        val = 18268664,
>        type = Lisp_Vectorlike
>      },
>      u = {
>        val = 18268664,
>        type = Lisp_Vectorlike
>      }
>    },
>    selected_window = {
>      i = -1592344072,
>      s = {
>        val = 18268664,
>        type = Lisp_Vectorlike
>      },
>      u = {
>        val = 18268664,
>        type = Lisp_Vectorlike
>      }
>    },
>    minibuffer_window = {
>      i = -1592185824,
>      s = {
>        val = 18426912,
>        type = Lisp_Vectorlike
>      },
>      u = {
>        val = 18426912,
>        type = Lisp_Vectorlike
>      }
>    },
>    param_alist = {
>      i = -1055526342,
>      s = {
>        val = 18215482,
>        type = Lisp_Cons
>      },
>      u = {
>        val = 18215482,
>        type = Lisp_Cons
>      }
>    },
>    scroll_bars = {
>      i = -1592519606,
>      s = {
>        val = 18093130,
>        type = Lisp_Vectorlike
>      },
>      u = {
>        val = 18093130,
>        type = Lisp_Vectorlike
>      }
>    },
>    condemned_scroll_bars = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    menu_bar_items = {
>      i = -1592182536,
>      s = {
>        val = 18430200,
>        type = Lisp_Vectorlike
>      },
>      u = {
>        val = 18430200,
>        type = Lisp_Vectorlike
>      }
>    },
>    face_alist = {
>      i = -1055529916,
>      s = {
>        val = 18211908,
>        type = Lisp_Cons
>      },
>      u = {
>        val = 18211908,
>        type = Lisp_Cons
>      }
>    },
>    menu_bar_vector = {
>      i = -1592118417,
>      s = {
>        val = 18494319,
>        type = Lisp_Vectorlike
>      },
>      u = {
>        val = 18494319,
>        type = Lisp_Vectorlike
>      }
>    },
>    buffer_predicate = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    buffer_list = {
>      i = -1055455327,
>      s = {
>        val = 18286497,
>        type = Lisp_Cons
>      },
>      u = {
>        val = 18286497,
>        type = Lisp_Cons
>      }
>    },
>    buried_buffer_list = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    menu_bar_window = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    tool_bar_window = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    tool_bar_items = {
>      i = -1592197120,
>      s = {
>        val = 18415616,
>        type = Lisp_Vectorlike
>      },
>      u = {
>        val = 18415616,
>        type = Lisp_Vectorlike
>      }
>    },
>    tool_bar_position = {
>      i = 1091524773,
>      s = {
>        val = 17782949,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17782949,
>        type = Lisp_Symbol
>      }
>    },
>    desired_tool_bar_string = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    current_tool_bar_string = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    face_cache = 0x8cb0e88,
>    menu_bar_items_used = 0,
>    namebuf = 0x0,
>    current_pool = 0x0,
>    desired_pool = 0x0,
>    desired_matrix = 0x0,
>    current_matrix = 0x0,
>    glyphs_initialized_p = 1,
>    resized_p = 0,
>    force_flush_display_p = 0,
>    default_face_done_p = 1,
>    already_hscrolled_p = 0,
>    updated_p = 1,
>    minimize_tool_bar_window_p = 0,
>    external_tool_bar = 1,
>    tool_bar_lines = 0,
>    n_tool_bar_rows = 0,
>    n_tool_bar_items = 13,
>    decode_mode_spec_buffer = 0x8c959e8 "",
>    insert_line_cost = 0x0,
>    delete_line_cost = 0x0,
>    insert_n_lines_cost = 0x0,
>    delete_n_lines_cost = 0x0,
>    text_lines = 35,
>    text_cols = 80,
>    total_lines = 0,
>    total_cols = 84,
>    new_text_lines = 0,
>    new_text_cols = 0,
>    left_pos = 182,
>    top_pos = 22,
>    pixel_height = 805,
>    pixel_width = 924,
>    resx = 124,
>    resy = 124,
>    x_pixels_diff = 5,
>    y_pixels_diff = 50,
>    win_gravity = 1,
>    size_hint_flags = 3,
>    border_width = 0,
>    internal_border_width = 0,
>    column_width = 11,
>    space_width = 11,
>    line_height = 23,
>    output_method = output_x_window,
>    terminal = 0x89494b0,
>    output_data = {
>      tty = 0x8b61128,
>      x = 0x8b61128,
>      w32 = 0x8b61128,
>      ns = 0x8b61128,
>      nothing = 146149672
>    },
>    font_driver_list = 0x8cc0fe0,
>    font_data_list = 0x8a01a10,
>    fringe_cols = 2,
>    left_fringe_width = 11,
>    right_fringe_width = 11,
>    want_fullscreen = FULLSCREEN_NONE,
>    menu_bar_lines = 0,
>    external_menu_bar = 1,
>    display_preempted = 0 '\000',
>    visible = 1 '\001',
>    iconified = 0 '\000',
>    async_visible = 1 '\001',
>    async_iconified = 0 '\000',
>    garbaged = 0 '\000',
>    has_minibuffer = 0 '\000',
>    wants_modeline = 1 '\001',
>    can_have_scroll_bars = 1 '\001',
>    auto_raise = 0 '\000',
>    auto_lower = 0 '\000',
>    no_split = 0 '\000',
>    explicit_name = 0 '\000',
>    window_sizes_changed = 0 '\000',
>    mouse_moved = 1 '\001',
>    pointer_invisible = 0 '\000',
>    vertical_scroll_bar_type = vertical_scroll_bar_right,
>    desired_cursor = FILLED_BOX_CURSOR,
>    cursor_width = 1,
>    blink_off_cursor = DEFAULT_CURSOR,
>    blink_off_cursor_width = 0,
>    message_buf = 0x8a0de40 "\030\304\374\266\030\304",<incomplete sequence \374\266>,
>    scroll_bottom_vpos = -1,
>    config_scroll_bar_width = 16,
>    config_scroll_bar_cols = 2,
>    scroll_bar_actual_width = 22,
>    cost_calculation_baud_rate = 19200,
>    alpha = {-1, -1},
>    gamma = 0,
>    extra_line_spacing = 0,
>    background_pixel = 16777215,
>    foreground_pixel = 0
> }
> (gdb) p *$4
> $6 = {
>    header = {
>      size = 1073742870,
>      next = {
>        buffer = 0x8c20b00,
>        vector = 0x8c20b00
>      }
>    },
>    name = {
>      i = -2129557179,
>      s = {
>        val = 17926469,
>        type = Lisp_String
>      },
>      u = {
>        val = 17926469,
>        type = Lisp_String
>      }
>    },
>    icon_name = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    title = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    focus_frame = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    root_window = {
>      i = -1592630761,
>      s = {
>        val = 17981975,
>        type = Lisp_Vectorlike
>      },
>      u = {
>        val = 17981975,
>        type = Lisp_Vectorlike
>      }
>    },
>    selected_window = {
>      i = -1592630761,
>      s = {
>        val = 17981975,
>        type = Lisp_Vectorlike
>      },
>      u = {
>        val = 17981975,
>        type = Lisp_Vectorlike
>      }
>    },
>    minibuffer_window = {
>      i = -1592185824,
>      s = {
>        val = 18426912,
>        type = Lisp_Vectorlike
>      },
>      u = {
>        val = 18426912,
>        type = Lisp_Vectorlike
>      }
>    },
>    param_alist = {
>      i = -1055455627,
>      s = {
>        val = 18286197,
>        type = Lisp_Cons
>      },
>      u = {
>        val = 18286197,
>        type = Lisp_Cons
>      }
>    },
>    scroll_bars = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    condemned_scroll_bars = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    menu_bar_items = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    face_alist = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    menu_bar_vector = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    buffer_predicate = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    buffer_list = {
>      i = -1055455706,
>      s = {
>        val = 18286118,
>        type = Lisp_Cons
>      },
>      u = {
>        val = 18286118,
>        type = Lisp_Cons
>      }
>    },
>    buried_buffer_list = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    menu_bar_window = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    tool_bar_window = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    tool_bar_items = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    tool_bar_position = {
>      i = 1091524773,
>      s = {
>        val = 17782949,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17782949,
>        type = Lisp_Symbol
>      }
>    },
>    desired_tool_bar_string = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    current_tool_bar_string = {
>      i = 1091521569,
>      s = {
>        val = 17779745,
>        type = Lisp_Symbol
>      },
>      u = {
>        val = 17779745,
>        type = Lisp_Symbol
>      }
>    },
>    face_cache = 0x8bdc7c8,
>    menu_bar_items_used = 0,
>    namebuf = 0x0,
>    current_pool = 0x0,
>    desired_pool = 0x0,
>    desired_matrix = 0x0,
>    current_matrix = 0x0,
>    glyphs_initialized_p = 1,
>    resized_p = 0,
>    force_flush_display_p = 0,
>    default_face_done_p = 0,
>    already_hscrolled_p = 0,
>    updated_p = 0,
>    minimize_tool_bar_window_p = 0,
>    external_tool_bar = 0,
>    tool_bar_lines = 0,
>    n_tool_bar_rows = 0,
>    n_tool_bar_items = 0,
>    decode_mode_spec_buffer = 0x8dc03f0 "0\304\374\266\230ͽ\bre/pixmaps/default/cursors/sb_h_doub\031",
>    insert_line_cost = 0x0,
>    delete_line_cost = 0x0,
>    insert_n_lines_cost = 0x0,
>    delete_n_lines_cost = 0x0,
>    text_lines = 10,
>    text_cols = 10,
>    total_lines = 0,
>    total_cols = 10,
>    new_text_lines = 0,
>    new_text_cols = 0,
>    left_pos = 0,
>    top_pos = 0,
>    pixel_height = 0,
>    pixel_width = 0,
>    resx = 124,
>    resy = 124,
>    x_pixels_diff = 0,
>    y_pixels_diff = 0,
>    win_gravity = 0,
>    size_hint_flags = 0,
>    border_width = 0,
>    internal_border_width = 0,
>    column_width = 11,
>    space_width = 11,
>    line_height = 23,
>    output_method = output_x_window,
>    terminal = 0x89494b0,
>    output_data = {
>      tty = 0x8c4ba80,
>      x = 0x8c4ba80,
>      w32 = 0x8c4ba80,
>      ns = 0x8c4ba80,
>      nothing = 147110528
>    },
>    font_driver_list = 0x8a01858,
>    font_data_list = 0x0,
>    fringe_cols = 2,
>    left_fringe_width = 11,
>    right_fringe_width = 11,
>    want_fullscreen = FULLSCREEN_NONE,
>    menu_bar_lines = 0,
>    external_menu_bar = 0,
>    display_preempted = 0 '\000',
>    visible = 0 '\000',
>    iconified = 0 '\000',
>    async_visible = 0 '\000',
>    async_iconified = 0 '\000',
>    garbaged = 1 '\001',
>    has_minibuffer = 0 '\000',
>    wants_modeline = 1 '\001',
>    can_have_scroll_bars = 1 '\001',
>    auto_raise = 0 '\000',
>    auto_lower = 0 '\000',
>    no_split = 0 '\000',
>    explicit_name = 1 '\001',
>    window_sizes_changed = 0 '\000',
>    mouse_moved = 0 '\000',
>    pointer_invisible = 0 '\000',
>    vertical_scroll_bar_type = vertical_scroll_bar_right,
>    desired_cursor = FILLED_BOX_CURSOR,
>    cursor_width = 0,
>    blink_off_cursor = FILLED_BOX_CURSOR,
>    blink_off_cursor_width = 0,
>    message_buf = 0x8c1fea0 "0\304\374\266\350\003\334\bnnier/.icons/default/cursors/sb_h_do\031",
>    scroll_bottom_vpos = 0,
>    config_scroll_bar_width = 0,
>    config_scroll_bar_cols = 2,
>    scroll_bar_actual_width = 0,
>    cost_calculation_baud_rate = 0,
>    alpha = {0, 0},
>    gamma = 0,
>    extra_line_spacing = 0,
>    background_pixel = 16777215,
>    foreground_pixel = 0
> }
> (gdb)






^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#9310: BadWindow error with quail guidance frame
  2011-08-24 13:32             ` Jan D.
@ 2011-10-14 17:46               ` Stefan Monnier
  0 siblings, 0 replies; 10+ messages in thread
From: Stefan Monnier @ 2011-10-14 17:46 UTC (permalink / raw)
  To: Jan D.; +Cc: 9310-done

>>> Basically set synchronized and break in the error function.
>> OK, that part was already done.
>>> Then go up the call stack to find the frame the window belongs to,
>> That as well: it's the minibuffer-only frame.
>>> or see if it is some uninitialized value.
>> Doesn't look like it, the frames involved seem to have sensible
>> field values.  This problem started around the time the new window.c code
>> was installed, FWIW (which doesn't mean it's actually related).
> You can try xwininfo -id <the window> to see if there is something special
> about that window.  Compare with another window you have in Emacs.

Nothing stands out, no.  I just installed a patch that ignores errors in
that XSetWindowBorder function and it seems to be sufficient.


        Stefan





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-10-14 17:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-16 20:15 bug#9310: BadWindow error with quail guidance frame Stefan Monnier
2011-08-17  6:03 ` Jan D.
2011-08-17 13:46   ` Stefan Monnier
2011-08-17 16:39     ` Jan Djärv
2011-08-17 21:45       ` Chong Yidong
2011-08-23  2:23       ` Stefan Monnier
2011-08-23  6:17         ` Jan D.
2011-08-23 19:40           ` Stefan Monnier
2011-08-24 13:32             ` Jan D.
2011-10-14 17:46               ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).