After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 91056 - Panel disappears when exiting multiple windows
Panel disappears when exiting multiple windows
Status: RESOLVED FIXED
Product: Sawfish
Classification: Deprecated
Component: Window Manager
pre-1.3.x
Other Linux
: High critical
: 1.5.x
Assigned To: John Harper
sawfish QA Team
Depends on:
Blocks:
 
 
Reported: 2002-08-17 23:32 UTC by Jeffrey Baker
Modified: 2009-12-19 07:10 UTC
See Also:
GNOME target: ---
GNOME version: 2.0


Attachments
Debug trace of sawfish being crashed by gmplayer (121.31 KB, text/plain)
2003-08-17 23:02 UTC, Tony Houghton
  Details
Debug trace from sawfish CVS (162.12 KB, text/plain)
2003-08-18 12:43 UTC, Tony Houghton
  Details
possible fix (976 bytes, patch)
2003-08-19 05:13 UTC, John Harper
none Details | Review
Log of sawfish still crashing despite patch (88.08 KB, text/plain)
2003-08-19 13:44 UTC, Tony Houghton
  Details
gdb stack backtrace after sawfish's last crash (1.82 KB, text/plain)
2003-08-19 13:47 UTC, Tony Houghton
  Details

Description Jeffrey Baker 2002-08-17 23:32:27 UTC
I have an edge panel at the top of screen 0, the left screen in a 2-screen
Xinerama configuration.  I use NEdit (http://www.nedit.org/) with multiple
windows open.  When I exit NEdit, all these windows close at once.  This
causes the panel to crash.  This seems independent of the Workspace
Switcher or the Window List.  The panel crashes with or without them.  The
behavior can be reproduced reliably.

I mention the Xinerama setup because I can't reproduce this on my computer
with only one screen.

It is incredibly annoying because, after I kill the X server and log in
again, I get a new panel without ANY of my old configuration.  But that
must be another bug.
Comment 1 Luis Villa 2002-08-20 19:49:21 UTC
Jeffrey: without a stack trace this is going to be hard to fix/track
down, especially if it only happens on Xinerama- that's not exactly
something we all have laying around :)  Can you get us one? Thanks.
Comment 2 Jeffrey Baker 2002-08-20 20:01:41 UTC
Well I investigated a little further, and the panel doesn't actually
crash properly.  It just disappears from the display and keeps
running.  I'll have to dig more, because I can't just grab a stack dump.
Comment 3 Jeffrey Baker 2002-08-27 18:27:08 UTC
I found a case that doesn't require Xinerama.  On one screen, I had an
instance of VMWare that mapped and unmapped a lot of windows very
quickly, and this also crashed the panel.  I will try to make a
testcase that simply maps and unmaps windows rapidly.
Comment 4 Vincent Untz 2002-10-24 20:05:13 UTC
Jeffrey: is it still happening ? Could you try HEAD ?
Comment 5 Jeffrey Baker 2002-10-24 20:25:19 UTC
Debian experimental is about as far as I'm willing to go.  I'll be
sure to check the next release though.
Comment 6 Vincent Untz 2002-12-19 19:54:27 UTC
Jeffrey: is it still happening ?
Comment 7 Jeffrey Baker 2002-12-19 20:14:40 UTC
With 2.0.11 gnome-panel, the problem still occurs.  Changing the title
based on my observation that any multi-window closure hoses the panel.

Further observation has shown that the panel doesn't exit, it just
disappears.  I can't start another panel, because the old one is still
running.  To fix the situation, I have to kill the panel, and another
is started automatically.

Given the new applet preferences persistence, this bug is much less
annoying than it used to be.
Comment 8 Vincent Untz 2003-01-02 17:18:04 UTC
This may be fixed in GNOME 2.1.x, because lots of work have been done
on multihead stuff. But I can't figure why the xinerama setup can
cause a crash here...
Reopening for the moment.
Comment 9 Mark McLoughlin 2003-01-06 05:05:28 UTC
Jeffrey: which window manager is this with ?

It sounds like a WM bug ... could you try with a different WM and tell
us if you can reproduce it then ?
Comment 10 Jeffrey Baker 2003-01-10 19:44:26 UTC
I cannot reproduce this problem with Metacity, so it may be a problem
with sawfish.
Comment 11 Vincent Untz 2003-01-13 22:02:58 UTC
So moving to sawfish.
Comment 12 Tony Houghton 2003-08-16 17:36:19 UTC
I think this is the bug I'm suffering from, although the symptoms are
slightly different. I also use Xinerama, but I'm not affected in
single head mode, nor when running Metacity instead of sawfish.

The symptoms are that windows disappear, but the applications in them
are still running. gnome-terminal is a common victim, but that could
be just because it's the one thing I'm nearly always running.

There are two things that cause this: opening gmplayer without a font
installed, so that it pops up an error box; and downloading a small
file in galeon such that it's finished downloading before the download
progress window has a chance to open.
 
