aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: A great memleak problem ...  (Read 2448 times)

HayArms

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
A great memleak problem ...
« on: October 27, 2005, 07:45:21 PM »

Hi all, I'm using aMule CVS (one of the lastest snapshots) and I have a problem .... a big problem.

I use debian and I haven't touched the ./configure  option with the exclusion of --prefix and --enable-kad-compile. The C++ Compilator used is gcc 4.0 .

aMule now is up from 2 days and 19 hours.

Here you can see the problem :

Code: [Select]
Output from "top" :
 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 3801 melchior  20   0  558m 417m 8240 D 11.3 41.3 267:09.76 amule

As you can see aMule uses 558 MegaBytes of Memory!!

What's up with aMule?

Thanks
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: A great memleak problem ...
« Reply #1 on: October 27, 2005, 07:51:07 PM »

what wxGTK version?
compiled with gtk1.2 or gtk2 support?
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

HayArms

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: A great memleak problem ...
« Reply #2 on: October 27, 2005, 08:26:09 PM »

apt-get says :

Version: 2.6.1.2

I have maintained the ./configure default library. I think is GTK2 , but I'm not completely sure (I use KDE and GTK1 and GTK2 look quite similar)
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: A great memleak problem ...
« Reply #3 on: October 27, 2005, 09:03:49 PM »

Debians wxgtk is compiled with GTK2 which results in exactly the memleaks you are experiencing up until version 2.6.1. This has been fixed in wxgtk 2.6.2.
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

HayArms

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: A great memleak problem ...
« Reply #4 on: October 27, 2005, 09:20:17 PM »

Quote
Originally posted by thedude0001
Debians wxgtk is compiled with GTK2 which results in exactly the memleaks you are experiencing up until version 2.6.1. This has been fixed in wxgtk 2.6.2.

Do you think I should package libgtk2.6 myself with an updated 2.6.2 version?
« Last Edit: October 27, 2005, 09:20:56 PM by HayArms »
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: A great memleak problem ...
« Reply #5 on: October 27, 2005, 10:40:39 PM »

I could say "yes" and the debian 2.6.2 packages will come out the next day. I could say "no" and they won't come for months. I don't know, it's your call whether you think there's need for such a package. But if you don't have any experience in Debian packaging be advised that this isn't something you get done in a matter of some hours, it's more likely to take you some days. And it might very well all be for the drain ;)
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: A great memleak problem ...
« Reply #6 on: October 28, 2005, 12:12:52 PM »

HayArms,

thedude0001 is right, instead of creating a debian package, compile wx yourself and leave it in a directory in your home.

Open the wx tarball in a directory and:

$ ./configure --enable-debug --disable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --with-opengl --enable-gtk2 --enable-unicode --enable-largefile --prefix=/home/user/wxWidgets-cvsu && make && make install

Don't forget to run aMule like this:
$ LD_LIBRARY_PATH=/home/user/wxWidgets-cvsu/lib /path/to/amule &

Cheers!
Logged

HayArms

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: A great memleak problem ...
« Reply #7 on: October 28, 2005, 01:05:41 PM »

Thanks for the advice, but I think I've succeded in creating a debian package of wxgtk 2.6.2 (I'm compiling it right now). If all goes well I'll make you know if the problem will come back again or not. If it doesn't work ... well, I think that I will follow your advice  :P
Logged