g_object_add_weak_pointer: assertion `G_IS_OBJECT (object)' failed

Bug #1026160 reported by Sebastien Bacher
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
AppMenu GTK+
Fix Released
High
Lars Karlitski
appmenu-gtk (Ubuntu)
High
Unassigned

Bug Description

Using quantal and gtk 3.5.8 (seems new, it was not happening with 3.5.6) those warnings are printed when closing a gtk3 application using a menu (gedit, eog, gucharmap, ...)

"#0 g_log (log_domain=log_domain@entry=0xdb6b6e "GLib-GObject",
    log_level=log_level@entry=G_LOG_LEVEL_CRITICAL,
    format=format@entry=0xe600de "%s: assertion `%s' failed")
    at glib/glib/gmessages.c:788
#1 0x00e1b61d in g_return_if_fail_warning (
    log_domain=log_domain@entry=0xdb6b6e "GLib-GObject",
    pretty_function=pretty_function@entry=0xdb9f95 "g_object_add_weak_pointer", expression=0xdb8cab "G_IS_OBJECT (object)")
    at glib/glib/gmessages.c:801
#2 0x00d92497 in g_object_add_weak_pointer (object=0x0,
    weak_pointer_location=0x814e754)
    at glib/gobject/gobject.c:2584
#3 0x018a4291 in rebuild (bridge=<optimized out>, toplevel=0x0)
    at /build/buildd/appmenu-gtk-0.3.92/./src/bridge.c:557
#4 0x018a49fd in attach_notify_cb (bridge=0x812eca0, widget=0x81b4000,
    pspec=<optimized out>)
    at /build/buildd/appmenu-gtk-0.3.92/./src/bridge.c:825
#5 attach_notify_cb (widget=widget@entry=0x81b4000, pspec=0x812ec00,
    bridge=bridge@entry=0x812eca0)
    at /build/buildd/appmenu-gtk-0.3.92/./src/bridge.c:815
#6 0x00d8c442 in g_cclosure_marshal_VOID__PARAM (
    closure=closure@entry=0x817a548, return_value=return_value@entry=0x0,
    n_param_values=n_param_values@entry=2,
    param_values=param_values@entry=0xbfffd580,
    invocation_hint=invocation_hint@entry=0xbfffd52c,
    marshal_data=marshal_data@entry=0x0)
    at glib/gobject/gmarshal.c:1042
#7 0x00d89736 in g_closure_invoke (closure=0x817a548,
    return_value=return_value@entry=0x0, n_param_values=2,
    param_values=param_values@entry=0xbfffd580,
    invocation_hint=invocation_hint@entry=0xbfffd52c)
    at glib/gobject/gclosure.c:777
#8 0x00d9c2df in signal_emit_unlocked_R (node=node@entry=0x8065a70,
    detail=detail@entry=1331, instance=instance@entry=0x81b4000,
    emission_return=emission_return@entry=0x0,
    instance_and_params=instance_and_params@entry=0xbfffd580)
    at glib/gobject/gsignal.c:3551
#9 0x00da475b in g_signal_emit_valist (instance=instance@entry=0x81b4000,
    signal_id=signal_id@entry=1, detail=detail@entry=1331,
    var_args=0xbfffd780 "", var_args@entry=0xbfffd77c "")
    at glib/gobject/gsignal.c:3300
#10 0x00da4953 in g_signal_emit (instance=instance@entry=0x81b4000,
    signal_id=1, detail=1331)
    at glib/gobject/gsignal.c:3356
#11 0x00d8df3f in g_object_dispatch_properties_changed (object=0x81b4000,
    n_pspecs=1, pspecs=0xbfffd7cc)
    at glib/gobject/gobject.c:1041
#12 0x00d8fcb0 in g_object_notify_by_spec_internal (pspec=<optimized out>,
    object=0x81b4000) at glib/gobject/gobject.c:1135
#13 g_object_notify (object=0x81b4000, property_name=0x95c8b9 "attach-widget")
    at glib/gobject/gobject.c:1177
#14 0x006f0dd1 in gtk_menu_detach (menu=0x81b4000)
    at gtk+3.0-3.5.8/gtk/gtkmenu.c:1300
#15 0x006f0ebf in gtk_menu_destroy (widget=widget@entry=0x81b4000)
    at gtk+3.0-3.5.8/gtk/gtkmenu.c:1091
