Bug 1241899 - PM plugin leaks memory
Summary: PM plugin leaks memory
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: xfce4-power-manager
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mukundan Ragavan
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-10 11:17 UTC by Zdenek Kabelac
Modified: 2016-06-18 18:51 UTC (History)
7 users (show)

Fixed In Version: xfce4-power-manager-1.6.0-4.fc23 xfce4-power-manager-1.6.0-4.fc24
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-18 18:51:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Power manages process smaps dump (297.25 KB, text/plain)
2016-05-07 19:17 UTC, Szymon
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Xfce 11538 0 None None None Never
Xfce 12367 0 None None None 2015-12-17 21:56:34 UTC

Internal Links: 1342253

Description Zdenek Kabelac 2015-07-10 11:17:45 UTC
Description of problem:

While running xfce4 desktop -  this xfce4-power-manager gets quite noticeable after a while in memory-eater hit-parade.

Wit just couple short uptime:
  509180  45752  24144 S   0,0  1,2   0:01.87 xfce4-power-man

now  after few minutes:
  520096  48168  26168 S   0,0  1,2   0:01.95 xfce4-power-man

and growing continuously....

From plain --debug log:

TRACE[../panel-plugins/power-manager-plugin/power-manager-button.c:441] power_manager_button_update_device_icon_and_details(): entering f
or /org/freedesktop/UPower/devices/battery_BAT0
TRACE[xfpm-power-common.c:190] get_device_icon_name(): icon_suffix -symbolic, icon_base_length 20, upower_icon battery-full-charged-symbo
lic

Valgrind seemes to be pointing to some 'dbus' code:

162,189 (880 direct, 161,309 indirect) bytes in 22 blocks are definitely lost in loss record 11,280 of 11,281
   at 0x4C2BC50: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
   by 0x7F5A809: g_malloc (gmem.c:97)
   by 0x7F71ED2: g_slice_alloc (gslice.c:1007)
   by 0x7F906BD: g_variant_alloc (gvariant-core.c:476)
   by 0x7F906BD: g_variant_new_from_children (gvariant-core.c:565)
   by 0x7F8D3EB: g_variant_builder_end (gvariant.c:3612)
   by 0x77E4EE5: parse_value_from_blob (gdbusmessage.c:1817)
   by 0x77E6FBB: g_dbus_message_new_from_blob (gdbusmessage.c:2144)
   by 0x77F153C: _g_dbus_worker_do_read_cb (gdbusprivate.c:718)
   by 0x7791718: g_task_return_now (gtask.c:1106)
   by 0x7791758: complete_in_idle_cb (gtask.c:1120)
   by 0x7F54C19: g_main_dispatch (gmain.c:3122)
   by 0x7F54C19: g_main_context_dispatch (gmain.c:3737)
   by 0x7F54FAF: g_main_context_iterate.isra.29 (gmain.c:3808)
   by 0x7F552D1: g_main_loop_run (gmain.c:4002)
   by 0x77EF2E5: gdbus_shared_thread_func (gdbusprivate.c:246)
   by 0x7F7C4E4: g_thread_proxy (gthread.c:764)
   by 0x8CAA609: start_thread (pthread_create.c:333)
   by 0x8FC76BC: clone (clone.S:109)



Version-Release number of selected component (if applicable):
xfce4-power-manager-1.5.2-1.fc23.x86_64

How reproducible:


Steps to Reproduce:
1. just running xfce4 desktop
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Jan Kurik 2015-07-15 13:18:54 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23

Comment 2 Mukundan Ragavan 2015-08-04 02:13:18 UTC
Looks like this is already fixed upstream (even for 1.4.x). Let me look.

https://bugzilla.xfce.org/show_bug.cgi?id=11538

Comment 3 Zdenek Kabelac 2015-10-25 19:54:34 UTC
Is there any hope to get new release soon ?

It's quite annoying to still kill it after  3 months because of massive memleaking.

Comment 4 Mukundan Ragavan 2015-10-26 02:51:37 UTC
That's strange ... This thought this was already fixed. Let me look.

