terminal crashes when opening the profile editor
@epm
Submitted by Emilio Pozuelo Monfort Link to original bug (#696921)
Description
Running gnome-terminal 3.8.0, vte 0.34.2, gtk+ 3.8.0 and glib 2.36.0.
gnome-terminal crashes reproducibly when opening Profile Preferences.
It spits 4 warnings and then crashes.
(gnome-terminal-server:8302): Gtk-WARNING **: Unknown property: GtkHScale.update-policy
(gnome-terminal-server:8302): Gtk-CRITICAL **: gtk_label_set_text: assertion `GTK_IS_LABEL (label)' failed
(gnome-terminal-server:8302): GLib-GIO-CRITICAL **: g_settings_bind_with_mapping: assertion `G_IS_OBJECT (object)' failed
(gnome-terminal-server:8302): GLib-GIO-CRITICAL **: g_settings_bind_with_mapping: assertion `G_IS_OBJECT (object)' failed
The crash is in a different place than the four warnings though, in src/profile-editor.c, around the end of the file:
g_settings_bind_writable (profile, TERMINAL_PROFILE_PALETTE_KEY, gtk_builder_get_object (builder, "palette-box"), "sensitive", FALSE);
The problem is that src/profile-preferences.ui doesn't contain "palette-box". Commenting out that code stops the crash from happening.
As for the two g_settings_bind_with_mapping(), they are also in src/profile-editor.c because missing objects from profile-preferences.ui.
g_settings_bind (profile, TERMINAL_PROFILE_BOLD_COLOR_SAME_AS_FG_KEY, gtk_builder_get_object (builder, "bold-colorpicker-box"),
g_settings_bind_with_mapping (profile, TERMINAL_PROFILE_SCROLLBAR_POLICY_KEY, gtk_builder_get_object (builder, "scrollbar-policy-combobox"), "active", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET, (GSettingsBindGetMapping) string_to_enum, (GSettingsBindSetMapping) enum_to_string, gtk_policy_type_get_type, NULL);
These two don't make gnome-terminal crash.
Version: 3.8.x
Resolution: RESOLVED FIXED