#16 0x00d8b49f in g_cclosure_marshal_VOID__VOID (closure=0x8066ee8,
    return_value=0x0, n_param_values=1, param_values=0xbfffda40,
    invocation_hint=0xbfffd9ec, marshal_data=0x6f0e60)
    at glib/gobject/gmarshal.c:85
#17 0x00d885cd in g_type_class_meta_marshal (closure=closure@entry=0x8066ee8,
    return_value=return_value@entry=0x0,
    n_param_values=n_param_values@entry=1,
    param_values=param_values@entry=0xbfffda40,
    invocation_hint=invocation_hint@entry=0xbfffd9ec,
    marshal_data=marshal_data@entry=0x4c)
    at glib/gobject/gclosure.c:970
#18 0x00d89682 in g_closure_invoke (closure=closure@entry=0x8066ee8,
    return_value=return_value@entry=0x0, n_param_values=1,
    param_values=param_values@entry=0xbfffda40,
    invocation_hint=invocation_hint@entry=0xbfffd9ec)
    at glib/gobject/gclosure.c:777
#19 0x00d9c631 in signal_emit_unlocked_R (node=node@entry=0x8066f20,
    detail=detail@entry=0, instance=instance@entry=0x81b4000,
    emission_return=emission_return@entry=0x0,
    instance_and_params=instance_and_params@entry=0xbfffda40)
    at glib/gobject/gsignal.c:3667
#20 0x00da475b in g_signal_emit_valist (instance=instance@entry=0x81b4000,
    signal_id=signal_id@entry=3, detail=detail@entry=0,
    var_args=var_args@entry=0xbfffdc2c "\364_\244")
    at glib/gobject/gsignal.c:3300
#21 0x00da4953 in g_signal_emit (instance=0x81b4000, signal_id=3, detail=0)
    at glib/gobject/gsignal.c:3356
#22 0x0084d1f0 in gtk_widget_dispose (object=0x81b4000)
    at gtk+3.0-3.5.8/gtk/gtkwidget.c:10258
#23 0x006fd29f in gtk_menu_shell_dispose (object=0x81b4000)
    at gtk+3.0-3.5.8/gtk/gtkmenushell.c:537
#24 0x00d8fa77 in g_object_run_dispose (object=0x81b4000)
    at glib/gobject/gobject.c:1061
#25 0x0083f581 in gtk_widget_destroy (widget=0x81b4000)
    at gtk+3.0-3.5.8/gtk/gtkwidget.c:3943
#26 0x006f9016 in gtk_menu_item_destroy (widget=0x815e8b8)
    at gtk+3.0-3.5.8/gtk/gtkmenuitem.c:657
#27 0x006b9c58 in gtk_image_menu_item_destroy (widget=widget@entry=0x815e8b8)
    at gtk+3.0-3.5.8/gtk/gtkimagemenuitem.c:333
#28 0x00d8b49f in g_cclosure_marshal_VOID__VOID (closure=0x8066ee8,
    return_value=0x0, n_param_values=1, param_values=0xbfffdee0,
    invocation_hint=0xbfffde8c, marshal_data=0x6b9be0)
    at glib/gobject/gmarshal.c:85
#29 0x00d885cd in g_type_class_meta_marshal (closure=closure@entry=0x8066ee8,
    return_value=return_value@entry=0x0,
    n_param_values=n_param_values@entry=1,
    param_values=param_values@entry=0xbfffdee0,
    invocation_hint=invocation_hint@entry=0xbfffde8c,
    marshal_data=marshal_data@entry=0x4c)
    at glib/gobject/gclosure.c:970
#30 0x00d89682 in g_closure_invoke (closure=closure@entry=0x8066ee8,
    return_value=return_value@entry=0x0, n_param_values=1,
    param_values=param_values@entry=0xbfffdee0,
    invocation_hint=invocation_hint@entry=0xbfffde8c)
    at glib/gobject/gclosure.c:777
#31 0x00d9c631 in signal_emit_unlocked_R (node=node@entry=0x8066f20,
    detail=detail@entry=0, instance=instance@entry=0x815e8b8,
    emission_return=emission_return@entry=0x0,
    instance_and_params=instance_and_params@entry=0xbfffdee0)
    at glib/gobject/gsignal.c:3667
#32 0x00da475b in g_signal_emit_valist (instance=instance@entry=0x815e8b8,
    signal_id=signal_id@entry=3, detail=detail@entry=0,
    var_args=var_args@entry=0xbfffe0cc "\334\305[")
    at glib/gobject/gsignal.c:3300
