ktorrent very high memory usage

Bug #291598 reported by Chris Morgan
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ktorrent (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: ktorrent

Left ktorrent running over night and it was using a crazy amount of memory.

Ubuntu intrepid amd64.

$ ktorrent --version
Qt: 4.4.3
KDE: 4.1.2 (KDE 4.1.2)
KTorrent: 3.1.2

$ apt-cache policy ktorrent
ktorrent:
  Installed: 3.1.2+dfsg.1-0ubuntu2
  Candidate: 3.1.2+dfsg.1-0ubuntu2
  Version table:
 *** 3.1.2+dfsg.1-0ubuntu2 0
        500 http://us.archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status

I see ktorrent using 1.2G of memory. There was another bug reported that looks like this issue but it was marked as fixed in 3.1.2+dfsg.1-0ubuntu2, but I'm still seeing the issue here.

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

The other day I had it using 60% of my memory.

Changed in ktorrent:
status: New → Confirmed
Revision history for this message
Bremm (bremm) wrote :

Same here, and memory usage grows fast, at least 1MiB each minute. If I let ktorrent opened for 10 hours, it grows at least 600MiB in memory. This morning I saw it again with more than 700MiB, and starting to "eat" my swap.

$ apt-cache policy ktorrent
ktorrent:
  Instalado: 3.1.2+dfsg.1-0ubuntu2
  Candidato: 3.1.2+dfsg.1-0ubuntu2
  Tabela de versão:
 *** 3.1.2+dfsg.1-0ubuntu2 0
        500 http://archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status

$ uname -a
Linux host 2.6.27-11-generic #1 SMP Thu Jan 15 11:42:36 UTC 2009 x86_64 GNU/Linux

Revision history for this message
Bremm (bremm) wrote :

I'm running the version below (3.1.2+dfsg.1-0ubuntu2.1) and the memory usage is growing faster.

$ apt-cache policy ktorrent
ktorrent:
  Instalado: 3.1.2+dfsg.1-0ubuntu2.1
  Candidato: 3.1.2+dfsg.1-0ubuntu2.1
  Tabela de versão:
 *** 3.1.2+dfsg.1-0ubuntu2.1 0
        500 http://security.ubuntu.com intrepid-security/main Packages
        500 http://archive.ubuntu.com intrepid-updates/main Packages
        500 http://archive.ubuntu.com intrepid-security/main Packages
        100 /var/lib/dpkg/status
     3.1.2+dfsg.1-0ubuntu2 0
        500 http://archive.ubuntu.com intrepid/main Packages

Revision history for this message
Bremm (bremm) wrote :

OK, due to the possibility to run a Debian version of Ktorrent in Ubuntu, I gave myself a try. So far everything is fine.

I've found my answer here: http://ubuntuforums.org/showthread.php?t=1013086

"If you haven't had any luck upgrading to 3.1.5, you might want to take an extreme route and try using the Debian Sid repository (http://packages.debian.org/sid/i386/ktorrent/download). I wouldn't recommend leaving that repo active or using it to upgrade anything else, but it does have the latest version of Ktorrent."

So I did, and got it from here: http://packages.debian.org/sid/amd64/ktorrent/download

The other option "could be" download Ktorrent 3.1.5 and KDE4 upgrades from Jaunty, which could break whole system (and is unnecessary).

Things like that are bad propaganda against the distro, because Ktorrent *is* the default bittorrent client in Kubuntu.

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

The leaks should be fixed in KTorrent 3.2. Marking fix committed for now. I will close this bug once KTorrent 3.2 is released to Kubuntu 9.04.

Changed in ktorrent:
importance: Undecided → Medium
milestone: none → jaunty-alpha-5
status: Confirmed → Fix Committed
Revision history for this message
Jonathan Thomas (echidnaman) wrote :
Download full text (3.3 KiB)

This bug was fixed in the package ktorrent - 3.2+dfsg.1-2ubuntu1

---------------
ktorrent (3.2+dfsg.1-2ubuntu1) jaunty; urgency=low

  * Merge with Debian, remaining changes: (LP: #296433)
    - Use Kubuntu's kde4.mk
    - Build-depend on libboost-serialization1.35-dev since unversioned -dev is
      in universe
    - Change plasma-applet-ktorrent to plasma-widget-ktorrent since we're
      supposed to call them widgets for the users

ktorrent (3.2+dfsg.1-2) experimental; urgency=low

  * Rename plasma-applet-ktorrent to plasma-widget-ktorrent, add
    conflicts/replaces with plasma-applet-ktorrent.
  * Change debian sections:
    - source package, ktorrent, ktorrent-data: net
    - plasma-widget-ktorrent: kde
    - ktorrent-dbg: devel
  * Bump kdebase-workspace-dev build depend to 4:4.2.0.
  * Drop libstreamanalyzer-dev build depend, not needed.

ktorrent (3.2+dfsg.1-1) experimental; urgency=low

  * New upstream release (3.2).
  * Remove 02_appear_as_kde3.2rc1.diff, no longer relevant.
  * Fix issues with debian/watch (lintian warning etc.).

ktorrent (3.2~rc1+svn923353-1) experimental; urgency=low

  * New upstream development snapshot:
    - revision 923353 on 2009-02-08 18:32:38 +0200;
    - translations from 3.2 RC1 tarball;
  * Another attempt to fix "stalled torrents until client restart" problem.
  * Keep disguising as 3.2 RC1 to the rest of the torrent world.

ktorrent (3.2~rc1+svn919439-1) experimental; urgency=low

  * New upstream development snapshot based on the new development release
    (3.2 RC1):
    - includes changes from ktorrent trunk up to r919439 which include
      the fix for annoying "torrent is stalled all the time until client
      restart bug";
    - includes translations from official 3.2 RC1 release tarball;
    - no longer crashes when removing a torrent (Closes: #511451);
  * Bump build depends on KDE 4.2:
    - remove libplasma-dev build depend, rebuild against libplasma3;
    - add build depend on libphonon-dev 4:4.3.0;
    - bump build depends on strigi to 0.6.3.
  * Add 02_appear_as_kde3.2rc1.diff patch to make this snapshot appear as
    3.2 RC1 to the trackers.
  * Disable 01_libbtcore_scramble_soname.diff patch. Pointless.
  * Small update to debian/debhelper/kde4.mk (sync with
    plasma-applet-networkmanager).
  * Install zeroconf plugin.

ktorrent (3.2~beta1+svn902175-1) experimental; urgency=low

  * New upstream development snapshot:
    - Revision 902175 by scripty.
    - Date: 2008-12-27 18:21:46 +0200.
    - Translations as of Sun, 28 Dec 2008 12:00:25 +0200 are included.
  * Do not suggest php5-cli. No longer needed.
  * Update install files.
  * Improve descriptions.
  * Update debian/not-installed.
  * Split off ktorrent plasma applet to plasma-applet-ktorrent package:
    - this "moves" kdebase-workspace-libs4+5 and libplasma dependencies to
      plasma-applet-ktorrent package;
    - make ktorrent package suggest plasma-applet-ktorrent;
    - plasma-applet-ktorrent replaces earlier ktorrent package.
  * Split off architecture independent files to ktorrent-data package.
  * Add debian/installgen file.
  * Update de...

Read more...

Changed in ktorrent:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.