Thanks for the ping, this had indeed fallen off my radar. :(

Comment 5 Miroslav Lichvar 2015-12-04 06:32:59 UTC
I think I'm seeing this too. After couple weeks of uptime xfce4-power-manager was killed by the OOM killer.

Comment 6 Zdenek Kabelac 2015-12-04 09:11:44 UTC
Yep - still applies:

i.e. today:
  VIRT    RES    SHR S  %CPU %MEM  TIME+ COMMAND 
650748 205984  17204 S   0,0 5,2 0:27.34 xfce4-power-man


$ uptime 
 10:10:36 up 2 days, 17:30

Still with: xfce4-power-manager-1.5.2-1.fc23.x86_64
as the latest available version.


And Christmas are getting close ;)....

Comment 7 Zdenek Kabelac 2015-12-16 09:21:57 UTC
Is there ANY development being done ??

Is it going to be a serious bug across 2 Fedora releases ?

Comment 8 Mukundan Ragavan 2015-12-17 21:56:34 UTC
Well, I have opened a new bug upstream (today)

To be honest, I do not see it on VM or metal ... So, it has been kind of impossible for me understand this ..

I will have to see what upstream says.

Comment 9 Torfinn Ingolfsen 2016-02-22 19:18:30 UTC
FWIW, I also see this. Running Fedora 23 on a laptop with 16 GB memory, xfce-power-manager is killed at least once a day (if the laptop is on):
[tingo@localhost ~]$ sudo cat /var/log/messages* | grep "Out of memory"
Feb 22 12:56:37 localhost kernel: Out of memory: Kill process 3637 (panel-21-power-) score 645 or sacrifice child
Feb 13 15:29:02 localhost kernel: Out of memory: Kill process 9509 (panel-16-power-) score 843 or sacrifice child
Feb 21 06:51:49 localhost kernel: Out of memory: Kill process 1643 (panel-21-power-) score 749 or sacrifice child

Details:
[tingo@localhost ~]$ lsb_release -a
LSB Version:	:core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID:	Fedora
Description:	Fedora release 23 (Twenty Three)
Release:	23
Codename:	TwentyThree
[tingo@localhost ~]$ uname -a
Linux localhost.localdomain 4.3.5-300.fc23.x86_64 #1 SMP Mon Feb 1 03:18:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

[tingo@localhost ~]$ sudo dnf list xfce4-power*
Last metadata expiration check performed 1:45:17 ago on Mon Feb 22 18:32:18 2016.
Installed Packages
xfce4-power-manager.x86_64                                           1.5.2-4.fc23                                            @updates

Is there any other info I could give that would help getting this bug fixed?

Comment 10 Mukundan Ragavan 2016-02-23 01:50:25 UTC
Let me communicate this to upstream.

Also, xfce dev indicated that it might be due to https://bugzilla.gnome.org/show_bug.cgi?id=758641.

This means we are likely to see this fixed with glib2-2.46.3 ...let me see ..

