Bug#884802: [Pkg-xfce-devel] Bug#884802: xfce4-panel: Undeletable buttons of nonexistent processes.

2018-01-17 Thread Lorenzo Ancora
control: tag - unreproducible

Hello,
after getting no answers I've studied how to debug XFCE 4.
I'm adding new and more useful debug information to help fixing the
problem and also explain why you can't reproduce it.
Apparently the source of the bug is unallocated memory (a NULL pointer,
0x0..0 in gdb) and there are also signs of an incompatibility with the
signal management of a specific version of GLib 2:
> (xfce4-panel:1964): GLib-GObject-WARNING **:
> /build/glib2.0-B1uXKV/glib2.0-2.50.3/./gobject/gsignal.c:3492: signal
> name 'selection_changed' is invalid for instance '0x55b07a0221c0' of
> type 'GailMenuItem'
> (xfce4-panel:1964): libtasklist-CRITICAL **: tasklist-widget.c:1777
> (xfce_tasklist_window_removed): expression 'n == 5' failed.
> (xfce4-panel:1603): libtasklist-CRITICAL **: tasklist-widget.c:2681
> (xfce_tasklist_button_enter_notify_event): expression
> 'XFCE_IS_TASKLIST (child->tasklist)' failed.
> (xfce4-panel:1603): libtasklist-CRITICAL **: tasklist-widget.c:2805
> (xfce_tasklist_button_enter_notify_event_disconnected): expression
> 'WNCK_IS_WINDOW (child->window)' failed.
> (xfce4-panel:1603): libtasklist-CRITICAL **: tasklist-widget.c:1871
> (xfce_tasklist_update_icon_geometries): expression 'WNCK_IS_WINDOW
> (child->window)' failed.
> (xfce4-panel:1603): libtasklist-CRITICAL **: tasklist-widget.c:2883
> (xfce_tasklist_button_activate): expression 'WNCK_IS_WINDOW
> (child->window)' failed.
> (xfce4-panel:1603): GLib-GObject-WARNING **: instance with invalid
> (NULL) class pointer
> (xfce4-panel:1603): GLib-GObject-CRITICAL **:
> g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE
> (instance)' failed
In my opinion the bug could be traced to a single value:
'tasklist-widget.c' is trying to access the wrong object of a collection
and this is caused by the incorrect handling of signals in 'gsignal.c',
that can be the root cause of the problem.

I've attached 2 log files, the 1st with PANEL_DEBUG=gdb and the 2nd with
PANEL_DEBUG=tasklist, so you have all debugging information plus the
correct library versions to reproduce it.

Regards,
Lorenzo
xfce4-panel(main): version 4.12.1 on gtk+ 2.24.31 (2.24.31), glib 2.50.3 (2.50.2)
xfce4-panel(main): running external plugins with /usr/bin/gdb, logs stored in /tmp
xfce4-panel(module-factory): reading /usr/share/xfce4/panel/plugins
xfce4-panel(module-factory): reading /usr/share/xfce4/panel-plugins
xfce4-panel(application): found window manager after 1 tries
xfce4-panel(base-window): 0x55b079ed60c0: rgba colormap=0x55b079ee52d0, compositing=true
xfce4-panel(base-window): 0x55b079ed60c0: rgba colormap=0x55b079ee52d0, compositing=true
xfce4-panel(display-layout): 0x55b079ed60c0: display=:0.0{comp=true}, screen-0[0x55b079e84b30]=[1366,768] (monitor-0=[0,0;1366,768])
xfce4-panel(positioning): 0x55b079ed60c0: screen=0x55b079e84b30, monitors=1, output-name=(null), span-monitors=false, base=683,746
xfce4-panel(positioning): 0x55b079ed60c0: working-area: screen=0x55b079e84b30, x=0, y=0, w=1366, h=768
xfce4-panel(struts): 0x55b079ed60c0: bottom=41, start_x=0, end_x=1365
xfce4-panel(external): register dbus path /org/xfce/Panel/Wrapper/2
xfce4-panel(module): new item (type=external-wrapper, name=whiskermenu, id=2)
xfce4-panel(external): whiskermenu-2: child spawned; pid=1965, argc=25
xfce4-panel(module): new item (type=object-type, name=separator, id=9)
xfce4-panel(module): new item (type=object-type, name=tasklist, id=6)
xfce4-panel(module): new item (type=object-type, name=separator, id=10)
xfce4-panel(external): register dbus path /org/xfce/Panel/Wrapper/11
xfce4-panel(module): new item (type=external-wrapper, name=pulseaudio, id=11)
xfce4-panel(external): pulseaudio-11: child spawned; pid=1968, argc=25
xfce4-panel(external): register dbus path /org/xfce/Panel/Wrapper/4
xfce4-panel(module): new item (type=external-wrapper, name=systray, id=4)
xfce4-panel(external): systray-4: child spawned; pid=1969, argc=25
xfce4-panel(external): register dbus path /org/xfce/Panel/Wrapper/13
xfce4-panel(module): new item (type=external-wrapper, name=datetime, id=13)
xfce4-panel(external): datetime-13: child spawned; pid=1971, argc=25
xfce4-panel(base-window): 0x55b079ed6350: rgba colormap=0x55b079ee52d0, compositing=true
xfce4-panel(base-window): 0x55b079ed6350: rgba colormap=0x55b079ee52d0, compositing=true
xfce4-panel(base-window): 0x55b079f63050: rgba colormap=0x55b079ee52d0, compositing=true
xfce4-panel(display-layout): 0x55b079ed6350: display=:0.0{comp=true}, screen-0[0x55b079e84b30]=[1366,768] (monitor-0=[0,0;1366,768])
xfce4-panel(positioning): 0x55b079ed6350: screen=0x55b079e84b30, monitors=1, output-name=(null), span-monitors=false, base=683,25
xfce4-panel(positioning): 0x55b079ed6350: working-area: screen=0x55b079e84b30, x=0, y=0, w=1366, h=768
xfce4-panel(base-window): 0x55b079ed65e0: rgba colormap=0x55b079ee52d0, compositing=true
xfce4-panel(base-window): 0x55b079ed65e0: rgba colormap=0x55b079ee52d0, compositing=true

