This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Memory Leak

Tags: None
(comma "," separated)
imported4-Anonymous
Registered Member
Posts
329
Karma
0

Memory Leak

Thu Dec 01, 2005 1:53 pm
Hi,

the current svn-version seems to have a memory leak. The program seems to use up another 1MB of ram every 2 or 3 seconds on my system...
George
Moderator
Posts
5421
Karma
1

Thu Dec 01, 2005 6:25 pm
What version of KDE and Qt are you running ?

We have encountered this problem before on kubuntu 5.10 (with KDE 3.4). The memory leaks do not come from our code, I am pretty sure about this, I have spent the whole week looking for them. Neither valgrind, nor other means turn up something.

So the only logical conclusion is that they must be in KDE, Qt or some other library.

Since I upgraded to KDE 3.5, things seem to be going better, memory usage now fluctuates with the number of chunks which are downloading. Which is how its supposed to be.
imported4-Anonymous
Registered Member
Posts
329
Karma
0

Thu Dec 01, 2005 7:22 pm
kde is the new 3.5.0
qt is 3.3.4 (with several gentoo-specific patches.)

After going back to version 1.1 of ktorrent, the memory leak is gone.
Also, I tried disabling all plugins to make sure none of them caused the leak.
George
Moderator
Posts
5421
Karma
1

Sat Dec 03, 2005 12:11 pm
I have a feeling this whole memory leak mess is caused by the switch to KNetwork ...
George
Moderator
Posts
5421
Karma
1

Sat Dec 03, 2005 7:17 pm
Try the latest svn version, this will not use KNetwork.
imported4-Anonymous
Registered Member
Posts
329
Karma
0

Sun Dec 04, 2005 3:22 pm
That fixed the memory leak for me.
wyrmis
Registered Member
Posts
6
Karma
0

Seems to be related problem

Mon Dec 05, 2005 5:18 am
I am having a similar problem. Since I have upgraded to KDE 3.5 (from the rc), my ktorrent will slowly but surely eat up more and more cpu and more and more memory. If left running for more than a couple hours, it will get so bad as to take up most of my sizable swap and to bog down everything. It once got bad enough that I though my computer had locked up.

It takes a lot of CPU and RAM to open it and, oddly enough, even more to close it (as much as it can get, often). It somtimes leaves connections open on close (the more process power it is taking up, the more it will leave open). If I do anything else to connect to the internet (firefox, gaim, etc), then it will take up even more cpu process and more ram (and will not "release" them when I stop using the other application).

I have tried it both with and without plugins, with no change, and I have restricted the number of connections without much change. Upload speed and download speed never get terribly high.

Though one version would occasionally crash, this is the first time I have had any such problems with Ktorrent.

My versions are:
Qt: 3.3.4
KDE: 3.5.0
KTorrent: 1.2dev (svn version gotten 12-4-05. also did the same thing post KDE-upgrade with the svn version obtained about a week ago)
George
Moderator
Posts
5421
Karma
1

Mon Dec 05, 2005 7:59 am
Again, try the really latest SVN version.
George
Moderator
Posts
5421
Karma
1

Tue Dec 06, 2005 5:15 pm
OK, so the memory leaks do not happen, when we stop using KNetwork ..., I will have to alert Thiago about this.
Pär H
Registered Member
Posts
28
Karma
0

Mon Dec 12, 2005 6:17 am
Memory Leak probably still happens, with KNetwork I ran out of memory in less than a day, now I runs out of memory in 7-8 days.
George
Moderator
Posts
5421
Karma
1

Mon Dec 12, 2005 7:05 pm
It's an annoying ****, this memory leak.
ashl1
Registered Member
Posts
19
Karma
0
OS

Sun Mar 01, 2009 7:19 am
I have problem with increasing using memory too.
I have this problem on KDE 3.5. Now I have KDE 4.2 and this problem didn`t resolve.
I have QT-4.4.2-r1. I don`t use KNetwork.
wumpyr
Registered Member
Posts
7
Karma
0

Thu Mar 05, 2009 10:46 am
I just noticed on my gentoo box with ktorrent 3.2 running for 5 days, kde 4.2.0 and qt 4.5rc1 that ktorrent is chewing up 2229M VIRT, 923M RES, 17M SHR. hmm....
ashl1
Registered Member
Posts
19
Karma
0
OS

Thu Mar 05, 2009 5:25 pm
Yes. My System is Gentoo too. And i have a problem when KTorrent working for a long time such as a few days. It's not increase quickly such as 1 minute - 1 megabyte. No, it's false.
M... I noticed when i had installed "Preload" the memory was increasing slower.
George
Moderator
Posts
5421
Karma
1

Thu Mar 05, 2009 6:52 pm
The memory leak is in KDE, and should be fixed in KDE 4.2.1, see this bug :

http://bugs.kde.org/show_bug.cgi?id=181810


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar