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

3.1.6 Memoy leaks Also on 3.2.0

Tags: None
(comma "," separated)
borsood
Registered Member
Posts
9
Karma
0
OS

3.1.6 Memoy leaks Also on 3.2.0

Tue Feb 10, 2009 1:22 pm
First, I want to thank you all for this wonderful application.

I've been using KTorrent for almost two years
After upgrading Kubuntu 8.10 Ktorrent started to show memory leaks. In some situation the application grew over few hours and used all available memory and swap (3GB).
That version is KTorrent: 3.1.2/KDE: 4.1.4/Qt: 4.4.3

I Installed 3.1.6 (Same KDE&Qt) , but still observe memory leaks. This time it's not as severe as the previous version (~50mb/hour).
My questions are:
1. How can further debug this leak? I don't like to install an unstable release right now.
2. For some reason, only Queue manager button is shown, all other information options (trackers, graphs etc.) are not available. How can I fix that?

Some comments on the installation instructions:
1. cmake should be run from ktorrent-3.X.Y directory, there is no need to make it or cd into it.
2. gtar auto-identifies bzipped tar file so the j lag can be omitted. In addition listing files while extracting can cause errors not to be shown so I recommend to remove the v flag as well.

Thanks again for KTorrent.

Last edited by borsood on Sun Feb 22, 2009 5:21 pm, edited 1 time in total.
George
Moderator
Posts
5421
Karma
1

Re: 3.1.6 Memoy leaks

Tue Feb 10, 2009 2:33 pm
1. How can further debug this leak? I don't like to install an unstable release right now.


You don't have to, it is a KDE problem and is already fixed, the fix will be part of KDE 4.2.1. There are two ways around it :

One is to set LANGUAGE variable for KDE session to the language used in KDE. E.g. to fr for French, de for German, etc. Another is to disable localization for KTorrent alone, through Help->Switch Application Language... (disable localization = set language to US English) The leaky code is then not triggered.

(see http://bugs.kde.org/show_bug.cgi?id=181810 for more details)

2. For some reason, only Queue manager button is shown, all other information options (trackers, graphs etc.) are not available. How can I fix that?


Load the info widget plugin in the settings dialog, if you do not see any plugins in the settings dialog, run kbuildsycoca4 and then restart ktorrent.
borsood
Registered Member
Posts
9
Karma
0
OS

Thu Feb 12, 2009 7:55 pm
Thank you for your quick response.

Running 3.1.2 under LANG=C environment reduced the leaks to a tolerable level.
I wasn't able to restore the buttons (Files, Webseeds, Peers etc.) on the source-built version, so for the time being I'm staying with 3.1.2.
borsood
Registered Member
Posts
9
Karma
0
OS

Sun Feb 22, 2009 5:24 pm
Update:

Ktorrent 3.2.0 still leaks memory (Running under LANG=C). It is not as problematic, but still I need to restart every few days.

Is there a way to debug, or should I get the SVN version for this?


Bookmarks



Who is online

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