lidbusmenu-GTK crash with Geany IDE using Python

Bug #907635 reported by ken brockman on 2011-12-22
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
DBus Menu
Fix Committed
Undecided
Unassigned
libdbusmenu (Ubuntu)
Undecided
Unassigned

Bug Description

When I list debug msgs from the Geany Menu, i get:
22:59:03: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:00:42: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:09:48: Geany INFO : *DOC* : Python (UTF-8)
23:14:11: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:14:11: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:14:11: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:14:59: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:14:59: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:14:59: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:15:13: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:15:13: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:15:13: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:17:14: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:17:14: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:17:14: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:17:46: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:17:46: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:17:46: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:17:52: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:17:52: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:17:52: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:18:18: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:18:18: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:18:18: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:18:26: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:18:26: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:18:26: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:18:32: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:18:32: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:18:32: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
23:18:55: LIBDBUSMENU-GTK CRITICAL : watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed

I have seen the same or similar postings all on Ubuntu or a derivative. Some have implied that it was a known bug with Ubuntu 11.10. Any help would be greatly appreciated.
Geany 0.20, libdbusmenu-gtk4, libdbusmenu-gtk3-4, libdbusmenu-gtk-dev, libdbusmenu-gtk3-dev, Ubuntu 11.10
Someone else on the web was having the same problems using Lotus Notes, same error msg.

Related branches

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libdbusmenu (Ubuntu):
status: New → Confirmed

I think this is due to a missing NULL guard. The GTK+ docs say it's OK to gtk_menu_item_set_submenu(item, NULL) to remove the submenu, and I think Geany does this when reparenting the New with Templates menu item.

I've attached a patch that shows what I mean (against distro package source since current head wouldn't build here).

The attachment "Patch that shows the missing NULL guard." of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch

Oops, I didn't notice the word "crash" in the bug title :)

The problem the patch addresses is just to clear up that console spam, which should be harmless.

Matias Haller (haller-matias) wrote :

Hi Ken,

Having same issue with My Lotus Notes. Can someone help?

Regards

Olli Ries (ories) wrote :

does the problem still occur on 12.04?

Changed in dbusmenu:
status: New → Incomplete
Changed in libdbusmenu (Ubuntu):
status: Confirmed → Incomplete
Launchpad Janitor (janitor) wrote :

[Expired for DBus Menu because there has been no activity for 60 days.]

Changed in dbusmenu:
status: Incomplete → Expired
Launchpad Janitor (janitor) wrote :

[Expired for libdbusmenu (Ubuntu) because there has been no activity for 60 days.]

Changed in libdbusmenu (Ubuntu):
status: Incomplete → Expired
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:libdbusmenu at revision 464, scheduled for release in libdbusmenu, milestone Unknown

Changed in libdbusmenu:
status: Expired → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libdbusmenu - 12.10.3+14.04.20140217.1-0ubuntu1

---------------
libdbusmenu (12.10.3+14.04.20140217.1-0ubuntu1) trusty; urgency=low

  [ Ted Gould ]
  * Don't depend on valgrind on ppc64el. (LP: #1262374)
  * Flushing trunk with a release

  [ Matthew Brush ]
  * Check to ensure the property isn't set to NULL. (LP: #907635)
 -- Ubuntu daily release <email address hidden> Mon, 17 Feb 2014 18:07:41 +0000

Changed in libdbusmenu (Ubuntu):
status: Expired → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers