Metacity titlebar odity

Bug #12209 reported by Trey Earl
10
Affects Status Importance Assigned to Milestone
metacity (Ubuntu)
Fix Released
Critical
Sebastien Bacher

Bug Description

When clicking on metacity titlebar, metacity will crash and restart... if you do
this enough times, it will also fail to restart after the crash, user is left
with no application window.

Happens with 2.9.5-1 ... very irritating :(

Revision history for this message
Sebastien Bacher (seb128) wrote :

no crash here. Where do you click exactly, what focus mode are you using, do you
know how to get a backrace ?

Revision history for this message
Trey Earl (lunitik) wrote :

Not sure how to backtrace no...

I am using "roll-up" if that is what you mean by "focus mode"?

Also, simular happens when closing applications... pretty much any interaction
with metacity itself it seems...

If you'd like to provide info on how to backtrace, I'll see what I can come up with?

Revision history for this message
Thom May (thombot) wrote :

Using "sloppy" focus, metacity segfaults pretty consistently - either creating
new windows, or changing workspace:

#0 0x0000002a96f45f4d in ?? () from /usr/lib/libglib-2.0.so.0
#1 0x000000000041deb7 in meta_display_end_grab_op ()
#2 0x000000000041be56 in meta_display_queue_autoraise_callback ()
#3 0x0000000000449bda in meta_ui_get_display ()
#4 0x0000002a95dc9505 in gdk_event_apply_filters (xevent=0x7fbffff3e0,
    event=0x6c1c50, filters=0x44b2e5) at gdkevents-x11.c:327
#5 0x0000002a95dc9e24 in gdk_event_translate (display=0x5e1b80,
    event=0x6c1c50, xevent=0x7fbffff3e0, return_exposes=0)
    at gdkevents-x11.c:871
#6 0x0000002a95dcb241 in _gdk_events_queue (display=0x5e1b80)
    at gdkevents-x11.c:2154
#7 0x0000002a95dcb39c in gdk_event_dispatch (source=0x5f656d6172663c0a,
    callback=0x45c540 <_IO_stdin_used+13760>, user_data=0x44b2e5)
    at gdkevents-x11.c:2214
#8 0x0000002a96f4888c in ?? () from /usr/lib/libglib-2.0.so.0
#9 0x0000002a96f49824 in ?? () from /usr/lib/libglib-2.0.so.0
#10 0x0000002a96f49b2e in ?? () from /usr/lib/libglib-2.0.so.0
#11 0x0000002a96f4a015 in ?? () from /usr/lib/libglib-2.0.so.0
#12 0x000000000042afa2 in main ()

Revision history for this message
Gabriele Postorino (no0tic) wrote :

every time I try to move windows metacity keeps redrawing them without moving
them actually. Resizing works but it redraws windows (blinking) too. If I try to
move or resize a windows, all opened widows disappear and then come up.

Revision history for this message
scoon (scoon2004) wrote :

This happens to me as well. I can switch from window to window by clicking on
anything but the title bar. As soon as I try and move the window or click on
the title bar, all of my open windows get redrawn. If I have windows on other
desktops then they get redrawn as well. Once all of the windows are redrawn,
the original window that I moved is in focus again.

Revision history for this message
Thom May (thombot) wrote :

From a debug build:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 182941175472 (LWP 9576)]
0x0000002a96f45f4d in g_list_free () from /usr/lib/libglib-2.0.so.0
(gdb) bt
#0 0x0000002a96f45f4d in g_list_free () from /usr/lib/libglib-2.0.so.0
#1 0x0000000000420d81 in meta_display_end_grab_op (display=0x614900,
timestamp=45056) at display.c:3389
#2 0x0000000000432443 in process_workspace_switch_grab (display=0x614900,
screen=0x620c50, event=0x7fbffff5a0, keysym=65513)
    at keybindings.c:2739
#3 0x0000000000430a26 in meta_display_process_key_event (display=0x614900,
window=0x0, event=0x7fbffff5a0) at keybindings.c:1663
#4 0x000000000041dbcb in event_callback (event=0x7fbffff5a0, data=0x614900) at
display.c:1570
#5 0x000000000045d377 in filter_func (xevent=0x7fbffff5a0, event=0x657800,
data=0x615ca0) at ui.c:85
#6 0x0000002a95dc9505 in gdk_event_apply_filters (xevent=0x7fbffff5a0,
event=0x657800, filters=0x45f0ce) at gdkevents-x11.c:327
#7 0x0000002a95dc9e24 in gdk_event_translate (display=0x5fd4a0, event=0x657800,
xevent=0x7fbffff5a0, return_exposes=0) at gdkevents-x11.c:871
#8 0x0000002a95dcb241 in _gdk_events_queue (display=0x5fd4a0) at
gdkevents-x11.c:2154
#9 0x0000002a95dcb39c in gdk_event_dispatch (source=0x747475625f65726f,
callback=0x4780e0 <constraint_hints+14688>, user_data=0x45f0ce)
    at gdkevents-x11.c:2214
#10 0x0000002a96f4888c in g_main_depth () from /usr/lib/libglib-2.0.so.0
#11 0x0000002a96f49824 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#12 0x0000002a96f49b2e in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#13 0x0000002a96f4a015 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#14 0x000000000043415c in main (argc=3, argv=0x7fbffffb28) at main.c:486

Revision history for this message
Sylvain BERTRAND (sylvain-bertrand) wrote :

Got exactly the same issue... Everything back to normal with:
 - libmetacity0 1:2.9.5
 - metacity 1:2.9.2
May help to narrow down the pb.

Revision history for this message
Étienne BERSAC (bersace) wrote :

on ppc with metacity 2.9.5-0ubuntu1, libmetacity 2.9.5-0ubuntu1.
When a window is moved or on window deletion:
 * all window from all desktop are show without borders.
 * all non-maximize window are drawing just "one height of title" below.
 * the workspace applet does not show anything.

Revision history for this message
Elijah (newren) wrote :

Created an attachment (id=1135)
Make sure to initialize display->grab_old_window_stacking

Hi everyone,

This crash is my fault; the attached patch should fix the issue. Could others
try it and verify for me, so that I can roll a new upstream release? (This is
the same patch as in the upstream
http://bugzilla.gnome.org/show_bug.cgi?id=165093)

Thanks,
Elijah

Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks Elijah for the patch. That fixes the issue apparently.

Revision history for this message
Sebastien Bacher (seb128) wrote :

 metacity (1:2.9.8-0ubuntu1) hoary; urgency=low
 .
   * New upstream release:
     - fixed the 2.9.5's crasher (Hoary: #5823).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.