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 131196 - Metacity appears to crash when changing windows
Metacity appears to crash when changing windows
Status: RESOLVED DUPLICATE of bug 122016
Product: metacity
Classification: Other
Component: general
2.6.x
Other Linux
: High critical
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on:
Blocks:
 
 
Reported: 2004-01-12 00:51 UTC by Daniel James
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4



Description Daniel James 2004-01-12 00:51:34 UTC
The best way I can reproduce this is to:

* Log in as a normal user
* Open a terminal
* Press alt+tab - the terminal window decorations should vanish then
reappear and the terminal should move down+to the right slightly.

if you continue pressing alt+tab it keeps happening until metacity seems to
vanish forever. Occasionally this happens when I've got two windows open
and want to switch between them.
Comment 1 Rob Adams 2004-01-12 01:19:26 UTC
what version of metacity are you using?

I suspect this is the mru list bug again.  Could you try a CVS
metacity, perhaps?
Comment 2 Daniel James 2004-01-12 03:39:47 UTC
Probably should have put this in when I first commented. I'm using
metacity 2.6.3. I'll give cvs a try.. when I have a bit more time,
can't guarantee this will be speedy though sorry :-/
Comment 3 stefan.voelkel 2004-02-17 14:56:53 UTC
Window manager warning: Log level 6: file window.c: line 978
(meta_window_free): assertion failed: (g_list_find
(workspace->mru_list, window) == NULL)
Aborted

/tmp/metacity$ grep VERSION Makefile
VERSION = 2.7.0
distdir = $(PACKAGE)-$(VERSION)

checked out today, compiled in /tmp/metacity, started with
src/metacity --replace
Comment 4 Rob Adams 2004-02-17 17:02:51 UTC
What did you do to cause that to happen?
Comment 5 stefan.voelkel 2004-02-18 08:39:45 UTC
Well, hard to say, working :). I think it happens after alt-tabbing. I
am not sure if it only happens if you switch the workspace right
before. But opening some windows on diffrent worspaces and regulary
switching between them (with alt-ctrl-cursorkeys) and alt-tabbing
between the windows on each worspace seems to provoke it.

I built cvs metacity with maintainer-mode now and disabled core file
limits, so perheps I can provide you with a backtrace some time later.
Comment 6 Daniel James 2004-02-18 11:23:30 UTC
Something I have noticed is when switching workspaces with
alt-control-left and alt-control-right (I think there are default
bindings) the active window is no longer focused. Metacity obvously
realises that it was active though because alt-tab switches to the
window that was second in the list.

This is a major pain when developing stuff because I prefer not to
touch the mouse and alt-tabbing twice to get my window back is a pain.
Don't know if it is related.
Comment 7 stefan.voelkel 2004-02-18 12:29:35 UTC
Window manager warning: Log level 6: file workspace.c: line 135
(meta_workspace_add_window): assertion failed: (g_list_find
(workspace->mru_list, window) == NULL)
Aborted (core dumped)

I wanted to alt-tab to another application on that workspace and I
noticed that a windows was displayed in the mini-icon list that was
not on that workspace but on the one just below.

  • #0 kill
    from /lib/libc.so.6
  • #0 kill
    from /lib/libc.so.6
  • #1 pthread_kill
    from /lib/libpthread.so.0
  • #2 raise
    from /lib/libpthread.so.0
  • #3 raise
    from /lib/libc.so.6
  • #4 abort
    from /lib/libc.so.6
  • #5 g_logv
    from /usr/lib/libglib-2.0.so.0
  • #6 g_log
    from /usr/lib/libglib-2.0.so.0
  • #7 meta_workspace_add_window
    at workspace.c line 136
  • #8 meta_window_change_workspace_without_transients
    at window.c line 3212
  • #9 meta_window_change_workspace
    at window.c line 3243
  • #10 meta_window_activate
    at window.c line 2101
  • #11 process_tab_grab
    at keybindings.c line 2344
  • #12 meta_display_process_key_event
    at keybindings.c line 1650
  • #13 event_callback
    at display.c line 1333
  • #14 filter_func
    at ui.c line 85
  • #15 gdk_event_get_graphics_expose
    from /usr/lib/libgdk-x11-2.0.so.0
  • #16 _gdk_x11_register_event_type
    from /usr/lib/libgdk-x11-2.0.so.0
  • #17 _gdk_events_queue
    from /usr/lib/libgdk-x11-2.0.so.0
  • #18 _gdk_events_queue
    from /usr/lib/libgdk-x11-2.0.so.0
  • #19 unblock_source
    from /usr/lib/libglib-2.0.so.0
  • #20 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #21 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #22 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #23 main
    at main.c line 486

Comment 8 Elijah Newren 2004-02-18 17:29:38 UTC
I'm not so sure that Daniel and Stefan are talking about the same bug,
even though they may appear to sound similar...

Daniel: I believe that your comment as of 2004-02-18 06:23 (Bugzilla
time) is a separate issue, but one that I think I know how to fix. 
I'll look into it.