#33 0x00da4953 in g_signal_emit (instance=0x815e8b8, signal_id=3, detail=0)
    at glib/gobject/gsignal.c:3356
#34 0x0084d1f0 in gtk_widget_dispose (object=0x815e8b8)
    at gtk+3.0-3.5.8/gtk/gtkwidget.c:10258
#35 0x006f90cb in gtk_menu_item_dispose (object=0x815e8b8)
    at gtk+3.0-3.5.8/gtk/gtkmenuitem.c:557
#36 0x00d8fa77 in g_object_run_dispose (object=0x815e8b8)
    at glib/gobject/gobject.c:1061
#37 0x0083f581 in gtk_widget_destroy (widget=0x815e8b8)
    at gtk+3.0-3.5.8/gtk/gtkwidget.c:3943
#38 0x006fcac7 in gtk_menu_shell_forall (container=0x815e800,
    include_internals=0, callback=0x83f500 <gtk_widget_destroy>,
    callback_data=0x0)
    at gtk+3.0-3.5.8/gtk/gtkmenushell.c:1218
#39 0x0062c557 in gtk_container_foreach (container=0x815e800,
    callback=0x83f500 <gtk_widget_destroy>, callback_data=0x0)
    at gtk+3.0-3.5.8/gtk/gtkcontainer.c:2084
#40 0x0062d8f6 in gtk_container_destroy (widget=widget@entry=0x815e800)
    at gtk+3.0-3.5.8/gtk/gtkcontainer.c:1377
#41 0x00d8b49f in g_cclosure_marshal_VOID__VOID (closure=0x8066ee8,
    return_value=0x0, n_param_values=1, param_values=0xbfffe3d0,
    invocation_hint=0xbfffe37c, marshal_data=0x62d870)
    at glib/gobject/gmarshal.c:85
#42 0x00d885cd in g_type_class_meta_marshal (closure=closure@entry=0x8066ee8,
    return_value=return_value@entry=0x0,
    n_param_values=n_param_values@entry=1,
    param_values=param_values@entry=0xbfffe3d0,
    invocation_hint=invocation_hint@entry=0xbfffe37c,
    marshal_data=marshal_data@entry=0x4c)
    at glib/gobject/gclosure.c:970
#43 0x00d89682 in g_closure_invoke (closure=closure@entry=0x8066ee8,
    return_value=return_value@entry=0x0, n_param_values=1,
    param_values=param_values@entry=0xbfffe3d0,
    invocation_hint=invocation_hint@entry=0xbfffe37c)
    at glib/gobject/gclosure.c:777
#44 0x00d9c631 in signal_emit_unlocked_R (node=node@entry=0x8066f20,
    detail=detail@entry=0, instance=instance@entry=0x815e800,
    emission_return=emission_return@entry=0x0,
    instance_and_params=instance_and_params@entry=0xbfffe3d0)
    at glib/gobject/gsignal.c:3667
#45 0x00da475b in g_signal_emit_valist (instance=instance@entry=0x815e800,
    signal_id=signal_id@entry=3, detail=detail@entry=0,
    var_args=var_args@entry=0xbfffe5bc "\364_\244")
    at glib/gobject/gsignal.c:3300
#46 0x00da4953 in g_signal_emit (instance=0x815e800, signal_id=3, detail=0)
    at glib/gobject/gsignal.c:3356
#47 0x0084d1f0 in gtk_widget_dispose (object=0x815e800)
    at gtk+3.0-3.5.8/gtk/gtkwidget.c:10258
#48 0x006fd29f in gtk_menu_shell_dispose (object=0x815e800)
    at gtk+3.0-3.5.8/gtk/gtkmenushell.c:537
#49 0x00d8fa77 in g_object_run_dispose (object=0x815e800)
    at glib/gobject/gobject.c:1061
#50 0x0083f581 in gtk_widget_destroy (widget=0x815e800)
    at gtk+3.0-3.5.8/gtk/gtkwidget.c:3943
#51 0x0069b849 in gtk_grid_forall (container=0xb73056b0, include_internals=0,
    callback=0x83f500 <gtk_widget_destroy>, callback_data=0x0)
    at gtk+3.0-3.5.8/gtk/gtkgrid.c:502