Bug#884802: [Pkg-xfce-devel] Bug#884802: xfce4-panel: Undeletable buttons of nonexistent processes.

2018-01-05 Thread Lorenzo Ancora
Hello,
since you are having problems in reproducing the bug and the crash is
predictable, I suspect that these are symptoms of a hidden memory
corruption in a library.
My theory is that while using Openbox the panel does not access an
invalid pointer (probably thanks to some abstractions) but with xfwm4 it
does. This problem is the same but in the 1st case it remains hidden.

To verify my theory I replaced Openbox with xfwm4 and killed compton and
all the desktop gadgets.
Then I repeated all the actions of the video and the panel crashed and
restarted itself.

To debug the panel I killed xfce4-panel and executed it under dgb. Even
without the debug symbols I discovered
the position of the bug: "tasklist-widget.c" @ line 2681. This should
be, at least, a good place to start.

GDB's OUTPUT: https://paste.debian.net/1003593

If I can do something else, I'll be glad to help.

Regards,
Lorenzo


Bug#884802: [Pkg-xfce-devel] Bug#884802: xfce4-panel: Undeletable buttons of nonexistent processes.

2018-01-01 Thread Yves-Alexis Perez
On Sun, 2017-12-31 at 20:05 +, Lorenzo Ancora wrote:
> Hello and happy new year,
> I've registered a video (bugxfce.webm), so you'll be able to reproduce the 
> problem.

Hello,

the initial explanation was clear enough. I'm able to reproduce the process,
but not the problem. Can you try with xfwm4 / full Xfce desktop instead of
openbox?

Regards,
-- 
Yves-Alexis

signature.asc
Description: This is a digitally signed message part


Bug#884802: [Pkg-xfce-devel] Bug#884802: xfce4-panel: Undeletable buttons of nonexistent processes.

2017-12-20 Thread Yves-Alexis Perez
control: tag -1 unreproducible

On Tue, 2017-12-19 at 21:40 +0100, Lorenzo Ancora wrote:
> * What exactly did you do (or not do) that was effective (or ineffective)?
> I've opened two windows of `Thunar 1.6.11 (Xfce 4.12)` and right clicked on 
> the
> single application button that represented the two windows.
> * What was the outcome of this action?
> Choosing "close" from one of the sub-menus leaves a ghost entry in the menu.
> Doing the same thing for all windows leaves a button with the generic app icon
> and no functionality.

Hi,

I'm not using Openbox, but here doing the same thing either close one window
or both of them, but in both cases the menu closes fine.

Regards,
-- 
Yves-Alexis

signature.asc
Description: This is a digitally signed message part