libxfcegui4 bug report (100% CPU load + hang)

Jasper Huijsmans jasper at moongroup.com
Sun Sep 7 17:21:56 CEST 2003


Op zo 07-09-2003, om 15:37 schreef Olivier Fourdan:
> Jasper,
> 
> This time I think it's a bug with the changes you made... Openning the
> MCS manager window causes a hang and uses 100% CPU.
> 
> These two calls make me think it's your change:
> 
> #5  0x40050fc1 in xfce_menubutton_set_stock_icon ()
>    from /usr/lib/libxfcegui4.so.1
> #6  0x40050c9c in xfce_menubutton_set_stock_icon ()
>    from /usr/lib/libxfcegui4.so.1
> 

I wonder how that can happen:

[xfce-mcs-manager]$ grep stock $(find -name *.[ch]) 
[xfce-mcs-manager]$

set_stock_icon is only used in *_new_with_stock_icon()

[~/cvs/xfce]$ grep xfce_menubutton_set_stock_icon $(find xfce-devel
xfce4-extras -name *.[ch])
xfce-devel/libxfcegui4/examples/menubutton/menubutton.c:       
xfce_menubutton_set_stock_icon(XFCE_MENUBUTTON(button),
GTK_STOCK_REMOVE);
xfce-devel/libxfcegui4/libxfcegui4/xfce_menubutton.c:   
xfce_menubutton_set_stock_icon (XFCE_MENUBUTTON (button), stock);
xfce-devel/libxfcegui4/libxfcegui4/xfce_menubutton.c:xfce_menubutton_set_stock_icon (XfceMenubutton * menubutton,
xfce-devel/libxfcegui4/libxfcegui4/xfce_menubutton.h:    void
xfce_menubutton_set_stock_icon (XfceMenubutton * menubutton,
[~/cvs/xfce]$


And xfce_menubutton_new_with_stock_icon is only called from the panel
(for the 'Add launcher' menu item).

[~/cvs/xfce]$ grep xfce_menubutton_new_with_stock $(find xfce-devel
xfce4-extras -name *.[ch])
xfce-devel/libxfcegui4/examples/menubutton/menubutton.c:    menubutton =
xfce_menubutton_new_with_stock_icon("Second item", GTK_STOCK_ADD);
xfce-devel/libxfcegui4/examples/menubutton/menubutton.c:    menubutton =
xfce_menubutton_new_with_stock_icon("Fourth item", GTK_STOCK_REMOVE);
xfce-devel/libxfcegui4/libxfcegui4/xfce_menubutton.c:xfce_menubutton_new_with_stock_icon (const char *text, const char *stock)
xfce-devel/libxfcegui4/libxfcegui4/xfce_menubutton.h:    GtkWidget
*xfce_menubutton_new_with_stock_icon (const char *text,
xfce-devel/xfce4/panel/item.c:  xfce_menubutton_new_with_stock_icon
(_("Add launcher"),
[~/cvs/xfce]$


Secondly, gdk_pixbuf_scale cannot be called for a menubutton with stock
icon ...

Can there be a problem with library versions? Does anyone else see this
with latest CVS?

Obviously I don't see this behaviour and at the moment I really don't
know where to start looking for the problem.







More information about the Xfce4-dev mailing list