#52 0x0062c557 in gtk_container_foreach (container=0xb73056b0,
    callback=0x83f500 <gtk_widget_destroy>, callback_data=0x0)
    at gtk+3.0-3.5.8/gtk/gtkcontainer.c:2084
#53 0x0062d8f6 in gtk_container_destroy (widget=widget@entry=0xb73056b0)
    at gtk+3.0-3.5.8/gtk/gtkcontainer.c:1377
#54 0x00d8b49f in g_cclosure_marshal_VOID__VOID (closure=0x8066ee8,
    return_value=0x0, n_param_values=1, param_values=0xbfffe8b0,
    invocation_hint=0xbfffe85c, marshal_data=0x62d870)
    at glib/gobject/gmarshal.c:85
#55 0x00d885cd in g_type_class_meta_marshal (closure=closure@entry=0x8066ee8,
    return_value=return_value@entry=0x0,
    n_param_values=n_param_values@entry=1,
    param_values=param_values@entry=0xbfffe8b0,
    invocation_hint=invocation_hint@entry=0xbfffe85c,
    marshal_data=marshal_data@entry=0x4c)
    at glib/gobject/gclosure.c:970
#56 0x00d89682 in g_closure_invoke (closure=closure@entry=0x8066ee8,
    return_value=return_value@entry=0x0, n_param_values=1,
    param_values=param_values@entry=0xbfffe8b0,
    invocation_hint=invocation_hint@entry=0xbfffe85c)
    at glib/gobject/gclosure.c:777
#57 0x00d9c631 in signal_emit_unlocked_R (node=node@entry=0x8066f20,
    detail=detail@entry=0, instance=instance@entry=0xb73056b0,
    emission_return=emission_return@entry=0x0,
    instance_and_params=instance_and_params@entry=0xbfffe8b0)
    at glib/gobject/gsignal.c:3667
#58 0x00da475b in g_signal_emit_valist (instance=instance@entry=0xb73056b0,
    signal_id=signal_id@entry=3, detail=detail@entry=0,
    var_args=var_args@entry=0xbfffea9c "\364\277", <incomplete sequence \334>)
    at glib/gobject/gsignal.c:3300
#59 0x00da4953 in g_signal_emit (instance=0xb73056b0, signal_id=3, detail=0)
    at glib/gobject/gsignal.c:3356
#60 0x0084d1f0 in gtk_widget_dispose (object=0xb73056b0)
    at gtk+3.0-3.5.8/gtk/gtkwidget.c:10258
#61 0x00d8fa77 in g_object_run_dispose (object=0xb73056b0)
    at glib/gobject/gobject.c:1061
#62 0x0083f581 in gtk_widget_destroy (widget=0xb73056b0)
    at gtk+3.0-3.5.8/gtk/gtkwidget.c:3943
#63 0x005d3eac in gtk_bin_forall (container=0x812a040, include_internals=0,
    callback=0x83f500 <gtk_widget_destroy>, callback_data=0x0)
    at gtk+3.0-3.5.8/gtk/gtkbin.c:170
#64 0x0062c557 in gtk_container_foreach (container=0x812a040,
    callback=0x83f500 <gtk_widget_destroy>, callback_data=0x0)
    at gtk+3.0-3.5.8/gtk/gtkcontainer.c:2084
#65 0x0062d8f6 in gtk_container_destroy (widget=0x812a040)
    at gtk+3.0-3.5.8/gtk/gtkcontainer.c:1377
#66 0x00862224 in gtk_window_destroy (widget=widget@entry=0x812a040)
    at gtk+3.0-3.5.8/gtk/gtkwindow.c:4759
#67 0x00d8b49f in g_cclosure_marshal_VOID__VOID (closure=0x8066ee8,
    return_value=0x0, n_param_values=1, param_values=0xbfffeda0,
    invocation_hint=0xbfffed4c, marshal_data=0x862150)
    at glib/gobject/gmarshal.c:85
#68 0x00d885cd in g_type_class_meta_marshal (closure=closure@entry=0x8066ee8,
    return_value=return_value@entry=0x0,
    n_param_values=n_param_values@entry=1,
    param_values=param_values@entry=0xbfffeda0,
    invocation_hint=invocation_hint@entry=0xbfffed4c,
    marshal_data=marshal_data@entry=0x4c)
    at glib/gobject/gclosure.c:970
