When enabling the systray in xfce4-power-manager 1.5.1 it segfaults. Here go the relevant debug output parts: TRACE[xfpm-manager.c:747] xfpm_manager_show_tray_icon(): Showing tray icon TRACE[../panel-plugins/power-manager-plugin/power-manager-button.c:531] power_manager_button_add_device(): entering for /org/freedesktop/UPower/devices/DisplayDevice TRACE[../panel-plugins/power-manager-plugin/power-manager-button.c:441] power_manager_button_update_device_icon_and_details(): entering for /org/freedesktop/UPower/devices/DisplayDevice TRACE[xfpm-power-common.c:190] get_device_icon_name(): icon_suffix (null), icon_base_length 2147483647, upower_icon *** Error in `xfce4-power-manager': free(): invalid pointer: 0x09b33178 *** Aborted (core dumped)
I've just tested the latest release (under FreeBSD), when enabling the systray, there is no crash, but icon is missing like bug #11931.
*** Bug 11968 has been marked as a duplicate of this bug. ***
Created attachment 6307 Set label to NULL so we don't crash Anyone affected, can you try out this patch?
(In reply to Eric Koegel from comment #3) > Created attachment 6307 > Set label to NULL so we don't crash > > Anyone affected, can you try out this patch? PASSED ... xfpm-1.5.2
Thanks! Pushed to master: commit 9c766f4f9dfc5185354ab213265efff0d3cc43fd Author: Eric Koegel <eric.koegel@gmail.com> Date: Mon Jun 8 16:23:20 2015 +0300 Set label so we don't crash (Bug #11967) http://git.xfce.org/xfce/xfce4-power-manager/commit/?id=9c766f4f9dfc5185354ab213265efff0d3cc43fd
(In reply to Eric Koegel from comment #3) > Created attachment 6307 > Set label to NULL so we don't crash > > Anyone affected, can you try out this patch? Tested, everything works fine (and icon in systray reappeared). Thanks!
Good to hear, and sorry for the oversight. Sucks, but sometimes these things slip through testing...