If I start up xfce4, xfce4-power-manager starts eating all memory, swap, and then dies when it can't allocate anymore:
id 1098 (xfpm-power-backligh), uid 1001, was killed: out of swap space
For clarity, I don't even have a backlight, this is a regular desktop system.
This is rather annoying as xfce4-power-manager is required to be able to log out of xfce4 (or at least, with it uninstalled I seem to be unable to log out).
FreeBSD dopefish.deep.deepslack.eu 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r280268: Thu Mar 19 22:30:33 UTC 2015 firstname.lastname@example.org:/usr/obj/usr/home/tgen/Work/FreeBSD-HEAD/sys/DOPEFISH amd64
xfce4-power-manager version: xfce4-power-manager-1.4.4
(In reply to Thomas E. Spanjaard from comment #0)
xfce4-power-manager is not required to log out your session. It manages power consumption.
How your Xfce session is started?
I have same problem on old Sony Vaio laptop with current system.
Session is started by slim login manager via xfce.desktop file ("startxfce4")
Before latest update it worked. Ok, I could not change backlight, but it didn't spent ~5 minutes tharshing my HDD with swapping.
Same issue started to occur occasionally on my HP Folio 9470m in last time.
Name : xfce4-power-manager
Version : 1.5.0
Installed on : Thu May 28 18:23:50 CEST 2015
FreeBSD pa-hpbook 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r264145: Sat Apr 5 21:20:21 CEST 2014 palik@pa-hpbook:/usr/obj/usr/src/sys/MYIPSEC amd64
pid 1873 (xfpm-power-backligh), uid 1001, was killed: out of swap space
pid 1443 (Xorg), uid 0, was killed: out of swap space
Someone can test sysutils/xfce4-power-manager with sysutils/upower > 0.99.0 ?
(I'm using upower 0.99.2, and I can't find why CPU increases.)
Users of FreeBSD current, may I have output of sysctl -a | grep hw.acpi.video?
 bug #200541
New release 1.5.1 is available in Xfce repository. If someone can test it (debug symbols are set).
Before update sysutils/xfce4-power-manager:
1. kill xfce4-power-manager daemon
2. Update sysutils/upower (bug #200541)
3. Apply patch, in order to update sysutils/xfce4-power-manager
Then run xfce4-power-manager daemon (with debug option):
If CPU increases, please send output.
Note: Since this release, there's hidden option for panel plugin.
By default next to icon, a label is displayed (it shows percentage and remaining time)
To hide this label, new property /xfce4-power-manager/show-panel-label must be created:
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/show-panel-label -n -t int -s 0
Possible values are:
* 0 -> don't show label
* 1 -> displays only percentage
* 2 -> displays only remaining time
* 3 -> displays percentage and remaining time (default value)
Created attachment 157536 [details]
Patch to update sysutils/xfce4-power-manager to 1.5.1
Patch to update sysutils/xfce4-power-manager 1.5.1 with debug symbols.
(In reply to Olivier Duchateau from comment #4)
> sysctl -a | grep hw.acpi.video
(In reply to Olivier Duchateau from comment #5)
> If CPU increases, please send output.
CPU works OK, but the message "was killed: out of swap space" still there.
Created attachment 157624 [details]
Unpatched, mine is currently using:
1072 sbruno 2 21 0 177M 25876K select 3 2:23 0.00% xfce4-power-manager
How long do I need to let this run?
I see the same issue on: Thinkpad T420 (4180LVP)
I'm noticing a memory leak with xfce4-power-manager-1.6.0, too. I have upower-0.99.3 installed. Hardware is a ThinkPad T420, no backlight available.
--- uname -a ---
FreeBSD foxtrot.*** 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 02:10:02 UTC 2016 email@example.com:/usr/obj/usr/src/sys/GENERIC amd64
--- .xinitrc ---
xset b off
exec startxfce4 --with-ck-launch
Perhaps a red herring, but with the notification icon initially on, turning it off in the preferences gives this message when running with --debug:
TRACE[xfpm-manager.c:721] xfpm_manager_tray_update_icon(): updating icon
TRACE[xfpm-manager.c:705] xfpm_manager_tray_update_tooltip(): updating tooltip
TRACE[xfpm-xfconf.c:203] xfpm_xfconf_property_changed_cb(): Property modified: /xfce4-power-manager/show-tray-icon
(xfce4-power-manager:12802): Gtk-WARNING **: A floating object was finalized. This means that someone
called g_object_unref() on an object that had only a floating
reference; the initial floating reference is not owned by anyone
and must be removed with g_object_ref_sink().
It looks like this memory leak only occurs when the system tray icon is enabled. Turning it off works around the memory leak for me. Can other people confirm this?
Apparently this issue has been traced upstream to glib:
Is the problem still existing with the current ports tree?
Is this still a problem? The power manager has been updated to 1.6.0 in the while.
If I get no feedback in a few days I'm going to close the issue.
(In reply to Guido Falsi from comment #17)
Not for me.
(In reply to Kevin Zheng from comment #18)
> (In reply to Guido Falsi from comment #17)
> Not for me.
Sorry ut I can't unambiguously parse your reply.
Not for me means:
- it's not a problem for me anymore, now it works
- it's not been solved for me, still allocates all memory
Can you clarify? Thanks.
(In reply to Guido Falsi from comment #19)
Sorry, I was a bit terse.
I can't reproduce the issue, it seems to work.
The original problem seems t be fixed. User not able to reproduce anymore.
MARKED AS SPAM