problem running new panel

Nicolas Masse masse_nicolas at yahoo.fr
Mon Sep 19 20:05:38 CEST 2005


On Sun, 18 Sep 2005 17:28:34 +0200
Jasper Huijsmans <jasper at xfce.org> wrote:

> Nicolas Masse schreef:
> > On Fri, 16 Sep 2005 08:28:54 +0200
> > Jasper Huijsmans <jasper at xfce.org> wrote:
> > 
> > 
> >>...
> >>
> >>>It seems there is a bug with the test plugin: if I kill the app or remove a panel, I have an error message saying that the plugin was 
> >>>unexpedly removed. Also if I do it by removing a panel, I have a segfault:
> >>>
> >>>(testplugin:30905): Gdk-WARNING **: GdkWindow 0x1c0001c unexpectedly destroyed
> >>>
> >>>(testplugin:30905): Gdk-WARNING **: GdkWindow 0x1c00003 unexpectedly destroyed
> >>>Erreur de segmentation
> >>>
> >>
> >>Hmm, this happens when the panel crashes. Could you try and get 
> >>backtrace in gdb?
> > 
> > here is the complete backtrace.
> ...
> > 
> > 
> > Program received signal SIGSEGV, Segmentation fault.
> > [Switching to Thread 16384 (LWP 6627)]
> > 0xb7fe1eca in xfce_itembar_forall (container=0x807e3d8, include_internals=0,
> >     callback=0xb7dad550 <gtk_widget_destroy>, callback_data=0x0)
> >     at xfce-itembar.c:778
> > 778             if (child && GTK_IS_WIDGET (child->widget))
> > (gdb)
> > (gdb) bt
> > #0  0xb7fe1eca in xfce_itembar_forall (container=0x807e3d8,
> >     include_internals=0, callback=0xb7dad550 <gtk_widget_destroy>,
> >     callback_data=0x0) at xfce-itembar.c:778
> > #1  0xb7c31972 in gtk_container_foreach () from /usr/lib/libgtk-x11-2.0.so.0
> > 
> 
> This is the same crash I thought I fixed earlier :( If you're not fed up 
>   yet, you could try compiling with --enable-debug=full and see what it 
> says (a lot, probably, not sure it will be useful ;).
> 

No prob. Just Note that it didn't compile at first time due to 2 things:
1st error:

if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -I/usr/include/startup-notification-1.0 -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/atk-1.0 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATADIR=\"/usr/local/share\" -DLIBDIR=\"/usr/local/lib/xfce4\" -DLIBEXECDIR=\"/usr/local/libexec/xfce4\" -DSYSCONFDIR=\"/usr/local/etc\" -DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 -g3 -Werror -Wall -DG_DISABLE_DEPRECATED -DXFCE_DISABLE_DEPRECATED -MT xfce4_panel-panel.o -MD -MP -MF ".deps/xfce4_panel-panel.Tpo" -c -o xfce4_panel-panel.o `test -f 'panel.c' || echo './'`panel.c; \
then mv -f ".deps/xfce4_panel-panel.Tpo" ".deps/xfce4_panel-panel.Po"; else rm -f ".deps/xfce4_panel-panel.Tpo"; exit 1; fi
panel.c: Dans la fonction « panel_add_item »:
panel.c:553: attention : format long int, arg int (arg 2)
make[2]: *** [xfce4_panel-panel.o] Erreur 1
make[2]: Leaving directory `/home/nic/Projects/sources/experimental/panel'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/home/nic/Projects/sources/experimental'
make: *** [all] Erreur 2

so I just changed the "%ld" by "%i".

2nd error:
I add an error on this line in auncher-dialog.c since I've got gtk2.6:
...
gtk_image_clear(preview); /* 2.8 only ... FIXME. but how ? */
...
but I think it was discused on another thread.

Well, now the ouput:

bash-2.05b$ gdb /usr/local/bin/xfce4-panel
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/local/bin/xfce4-panel
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 18378)]
/home/nic/.gtkrc-2.0:2: Impossible de trouver le fichier à inclure : « (null)/AEon_Marbles_v1.1/gtk-2.0/gtkrc »
DBG[panel-item-manager.c:241] xfce_panel_item_manager_init():  + directory: /home/nic/.local/share/xfce4/panel-plugins
DBG[panel-item-manager.c:241] xfce_panel_item_manager_init():  + directory: /usr/share/xfce4/panel-plugins
DBG[panel-item-manager.c:241] xfce_panel_item_manager_init():  + directory: /usr/local/share/xfce4/panel-plugins
DBG[panel-item-manager.c:134] _new_plugin_class_from_desktop_file(): Plugin .desktop file: /usr/local/share/xfce4/panel-plugins/launcher.desktop
DBG[panel-item-manager.c:163] _new_plugin_class_from_desktop_file(): Internal plugin: /usr/local/lib/xfce4/panel-plugins/liblauncher.so
DBG[panel-item-manager.c:123] _plugin_name_from_filename():  ++ name: launcher
DBG[panel-item-manager.c:265] xfce_panel_item_manager_init():  + class "launcher": name=Launcher, comment=Program launcher with optional menu, icon=gnome-fs-executable, external=0, path=/usr/local/lib/xfce4/panel-plugins/liblauncher.so
DBG[panel-item-manager.c:134] _new_plugin_class_from_desktop_file(): Plugin .desktop file: /usr/local/share/xfce4/panel-plugins/testplugin.desktop
DBG[panel-item-manager.c:152] _new_plugin_class_from_desktop_file(): External plugin: /usr/local/libexec/xfce4/panel-plugins/testplugin
DBG[panel-item-manager.c:123] _plugin_name_from_filename():  ++ name: testpluginDBG[panel-item-manager.c:265] xfce_panel_item_manager_init():  + class "testplugin": name=Test Plugin, comment=This plugin has no purpose, icon=xfce-unknown, external=1, path=/usr/local/libexec/xfce4/panel-plugins/testplugin
DBG[panel-properties.c:273] _set_struts():
Struts: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
DBG[panel-properties.c:273] _set_struts():
Struts: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
DBG[panel-properties.c:787] panel_set_transparency(): Transparency: 15
DBG[panel-properties.c:273] _set_struts():
Struts: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
DBG[panel-config.c:367] start_element_handler(): Add item: name="launcher", id="4"
DBG[xfce-panel-plugin-iface.c:990] xfce_panel_plugin_get_rc_file(): opening /home/nic/.config/xfce4/panel/launcher-4.rc

DBG[panel-config.c:367] start_element_handler(): Add item: name="launcher", id="1125678680"
DBG[xfce-panel-plugin-iface.c:990] xfce_panel_plugin_get_rc_file(): opening /home/nic/.config/xfce4/panel/launcher-1125678680.rc

DBG[panel-config.c:367] start_element_handler(): Add item: name="launcher", id="1125678735"
DBG[xfce-panel-plugin-iface.c:990] xfce_panel_plugin_get_rc_file(): opening /home/nic/.config/xfce4/panel/launcher-1125678735.rc

DBG[panel-config.c:367] start_element_handler(): Add item: name="launcher", id="1125678736"
DBG[xfce-panel-plugin-iface.c:990] xfce_panel_plugin_get_rc_file(): opening /home/nic/.config/xfce4/panel/launcher-1125678736.rc

DBG[panel-config.c:367] start_element_handler(): Add item: name="launcher", id="1126902705"
DBG[xfce-panel-plugin-iface.c:990] xfce_panel_plugin_get_rc_file(): opening /home/nic/.config/xfce4/panel/launcher-1126902705.rc

DBG[panel-config.c:367] start_element_handler(): Add item: name="launcher", id="1126902706"
DBG[xfce-panel-plugin-iface.c:990] xfce_panel_plugin_get_rc_file(): opening /home/nic/.config/xfce4/panel/launcher-1126902706.rc

DBG[panel-config.c:367] start_element_handler(): Add item: name="launcher", id="1126902707"
DBG[xfce-panel-plugin-iface.c:990] xfce_panel_plugin_get_rc_file(): opening /home/nic/.config/xfce4/panel/launcher-1126902707.rc

DBG[panel-config.c:367] start_element_handler(): Add item: name="launcher", id="1"
DBG[xfce-panel-plugin-iface.c:990] xfce_panel_plugin_get_rc_file(): opening /home/nic/.config/xfce4/panel/launcher-1.rc

DBG[panel-config.c:367] start_element_handler(): Add item: name="launcher", id="2"
DBG[xfce-panel-plugin-iface.c:990] xfce_panel_plugin_get_rc_file(): opening /home/nic/.config/xfce4/panel/launcher-2.rc

DBG[panel-properties.c:273] _set_struts():
Struts: 0, 0, 0, 29, 0, 0, 0, 0, 0, 0, 0, 261
DBG[panel-config.c:143] panel_config_create_panels(): Successfully configured 1 panel(s).

DBG[panel-settings.c:128] update_properties_tab(): position: 10
DBG[panel-properties.c:273] _set_struts():
Struts: 0, 0, 0, 29, 0, 0, 0, 0, 0, 0, 381, 642
DBG[panel-properties.c:273] _set_struts():
Struts: 0, 0, 0, 29, 0, 0, 0, 0, 0, 0, 381, 642
DBG[panel-properties.c:273] _set_struts():
Struts: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16
DBG[xfce-panel-plugin-iface.c:990] xfce_panel_plugin_get_rc_file(): opening /home/nic/.config/xfce4/panel/launcher-1.rc

DBG[panel-properties.c:273] _set_struts():
Struts: 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 480, 544
DBG[panel-settings.c:128] update_properties_tab(): position: 13
Detaching after fork from child process 18383.
DBG[panel-properties.c:273] _set_struts():
Struts: 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 480, 545
/home/nic/.gtkrc-2.0:2: Impossible de trouver le fichier à inclure : « (null)/AEon_Marbles_v1.1/gtk-2.0/gtkrc »
DBG[panel-properties.c:273] _set_struts():
Struts: 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 480, 545
DBG[panel-properties.c:273] _set_struts():
Struts: 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 480, 545
DBG[panel-properties.c:273] _set_struts():
Struts: 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 480, 545
DBG[testplugin.c:98] test_construct(): Construct: testplugin
DBG[testplugin.c:102] test_construct(): Properties: size = 48, panel_position = 13
DBG[xfce-panel-plugin-iface.c:990] xfce_panel_plugin_get_rc_file(): opening (null)

DBG[testplugin.c:75] test_set_size(): Set size to 48: testplugin
DBG[panel-properties.c:273] _set_struts():
Struts: 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 480, 615
DBG[panel-properties.c:273] _set_struts():
Struts: 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 480, 615

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 18378)]
0xb7fe1efa in xfce_itembar_forall (container=0x807e3d8, include_internals=0,
    callback=0xb7dad550 <gtk_widget_destroy>, callback_data=0x0)
    at xfce-itembar.c:778
778             if (child && GTK_IS_WIDGET (child->widget))
(gdb)
(gdb) bt
#0  0xb7fe1efa in xfce_itembar_forall (container=0x807e3d8,
    include_internals=0, callback=0xb7dad550 <gtk_widget_destroy>,
    callback_data=0x0) at xfce-itembar.c:778
#1  0xb7c31972 in gtk_container_foreach () from /usr/lib/libgtk-x11-2.0.so.0

I don't know if there is something interresting for you in all that. 

> 	Jasper

bountykiller



More information about the Xfce4-dev mailing list