Unity crashes when dynamic quicklist dbusmenu contains a hidden menuitem.
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Unity |
Fix Released
|
Medium
|
Bilal Akhtar | ||
| unity (Ubuntu) |
Fix Released
|
Medium
|
Bilal Akhtar | ||
| Natty |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
If the dynamic quicklist of a launcher icon contains a Dbusmenu Menuitem with property MENUITEM_
For some reason apport wasn't trapping the crashes and there were no crash files in /var/crash for this crash, so I backtraced manually using gdb. Attached is the entire gdb session file.
TEST CASE (for SRU): 1) Download and run this bug's attachment titled 'Unity crash test case script' in a terminal, when GNOME Terminal is running (important).
2) Right-click the gnome-terminal icon in Unity's launcher.
3) Unity crashes. With the fix in -proposed, Unity doesn't crash, and displays only "Item 1" in the upper part of the quicklist, which is the intended behavior.
Related branches
- Neil J. Patel (community): Approve
-
Diff: 15 lines (+5/-0) 1 file modifiedapisrc/LauncherIcon.cpp (+5/-0)
For reference, this is the code which I used to create the crash:
https:/
I am actually working on update-manager support for dynamic quicklists, and I need to hide the 'Install all updates' button when there are no updates. If I do that and then right-click update-manager in launcher, Unity crashes.
Fixed in linked branch.
This Python script demonstrates the problem. Run it like this (also added to bug description):
1) Download and run script from gnome-terminal (important).
2) When script is running, right-click gnome-terminal icon in Unity launcher.
Unity crashes. With the fix in branch, Unity doesn't crash and displays just "Item 1" in the dynamic part of the quicklist, which is the intended behavior in the case of this script.
Fixed in trunk.
This bug was fixed in the package unity - 3.8.14-0ubuntu1
---------------
unity (3.8.14-0ubuntu1) oneiric; urgency=low
* New upstream bug-fix release.
- In a dual monitor setup with different resolutions, Unity places windows
in the "dead zone" (LP: #752098)
- Left pixel of launcher is not clickable on session start (LP: #758026)
- unity crashed with AttributeError in reset_unity_
object has no attribute 'get_string' (LP: #737320)
- unity --reset crashes with NameError (LP: #774280)
- Bottom icon on launcher tilts when it maybe shouldn't if icons fill
launcher nearly exactly (LP: #728949)
- Dodge active window - launcher should not show when modal dialog is
opened (LP: #718185)
- Unity maximizes windows that don't support resize on launch (LP: #769781)
- compiz crashed with SIGSEGV in sigc::signal_
- inactive menus becomes brighter on sub-sequent clicks (LP: #733740)
- Unity crashes when dynamic quicklist dbusmenu contains a hidden menuitem.
(LP: #759174)
- Opening quicklist with launcher keynav returns focus to previous window
(LP: #750781)
- window's title does not fade in the right position (LP: #722178)
* debian/control:
- depends on compiz for some people upgrading (LP: #773253)
* debian/
- remove, upstream now
-- Didier Roche <email address hidden> 2011年5月26日 17:41:14 +0200
Accepted unity into natty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https:/
I've followed the test case and can confirm that the crash is fixed with the proposed version, marking this as verification-done, thanks all.
removed: verification-needed
This bug was fixed in the package unity - 3.8.14-
---------------
unity (3.8.14-
* New upstream bug-fix release.
- In a dual monitor setup with different resolutions, Unity places windows
in the "dead zone" (LP: #752098)
- Left pixel of launcher is not clickable on session start (LP: #758026)
- unity crashed with AttributeError in reset_unity_
object has no attribute 'get_string' (LP: #737320)
- unity --reset crashes with NameError (LP: #774280)
- Bottom icon on launcher tilts when it maybe shouldn't if icons fill
launcher nearly exactly (LP: #728949)
- Dodge active window - launcher should not show when modal dialog is
opened (LP: #718185)
- Unity maximizes windows that don't support resize on launch (LP: #769781)
- compiz crashed with SIGSEGV in sigc::signal_
- inactive menus becomes brighter on sub-sequent clicks (LP: #733740)
- Unity crashes when dynamic quicklist dbusmenu contains a hidden menuitem.
(LP: #759174)
- Opening quicklist with launcher keynav returns focus to previous window
(LP: #750781)
- window's title does not fade in the right position (LP: #722178)
* debian/control:
- depends on compiz for some people upgrading (LP: #773253)
* debian/
- remove, upstream now
-- Didier Roche <email address hidden> 2011年5月26日 17:41:14 +0200