wnck-applet doesn't work at login, kill/reload fixes it

Bug #37646 reported by Lee Revell
12
Affects Status Importance Assigned to Milestone
gnome-panel (Ubuntu)
Fix Committed
Medium
Ubuntu Desktop Bugs

Bug Description

When I log in, the window list at the bottom of the screen "stops responding" - only the first xterm shows up in the list, Firefox and Evo do not. If I then do "killall wnck-applet" and hit "Reload" on all dialogs, it works fine, all applications appear in the list.

This started a few months ago with one of the Dapper upgrades.

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

Thanks for your bug. Could you get a backtrace of the hang with gnome-panel-dbg installed?
- gdb $(pidof wnck-applet)
(gdb) thread apply all bt

and copy that to a comment

Changed in gnome-panel:
assignee: nobody → desktop-bugs
status: Unconfirmed → Needs Info
Revision history for this message
Lee Revell (rlrevell) wrote :

0xb7d77d02 in pthread_mutex_lock () from /lib/tls/libpthread.so.0
(gdb) thread apply all bt

Thread 1 (Thread -1222277440 (LWP 5874)):
#0 0xb7d77d02 in pthread_mutex_lock () from /lib/tls/libpthread.so.0
#1 0xb7974f38 in g_static_rw_lock_writer_lock () from /usr/lib/libglib-2.0.so.0
#2 0xb79dac0c in g_type_init_with_debug_flags () from /usr/lib/libgobject-2.0.so.0
#3 0xb79dae82 in g_type_init () from /usr/lib/libgobject-2.0.so.0
#4 0xb7ed8c67 in wnck_window_get_type () from /usr/lib/libwnck-1.so.18
#5 0xb7ed923c in wnck_window_get_transient () from /usr/lib/libwnck-1.so.18
#6 0xb7ed51e8 in wnck_tasklist_get_size_hint_list () from /usr/lib/libwnck-1.so.18
#7 0xb79ce423 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0
#8 0xb79c279f in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#9 0xb79d14de in g_signal_stop_emission () from /usr/lib/libgobject-2.0.so.0
#10 0xb79d2ae9 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#11 0xb79d2e59 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#12 0xb7ecf8a3 in wnck_screen_get_default () from /usr/lib/libwnck-1.so.18
#13 0xb7ecf926 in wnck_screen_get_default () from /usr/lib/libwnck-1.so.18
#14 0xb7ecfe62 in wnck_screen_get_default () from /usr/lib/libwnck-1.so.18
#15 0xb7ed10ed in wnck_screen_get_default () from /usr/lib/libwnck-1.so.18
#16 0xb795aaf2 in g_child_watch_add () from /usr/lib/libglib-2.0.so.0
#17 0xb79587d7 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#18 0xb795b896 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#19 0xb795bbb8 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#20 0xb7461477 in bonobo_main () from /usr/lib/libbonobo-2.so.0
#21 0xb745f9b1 in bonobo_generic_factory_main_timeout () from /usr/lib/libbonobo-2.so.0
#22 0xb745fa35 in bonobo_generic_factory_main () from /usr/lib/libbonobo-2.so.0
#23 0xb7ef2ed8 in panel_applet_factory_main_closure () from /usr/lib/libpanel-applet-2.so.0
#24 0xb7ef2faa in panel_applet_factory_main () from /usr/lib/libpanel-applet-2.so.0
#25 0x0804c59f in main (argc=-1214312552, argv=0xb79f0f98) at /build/buildd/gnome-panel-2.14.0/./applets/wncklet/wncklet.c:201
#26 0xb781aea4 in __libc_start_main () from /lib/tls/libc.so.6
#27 0x0804bec1 in _start () at ../sysdeps/i386/elf/start.S:119
#0 0xb7d77d02 in pthread_mutex_lock () from /lib/tls/libpthread.so.0

Revision history for this message
Lee Revell (rlrevell) wrote :

So, does this backtrace tell you where the problem is?

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