#69 0x00d89736 in g_closure_invoke (closure=closure@entry=0x8066ee8,
    return_value=0x0, return_value@entry=0x1, n_param_values=1,
    param_values=param_values@entry=0xbfffeda0,
    invocation_hint=invocation_hint@entry=0xbfffed4c)
    at glib/gobject/gclosure.c:777
#70 0x00d9c631 in signal_emit_unlocked_R (node=node@entry=0x8066f20,
    detail=detail@entry=0, instance=instance@entry=0x812a040,
    emission_return=emission_return@entry=0x0,
    instance_and_params=instance_and_params@entry=0xbfffeda0)
    at glib/gobject/gsignal.c:3667
#71 0x00da475b in g_signal_emit_valist (instance=instance@entry=0x812a040,
    signal_id=signal_id@entry=3, detail=detail@entry=0,
    var_args=var_args@entry=0xbfffef8c <incomplete sequence \371\245\205>)
    at glib/gobject/gsignal.c:3300
#72 0x00da4953 in g_signal_emit (instance=0x812a040, signal_id=3, detail=0)
    at glib/gobject/gsignal.c:3356
#73 0x0084d1f0 in gtk_widget_dispose (object=0x812a040)
    at gtk+3.0-3.5.8/gtk/gtkwidget.c:10258
#74 0x0085a7d4 in gtk_window_dispose (object=0x812a040)
    at gtk+3.0-3.5.8/gtk/gtkwindow.c:2447
#75 0x00d8fa77 in g_object_run_dispose (object=0x812a040)
    at glib/gobject/gobject.c:1061
#76 0x0083f581 in gtk_widget_destroy (widget=0x812a040)
    at gtk+3.0-3.5.8/gtk/gtkwidget.c:3943
#77 0x006dc5f0 in gtk_main_do_event (event=0x8177650)
    at gtk+3.0-3.5.8/gtk/gtkmain.c:1612
#78 0x00a66eec in _gdk_event_emit (event=0x8177650)
    at gtk+3.0-3.5.8/gdk/gdkevents.c:69
#79 0x00a950b8 in gdk_event_source_dispatch (source=source@entry=0x80a3120,
    callback=0, user_data=0x0)
    at gtk+3.0-3.5.8/gdk/x11/gdkeventsource.c:358
#80 0x00e13b13 in g_main_dispatch (context=0x808c7a8)
    at glib/glib/gmain.c:2539
#81 g_main_context_dispatch (context=context@entry=0x808c7a8)
    at glib/glib/gmain.c:3075
#82 0x00e13eb0 in g_main_context_iterate (context=0x808c7a8,
    block=block@entry=1, dispatch=dispatch@entry=1,
    self=<error reading variable: Unhandled dwarf expression opcode 0xfa>)
    at glib/glib/gmain.c:3146
#83 0x00e1430b in g_main_loop_run (loop=0x821f3f8)
    at glib/glib/gmain.c:3340
#84 0x006db585 in gtk_main ()
    at gtk+3.0-3.5.8/gtk/gtkmain.c:1162
#85 0x0804d2db in ?? ()
#86 0x00efb4d3 in __libc_start_main (main=0x804d090, argc=1,
    ubp_av=0xbffff344, init=0x80529a0, fini=0x8052a10,
    rtld_fini=0x11f270 <_dl_fini>, stack_end=0xbffff33c) at libc-start.c:226
#87 0x0804d33d in ?? ()"

Related branches

summary: - g_object_add_weak_pointer: assertion `G_IS_OBJECT (object)' faile
+ g_object_add_weak_pointer: assertion `G_IS_OBJECT (object)' failed
Changed in appmenu-gtk (Ubuntu):
importance: Undecided → High
Changed in appmenu-gtk:
importance: Undecided → High
Lars Karlitski (larsu)
Changed in appmenu-gtk:
status: New → In Progress
assignee: nobody → Lars Uebernickel (larsu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package appmenu-gtk - 0.3.92-0ubuntu2

---------------
appmenu-gtk (0.3.92-0ubuntu2) quantal; urgency=low

  * Backport upstream fix to avoid warnings with the new GTK (lp: #1026160)
 -- Sebastien Bacher <email address hidden> Wed, 18 Jul 2012 19:38:58 +0200

Changed in appmenu-gtk (Ubuntu):
status: New → Fix Released
Charles Kerr (charlesk)
Changed in appmenu-gtk:
milestone: none → 12.10.0
Charles Kerr (charlesk)
Changed in appmenu-gtk:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers