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 304626 - gmenu-simple-editor crashes when changing a menu item
gmenu-simple-editor crashes when changing a menu item
Status: RESOLVED FIXED
Product: gnome-menus
Classification: Core
Component: general
2.11.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-menus dummy account
gnome-menus dummy account
Depends on:
Blocks:
 
 
Reported: 2005-05-18 10:05 UTC by Sebastien Bacher
Modified: 2005-05-18 12:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastien Bacher 2005-05-18 10:05:48 UTC
with gnome-menus 2.11.1, when clicking on a menu item:

** (gmenu-simple-editor:13106): CRITICAL **: gmenu_tree_item_unref: assertion
`item->refcount > 0' failed

** ERROR **: file gmenu-tree.c: line 3813 (gmenu_tree_force_rebuild): assertion
failed: (tree->layout != NULL)


The editor is closed but the change works


backtrace:

Program received signal SIGABRT, Aborted.

Thread NaN (LWP 18845)

  • #0 __kernel_vsyscall
  • #1 raise
    from /lib/tls/i686/cmov/libc.so.6
  • #2 abort
    from /lib/tls/i686/cmov/libc.so.6
  • #3 g_logv
    at gmessages.c line 492
  • #4 g_log
    at gmessages.c line 512
  • #5 g_assert_warning
    at gmessages.c line 547
  • #6 gmenu_tree_force_rebuild
    at gmenu-tree.c line 3813
  • #7 gmenu_tree_force_recanonicalize
    at gmenu-tree.c line 2744
  • #8 handle_menu_file_changed
    at gmenu-tree.c line 299
  • #9 emit_events_in_idle
    at menu-monitor.c line 83
  • #10 g_main_context_dispatch
    at gmain.c line 1933
  • #11 g_main_context_iterate
    at gmain.c line 2564
  • #12 g_main_loop_run
    at gmain.c line 2768
  • #13 gtk_main
    at gtkmain.c line 963
  • #14 init_gtk
    from /usr/lib/python2.4/site-packages/gtk-2.0/gtk/_gtk.so
  • #15 PyEval_EvalFrame
    at ../Python/ceval.c line 3531
  • #16 PyEval_EvalCodeEx
    at ../Python/ceval.c line 2730
  • #17 PyEval_EvalCode
    at ../Python/ceval.c line 484
  • #18 PyImport_ExecCodeModuleEx
    at ../Python/import.c line 619
  • #19 load_source_module
    at ../Python/import.c line 893
  • #20 import_submodule
    at ../Python/import.c line 2250
  • #21 ensure_fromlist
    at ../Python/import.c line 2161
  • #22 PyImport_ImportModuleEx
    at ../Python/import.c line 1932
  • #23 builtin___import__
    at ../Python/bltinmodule.c line 45
  • #24 PyObject_Call
    at ../Objects/abstract.c line 1751
  • #25 PyEval_CallObjectWithKeywords
    at ../Python/ceval.c line 3419
  • #26 PyEval_EvalFrame
    at ../Python/ceval.c line 2020

Comment 1 Mark McLoughlin 2005-05-18 12:28:31 UTC
Thanks:

2005-05-18  Mark McLoughlin  <mark@skynet.ie>

        Fix crasher in bug #304626

        * libmenu/gmenu-tree.c:
        (gmenu_tree_directory_set_tree): add helper function.
        (gmenu_tree_directory_new): don't take a ref on the tree.
        (gmenu_tree_directory_finalize): don't unref the tree.
        (gmenu_tree_build_from_layout): set the tree on the root
        directory here.
        (gmenu_tree_force_rebuild): unset it here.