Subject: bug#8916: Internal error in split-window

From: Stefan Monnier <[email-masked]>
Date: Tue, 21 Jun 2011 21:37:24 -0400

Package: Emacs
Version: 24.0.50

If I do:

% src/emacs -Q
M-x mpc RET

I get the following error:

Debugger entered--Lisp error: (error "Sum of sizes of old and new window don't fit")
  split-window-internal(#<window 3 on *MPC Genres*> 42 horiz 0.5)
  byte-code("\204:	\306=\204:\307	!\203\310\311	\n\f#\"\210\202:\312\n\313\"\203:\314\n!\211\203:
\n=\204:\310\311\315\f#\"\210\203O1\203L\3121\316\"\204O\30623\203a\203a\317V\203a\30621\205l\32014\"53\205\3122?\205\312\n44\211\211\203\266\n6\3216!\205\247\3226!\204\2466\323\n!\206\242\324\n!)\205\247\306)\203\257\n\202\270\325\326\n\"\202\270\327 )\330\n!\2111\205\311\33114\"+7\320\n4\"8\2044\2114\203\3479:]\202\354;<])7\203	5\33214\"Z5\33314\"T\245^\2028\334\2458\334\246\\]\202%\317Y\203#8Z\202%[=\335\211>?\204T7\203>1=[4\335@4A\211\211\203|\n6\3216!\205m\3226!\204l6\323\n!\206h\324\n!)\205m\306)\203u\n\202~\325\326\n\"\202~\327 )A\317V\203\226\336\nA4@$AY\202\242\336\nA4@$AX,\204%=4\2114\203\2709:]\202\275;<])]\211=\203%1=[4\335@4A\211\211\203\n6\3216!\205\374\3226!\204\3736\323\n!\206\367\324\n!)\205\374\306)\203\n\202\325\326\n\"\202\327 )A\317V\203%\336\nA4@$AY\2021\336\nA4@$AX,\204%\325\3371\"\210\202%=\332\n4\"\\8V\203%\325\337\n\"\210\202%\317Y\203{8Y\204s=4\203m:\202o:W\203{\325\337\n\"\210\202%7\203\3711=[4\335@4A\211\211\203\306\n6\3216!\205\267\3226!\204\2666\323\n!\206\262\324\n!)\205\267\306)\203\277\n\202\310\325\326\n\"\202\310\327 )A\317V\203\340\336\nA4@$AY\202\354\336\nA4@$AX,\204%\325\3371\"\210\202%=4\203:\202<W\204 8=Z4\203:\202<W\203%\325\337\n\"\210\340B4\"\2102\206\203\n44\211\211\203n\n6\3216!\205_\3226!\204^6\323\n!\206Z\324\n!)\205_\306)\203g\n\202p\325\326\n\"\202p\327 )\330\n!\2111\205\201\33114\"+?>\203\235\341=!>\203\2278\202\2315\245\202\276>\203\246\342\202\2767\203\267\343\33314\"T\245\202\276\344\n4\"\345\245?7\203\3461=[4#\210\347?ZC1\323\n!\206\341\324\n!)\211D\203\350D\344D4\"C_\"\210D\211\205\330\n!\205\351\n!)\211D\204\350*\2028\352\n8=Z\"\210\353\n=[4#\210\350\n>\203.\354\2023\344\n4\"?Z\"\210\355\n=\f?$E\203^>\203^\356\330E!\316#\210\356E\316#\210\357B!\210\360B!\210E.\207" [ignore-window-parameters function window size side atom-root t functionp throw done window-parameter window-atom window-atom-root split-window window-side 0 window-total-size windowp window-buffer window-vchild window-hchild error "%s is not a window" selected-window window-parent window-iso-combination-p window-min-size window-iso-combinations 2 nil window-sizable "Window %s too small for splitting" resize-window-reset float 0.5 1.0 window-normal-size 2.0 resize-subwindows 1.0 set-window-new-normal window-next set-window-new-total resize-this-window 1.0 split-window-internal set-window-parameter run-window-configuration-change-hook window-check parent ...] 7)
  split-window(#<window 3 on *MPC Genres*> nil horiz)
  mpc()
  call-interactively(mpc t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)

In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.4)
 of 2011-06-20 on pastel
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 -O0 -I/usr/include/GNUstep''

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: InactiveMinibuffer

Minor modes in effect:
  diff-auto-refine-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
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
l a y . <right> <up> <left> <right> <down> <left> <M-backspace> 
r e n d e r i n g . C-a C-x C-s <help-echo> <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> C-k <down-mouse-2> <mouse-2> 
<down-mouse-1> <mouse-1> SPC C-a C-x C-s <switch-frame> 
m <up> <up> <up> <up> <up> <up> m v <select-window> 
C-c C-a C-c C-a <select-window> <switch-frame> <switch-frame> 
<help-echo> <switch-frame> <switch-frame> <down-mouse-1> 
<mouse-movement> <mouse-1> C-a C-u M-j <right> <right> 
<right> <right> <right> <right> <right> M-d s C-c C-c 
q v M-p C-c C-c <switch-frame> <switch-frame> q <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> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <help-echo> 
<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> 
<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> g <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <help-echo> 
<help-echo> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <help-echo> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> C-u M-x 
m p c <return> l o c a l h o s t <return> <switch-frame> 
<switch-frame> <up> <up> <up> <up> <up> <up> <up> <left> 
<right> q <switch-frame> C-x C-c <switch-frame> q <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> M-x M-p 
<return> <switch-frame> <switch-frame> <help-echo> 
<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> <select-window> <switch-frame> <help-echo> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<select-window> <help-echo> <help-echo> <help-echo> 
<select-window> <select-window> <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> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <help-echo> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> q <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <help-echo> <switch-frame> M-x r e p 
o <tab> r <tab> <return>

Recent messages:
Warning: same-window-p is obsolete!
Back to top level.
Entering debugger...
Warning: special-display-p is obsolete!
Warning: same-window-p is obsolete!
Warning: interactive-p is obsolete!
Back to top level.
Making completion list...
Warning: special-display-p is obsolete!
Warning: same-window-p is obsolete!

Load-path shadows:
/usr/share/emacs23/site-lisp/bbdb/bbdb hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb
/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-gnus hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-gnus
/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-sc hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-sc
/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-w3 hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-w3
/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-rmail hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-rmail
/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-ftp hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-ftp
/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-whois hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-whois
/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-hooks hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-hooks

Features:
(mail-extr message sendmail format-spec rfc822 mml mml-sec mm-decode
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums
mailabbrev mail-utils mailheader emacsbug sort network-stream starttls
tls mpc smerge-mode log-edit pcvs-util vc-sccs vc-svn vc-cvs vc-rcs
vc-dir add-log whitespace diff-mode vc ediff-merg ediff-diff ediff-wind
ediff-help ediff-util ediff-mult ediff-init ediff vc-dispatcher pcase
cl-specs compile executable copyright dabbrev multi-isearch xscheme
trace testcover scheme unsafep re-builder shadow inf-lisp ielm pp comint
ring gmm-utils ert find-func ewoc debug elp edebug cust-print cus-edit
cus-start cus-load wid-edit cc-mode cc-fonts cc-menus cc-cmds cc-styles
cc-align cc-engine cc-vars cc-defs vc-bzr filecache make-mode server
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 time-date password-cache url-vars mm-util
mail-prsvr reveal autoinsert uniquify advice help-fns advice-preload
savehist minibuf-eldef disp-table cl cl-loaddefs 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)