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 696568 - nm-connection-editor crashes when trying to edit a connection
nm-connection-editor crashes when trying to edit a connection
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: nm-applet
0.9.8
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-03-25 16:55 UTC by Robby Workman
Modified: 2013-04-09 05:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Robby Workman 2013-03-25 16:55:54 UTC
Applet is built with gtk2 (glib2-2.34.3, gtk+2-2.24.17).  Right-click applet icon in system tray, click "Edit Connections" and highlight a connection; click Edit.  The dialog disappears.  Running nm-connection-editor from an xterm shows this:

(nm-connection-editor:4552): Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &
(nm-connection-editor:4552): Gtk-WARNING **: Unknown property: GtkComboBox.margin-left
(nm-connection-editor:4552): Gtk-WARNING **: Unknown property: GtkComboBox.margin-bottom
(nm-connection-editor:4552): Gtk-WARNING **: Unknown property: GtkCheckButton.margin-bottom
(nm-connection-editor:4552): Gtk-WARNING **: Unknown property: GtkBox.valign
(nm-connection-editor:4552): Gtk-WARNING **: Unknown property: GtkBox.vexpand
(nm-connection-editor:4552): GLib-GObject-ERROR **: cannot create instance of abstract (non-instantiatable) type `GtkBox'
Trace/breakpoint trap
Comment 1 Robby Workman 2013-03-26 05:33:56 UTC
One of our users (by the name of "yenn") wrote in with a fix for this:
sed -i 's/GtkBox/GtkVBox/g' src/connection-editor/ce-page-general.ui
sed -i 's/GtkBox/GtkVBox/g' src/connection-editor/nm-connection-editor.ui
Comment 2 Dan Winship 2013-04-03 16:44:46 UTC
(In reply to comment #0)
> Applet is built with gtk2 (glib2-2.34.3, gtk+2-2.24.17).

NM 0.9.8 requires gtk3. It shouldn't even build against gtk2 any more... (are you sure you actually built it against gtk2?)
Comment 3 Robby Workman 2013-04-03 20:58:44 UTC
Indeed I am:
$ objdump -p $(which nm-applet) | grep gtk
  NEEDED               libnm-gtk.so.0
  NEEDED               libgtk-x11-2.0.so.0
$ objdump -p /usr/lib64/libnm-gtk.so.0 | grep gtk | grep NEED
  NEEDED               libgtk-x11-2.0.so.0
$ grep libgtk-x11-2.0.so /var/log/packages/*
/var/log/packages/gtk+2-2.24.17-x86_64-2:usr/lib64/libgtk-x11-2.0.so.0.2400.17

From talking with dcbw on IRC, gtk3 will be a hard requirement in the next release.
Comment 4 Dan Winship 2013-04-08 13:06:59 UTC
fixed in nma-0-9-8 branch in git
Comment 5 Dan Winship 2013-04-08 13:07:31 UTC
(note that the ce-page-general one was supposed to be GtkHBox, not VBox)
Comment 6 Robby Workman 2013-04-09 05:26:26 UTC
Thanks, Dan!