problem running new panel
Nicolas Masse
masse_nicolas at yahoo.fr
Fri Sep 16 17:27:02 CEST 2005
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.
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 6627)]
/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[panel-config.c:367] start_element_handler(): Add item: name="launcher", id="1125678680"
DBG[panel-config.c:367] start_element_handler(): Add item: name="launcher", id="1125678735"
DBG[panel-config.c:367] start_element_handler(): Add item: name="launcher", id="1125678736"
DBG[panel-config.c:367] start_element_handler(): Add item: name="launcher", id="1125678736"
DBG[panel-properties.c:273] _set_struts():
Struts: 0, 0, 0, 29, 0, 0, 0, 0, 0, 0, 0, 145
DBG[panel-properties.c:273] _set_struts():
Struts: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16
DBG[panel-properties.c:273] _set_struts():
Struts: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 480, 496
DBG[panel-properties.c:273] _set_struts():
Struts: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 480, 496
DBG[panel-properties.c:273] _set_struts():
Struts: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 480, 496
DBG[panel-config.c:367] start_element_handler(): Add item: name="launcher", id="1126881982"
DBG[panel-config.c:367] start_element_handler(): Add item: name="testplugin", id="1126882009"
DBG[panel-properties.c:273] _set_struts():
Struts: 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 480, 545
DBG[panel-config.c:143] panel_config_create_panels(): Successfully configured 2 panel(s).
/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[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
DBG[panel-app.c:561] panel_app_set_current_panel(): Current panel: 1
DBG[panel-settings.c:128] update_properties_tab(): position: 13
DBG[panel-app.c:561] panel_app_set_current_panel(): Current panel: 1
DBG[panel-app.c:561] panel_app_set_current_panel(): Current panel: 1
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
I've also another annoying bug about the config:
For now, I've 5 launchers on the panel, but when the config is save, only the 4 first are saved and the 4st is duplicated.
Looking to the config files, I have this:
pwd
/home/nic/.config/xfce4/panel
bash-2.05b$ ls
contents.xml launcher-1125678680.rc launcher-1125678736.rc panels.xml
contents.xml.bak launcher-1125678735.rc launcher-4.rc
NOTE:only 4 launcher
bash-2.05b$ less panels.xml
...
<items>
<item name="launcher" id="4"/>
<item name="launcher" id="1125678680"/>
<item name="launcher" id="1125678735"/>
<item name="launcher" id="1125678736"/>
<item name="launcher" id="1125678736"/> (!!!)
</items>
...
I'm having a look at the code, but don't see where it comes from yet.
Masse Nicolas.
More information about the Xfce4-dev
mailing list