aMule Forum

English => en_Bugs => Topic started by: BQuick on July 04, 2005, 07:14:50 PM

Title: memory leak
Post by: BQuick on July 04, 2005, 07:14:50 PM
Hi,i m Linux newbie,using Kanotix.I left amule open during the night,in the morning i had 90 MB RAM free out of 1 Gig that i have...Same is happening now again.Used RAM at 680 and rising steadily.
Title: Re: memory leak
Post by: stefanero on July 04, 2005, 08:35:58 PM
can you post
amule --version

thnx
Title: Re: memory leak
Post by: stsp on July 11, 2005, 07:08:01 PM
Re: aMule 2.0.3 memory leak

> can you post
> amule --version
By the way, the friend of mine keeps complaining to me
about that problem every day. He works around it by
restarting amule every few days. He says that 2.0.3
eats up all the memory+swap in 3 days, while 2.0.1
did that in a week, and those old (stable) 1.x didn't
have that problem at all. But it may be (and even more
likely, IMHO) the fault of wx too - between 2.0.1 and 2.0.3
he upgraded wx from 2.5 to 2.6 from CVS. (built as wxGTK
on GTK2)
I have only the remote connection to his machine, but
if you need some specific info on that problem, I, as well,
can try to get it out.
Title: Re: memory leak
Post by: Kry on July 11, 2005, 07:16:30 PM
It's wx + GTK2 fault.
Title: Re: memory leak
Post by: stsp on July 11, 2005, 07:35:56 PM
> It's wx + GTK2 fault.
Hmm? Could you please be a bit less terse, or at least
maybe you can refer me elsewhere for some info on that?
Title: Re: memory leak
Post by: stsp on July 11, 2005, 07:45:01 PM
I mean, if I want to find a work-around, that info is
definitely not enough. Where exactly the problem is,
or how it can be avoided? It is just that the aMule
is almost useless in that state (restarting every few days
is no good), so finding a work-around looks unavoidable
for me as an user.
Title: Re: memory leak
Post by: stefanero on July 11, 2005, 08:44:11 PM
there is no workaround to the mem leak within gtk2 and wxGTK...
those two libs dont work so great together, so the mem leaks...

gkt1 is better or mem usage
Title: Re: memory leak
Post by: lfroen on July 12, 2005, 02:10:01 PM
imho wx2.6 + gtk2 don't suffer from this
Title: Re: memory leak
Post by: stsp on July 12, 2005, 07:42:48 PM
stefanero:
> there is no workaround to the mem leak within gtk2 and wxGTK...
> those two libs dont work so great together, so the mem leaks...
With GTK being, AFAIK, the primary target of wx...
Not a best days for aMule, I'd say:)

> gkt1 is better or mem usage
I really can't move to gtk1. I know it used to work better with
wx, but now I think it is pretty much dead (correct me if I am
wrong). Really, why do you think the wxUniversal is not an
option to try?

lfroen:
> imho wx2.6 + gtk2 don't suffer from this
Any ideas how the one can figure this out? If I create, say,
the memprof logs (and attach them here), will this help?
Or some other tools to try?
Title: Re: memory leak
Post by: stefanero on July 12, 2005, 08:35:40 PM
a nice mem  tool is valgrind,
 and there is some help on valgrind on wiki.amule.org

about the mem bug with wxGTK - gtk2

well tis not our fault that wxWidgets and gkt2 dont work so great together...not much we acn do about it...
about the wxUniversal question, if you link wxUniversal against gtk2 its no difference
Title: Re: memory leak
Post by: stsp on July 12, 2005, 09:09:59 PM
> and there is some help on valgrind on wiki.amule.org
Thanks for the pointer.

> about the wxUniversal question, if you link wxUniversal against gtk2 its no difference
I thought it links with Xlib only, so that to provide all
the widgets itself. I.e. AFAIK it doesn't need GTK at
all - is this wrong?