Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88882 - Metacity handlingof XEmacs window create problems and frequent crashes
Summary: Metacity handlingof XEmacs window create problems and frequent crashes
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: XEmacs team
URL: http://lists.freebsd.org/pipermail/fr...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-12 10:59 UTC by Raimondo Giammanco
Modified: 2005-06-23 06:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raimondo Giammanco 2005-04-12 10:59:52 UTC
Hello, 
 if I launch a xemacs session from a terminal, open a file,
select a region of text and after press META-W, I receive always in
the terminal a message like:
##############
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  18 (X_ChangeProperty)
  Resource id in failed request:  0xe0389b
  Serial number of failed request:  4617
  Current serial number in output stream:  4619
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  25 (X_SendEvent)
  Resource id in failed request:  0xe0389b
  Serial number of failed request:  4618
  Current serial number in output stream:  4619
#############

Every single time. You can say it is only annoying, but in combination with some other steps I am not still able to isolate, it crashes XEmacs.

And that is a problem.

I think I started having this problem with gnome 2.6, now I have 2.10 and yes,
I followed the suggestions in  http://forums.gentoo.org/viewtopic-t-14973-highlight-xemacs+openmohif+crash.html,
to compile openmotif and xemacs with conservative flags.

Any help? 

I am setting it to critical, because when you have multiple files open and being modified, and you cannot recover all the changes with the recovery files that XEmacs is making, it can be quite painful. Sorry about this.

Raimondo Giammanco


Reproducible: Always
Steps to Reproduce:
1.open a terminal, launch XEmacs
2.select area of text, press META-W
3.see X complaining

Actual Results:  
Long string of X complains, and occasionally crashes.. :(

Expected Results:  
A working xemacs

Xemacs: 2.4.15-r3
Metacity: 2.10.0
OpenMotif: 2.2.3-r3

Emerge info:
#################
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20041102-r1,
2.6.11-gentoo-r5 i686)
=================================================================
System uname: 2.6.11-gentoo-r5 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  8 2005, 09:39:29)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r3, 1.5, 1.9.4, 1.6.3, 1.7.9-r1, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r1, 2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /usr/X11R6/bin/startx /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/mnt/gentoo_distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks fixpackages maketest
sandbox severe sfperms strict test"
GENTOO_MIRRORS=" http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo
http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/var_tmp/packages"
PORTAGE_TMPDIR="/var_tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acl adns alsa ansi apache2 atlas auctex audiofile avantgo avi
bash-completion bcmath berkdb bitmap-fonts blas blender-game bonobo
boundschecking bzip2 bzlib cdda cddb cdio cdparanoia cdr clisp cmucl cracklib
crypt css cups curl divx4linux doc drac dv dvd dvdread edl eds emacs emacs-w3
emboss encode esd ethereal evo exif faac faad fam fame festival ffmpeg fftw flac
flash fmod foomaticdb fortran fpx freetts ftp gcj gcl gd gdbm gif gimp gimpprint
ginac gkrellm glade gmp gnome gnomedb gnuplot gpm gprof graphviz gs gsl
gstreamer gtk gtk2 gtkhtml guile hal hbci high-ints howl ieee1394 imagemagick
imap imlib imlib2 ipv6 jabber java javascript joystick jpeg jpeg2k lapack latex
ldap leim libg++ libgda libwww lm_sensors lzw lzw-tiff mad makecheck matroska
mikmod mime mjpeg mmx mmx2 mng monkey mono motif mozilla moznocompose moznoirc
moznomail mozp3p mozsvg mp3 mpeg mpeg2 mpeg4 mpi mplayer mule multi-tty
multislot music mysql ncurses netcdf network neural nls nodrm nptl nvidia ofx
ogg oggvorbis openal opengl oscar pam pda pdf pdflib perl plotutils png posix
povray python qt quicktime quotes rdesktop readline real recode rrdtool rtc
samba screenshot sdl slang slp smime sndfile speex spell sqlite sse sse2 ssl svg
svga tcltk tcpd tetex tga theora tiff transcode truetype truetype-fonts type1
type1-fonts unicode usb vidix vlm vorbis wmf xanim xemacs xine xml xml2 xmms
xosd xpm xrandr xsl xv xvid xvmc yahoo zeroconf zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL
Comment 1 Raimondo Giammanco 2005-04-17 08:48:45 UTC
Just had another crash. 

Apparently the culprit was a repetition of CTRL-k to delete some lines.

It is fairly common sequence, maybe there is some more to discover.
Comment 2 Raimondo Giammanco 2005-06-02 08:29:12 UTC
 For the moment, using a different widget set,

USE="-motif -athena neXt Xaw3d" emerge  xemacs

 I do not see anymore the BadWindow messages.

 However this out just after a brief test, I will report 
later if this is a good solution in the long term.
Comment 3 Bernhard 2005-06-13 06:30:00 UTC
Hi,

I have the same sort of problem. Quite a pain indeed...

Here is my emerge info:
****************************************************************************
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.11-gentoo-r9 i686)
=================================================================
System uname: 2.6.11-gentoo-r9 i686 AMD Athlon(TM) XP 2800+
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May  2 2005, 11:09:47)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -Wl,--as-needed"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -Wl,--as-needed"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks fixpackages sandbox
sfperms strict"
GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo/
ftp://ftp.solnet.ch/mirror/Gentoo http://gentoo.osuosl.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X aalib acl alsa apache2 apm arts atlas avi berkdb bidi
bitmap-fonts bonobo bzlib c++ cdr cjk crypt cups curl divx4linux eds emacs
emboss encode esd evo fam fbcon flac foomaticdb fortran freetype freetype2 gd
gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml imagemagick imap imlib
ipv6 java jikes jpeg junit latex ldap libg++ libwww mad mikmod mmx motif mozilla
moznocompose moznoirc moznomail mozsvg mozxmlterm mp3 mpeg mpeg4 mplayer mule
nas ncurses nls nptl nptlonly odbc offensive ogg oggvorbis opengl oss pam pdflib
perl plotutils png ppds python quicktime readline real ruby samba sdl slp spell
sse ssl svg svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts
unicode usb vorbis wmf wxwindows x86 xemacs xine xml xml2 xmms xscreesaver xsl
xslt xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
****************************************************************************
I use:

gcc (GCC) 3.4.4 (Gentoo 3.4.4, ssp-3.4.4-1.0, pie-8.7.8)

And I recently switched from Gnome 2.8 to Gnome 2.10


Cheers,

Burnce
Comment 4 Raimondo Giammanco 2005-06-13 06:38:33 UTC
I can confirm now  with the steps suggested in #2 until now I had no more
crashes, fortunately. 
Comment 5 Geoff Leach 2005-06-15 05:26:38 UTC
I was also having this problem. Thanks for the pointer Raimondo.

I tried a few things and it seems the problem is specifically motif. When using
athena widgets with either xaw3d or next I do not get the problem.

So just -motif should do. I think I saw mention of the possibility that Motif
might be the problem on the xemacs mailing lists, linked in one of the gentoo
forum posts about the problem.

Also, looking at the ebuild it seems to me that neXt Xaw3d will only have an
effect if athena is also specified - they are different implementations of
athena widgets. So specifying "-athena neXt Xaw3d" is sort of contradictory

<code>
if use athena ; then
    myconf="--with-widgets=athena"
    if use Xaw3d ; then
        myconf="${myconf} --with-athena=xaw3d"
    elif use neXt ; then
        myconf="${myconf} --with-athena=next"
    else
        myconf="${myconf} --with-athena=3d"
    fi
    myconf="${myconf} --with-dialogs=athena"
    myconf="${myconf} --with-scrollbars=lucid"
    myconf="${myconf} --with-menubars=lucid"
    fi
</code>

I might add that I can see any visual difference between the different athena
widgets as far as xemacs goes - probably because the scrollbars and menubars,
which is what I see most :), are set to use the lucid widgets regardless. 

  
Comment 6 Raimondo Giammanco 2005-06-15 05:53:42 UTC
Geoff,
 I do not remember why I set -athena, I possibly used ufed to check the flags that
could alter the Xemacs compilation, and at the set of flags that worked I jumped
ship and never bothered to look more. I am not a Linux Guru, so I just reported my
workaround for more competent people, like you, to find a better solution.

I am just happy that I put you on the right track. 

Comment 7 Geoff Leach 2005-06-23 06:40:51 UTC
I've just tried xemacs-21.4.17 and get the same problem with motif widgets. So I
think it is an upstream problem, e.g., 

http://list-archive.xemacs.org/xemacs-beta/200411/msg00400.html

The workaround of not using motif is ok.

So I think the bug should be resolved as upstream and severity dropped to normal ...

Comment 9 Raimondo Giammanco 2005-06-23 06:54:14 UTC
Setting severity to normal, and changed resolution to upstream.