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 151720 - crash on startup
crash on startup
Status: RESOLVED FIXED
Product: gconf-editor
Classification: Applications
Component: general
unspecified
Other Linux
: High critical
: ---
Assigned To: Gconf Editor Maintainers
Gconf Editor Maintainers
: 148198 154199 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-09-02 21:59 UTC by Christian Persch
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Persch 2004-09-02 21:59:31 UTC
Started gconf-editor (HEAD as of 2004-09-02 21:50 UTC), crashed. Here's the trace:

  • #3 <signal handler called>
  • #4 gconf_bookmarks_hook_up_menu
    at gconf-bookmarks.c line 218
  • #5 gconf_editor_window_init
    at gconf-editor-window.c line 1364
  • #6 g_type_create_instance
    at gtype.c line 1595
  • #7 g_object_constructor
    at gobject.c line 1044
  • #8 g_object_newv
    at gobject.c line 941
  • #9 g_object_new_valist
    at gobject.c line 984
  • #10 g_object_new
    at gobject.c line 822
  • #11 gconf_editor_application_create_editor_window
    at gconf-editor-application.c line 46
  • #12 main
    at main.c line 68

Comment 1 Fernando Herrera 2004-09-02 23:07:53 UTC
Humm, this is because a missing schema file from libgnome, so there is no
default value for have_icons key...
gconf-editor should check this correctly, so the fix is:
diff -u -u -r1.10 gconf-bookmarks.c
--- gconf-bookmarks.c   23 Apr 2004 08:08:26 -0000      1.10
+++ gconf-bookmarks.c   2 Sep 2004 22:57:55 -0000
@@ -215,7 +215,7 @@
                 err = NULL;
                 value = gconf_client_get (client,
"/desktop/gnome/interface/menus_have_icons", &err);

-                if (err != NULL || value->type != GCONF_VALUE_BOOL)
+                if (err != NULL || value == NULL || value->type !=
GCONF_VALUE_BOOL)
                         return;

                 have_icons = gconf_value_get_bool (value);


This is a very rare situation (wrong libgnome instalation) and I'm not sure if
we should break the hard code freeze of 2.8 RC1 
Comment 2 Bastien Nocera 2004-09-10 14:48:03 UTC
I'm seeing the same thing on a stock Fedora Core 3 (rawhide) install. I think
gconf-editor should be more resilient to errors, and a crash on startup looks
pretty bad...
Comment 3 Fernando Herrera 2004-09-10 23:41:25 UTC
Humm, does FC3 install libgnome schemas correctly? I mean, you should have a
default value for /desktop/gnome/interface/menus_have_icons
I'll apply this patch for sure in 2.8.1, but I'm not really sure about breaking
the hard code freeze for 2.8.0, because every normal instalation of GNOME should
work.
Comment 4 Fernando Herrera 2004-09-18 18:02:38 UTC
Applied
Comment 5 Fernando Herrera 2004-09-18 18:29:24 UTC
*** Bug 148198 has been marked as a duplicate of this bug. ***
Comment 6 Vincent Noel 2004-10-01 13:45:43 UTC
*** Bug 154199 has been marked as a duplicate of this bug. ***