Not really. A backtrace with libglib2.0-0-dbg and debug build of libwnck would be nice (we don't have a -dbg for that one). Ccing Vincent who is upstream and might have an idea on the topic

Changed in gnome-panel:
status: Needs Info → Unconfirmed
Revision history for this message
Lee Revell (rlrevell) wrote : Re: [Bug 37646] Re: wnck-applet doesn't work at login, kill/reload fixes it

On Tue, 2006-04-04 at 19:12 +0000, Sebastien Bacher wrote:
> Not really. A backtrace with libglib2.0-0-dbg and debug build of libwnck would be nice (we don't have a -dbg for that one). Ccing Vincent who is upstream and might have an idea on the topic
>
> ** Changed in: gnome-panel (Ubuntu)
> Status: Needs Info => Unconfirmed

Would only installing libglib2.0-0-dbg help at all? I'd like to help
resolve this but unfortunately don't have a ton of bandwidth to devote
to the issue.

I'd be glad to test a -dbg build of libwnck if you can post a .deb
somewhere.

Lee

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

libgtk2.0-0-dbg would not be useful for that. What architecture do you use? We can build a package and put it on people.ubuntu.com

Revision history for this message
Lee Revell (rlrevell) wrote :

On Tue, 2006-04-04 at 20:33 +0000, Sebastien Bacher wrote:
> libgtk2.0-0-dbg would not be useful for that. What architecture do you use? We can build a package and put it on people.ubuntu.com

i386

Revision history for this message
Vincent Untz (vuntz) wrote :

When you say "stop responding", do you mean it doesn't react to window events (new windows, etc.) or that you can't do anything with it? Does right-click on the handle of the applet work?

Stack trace will help, of course :-)

Revision history for this message
Lee Revell (rlrevell) wrote :

On Tue, 2006-04-04 at 20:57 +0000, Vincent Untz wrote:
> When you say "stop responding", do you mean it doesn't react to window
> events (new windows, etc.) or that you can't do anything with it? Does
> right-click on the handle of the applet work?
>

I'm 99% sure it's the former - it stops reacting to window events, but
will still respond to right click. Have to reboot to be 100% sure.

> Stack trace will help, of course :-)

I guess the one I posted is useless?

Lee

Revision history for this message
Vincent Untz (vuntz) wrote :

> > Stack trace will help, of course :-)
>
> I guess the one I posted is useless?

Yeah, it's a typical libwnck strack trace you get when you don't have the dbg package.

It's kind of interesting if it only doesn't react to new events. Does it also happen with other applets (the workspace switcher, the window selector, etc.)? Can you use those other applets or are they blocked?

Revision history for this message
Lee Revell (rlrevell) wrote :

On Tue, 2006-04-04 at 20:57 +0000, Vincent Untz wrote:
> When you say "stop responding", do you mean it doesn't react to window
> events (new windows, etc.) or that you can't do anything with it? Does
> right-click on the handle of the applet work?

It seems that in fact I can't do anything at all with it. The workplace
switcher is garbled in appearance and does not respond to right click.
Neither the handle of the window list nor the single xterm that appears
in it respond to right clicks.

The panel does continue to work - right on the panel clicking
immediately to the right of the unresponsive xterm box gives me the
normal "Add to panel..." etc. menu.

Any progress on building some debug .debs that I can try?

Lee

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

On Wed, 2006-04-05 at 21:39 +0000, Sebastien Bacher wrote:
> debug deb: http://people.ubuntu.com/~seb128/debug/libwnck18_2.14.0-0ubuntu1_i386.deb

(gdb) thread apply all bt

Thread 1 (Thread -1221536064 (LWP 2764)):
#0 0xb7a8fc5b in g_type_init_with_debug_flags () from /usr/lib/libgobject-2.0.so.0
#1 0xb7f91563 in wnck_window_get_type () at window.c:188
#2 0xb7f92003 in wnck_window_get_transient (window=0x822be70) at window.c:492
#3 0xb7f8dc28 in wnck_tasklist_active_window_changed (screen=0x80ce840, tasklist=0x80cdd78) at tasklist.c:2056
#4 0xb7a83423 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0
#5 0xb7a7779f in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#6 0xb7a864de in signal_emit_unlocked_R () from /usr/lib/libgobject-2.0.so.0
#7 0xb7a87ae9 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#8 0xb7a87e59 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#9 0xb7f879c9 in emit_active_window_changed (screen=0x80ce840) at screen.c:1961
#10 0xb7f873c0 in update_active_window (screen=0x80ce840) at screen.c:1721
#11 0xb7f878a4 in do_update_now (screen=0x80ce840) at screen.c:1917
#12 0xb7f878fa in update_idle (data=0x80ce840) at screen.c:1934
#13 0xb7a0faf2 in g_idle_dispatch () from /usr/lib/libglib-2.0.so.0
#14 0xb7a0d7d7 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#15 0xb7a10896 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#16 0xb7a10bb8 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#17 0xb7516477 in bonobo_main () from /usr/lib/libbonobo-2.so.0
#18 0xb75149b1 in bonobo_generic_factory_main_timeout () from /usr/lib/libbonobo-2.so.0
#19 0xb7514a35 in bonobo_generic_factory_main () from /usr/lib/libbonobo-2.so.0
#20 0xb7faeed8 in panel_applet_factory_main_closure () from /usr/lib/libpanel-applet-2.so.0
#21 0xb7faefaa in panel_applet_factory_main () from /usr/lib/libpanel-applet-2.so.0
#22 0x0804c59f in main (argc=-1213571176, argv=0xb7aa5f98) at /build/buildd/gnome-panel-2.14.0/./applets/wncklet/wncklet.c:201
#23 0xb78cfea4 in __libc_start_main () from /lib/tls/libc.so.6
#24 0x0804bec1 in _start () at ../sysdeps/i386/elf/start.S:119
#0 0xb7a8fc5b in g_type_init_with_debug_flags () from /usr/lib/libgobject-2.0.so.0

