Bug 224287 - krunner using lots of memory
Summary: krunner using lots of memory
Status: RESOLVED DUPLICATE of bug 321327
Alias: None
Product: krunner
Classification: Plasma
Component: general (show other bugs)
Version: 4.9.1
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-26 06:55 UTC by SlashDevDsp
Modified: 2015-02-05 15:02 UTC (History)
13 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot showing the problem (70.96 KB, image/png)
2010-02-22 14:01 UTC, Andrew Muhametshin
Details
screen shot of ksysguard's detaild memory info (168.56 KB, image/png)
2010-09-04 20:02 UTC, Yohan Pereira
Details
Valgrind output (991.26 KB, text/plain)
2012-06-29 10:47 UTC, Marek Zukal
Details
Krunner eating more than 2.4 GB of ram (90.66 KB, image/png)
2012-08-07 07:55 UTC, Alexandre Bonneau
Details
Detailled memory information of Krunner eating more than 2.4 GB of ram (144.07 KB, image/png)
2012-08-07 07:56 UTC, Alexandre Bonneau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SlashDevDsp 2010-01-26 06:55:30 UTC
Version:            (using Devel)
Compiler:          g++ 4.3 
OS:                Linux
Installed from:    Compiled sources

krunner is starting to use a lot of memory (trunk compiled about 1hr ago). let me know if you need further details

kde-devel@dummy:~$ ps axgu | grep -i krunner
kde-devel      723  0.0  0.0   7528   976 pts/2    S+   15:52   0:00 grep -i krunner
kde-devel    31274  0.2  4.0 976908 249864 ?       Sl   15:11   0:06 kdeinit4: krunner [kdeinit]
kde-devel    31464  0.0  0.2 239016 16096 ?        S    15:14   0:00 kdeinit4: kio_trash [kdeinit] trash local:/tmp/kde4-kde-devel/ksocket-kde-devel/klauncherT31212.slave-socket local:/tmp/kde4-kde-devel/ksocket-kde-devel/krunnerV31274.slave-socket
kde-devel    32040  0.0  0.2 239012 16100 ?        S    15:28   0:00 kdeinit4: kio_trash [kdeinit] trash local:/tmp/kde4-kde-devel/ksocket-kde-devel/klauncherT31212.slave-socket local:/tmp/kde4-kde-devel/ksocket-kde-devel/krunnerA31274.slave-socket
Comment 1 SlashDevDsp 2010-01-26 07:06:32 UTC
well when it got to the memory usage (below), pressing alt+f2 does not show krunner any more although I get the following message on console

kglobalaccel(31262) KGlobalAccelImpl::x11Event: Got XKeyPress event
kglobalaccel(31262) GlobalShortcutsRegistry::keyPressed: "Alt+F2" = "Run Command"
knotify(31271) KNotify::event: 238  ref= 0


kde-devel@dummy:~$ ps guax | grep -i krunner
kde-devel     1052  0.0  0.0   7528   976 pts/3    S+   16:03   0:00 grep -i krunner
kde-devel    31274  0.2  4.0 976908 249864 ?       Sl   15:11   0:06 kdeinit4: krunner [kdeinit]
kde-devel    31464  0.0  0.2 239016 16096 ?        S    15:14   0:00 kdeinit4: kio_trash [kdeinit] trash local:/tmp/kde4-kde-devel/ksocket-kde-devel/klauncherT31212.slave-socket local:/tmp/kde4-kde-devel/ksocket-kde-devel/krunnerV31274.slave-socket
kde-devel    32040  0.0  0.2 239012 16100 ?        S    15:28   0:00 kdeinit4: kio_trash [kdeinit] trash local:/tmp/kde4-kde-devel/ksocket-kde-devel/klauncherT31212.slave-socket local:/tmp/kde4-kde-devel/ksocket-kde-devel/krunnerA31274.slave-socket

Also: trying 

$ qdbus org.kde.krunner <PRESSING TAB> just hangs there. I have had to ^C in this case.
Comment 2 Aaron J. Seigo 2010-01-26 07:23:53 UTC
is it repeatable? if so, can you disable individual runners in the configuration dialog until you find the one responsible for the issue? thanks.
Comment 3 Andrew Muhametshin 2010-02-22 14:01:03 UTC
I have a similar problem.
This problem occurs when the activated module "Places" in Kruuner.