Comment 11 Torfinn Ingolfsen 2016-02-25 06:50:28 UTC
(In reply to Mukundan Ragavan from comment #10)
> Also, xfce dev indicated that it might be due to
> https://bugzilla.gnome.org/show_bug.cgi?id=758641.
> 
> This means we are likely to see this fixed with glib2-2.46.3 ...let me see ..

Interesting. Is there an easy way to build and install glib2 from source in Fedora? That way I could test if it helps. I've searched, but didn't find anything that looked easy to do.

Comment 12 Mukundan Ragavan 2016-02-25 22:37:05 UTC
(In reply to Torfinn Ingolfsen from comment #11)
> (In reply to Mukundan Ragavan from comment #10)
> > Also, xfce dev indicated that it might be due to
> > https://bugzilla.gnome.org/show_bug.cgi?id=758641.
> > 
> > This means we are likely to see this fixed with glib2-2.46.3 ...let me see ..
> 
> Interesting. Is there an easy way to build and install glib2 from source in
> Fedora? That way I could test if it helps. I've searched, but didn't find
> anything that looked easy to do.

Short of a COPR, I don't really know how else. But, it's glib2 ... so, I have no clue about deps. But, I am going to try in the next couple of days ...

Comment 13 Torfinn Ingolfsen 2016-03-24 08:52:02 UTC
FWIW, xfce4-power-manager got a minor upgrade:
[tingo@localhost ~]$ sudo dnf list xfce4-power*
Last metadata expiration check: 1:42:48 ago on Thu Mar 24 08:04:08 2016.
Installed Packages
xfce4-power-manager.x86_64                                           1.5.2-6.fc23                                            @updates

As expected, this changed nothing with regards to this bug.
Other details:
[tingo@localhost ~]$ uname -a
Linux localhost.localdomain 4.4.5-300.fc23.x86_64 #1 SMP Thu Mar 10 17:54:44 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Comment 14 Mukundan Ragavan 2016-03-24 21:46:25 UTC
Yup. That update has nothing to do with this particular bug ... :(

Comment 15 Szymon 2016-05-07 19:16:27 UTC
Issue reproduced on Fedora 23 with xfce4-power-manager-1.5.2-6.fc23.x86_64 on kernel 4.4.7-300.fc23.x86_64. With uptime of 11 days memory consumption of xfce4 power manager went up to 2 GB. I've observed that the power manager allocated multiple 128 MB blocks - attached memory smap dump.

Comment 16 Szymon 2016-05-07 19:17:27 UTC
Created attachment 1154881 [details]
Power manages process smaps dump

Comment 17 Yury Bulka 2016-05-08 08:50:05 UTC
Happens on my machine too, kernel 4.4.8-300.fc23.x86_64, xfce4-power-manager 1.5.2-6.fc23:

[user@machine ~]$ ps -o rss,vsize,etime,cmd -C xfce4-power-manager
  RSS    VSZ     ELAPSED CMD
176768 630380 3-13:19:59 xfce4-power-manager
[user@machine ~]$ xfce4-power-manager --restart
[user@machine ~]$ ps -o rss,vsize,etime,cmd -C xfce4-power-manager
  RSS    VSZ     ELAPSED CMD
25928 489588       00:01 xfce4-power-manager

Comment 18 Szymon 2016-05-15 11:38:07 UTC
Rebuilt from latest sources the issue is still reproducible with glib2 2.46.2 1.fc23.

Should this be still reproducible since 758641 is resolved since January?

Comment 19 Mukundan Ragavan 2016-05-15 21:54:06 UTC
(In reply to Szymon from comment #18)
> Rebuilt from latest sources the issue is still reproducible with glib2
> 2.46.2 1.fc23.
> 
> Should this be still reproducible since 758641 is resolved since January?



It shouldn't be I think. See https://bugzilla.gnome.org/show_bug.cgi?id=758641#c7 ...

Comment 20 Fedora Update System 2016-05-24 22:03:28 UTC
xfce4-power-manager-1.6.0-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-d44b0d90a2

Comment 21 Fedora Update System 2016-05-24 22:03:40 UTC
xfce4-power-manager-1.6.0-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-8a23222067

Comment 22 Fedora Update System 2016-05-26 05:01:28 UTC
xfce4-power-manager-1.6.0-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-d44b0d90a2

Comment 23 Fedora Update System 2016-05-26 05:02:32 UTC
xfce4-power-manager-1.6.0-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-8a23222067

Comment 24 Fedora Update System 2016-05-27 01:39:58 UTC
xfce4-power-manager-1.6.0-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-ab452c4475

Comment 25 Fedora Update System 2016-05-27 01:40:14 UTC
xfce4-power-manager-1.6.0-3.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-defe029dae

Comment 26 Torfinn Ingolfsen 2016-05-27 06:30:09 UTC
The bug is still present with xfce4-power-manager 1.6.0-2.fc23 installed:

[tingo@localhost ~]$ date;ps -eF | grep -v grep | grep powerman;uptime
Fri May 27 08:27:13 CEST 2016
tingo     1500  1423  0 2901317 10902016 2 May26 ?     00:10:09 /usr/lib64/xfce4/panel/wrapper-2.0 /usr/lib64/xfce4/panel/plugins/libxfce4powermanager.so 21 18874406 power-manager-plugin Power Manager Plugin Display the battery levels of your devices and control the brightness of your display
 08:27:13 up 21:10,  2 users,  load average: 0.17, 0.29, 0.55

[tingo@localhost ~]$ sudo dnf list xfce4-power-man*
Last metadata expiration check: 2:54:21 ago on Fri May 27 05:34:01 2016.
Installed Packages
xfce4-power-manager.x86_64                                       1.6.0-2.fc23                                        @updates-testing

[tingo@localhost ~]$ sudo dnf list installed glib2*
Last metadata expiration check: 2:55:21 ago on Fri May 27 05:34:01 2016.
Installed Packages
glib2.x86_64                                                     2.46.2-1.fc23                                               @updates
glib2-devel.x86_64                                               2.46.2-1.fc23                                               @updates


More details:
[tingo@localhost ~]$ uname -a
Linux localhost.localdomain 4.4.9-300.fc23.x86_64 #1 SMP Wed May 4 23:56:27 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Comment 27 Fedora Update System 2016-05-28 03:24:55 UTC
xfce4-power-manager-1.6.0-3.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-defe029dae

Comment 28 Fedora Update System 2016-05-28 03:26:16 UTC
xfce4-power-manager-1.6.0-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-ab452c4475

Comment 29 Szymon 2016-05-29 18:41:31 UTC
Issue still exists with xfce4-power-manager-1.6.0-3.fc23.

sudo dnf list installed xfce4-power-manager
xfce4-power-manager.x86_64                       1.6.0-3.fc23                       @updates-testing

sudo dnf list installed glib2 
glib2.x86_64                               2.46.2-1.fc23                               @@commandline

Comment 30 poma 2016-05-30 19:32:17 UTC
$ LD_PRELOAD=/usr/lib64/libmemusage.so memusage /usr/bin/xfce4-power-manager

Memory usage summary: heap total: 156210, heap peak: 66649, stack peak: 9328
         total calls   total memory   failed calls
 malloc|       5050         149826              0
realloc|         29           6352              0  (nomove:20, dec:0, free:0)
 calloc|          1             32              0
   free|       4033         102909
Histogram for block sizes:
    0-15           2350  46% ==================================================
   16-31           1219  23% =========================
   32-47            822  16% =================
   48-63            242   4% =====
   64-79            128   2% ==
   80-95             14  <1% 
   96-111             6  <1% 
  112-127           219   4% ====
  128-143             3  <1% 
  160-175             1  <1% 
  192-207            10  <1% 
  208-223             5  <1% 
  224-239             3  <1% 
  256-271             4  <1% 
  304-319             2  <1% 
  320-335             2  <1% 
  384-399             1  <1% 
  432-447             1  <1% 
  448-463             1  <1% 
  480-495             2  <1% 
  496-511             1  <1% 
  512-527             6  <1% 
  544-559             2  <1% 
  576-591             3  <1% 
  640-655             1  <1% 
  688-703             2  <1% 
  704-719             1  <1% 
  720-735             1  <1% 
  768-783             2  <1% 
  832-847             1  <1% 
  896-911             1  <1% 
  944-959             1  <1% 
  960-975             1  <1% 
 1024-1039            2  <1% 
 1088-1103            1  <1% 
 1152-1167            7  <1% 
 1216-1231            1  <1% 
 1264-1279            1  <1% 
 1520-1535            1  <1% 
 1600-1615            1  <1% 
 1680-1695            5  <1% 
 2048-2063            1  <1% 
 2192-2207            1  <1% 
 7504-7519            1  <1% 

$ mtrace /usr/bin/xfce4-power-manager
No memory leaks.

$ uptime -p
up 1 week, 2 days, 10 hours, 3 minutes

$ xfce4-power-manager --version

Xfce Power Manager 1.6.0git-20160526git61abc73

Part of the Xfce Goodies Project
http://goodies.xfce.org

Licensed under the GNU GPL.

Comment 31 Torfinn Ingolfsen 2016-05-31 07:17:00 UTC
FWIW, it is usually the Xfce panel plugin for xfce4-power-manager that gets killed.
[tingo@localhost ~]$ sudo cat /var/log/messages* | grep "Out of memory"
May 29 09:28:57 localhost kernel: Out of memory: Kill process 11883 (panel-21-power-) score 595 or sacrifice child
May 30 15:59:07 localhost kernel: Out of memory: Kill process 1503 (panel-21-power-) score 643 or sacrifice child
May 30 15:59:07 localhost kernel: Out of memory: Kill process 1561 (gmain) score 643 or sacrifice child
May  1 05:01:11 localhost kernel: Out of memory: Kill process 29950 (panel-21-power-) score 506 or sacrifice child
May  3 06:58:20 localhost kernel: Out of memory: Kill process 1488 (panel-21-power-) score 724 or sacrifice child
May  3 06:58:20 localhost kernel: Out of memory: Kill process 30175 (chrome) score 305 or sacrifice child
May  5 10:30:58 localhost kernel: Out of memory: Kill process 1472 (panel-21-power-) score 734 or sacrifice child
May  7 05:07:29 localhost kernel: Out of memory: Kill process 1479 (panel-21-power-) score 656 or sacrifice child
May  7 05:07:29 localhost kernel: Out of memory: Kill process 1562 (gmain) score 656 or sacrifice child
May  8 08:01:04 localhost kernel: Out of memory: Kill process 19813 (panel-21-power-) score 608 or sacrifice child
May  8 08:01:04 localhost kernel: Out of memory: Kill process 19816 (gdbus) score 608 or sacrifice child
May  8 19:23:46 localhost kernel: Out of memory: Kill process 26978 (panel-21-power-) score 398 or sacrifice child
May  9 17:41:44 localhost kernel: Out of memory: Kill process 8714 (panel-21-power-) score 522 or sacrifice child
May 10 15:33:12 localhost kernel: Out of memory: Kill process 1771 (panel-21-power-) score 499 or sacrifice child
May 11 10:48:54 localhost kernel: Out of memory: Kill process 25747 (panel-21-power-) score 456 or sacrifice child
May 12 09:33:55 localhost kernel: Out of memory: Kill process 8249 (panel-21-power-) score 505 or sacrifice child
May 15 06:55:43 localhost kernel: Out of memory: Kill process 1450 (panel-21-power-) score 676 or sacrifice child
May 15 06:55:43 localhost kernel: Out of memory: Kill process 1574 (gmain) score 676 or sacrifice child
May 16 13:01:06 localhost kernel: Out of memory: Kill process 25096 (panel-21-power-) score 674 or sacrifice child
May 16 13:01:06 localhost kernel: Out of memory: Kill process 25097 (gmain) score 674 or sacrifice child
May 15 06:55:43 localhost kernel: Out of memory: Kill process 1450 (panel-21-power-) score 676 or sacrifice child
May 15 06:55:43 localhost kernel: Out of memory: Kill process 1574 (gmain) score 676 or sacrifice child
May 16 13:01:06 localhost kernel: Out of memory: Kill process 25096 (panel-21-power-) score 674 or sacrifice child
May 16 13:01:06 localhost kernel: Out of memory: Kill process 25097 (gmain) score 674 or sacrifice child
May 18 22:12:32 localhost kernel: Out of memory: Kill process 1499 (panel-21-power-) score 722 or sacrifice child
May 18 22:12:32 localhost kernel: Out of memory: Kill process 1597 (gdbus) score 722 or sacrifice child
May 21 15:00:10 localhost kernel: Out of memory: Kill process 1535 (panel-21-power-) score 641 or sacrifice child
May 22 19:00:16 localhost kernel: Out of memory: Kill process 16136 (panel-21-power-) score 610 or sacrifice child
May 23 19:20:01 localhost kernel: Out of memory: Kill process 27157 (panel-21-power-) score 555 or sacrifice child
May 25 01:30:37 localhost kernel: Out of memory: Kill process 28748 (panel-21-power-) score 649 or sacrifice child
May 26 04:25:15 localhost kernel: Out of memory: Kill process 16726 (panel-21-power-) score 587 or sacrifice child
May 27 17:13:57 localhost kernel: Out of memory: Kill process 1500 (panel-21-power-) score 647 or sacrifice child
May 28 06:39:30 localhost kernel: Out of memory: Kill process 24263 (panel-21-power-) score 448 or sacrifice child

Comment 32 Fedora Update System 2016-06-01 20:48:35 UTC
xfce4-power-manager-1.6.0-4.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-463239c374

Comment 33 Fedora Update System 2016-06-01 20:48:50 UTC
xfce4-power-manager-1.6.0-4.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-d194de6718

Comment 34 Torfinn Ingolfsen 2016-06-02 07:28:18 UTC
(In reply to Torfinn Ingolfsen from comment #31)
> FWIW, it is usually the Xfce panel plugin for xfce4-power-manager that gets
> killed.

Here is another way to visualize it:

[tingo@localhost ~]$ date;ps -eF | grep -v grep | grep powerman;uptime
Thu Jun  2 09:22:48 CEST 2016
tingo     8177  1406  0 1223742 4473720 1 01:24 ?      00:04:07 /usr/lib64/xfce4/panel/wrapper-2.0 /usr/lib64/xfce4/panel/plugins/libxfce4powermanager.so 21 18874406 power-manager-plugin Power Manager Plugin Display the battery levels of your devices and control the brightness of your display
 09:22:48 up 3 days, 23:22,  2 users,  load average: 0.59, 0.41, 0.47
[tingo@localhost ~]$ ps -o rss,vsize,etime,cmd -C xfce4-power-manager
  RSS    VSZ     ELAPSED CMD
 4380 486016  3-23:22:46 xfce4-power-manager --restart --sm-client-id 2177d2b17-cbca-4149-99ab-981543447e00
[tingo@localhost ~]$ ps -o rss,vsize,etime,cmd --pid 8177
  RSS    VSZ     ELAPSED CMD
4501440 4962220 08:01:11 /usr/lib64/xfce4/panel/wrapper-2.0 /usr/lib64/xfce4/panel/plugins/libxfce4powermanager.so 21 18874406 power-

In other words: it is the plugin, not xfce4-power-manager itself that shows the problem.

Comment 35 poma 2016-06-02 08:42:02 UTC
$ ps -eF | grep [p]owerman
poma     27779 27054  0 103977 28092  0 Jun01 ?        00:00:00 /usr/lib64/xfce4/panel/wrapper-2.0 /usr/lib64/xfce4/panel/plugins/libxfce4powermanager.so 21 16780926 power-manager-plugin [...]

$ ps -o rss,vsize,etime,cmd -C xfce4-power-manager
  RSS    VSZ     ELAPSED CMD
27112 409380    20:19:06 xfce4-power-manager --debug

$ ps -o rss,vsize,etime,cmd --pid 27779
  RSS    VSZ     ELAPSED CMD
28092 415908    20:20:17 /usr/lib64/xfce4/panel/wrapper-2.0 /usr/lib64/xfce4/panel/plugins/libxfce4powermanager.so 21 16780926 power-manager-plugi


$ LD_PRELOAD=/usr/lib64/libmemusage.so memusage /usr/lib64/xfce4/panel/plugins/libxfce4powermanager.so

Memory usage summary: heap total: 146363, heap peak: 66528, stack peak: 9328
         total calls   total memory   failed calls
 malloc|       4879         140123              0
realloc|         28           6208              0  (nomove:20, dec:0, free:0)
 calloc|          1             32              0
   free|       3872          93458
Histogram for block sizes:
    0-15           2299  46% ==================================================
   16-31           1155  23% =========================
   32-47            798  16% =================
   48-63            220   4% ====
   64-79            126   2% ==
   80-95             12  <1% 
   96-111            12  <1% 
  112-127           213   4% ====
  128-143             3  <1% 
  160-175             1  <1% 
  192-207            10  <1% 
  208-223             5  <1% 
  224-239             3  <1% 
  256-271             4  <1% 
  304-319             1  <1% 
  320-335             1  <1% 
  384-399             1  <1% 
  432-447             1  <1% 
  448-463             1  <1% 
  480-495             2  <1% 
  496-511             1  <1% 
  512-527             6  <1% 
  544-559             2  <1% 
  576-591             3  <1% 
  640-655             1  <1% 
  704-719             1  <1% 
  768-783             2  <1% 
  832-847             1  <1% 
  896-911             1  <1% 
  944-959             1  <1% 
  960-975             1  <1% 
 1024-1039            2  <1% 
 1088-1103            1  <1% 
 1152-1167            7  <1% 
 1216-1231            1  <1% 
 1264-1279            1  <1% 
 1520-1535            1  <1% 
 1600-1615            1  <1% 
 1680-1695            3  <1% 
 2048-2063            1  <1% 
 2192-2207            1  <1% 
 7504-7519            1  <1% 

$ mtrace /usr/lib64/xfce4/panel/plugins/libxfce4powermanager.so
No memory leaks.

Comment 36 Fedora Update System 2016-06-02 09:00:38 UTC
xfce4-power-manager-1.6.0-4.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-d194de6718

Comment 37 Fedora Update System 2016-06-02 16:22:19 UTC
xfce4-power-manager-1.6.0-4.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-463239c374

Comment 38 poma 2016-06-02 18:35:17 UTC
Backport a patch to fix a memory leak during initialization in GDBusProxy
https://bugzilla.redhat.com/show_bug.cgi?id=1342253

Comment 39 Mukundan Ragavan 2016-06-03 00:46:24 UTC
(In reply to poma from comment #38)
> Backport a patch to fix a memory leak during initialization in GDBusProxy
> https://bugzilla.redhat.com/show_bug.cgi?id=1342253

I guess once it's in stable, we can build it against backported glib to fix this once and for all ... hopefully.

Comment 40 Torfinn Ingolfsen 2016-06-03 07:04:59 UTC
Still a problem with xfce4-power-manager 1.6.0.4 installed.
[tingo@localhost ~]$ date;ps -eF | grep -v grep | grep powerman;uptime
Fri Jun  3 01:08:27 CEST 2016
tingo     1508  1440  0 611771 2011488 3 Jun02 ?       00:01:48 /usr/lib64/xfce4/panel/wrapper-2.0 /usr/lib64/xfce4/panel/plugins/libxfce4powermanager.so 21 18874406 power-manager-plugin Power Manager Plugin Display the battery levels of your devices and control the brightness of your display
 01:08:27 up  3:47,  2 users,  load average: 0.30, 0.34, 0.38

[tingo@localhost ~]$ ps -o rss,vsize,etime,cmd --pid 1508
  RSS    VSZ     ELAPSED CMD
2016768 2447348 03:47:57 /usr/lib64/xfce4/panel/wrapper-2.0 /usr/lib64/xfce4/panel/plugins/libxfce4powermanager.so 21 18874406 power-

[tingo@localhost ~]$ date
Fri Jun  3 09:01:21 CEST 2016
[tingo@localhost ~]$ ps -o rss,vsize,etime,cmd --pid 1508
  RSS    VSZ     ELAPSED CMD
6181104 6640340 11:40:14 /usr/lib64/xfce4/panel/wrapper-2.0 /usr/lib64/xfce4/panel/plugins/libxfce4powermanager.so 21 18874406 power-

[tingo@localhost ~]$ sudo dnf list xfce4-power*
Last metadata expiration check: 1:28:28 ago on Fri Jun  3 07:34:41 2016.
Installed Packages
xfce4-power-manager.x86_64                                               1.6.0-4.fc23                                               @updates-testing

Comment 41 poma 2016-06-03 13:40:45 UTC
(In reply to Torfinn Ingolfsen from comment #40)
[...]
  RSS    VSZ     ELAPSED CMD
2016768 2447348 03:47:57 libxfce4powermanager.so
6181104 6640340 11:40:14 libxfce4powermanager.so

Comment 42 poma 2016-06-03 13:41:30 UTC
$ ps -o rss,vsize,etime,cmd -C xfce4-power-manager
  RSS    VSZ     ELAPSED CMD
26456 484420       07:15 xfce4-power-manager --debug

$ ps -eF | grep [p]owerman
clip     22780 22583  0 122780 27772  1 13:37 ?        00:00:00 /usr/lib64/xfce4/panel/wrapper-2.0 /usr/lib64/xfce4/panel/plugins/libxfce4powermanager.so 18 31458899 power-manager-plugin [...]

$ ps -o rss,vsize,etime,cmd --pid 22780
  RSS    VSZ     ELAPSED CMD
27772 491120       09:05 /usr/lib64/xfce4/panel/wrapper-2.0 /usr/lib64/xfce4/panel/plugins/libxfce4powermanager.so 18 31458899 power-manager-plugi

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

$ ps -o rss,vsize,etime,cmd -C xfce4-power-manager
  RSS    VSZ     ELAPSED CMD
26456 484420       26:53 xfce4-power-manager --debug

$ ps -eF | grep [p]owerman
clip     22780 22583  0 122780 27780  3 13:37 ?        00:00:00 /usr/lib64/xfce4/panel/wrapper-2.0 /usr/lib64/xfce4/panel/plugins/libxfce4powermanager.so 18 31458899 power-manager-plugin [...]

$ ps -o rss,vsize,etime,cmd --pid 22780
  RSS    VSZ     ELAPSED CMD
27780 491120       28:32 /usr/lib64/xfce4/panel/wrapper-2.0 /usr/lib64/xfce4/panel/plugins/libxfce4powermanager.so 18 31458899 power-manager-plugi

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

$ ps -o rss,vsize,etime,cmd -C xfce4-power-manager
  RSS    VSZ     ELAPSED CMD
26456 484420    01:39:01 xfce4-power-manager --debug

$ ps -eF | grep [p]owerman
clip     22780 22583  0 122780 27780  3 13:37 ?        00:00:00 /usr/lib64/xfce4/panel/wrapper-2.0 /usr/lib64/xfce4/panel/plugins/libxfce4powermanager.so 18 31458899 power-manager-plugin [...]

$ ps -o rss,vsize,etime,cmd --pid 22780
  RSS    VSZ     ELAPSED CMD
27780 491120    01:40:54 /usr/lib64/xfce4/panel/wrapper-2.0 /usr/lib64/xfce4/panel/plugins/libxfce4powermanager.so 18 31458899 power-manager-plugi

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  RSS    VSZ     ELAPSED CMD
26456 484420       07:15 xfce4-power-manager
26456 484420       26:53 xfce4-power-manager
26456 484420    01:39:01 xfce4-power-manager


  RSS    VSZ     ELAPSED CMD
27772 491120       09:05 libxfce4powermanager.so
27780 491120       28:32 libxfce4powermanager.so
27780 491120    01:40:54 libxfce4powermanager.so


$ rpm -q xfce4-power-manager glib2
xfce4-power-manager-1.6.0-4.fc22.x86_64
glib2-2.46.2-2.fc22.x86_64

Comment 43 poma 2016-06-03 18:12:18 UTC
  RSS    VSZ     ELAPSED CMD
26456 484420       07:15 xfce4-power-manager
26456 484420       26:53 xfce4-power-manager
26456 484420    01:39:01 xfce4-power-manager
26456 484420    03:22:34 xfce4-power-manager
26456 484420    04:38:22 xfce4-power-manager
26456 484420    06:27:33 xfce4-power-manager


  RSS    VSZ     ELAPSED CMD
27772 491120       09:05 libxfce4powermanager.so
27780 491120       28:32 libxfce4powermanager.so
27780 491120    01:40:54 libxfce4powermanager.so
27780 491120    03:24:41 libxfce4powermanager.so
27780 491120    04:40:00 libxfce4powermanager.so
27780 491120    06:29:07 libxfce4powermanager.so

The result looks OK


Torfinn, good luck with your diesel machine ;)

Comment 44 Fedora Update System 2016-06-03 21:53:26 UTC
xfce4-power-manager-1.6.0-4.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 45 Mukundan Ragavan 2016-06-08 00:25:11 UTC
Reopening this.

glib2 was pushed with backported fixes today. Will rebuild xfpm for Fedora 23 with the backported glib2 and submit an update.

Comment 46 Fedora Update System 2016-06-18 18:51:02 UTC
xfce4-power-manager-1.6.0-4.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.