After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 692610 - crash when add, remove, add the same applet, when built --with-in-process-applets
crash when add, remove, add the same applet, when built --with-in-process-app...
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: libpanel-applet
git master
Other Linux
: Normal normal
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-01-27 03:08 UTC by Alistair Buxton
Modified: 2014-10-27 17:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix crash when removing in-process applet and then adding it back (2.26 KB, patch)
2014-09-02 20:01 UTC, Alberts Muktupāvels
committed Details | Review

Description Alistair Buxton 2013-01-27 03:08:10 UTC
To reproduce, add the fish applet to the panel, then remove it, then add it again. Other applets also cause the crash.

The following output is produced:

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)

The bug only happens when gnome-panel is built with --with-in-process-applets which is what is done in Ubuntu.

I have reproduced this bug with git master to 3.6.0.
Comment 1 Alberts Muktupāvels 2014-09-02 20:01:55 UTC
Created attachment 285187 [details] [review]
Fix crash when removing in-process applet and then adding it back
Comment 2 Alberts Muktupāvels 2014-10-27 17:00:51 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.