! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfdesktop ocassionaly crashes while calling right click menu
Status:
RESOLVED: WORKSFORME
Product:
Xfdesktop
Component:
General

Comments

Description Tomasz Mon 2007-09-22 13:28:30 CEST
User-Agent:       Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.7 (like Gecko)
Build Identifier: 

Sometimes, when I try to access right click menu, I get crash
I'm using xfdesktop r26094

There's backtrace:
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/xfdesktop
[Thread debugging using libthread_db enabled]
[New Thread 47668733429856 (LWP 5504)]
DBG[xfdesktop-common.c:153] xfce_desktop_get_menufile(): checking /home/desowin/.config/menus/xfce-applications.menu
DBG[xfdesktop-common.c:164] xfce_desktop_get_menufile(): checking /etc/xdg/menus/xfce-applications.menu
DBG[desktop-menu.c:303] _generate_menu(): menu file name is /etc/xdg/menus/xfce-applications.menu
DBG[desktop-menu.c:303] _generate_menu(): menu file name is /etc/xdg/menus/xfce-applications.menu
DBG[desktop-menu.c:303] _generate_menu(): menu file name is /etc/xdg/menus/xfce-applications.menu

(xfdesktop:5504): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

** (xfdesktop:5504): WARNING **: Attempt to create new monitors without destroying the old.
DBG[desktop-menu.c:303] _generate_menu(): menu file name is /etc/xdg/menus/xfce-applications.menu
DBG[desktop-menu.c:303] _generate_menu(): menu file name is /etc/xdg/menus/xfce-applications.menu

(xfdesktop:5504): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

** (xfdesktop:5504): WARNING **: Attempt to create new monitors without destroying the old.
DBG[desktop-menu.c:303] _generate_menu(): menu file name is /etc/xdg/menus/xfce-applications.menu
DBG[desktop-menu.c:303] _generate_menu(): menu file name is /etc/xdg/menus/xfce-applications.menu

(xfdesktop:5504): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

** (xfdesktop:5504): WARNING **: Attempt to create new monitors without destroying the old.
DBG[desktop-menu.c:303] _generate_menu(): menu file name is /etc/xdg/menus/xfce-applications.menu
DBG[desktop-menu.c:303] _generate_menu(): menu file name is /etc/xdg/menus/xfce-applications.menu

(xfdesktop:5504): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

** (xfdesktop:5504): WARNING **: Attempt to create new monitors without destroying the old.
DBG[desktop-menu.c:303] _generate_menu(): menu file name is /etc/xdg/menus/xfce-applications.menu

(xfdesktop:5504): GLib-GObject-WARNING **: invalid unclassed pointer in cast to `GObject'

(xfdesktop:5504): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion `G_IS_OBJECT (object)' failed

(xfdesktop:5504): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GObject'

(xfdesktop:5504): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion `G_IS_OBJECT (object)' failed

(xfdesktop:5504): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkMenuItem'

(xfdesktop:5504): Gtk-CRITICAL **: gtk_menu_item_toggle_size_request: assertion `GTK_IS_MENU_ITEM (menu_item)' failed

(xfdesktop:5504): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkMenuItem'

(xfdesktop:5504): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkMenuItem'

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47668733429856 (LWP 5504)]
0x00002b5ab9dc7a86 in gtk_menu_size_request (widget=0x78b0e0,
    requisition=0x78b118) at gtkmenu.c:2232
2232    gtkmenu.c: No such file or directory.
        in gtkmenu.c
(gdb) bt
#0  0x00002b5ab9dc7a86 in gtk_menu_size_request (widget=0x78b0e0,
    requisition=0x78b118) at gtkmenu.c:2232
#1  0x00002b5abcb3f1be in IA__g_closure_invoke (closure=0x549b10,
    return_value=0x0, n_param_values=2, param_values=0x7ffff1d7f730,
    invocation_hint=0x7ffff1d7f610) at gclosure.c:490
#2  0x00002b5abcb53cdc in signal_emit_unlocked_R (node=0x57f640, detail=0,
    instance=0x78b0e0, emission_return=0x0, instance_and_params=0x7ffff1d7f730)
    at gsignal.c:2370
#3  0x00002b5abcb559b8 in IA__g_signal_emit_valist (instance=0x78b0e0,
    signal_id=<value optimized out>, detail=0, var_args=0x7ffff1d7f9b0)
    at gsignal.c:2199
#4  0x00002b5abcb55d88 in IA__g_signal_emit_by_name (instance=0x78b0e0,
    detailed_signal=0x2b5ab9f91d88 "size_request") at gsignal.c:2267