When this happens with galeon, it usually only affects a nearby
gnome-terminal, or sometimes the main galeon window. With gmplayer, it
seems to affect several windows and the panel.
Comment 13 Tony Houghton 2003-08-16 17:46:09 UTC
I forgot to mention this happens when I run sawfish with Rox instead
of Gnome, so it's definitely a sawfish problem.
Comment 14 Vincent Untz 2003-08-17 16:04:34 UTC
Reassigning the bug to the owner...
Comment 15 John Harper 2003-08-17 18:26:35 UTC
I can't reproduce this. Could someone who can recompile sawfish in
debugging mode and attach a trace? (edit src/sawmill.h to uncomment
the #define DEBUG 1 line, it will then spew detailed information to
stdout)
Comment 16 Tony Houghton 2003-08-17 23:02:22 UTC
Created attachment 19296 [details]
Debug trace of sawfish being crashed by gmplayer
Comment 17 Tony Houghton 2003-08-17 23:06:09 UTC
The symptoms when I generated this trace were slightly different. This
time sawfish did appear to segfault. To run it and capture the log I
removed the running version from gnome session manager and started the
recompiled version from a terminal. I loaded Galeon then tried to run
gmplayer.
Comment 18 John Harper 2003-08-18 04:49:33 UTC
can you try doing that again with sawfish from cvs? that crash should
be fixed..
Comment 19 Tony Houghton 2003-08-18 12:43:17 UTC
Created attachment 19305 [details]
Debug trace from sawfish CVS
Comment 20 John Harper 2003-08-19 05:12:18 UTC
it's hard to tell what is happening, since I'm not sure which windows
in that trace are being deleted wrongly. But it looks like the desktop
window got taken out - the only explanation for that I can think of is
that XConfigureWindow found a bad window in the sibling field, but
returned an error with the good desktop window (even though the X
server source code seems to do the right thing)

does the patch I'm about to attach make any difference?

if not, please describe as exactly as possible what you saw when
generating the log (or generate another one if you can't remember).
thanks.
Comment 21 John Harper 2003-08-19 05:13:00 UTC
Created attachment 19336 [details] [review]
possible fix
Comment 22 Tony Houghton 2003-08-19 13:44:44 UTC
Created attachment 19344 [details]
Log of sawfish still crashing despite patch
Comment 23 Tony Houghton 2003-08-19 13:47:00 UTC
Created attachment 19345 [details]
gdb stack backtrace after sawfish's last crash
Comment 24 Tony Houghton 2003-08-19 13:48:43 UTC
The following windows were open besides gnome panel:
 
Nautilus: preferences:///Advanced
Gnome Session configurator
gnome-terminal
gkrellm
 
I ran gmplayer, which opened its main window, controls and font error
box. The main window quickly disappeared. All windows stayed on
screen, but lost their frames as sawfish segfaulted. I clicked OK on
the gmplayer error and closed its control panel - it has its own close
icon. gmplayer still showed up in the panel's window list, but had no
windows visible. I couldn't get focus in any windows, even a new
gnome-terminal.
 
I tried repeating the experiment and the symptoms were different.
There was no segfault and only gmplayer's main window disappeared, but
so did the icons from the Nautilus backdrop, which I don't think has
happened before.
Comment 25 Tony Houghton 2003-08-26 21:20:18 UTC
Is this still proving impossible to fix? I can provide more log files
created under different circumstances if it will help. I know how to
prevent the problem in mplayer now, but I can't prevent it with short
Galeon downloads, and I don't know of any suitable alternative window
manager, so I'd really like a fix.
Comment 26 Robert Fleming 2004-04-16 17:46:55 UTC
I'm seeing a similar problem in a Debian unstable configuration with xinerama. 
Using both gnome-panel and sawfish.  For me though, it's xmms affecting rxvt's..
 rxvt disappears but does not die.  It's happened several times over a couple
months but I haven't figured out how to reproduce it.

Maybe this bug should be renamed to "disappearing windows" or something.
Comment 27 Robert Fleming 2004-04-24 01:20:57 UTC
Closing Gaim can also hide GNOME Panels.  Regarding comment 26, it seems to be
when XMMS segfaults, as it did until recently when a running xmms instance was
told from the command line to play some non-existant file.  (That xmms bug seems
to have been fixed.)
Comment 28 Scott Anderson 2007-10-18 21:30:49 UTC
I have a similar problem.  Several bug reports are out there under debian and ubuntu.  I'm on debian etch with sawfish 1:1.3+cvs20061004-1.

Here is a list of similar reports:

https://bugs.launchpad.net/ubuntu/+source/sawfish/+bug/49740
http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2003-August/020479.html
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=249891
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=208202
Comment 29 Christopher Roy Bratusek 2009-12-19 07:10:54 UTC
In sawfish 1.6.0 where have been two bugfixes regarding crashing/windows disappearing. This bug should be fixed now, if not feel free to re-open.