Revision history for this message
Lee Revell (rlrevell) wrote :

On Wed, 2006-04-05 at 21:39 +0000, Sebastien Bacher wrote:
> debug deb: http://people.ubuntu.com/~seb128/debug/libwnck18_2.14.0-0ubuntu1_i386.deb

(gdb) thread apply all bt full

Thread 1 (Thread -1221536064 (LWP 2764)):
#0 0xb7a8fc5b in g_type_init_with_debug_flags () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#1 0xb7f91563 in wnck_window_get_type () at window.c:188
        object_type = 135047440
#2 0xb7f92003 in wnck_window_get_transient (window=0x822be70) at window.c:492
        __inst = (GTypeInstance *) 0x822be70
        __t = 3086640468
        __r = -1208427559
        __PRETTY_FUNCTION__ = "wnck_window_get_transient"
#3 0xb7f8dc28 in wnck_tasklist_active_window_changed (screen=0x80ce840, tasklist=0x80cdd78) at tasklist.c:2056
        active_window = (WnckWindow *) 0x822be70
        active_task = (WnckTask *) 0x0
#4 0xb7a83423 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#5 0xb7a7779f in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#6 0xb7a864de in signal_emit_unlocked_R () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#7 0xb7a87ae9 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#8 0xb7a87e59 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#9 0xb7f879c9 in emit_active_window_changed (screen=0x80ce840) at screen.c:1961
No locals.
#10 0xb7f873c0 in update_active_window (screen=0x80ce840) at screen.c:1721
        window = (WnckWindow *) 0x822be70
        xwindow = 27262985
#11 0xb7f878a4 in do_update_now (screen=0x80ce840) at screen.c:1917
No locals.
#12 0xb7f878fa in update_idle (data=0x80ce840) at screen.c:1934
        screen = (WnckScreen *) 0x80ce840
#13 0xb7a0faf2 in g_idle_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#14 0xb7a0d7d7 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#15 0xb7a10896 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#16 0xb7a10bb8 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#17 0xb7516477 in bonobo_main () from /usr/lib/libbonobo-2.so.0
No symbol table info available.
#18 0xb75149b1 in bonobo_generic_factory_main_timeout () from /usr/lib/libbonobo-2.so.0
No symbol table info available.
#19 0xb7514a35 in bonobo_generic_factory_main () from /usr/lib/libbonobo-2.so.0
No symbol table info available.
#20 0xb7faeed8 in panel_applet_factory_main_closure () from /usr/lib/libpanel-applet-2.so.0
No symbol table info available.
#21 0xb7faefaa in panel_applet_factory_main () from /usr/lib/libpanel-applet-2.so.0
No symbol table info available.
#22 0x0804c59f in main (argc=-1213571176, argv=0xb7aa5f98) at /build/buildd/gnome-panel-2.14.0/./applets/wncklet/wncklet.c:201
No locals.
#23 0xb78cfea4 in __libc_start_main () from /lib/tls/libc.so.6
No symbol table info available.
#24 0x0804bec1 in _start () at ../sysdeps/i386/elf/start.S:119
No locals.
#0 0xb7a8fc5b in g_type_init_with_debug_flags () from /usr/lib/libgobject-2.0.so.0

Revision history for this message
Lee Revell (rlrevell) wrote :
Download full text (3.6 KiB)

On Wed, 2006-04-05 at 21:39 +0000, Sebastien Bacher wrote:
> debug deb: http://people.ubuntu.com/~seb128/debug/libwnck18_2.14.0-0ubuntu1_i386.deb