#5  0x00002b5ab9e280bf in _gtk_size_group_compute_requisition (
    widget=0x78b0e0, requisition=0x7ffff1d7fb20) at gtksizegroup.c:792
#6  0x00002b5ab9dc08ce in gtk_menu_position (menu=0x78b0e0) at gtkmenu.c:3763
#7  0x00002b5ab9dc2605 in IA__gtk_menu_popup (menu=0x78b0e0,
    parent_menu_shell=0x0, parent_menu_item=0x0, func=0, data=0x0, button=0,
    activate_time=760407583) at gtkmenu.c:1411
#8  0x00000000004120a3 in popup_desktop_menu (gscreen=0x56a1a0, button=0,
    time=760407583) at menu.c:98
#9  0x0000000000411aff in button_cb (w=<value optimized out>, evt=0x8b0950,
    user_data=<value optimized out>) at main.c:185
#10 0x00002b5ab9dbf7d3 in _gtk_marshal_BOOLEAN__BOXED (closure=0x5ab7b0,
    return_value=0x7ffff1d7fff0, n_param_values=<value optimized out>,
    param_values=0x7ffff1d800d0, invocation_hint=<value optimized out>,
    marshal_data=0x411ac0) at gtkmarshalers.c:84
#11 0x00002b5abcb3f1be in IA__g_closure_invoke (closure=0x5ab7b0,
    return_value=0x7ffff1d7fff0, n_param_values=2,
    param_values=0x7ffff1d800d0, invocation_hint=0x7ffff1d7ffb0)
    at gclosure.c:490
#12 0x00002b5abcb545aa in signal_emit_unlocked_R (node=0x580c20, detail=0,
    instance=0x5ac000, emission_return=0x7ffff1d802f0,
    instance_and_params=0x7ffff1d800d0) at gsignal.c:2510
#13 0x00002b5abcb55783 in IA__g_signal_emit_valist (instance=0x5ac000,
    signal_id=<value optimized out>, detail=0, var_args=0x7ffff1d80350)
    at gsignal.c:2209
#14 0x00002b5abcb55e73 in IA__g_signal_emit (instance=0x0, signal_id=6,
    detail=0) at gsignal.c:2243
#15 0x00002b5ab9ed3f95 in gtk_widget_event_internal (widget=0x5ac000,
    event=0x8b0950) at gtkwidget.c:3915
#16 0x00002b5ab9db76bf in IA__gtk_propagate_event (widget=0x5ac000,
    event=0x8b0950) at gtkmain.c:2341
#17 0x00002b5ab9db8817 in IA__gtk_main_do_event (event=0x8b0950)
    at gtkmain.c:1575
#18 0x00002b5aba17b18c in gdk_event_dispatch (source=<value optimized out>,
    callback=<value optimized out>, user_data=<value optimized out>)
    at gdkevents-x11.c:2318
#19 0x00002b5abcca448c in IA__g_main_context_dispatch (context=0x575500)
    at gmain.c:2045
#20 0x00002b5abcca72bd in g_main_context_iterate (context=0x575500, block=1,
    dispatch=1, self=<value optimized out>) at gmain.c:2677
#21 0x00002b5abcca7599 in IA__g_main_loop_run (loop=0x5bd2e0) at gmain.c:2881
#22 0x00002b5ab9db8c12 in IA__gtk_main () at gtkmain.c:1154
#23 0x0000000000411928 in main (argc=1, argv=0x7ffff1d807c8) at main.c:404


Reproducible: Sometimes

Steps to Reproduce:
I don't have 'magic way' to trigger this, just keep right clicking on desktop and one time it crashes for me (sometimes sooner sometimes later)
Comment 1 Brian J. Tarricone (not reading bugmail) 2007-10-20 01:39:36 CEST
The repeated calls to _generate_menu() are a bit odd.  Do they happen all at once, or are they a result of clicking the mouse button repeatedly?

I committed some changes to use new file monitoring code a couple weeks ago, you might give that a try, but I'm not sure why that would make a difference.

Basically it looks like it's trying to pop up a menu that's already been freed.  Not sure how that could happen.
Comment 2 Brian J. Tarricone (not reading bugmail) 2008-08-29 20:18:36 CEST
Reporter: are you still seeing this with current svn trunk?
Comment 3 Brian J. Tarricone (not reading bugmail) 2009-08-22 09:57:09 CEST
Can't reproduce, reporter unresponsive, closing.

Bug #3563

Reported by:
Tomasz Mon
Reported on: 2007-09-22
Last modified on: 2009-08-22

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
0 users

Version

Attachments

Additional information