[Breezy] Panel not updating

Bug #18189 reported by Corey Burger
18
Affects Status Importance Assigned to Milestone
gnome-panel (Ubuntu)
Fix Released
Low
Sebastien Bacher

Bug Description

The gnome-panel doesn't update which results in the following three breakages:

1. Installing new applications do not add themselves from the menus
2. Uninstalling applications does not remove their entry from the menus
3. Applets that are installed cannot be added to the panel, as they don't have
an entry on in "Add to panel" dialog

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

do you use dnotify or inotify?

Revision history for this message
Corey Burger (corey.burger) wrote :

As this is a hoary upgrade, I suspect the former, but I am uncertain about how
to check.

Revision history for this message
Juan Pablo Pincheira Barrera (jpincheira) wrote :

yep. I think it's a gamin problem :/ The default kernel boot doesn't go with
inotify option to boot, so the problem I think it's not inotify.

Revision history for this message
Juan Pablo Pincheira Barrera (jpincheira) wrote :

Another thing:
uhhmm all the reasons that gives Corey Burger I always solve them with a
killall gnome-panel, I think that's not a problem, but can be simplified. On
ubuntuguide, they suggest to do a killall gnome-panel when you install something
that must appear an access on the panel. Always have been thus.
I think the bigger problem is when you try to erase the "Recent Documents" list
from Menu > Places; the list is not deleted. That must be the real problem that
can be said "gnome-panel updating problem".

Revision history for this message
Corey Burger (corey.burger) wrote :

The .12 kernel also doesn't work, so I also suspect a gamin issue.

Revision history for this message
Corey Burger (corey.burger) wrote :

*** Bug 19391 has been marked as a duplicate of this bug. ***

Revision history for this message
Ji Yu (noizezone) wrote :

from gamin's log:

Connection fd 12 to pid 10055: state okay, 0 read
  Listener has 2 subscriptions registered
    Subscription 2 reqno 1008 events 1008 dir 0: /home/jiyu/.recently-used
    Subscription 1 reqno 1008 events 1008 dir 0: /home/jiyu/.gtk-bookmarks

pid 10055 is gnome-panel. It looks like gnome-panel is not even trying to monitor
the /usr/share/applications directory.

Revision history for this message
Ji Yu (noizezone) wrote :

Who's the maintainer of libgnome-menus? The current version (2.11.90-0ubuntu1)
is build without linking to libfam?

$ldd /usr/lib/libgnome-menu.so.2
        linux-gate.so.1 => (0xffffe000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb7e9f000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7d77000)
        /lib/ld-linux.so.2 (0x80000000)

I have a local build, with which gnome-panel update correctly. Here is the
correct linking:

$ldd ../libmenu/.libs/libgnome-menu.so
        linux-gate.so.1 => (0xffffe000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb7e70000)
        libfam.so.0 => /usr/lib/libfam.so.0 (0xb7e69000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7d40000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7d2f000)
        /lib/ld-linux.so.2 (0x80000000)

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

Thanks for pointing that. Let me know if this upload fixes the issue:

 gnome-menus (2.11.90-0ubuntu2) breezy; urgency=low
 .
   * debian/control.in:
     - Build-Depends on libgamin-dev, fix the menus update (Ubuntu: #11908).

Revision history for this message
Ji Yu (noizezone) wrote :

Using new version of libgnome-menus. Now the panel is updating. However,this
also trigger some random crashes of panel while I trying to move desktop files
in/out of /usr/share/applications/ directory.

Here's a backtrace
#0 0xb77eab3c in g_type_check_instance_cast ()
   from /usr/lib/libgobject-2.0.so.0
#1 0x0807d40e in create_submenu ()
#2 0xb7723ad0 in g_child_watch_add () from /usr/lib/libglib-2.0.so.0
#3 0xb772186e in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#4 0xb7724876 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#5 0xb7724b63 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#6 0xb7b6995f in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#7 0x08064527 in main ()

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

the crasher is http://bugzilla.gnome.org/show_bug.cgi?id=312512. This bug is
fixed, I'm closing it.

Revision history for this message
Ji Yu (noizezone) wrote :

There is, however, no need to report to upstream. the gnome cvs version is fine.
The crash seems due to a local patch.
Most important offending like seems to be this:

--- gnome-panel-2.11.3.orig/gnome-panel/panel-menu-items.c 2005-06-06
23:51:27.000000000 +0200
+++ gnome-panel-2.11.3/gnome-panel/panel-menu-items.c 2005-06-27
15:25:37.614705664 +0200

@@ -736,6 +795,12 @@
            PanelDesktopMenuItemClass *klass)
 {
  menuitem->priv = PANEL_DESKTOP_MENU_ITEM_GET_PRIVATE (menuitem);
+
+ menuitem->priv->tree = gmenu_tree_lookup ("settings.menu", GMENU_TREE_FLAGS_NONE);
+
+ gmenu_tree_add_monitor (menuitem->priv->tree,
+ (GMenuTreeChangedFunc) handle_menu_tree_changed,
+ menuitem);
 }

 static void

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

Thanks for the comment. The bug is not the patch and upstream have fixed it, you
can read http://bugzilla.gnome.org/show_bug.cgi?id=312512 about this.

This upload fixes the issue:

 gnome-panel (2.11.90-0ubuntu3) breezy; urgency=low
 .
   * debian/patches/06_menu_update.patch:
     - CVS patch to fix a crasher when the menu is updated.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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