panel crashes if you add, remove, then add the same applet

Bug #1076830 reported by Alistair Buxton
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
GNOME Panel
Fix Released
Medium
gnome-panel (Ubuntu)
Fix Released
High
Unassigned

Bug Description

To reproduce:

1. windows-alt-right-click the panel, and then "add to panel"
2. Add an applet that you don't already have, eg Fish, or Notification area (which is inexplicably missing from the default config)
3. Close "Add to panel" window
4. windows-alt-right-click the applet you just added and remove it.
5. Repeat steps 1 and 2, adding the same applet again.

Expected result: Same as the first time.

Actual result: gnome-panel crashes.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: gnome-panel 1:3.6.0-0ubuntu2
ProcVersionSignature: Ubuntu 3.5.0-18.29-generic 3.5.7
Uname: Linux 3.5.0-18-generic x86_64
ApportVersion: 2.6.1-0ubuntu6
Architecture: amd64
Date: Fri Nov 9 01:51:36 2012
GsettingsChanges:

InstallationDate: Installed on 2012-11-08 (0 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
MarkForUpload: True
SourcePackage: gnome-panel
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Alistair Buxton (a-j-buxton) wrote :
Revision history for this message
Alistair Buxton (a-j-buxton) wrote :

I ran some tests and found that this happens iff the gnome-panel is configured with "--in-process-applets=all" and presumably only happens with the default applets included with gnome-panel itself.

Revision history for this message
Alistair Buxton (a-j-buxton) wrote :

Here is what it spits out when it crashes:

Failed to register object /org/gnome/panel/applet/FishAppletFactory: An object is already exported for the interface org.gnome.panel.applet.AppletFactory at /org/gnome/panel/applet/FishAppletFactory

(gnome-panel:24940): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `PanelAppletFactory'

(gnome-panel:24940): Gtk-CRITICAL **: gtk_accelerator_parse_with_keycode: assertion `accelerator != NULL' failed

** (gnome-panel:24940): WARNING **: Unable to parse mouse modifier '(null)'

Bad use of PanelApplet API: you should not create a PanelApplet object yourself. Please use panel_applet_factory_main() instead.
**
ERROR:panel-applet.c:2087:panel_applet_constructed: code should not be reached
Aborted (core dumped)

Revision history for this message
Alistair Buxton (a-j-buxton) wrote :
Changed in gnome-panel:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
Bob Bib (bobbib) wrote :

Your current doesn't contain a coredump retrace, and therefore is not very informative.
If you can reproduce the crash -- report it properly, with a coredump attached.
(If apport doesn't allow you to report the crash to Launchpad, please look at the bug #994921).

After reporting the current bug properly, you can make this bug as a duplicate of the new one.

Revision history for this message
Alistair Buxton (a-j-buxton) wrote :

Firstly this isn't a duplicate bug report - the steps to reproduce are different.

Secondly, the steps to reproduce work on any hardware, so if a developer was really interested in fixing this it would be trivial for them to simply repeat the steps to reproduce and get a backtrace.

Changed in gnome-panel (Ubuntu):
status: New → Triaged
importance: Undecided → High
Changed in gnome-panel:
status: New → Confirmed
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Fixed in 3.8.1-2ubuntu1:

 [ Alberts Muktupāvels ]
 * Fix crash when in-process applet is removed from panel and then
 added back to panel. (LP: #1076830)

Changed in gnome-panel (Ubuntu):
status: Triaged → Fix Released
Changed in gnome-panel:
status: Confirmed → Fix Released
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.