KDE-4.4 from Getnoo portage
Comment 4 Andrew Muhametshin 2010-02-22 14:01:59 UTC
Created attachment 41008 [details]
Screenshot showing the problem
Comment 5 Craig Magina 2010-05-13 21:32:57 UTC
I've seen this as well on Kubuntu 10.04 amd64 with KDE 4.4.2.  You can watch krunner keeping growing it's memory usage even though you aren't using it.  I let it grow to over 100M, it was competing with firefox on htop's list.  I then disabled the "Places" module and it stopped growing.  It didn't release the memory though.

I tried to reproduce it after killing the krunner process and re-logging in, but this time, even after re-enabling the "Places" module, it is sitting at a bit over 51M.

Is there anything I can do to further help debug this issue?
Comment 6 Yohan Pereira 2010-09-04 19:59:59 UTC
same problem with krunner on kde-4.5.1. but i think its because of the nepomuk plugin. 
i  disabled all the other plugins and just left nepomuk on, and searched for a few words using krunner. after each query(prefreably one that returns a lot of results) krunners memory usage jumps by arround ~10mb. right now its using 128 mb of ram. on enabling all the other plugins and disabling nepomuk the memory usage is stable arround 20mb even after repeatadly using it.
Comment 7 Yohan Pereira 2010-09-04 20:02:37 UTC
Created attachment 51316 [details]
screen shot of ksysguard's detaild memory info
Comment 8 Marek Zukal 2012-06-29 10:42:32 UTC
still there in kde-workspace-4.8.4-1.fc17, around 100MB after 8 days uptime
in my oppinion the memory gets consumed when krunner lists amarok songs
see the valgrind output for more info
Comment 9 Marek Zukal 2012-06-29 10:47:52 UTC
Created attachment 72212 [details]
Valgrind output

started krunner, a few times typed a few letters to get the list of options and killed the krunner
there is only a part of the output due to the size limits
Comment 10 Myriam Schweingruber 2012-08-06 01:34:19 UTC
Confirmed by different users.
Comment 11 Alexandre Bonneau 2012-08-07 07:54:27 UTC
It's even worse in 4.9, right now krunner is eating 2.5 GB of RAM, and my uptime is just 9h and 52 minutes.. (see screenshots)
Comment 12 Alexandre Bonneau 2012-08-07 07:55:27 UTC
Created attachment 73015 [details]
Krunner eating more than 2.4 GB of ram
Comment 13 Alexandre Bonneau 2012-08-07 07:56:24 UTC
Created attachment 73016 [details]
Detailled memory information of Krunner eating more than 2.4 GB of ram
Comment 14 Conor O'Callaghan 2012-09-25 07:11:34 UTC
I am seeing the same issue on 

Qt: 4.8.2
KDE Development Platform: 4.9.1 "release 561"
Run Command Interface: 0.1
openSUSE 12.1 "Asparagus"
3.1.10-1.16-desktop #1 SMP PREEMPT Wed Jun 27 05:21:40 UTC 2012 (d016078) x86_64 x86_64 x86_64 GNU/Linux

After a few days booted I see the SWAP being eaten for no particular reason, part of it traces back to krunner

 2766 user   20   0 1945m  35m 9936 S      0  0.2   0:21.08 1.9g krunner
Comment 15 Jaime Torres 2012-10-09 09:25:15 UTC
As far as I have seen, the most memory eating plugin is the calculator one.
disable it (if you do not use it) and check if it still eats so much ram.
Comment 16 Lars Ivar Igesund 2014-05-18 10:09:33 UTC
I was just using the calculator runner, and what appeared to be quite sudden, krunner used 65% of my memory according to htop. I have never seen this before, and I use the calculator runner regularly, if not very much.

It was the 3rd or so calculation today, in about 10-15 minutes (so the mem overuse could have risen gradually over that time, but only becoming problematic at the last use, as stuff immediately started to go slow at that point). The last time I started to write the numbers, then remembered to use '=' in front and wrote the full expression with a '=' at the front.

(I think '=' isn't actually needed anymore though?)

I have KDE 4.13.0 via Kubuntu 14.04
Comment 17 Christoph Feck 2014-07-23 14:02:27 UTC
Lars, if you can still reproduce it in Plasma 4.11.10 on KDE 4.13.2, please report it as a new bug.
Comment 18 Fatih Tümen 2014-08-13 17:57:28 UTC
I too am having this problem. v4.13.3

https://bugs.gentoo.org/show_bug.cgi?id=508556#c8
Comment 19 Vishesh Handa 2015-02-05 15:02:02 UTC

*** This bug has been marked as a duplicate of bug 321327 ***