Stefan: So I guess the big issue is how did you get a window that is
not in the current workspace to appear in the alt-tab list?  I'd like
to know how to cause that, because I don't know how to get that to
happen and thus I can't duplicate this bug.  Of course, I'm still
"learning the ropes" with Metacity, so I'll try to dig deeper.
Comment 9 Rob Adams 2004-02-23 01:47:16 UTC
OK I'm returning to my FocusIn theory about what could be causing this.

Stefan, could you try current CVS HEAD? I've committed a change that
adds an assert in a different place.  It should still crash, but
hopefully it will crash in a different place. (and send in the line
where the assertion failed).

I can't reproduce this on my system, so I need you to test this for me.
Comment 10 stefan.voelkel 2004-02-23 08:48:55 UTC
How it happens: As I said, just working :). I have 15 Workspaces, lots
of applications (8+ Shells, galeon, evolution, mozilla, acrobat, pan,
nautilus, ...). I switch workspaces with my keyboard
(alt+ctrl-cursorkeys). Most workspaces have more than one application
running, so I need alt+tab to bring the application I want to the
front. And one time I noticed mozilla in the alt+tab icon list though
it wasn't on that workspace. After releasing alt metacity crashed.

CVS: will try it, but might take a day or two.
Comment 11 stefan.voelkel 2004-02-23 14:51:50 UTC
Window manager warning: Log level 6: file window.c: line 4138
(meta_window_notif                                                   
                                   
y_focus): assertion failed: (link)
Aborted (core dumped)

  • #0 kill
    from /lib/libc.so.6
  • #1 pthread_kill
    from /lib/libpthread.so.0
  • #2 raise
    from /lib/libpthread.so.0
  • #3 raise
    from /lib/libc.so.6
  • #4 abort
    from /lib/libc.so.6
  • #5 g_logv
    from /usr/lib/libglib-2.0.so.0
  • #6 g_log
    from /usr/lib/libglib-2.0.so.0
  • #7 meta_window_notify_focus
    at window.c line 4149
  • #8 event_callback
    at display.c line 1615
  • #9 filter_func
    at ui.c line 85
  • #10 gdk_event_get_graphics_expose
    from /usr/lib/libgdk-x11-2.0.so.0
  • #11 _gdk_x11_register_event_type
    from /usr/lib/libgdk-x11-2.0.so.0
  • #12 _gdk_events_queue
    from /usr/lib/libgdk-x11-2.0.so.0
  • #13 _gdk_events_queue
    from /usr/lib/libgdk-x11-2.0.so.0
  • #14 unblock_source
    from /usr/lib/libglib-2.0.so.0
  • #15 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #16 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #17 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #18 main
    at main.c line 486

Comment 12 stefan.voelkel 2004-02-24 16:05:20 UTC
I saw the effect of a "wrong" application beeing listed in the alt+tab
window list again. I found out that nothing bad happens if I do not
alt+tab to the "wrong" application.
Comment 13 Elijah Newren 2004-02-25 20:00:29 UTC
Should this be marked as a duplicate of bug 122016 (note especially
jlaska's most recent comment)?
Comment 14 Daniel James 2004-02-25 23:27:10 UTC
The only thing is.. I'm not sure if the bug Stefan is describing is
the same one I did.. I'm going to install cvs head today and see if
the bug I reported has been fixed..
Comment 15 Daniel James 2004-02-26 00:17:24 UTC
Hi All.. I just installed cvs metacity. The problem with applications
not being focused seems to be fixed. I haven't been able to replicated
the original bug I posted with this version yet.. I'll keep trying to
break it!
Comment 16 Rob Adams 2004-02-28 02:55:22 UTC
I think that the bug was caused by a race condition that I just fixed,
which makes the behavior hard to reproduce.  Please see #122016 for
further updates.

*** This bug has been marked as a duplicate of 122016 ***
Comment 17 Elijah Newren 2004-03-04 05:17:27 UTC
Daniel and Stefan may have been talking about the same bug after all.
 While trying to duplicate bug 122016 (using Markus' duplication
instructions in that report), I saw the behavior that Daniel
described.  I didn't get to check into it, because I was concentrating
on 122016 at the time (along with bugsquad and gnome-love stuff) and
not long thereafter my workstation became toast (suspected hard drive
failure, but who knows as the sysadmin has it in his office and is
still working on it).

My setup in that case was a 2x2 workspace array with four windows per
workspace, resized so that jointly they filled up most the screen (and
there was perhaps some overlap).  Other than that, I did what Markus
said, though I kept repeating the steps even when I saw a "funny
pause".  That funny pause, I didn't realize at the time, was Metacity
crashing and restarting.  So maybe it was due to metacity not
restarting well when under larger load and/or with queued keystrokes?
 I don't know...but I'll check into it further if anyone's interested.
 But I do think Rob's patch in bug 122016 either fixed this or
effectively avoided it, so I'm not bothering unless someone yells.  :)