It's definitely stuck in a loop of some kind. Here are a few more if I
continue and stop it again (I only included the top of the stack that
changes)

(gdb) thread apply all bt full

Thread 1 (Thread -1221536064 (LWP 2764)):
#0 0xb7f9a75c in _wnck_xid_equal (v1=0x80d12e0, v2=0xbffdd340) at xutils.c:788
No locals.
#1 0xb7f91a4d in wnck_window_get (xwindow=27262985) at window.c:341
No locals.
#2 0xb7f92082 in wnck_window_get_transient (window=0x822be70) at window.c:494
        __PRETTY_FUNCTION__ = "wnck_window_get_transient"
#3 0xb7f8dc28 in wnck_tasklist_active_window_changed (screen=0x80ce840, tasklist=0x80cdd78) at tasklist.c:2056
        active_window = (WnckWindow *) 0x822be70
        active_task = (WnckTask *) 0x0

Thread 1 (Thread -1221536064 (LWP 2764)):
#0 0xb79f6554 in __i686.get_pc_thunk.bx () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#1 0xb7a29ef6 in g_static_rw_lock_writer_lock () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#2 0xb7a8fc0c in g_type_init_with_debug_flags () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#3 0xb7a8fe82 in g_type_init () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#4 0xb7f91563 in wnck_window_get_type () at window.c:188
        object_type = 135047440
#5 0xb7f92003 in wnck_window_get_transient (window=0x822be70) at window.c:492
        __inst = (GTypeInstance *) 0x822be70
        __t = 3086640468
        __r = -1208427559
        __PRETTY_FUNCTION__ = "wnck_window_get_transient"
#6 0xb7f8dc28 in wnck_tasklist_active_window_changed (screen=0x80ce840, tasklist=0x80cdd78) at tasklist.c:2056
        active_window = (WnckWindow *) 0x822be70
        active_task = (WnckTask *) 0x0

Thread 1 (Thread -1221536064 (LWP 2764)):
#0 0xb7a2a180 in g_static_rw_lock_writer_unlock () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#1 0xb7a8fc24 in g_type_init_with_debug_flags () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#2 0xb7a8fe82 in g_type_init () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#3 0xb7f91563 in wnck_window_get_type () at window.c:188
        object_type = 135047440
#4 0xb7f92003 in wnck_window_get_transient (window=0x822be70) at window.c:492
        __inst = (GTypeInstance *) 0x822be70
        __t = 3086640468
        __r = -1208427559
        __PRETTY_FUNCTION__ = "wnck_window_get_transient"
#5 0xb7f8dc28 in wnck_tasklist_active_window_changed (screen=0x80ce840, tasklist=0x80cdd78) at tasklist.c:2056
        active_window = (WnckWindow *) 0x822be70
        active_task = (WnckTask *) 0x0

Thread 1 (Thread -1221536064 (LWP 2764)):
#0 0xb7a29fc5 in g_static_rw_lock_writer_lock () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#1 0xb7a8fc0c in g_type_init_with_debug_flags () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#2 0xb7a8fe82 in g_type_init () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#3 0xb7f91563 in wnck_window_get_type () at window...

Read more...

Revision history for this message
Vincent Untz (vuntz) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :
Revision history for this message
Lee Revell (rlrevell) wrote :

On Thu, 2006-04-06 at 06:25 +0000, Vincent Untz wrote:
> Could this be http://bugzilla.gnome.org/show_bug.cgi?id=332493 ?

That's almost certainly it (I do run x11-ssh-askpass at login)

Testing now.

Lee

Revision history for this message
Lee Revell (rlrevell) wrote :

On Thu, 2006-04-06 at 08:02 +0000, Sebastien Bacher wrote:
> Packages with the upstream patch applied: http://people.ubuntu.com/~seb128/debug/libwnck18_2.14.0-0ubuntu1.1_i386.deb http://people.ubuntu.com/~seb128/debug/libwnck-common_2.14.0-0ubuntu1.1_all.deb
>
> Could you try if that fixes your issue?

Yes, I have confirmed that these fix the bug.

Lee

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

Thank you for your bug on that, marking as duplicate of bug #20412, new tarballs for GNOME 2.14.1 are due monday and will fix that issue

Changed in gnome-panel:
status: Unconfirmed → Fix Committed
Revision history for this message
Sebastien Bacher (seb128) wrote :

"Thank you for your work on that" rather

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.