Bug 337260 - kded4 leaks a lot of memory (unrelated to powerdevil)
Summary: kded4 leaks a lot of memory (unrelated to powerdevil)
Status: RESOLVED DUPLICATE of bug 271934
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: 4.13.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-09 08:11 UTC by timshel
Modified: 2014-07-12 14:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
valgrind log of kded4 after half day (1.67 MB, text/plain)
2014-07-09 08:13 UTC, timshel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description timshel 2014-07-09 08:11:52 UTC
So with every recent KDE version, from the original one released with openSUSE 12.3 and 13.1, until the latest KDE release 4.13.2 I am always encountering a huge memory leak in kded4.

It takes less then a week of runtime that the kded4 uses nearly 2 GB memory. So I have to restart it regularly to prevent my pc from running out of RAM.

I tried to remove the powerdevil file as described in https://bugs.kde.org/show_bug.cgi?id=271934#c72 but it didn't help so I think this issue is unrelated to theirs.

I have basically the same configuration at home on my laptop without this issue. The only difference I can think of is that I am using NetworkManager on my laptop so maybe not using it might trigger the issue.

I have also resetted the .kde4 directory but it didn't prevented the issue.

I have let run kded4 against valgrind for one day and installed most debuginfo files. If you need any additional information let me know.

Reproducible: Always

Steps to Reproduce:
1. Start KDE
2. Let it run for some hours/days
3. Check the memory consumption of kded4
Actual Results:  
memory consumption of kded4 is growing fast

Expected Results:  
memory consumption of kded4 shouldn't increase much over time

I am using regular openSUSE 13.1 repositories (http://download.opensuse.org/source/distribution/13.1/) but to get the latest KDE version also the repository http://download.opensuse.org/repositories/KDE:/Current/openSUSE_13.1/  .
Comment 1 timshel 2014-07-09 08:13:02 UTC
Created attachment 87657 [details]
valgrind log of kded4 after half day

This is the log of `valgrind --leak-check=full --track-origins=yes kded4 --nofork` after half a day.
Comment 2 Christoph Feck 2014-07-09 09:45:51 UTC
Please try to isolate the offending kded module. For more information, see http://kdepepo.wordpress.com/2011/05/11/troubleshooting-kded4-bugs/
Comment 3 timshel 2014-07-12 13:15:03 UTC
As it turns out it was related to powerdevil. I think I have moved the powerdevil file and still had the issue but the only module responsible for the memory leak seems to be it.

Interestingly powerdevil is part of kdebase4-workspace which still is KDE 4.11 unlike most other kde packages. So I have removed the package for now and with it powerdevil.

Is this a packaging issue or is there no powerdevil anymore in newer KDE versions?

*** This bug has been marked as a duplicate of bug 271934 ***
Comment 4 Christoph Feck 2014-07-12 14:22:58 UTC
KDE Workspace is feature-frozen since 4.11, so there is no newer version. See also http://kde.org/announcements/4.11/