aMule Forum

English => en_Bugs => Topic started by: Galizah on February 13, 2004, 03:39:59 PM

Title: 2 Bugs in aMule 1.2.5
Post by: Galizah on February 13, 2004, 03:39:59 PM
Hi folks,

there are two massive bugs in the new version.
I dunno if this apllies only for me, but I thought I should tell you about it...

My System:
Software:
Gentoo Linux 1.4 (Stage 2 install)
GTK 1.2
wxWindows 2.4

Hardware:
Pentium 4 2,66 Ghz (800 FSB)
1 GB RAM
200 GB HDD (aMule on 20 GB ReiserFS, Incoming, Temp, Shared on 170 GB FAT32)

1. CPU time
After a while aMule takes nearly 80% CPU time. All preferrences which you told on this board I have made. Without any success. I tried it with the source version (1.2.5) and the CVS version. There was no difference.

2. MET Files
When aMule and/or X crashed all MET and MET.BAK files are only zero byte files. So all downloads are gone. Tried to backup (before it crashes) and copy in the files again, but they aren't accepted.
In the Changelog of the 1.2.5 version you told that this problem was fixed, but it seems to be not.

If you need more information, please tell me!

Hope someone can help me...  :(

Greetings

Galizah
Title: Re: 2 Bugs in aMule 1.2.5
Post by: deltaHF on February 13, 2004, 03:47:12 PM
1. tell me your tweaks preferences -> refresh dl/up list

try to set it to realtime and be sure your wxgtk isn't linked against gtk2

2. hum, strange .. i let my amule crash smth if we need some bt's but the met files r always ok (amule & temp on reiser).. seems to be a vfat problem

greets
Title: Re: 2 Bugs in aMule 1.2.5
Post by: Kry on February 13, 2004, 03:48:58 PM
Weird.

1) Did you ompile wx yourself or use a packages? wx packages seem to be bugged on some distros

2) even more weird. a .BAK file is NEVER modified if .met is 0 size. the problem cold be the linux buffer before it writes to disk...
Title: Re: 2 Bugs in aMule 1.2.5
Post by: Galizah on February 13, 2004, 04:00:26 PM
Woow this was a fast answer...  :baby:

Here's mine:

@deltaHF:
1)
It is set to realtime.
Client queue --> 2000.
File buffersize --> 240000 bytes.
Verbose --> off
Server update interval --> off
Max. connections every 5 sek. --> 20

2)
Hmm.. maybe a fat problem. I will test it.

@Kry:
1)
I use Gentoo stage 2 install, there is _EVERYTHING_ self compiled!  :D

2)
Same as for deltaHF. I will test it.

---

Tanks for great/fast help...

Are there any other suggestions?

Greetings

Galizah
Title: Re: 2 Bugs in aMule 1.2.5
Post by: Galizah on February 13, 2004, 04:01:55 PM
Woops... wxWindows is linked against GTK 1.2!
Title: Re: 2 Bugs in aMule 1.2.5
Post by: deltaHF on February 13, 2004, 04:02:12 PM
wxgtk linked against...?
Title: Re: 2 Bugs in aMule 1.2.5
Post by: deltaHF on February 13, 2004, 04:02:52 PM
Quote
Originally posted by Galizah
Woops... wxWindows is linked against GTK 1.2!

gtk 1.x is good
Title: Re: 2 Bugs in aMule 1.2.5
Post by: Galizah on February 13, 2004, 04:05:30 PM
And very fast again... great!

Maybe there is another problem? Perhaps wxWindows itself? I would give wxWindows 2.5 a try but dunno where to find it. Do you know where to get?

Or do you have another idea?

Greetings

Galizah
Title: Re: 2 Bugs in aMule 1.2.5
Post by: thepolish on February 13, 2004, 04:07:51 PM
Hello,

Gentoo 1.4 here too, and no such problem ... both 1.2.5 and CVS works good

GTK 1.2 & Curl  from sys, wx & amule self compiled

amule on reiserfs, and only 1 Ghz little Via with 256 mo

and just have:

ps u -C amule
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
fox       1536 30.0 12.1 44760 27240 pts/0   R    08:10 241:47 /opt/amule-cvs-db
fox       1537  0.0 12.1 44760 27240 pts/0   S    08:10   0:00 /opt/amule-cvs-db
fox       1538  0.0 12.1 44760 27240 pts/0   S    08:10   0:21 /opt/amule-cvs-db

Is wx from gentoo or compiled yourself ?

the polish
Title: Re: 2 Bugs in aMule 1.2.5
Post by: thepolish on February 13, 2004, 04:11:49 PM
PS: NOTHING is self compiled in gentoo, because it is gentoo which chooses the configure options ... so could be quite different for wx than in DeltaHF howto ...

Ive 2.4.2 and works well, no need 2.5 ... and could be even more difficult with it

mine are:

  458  CFLAGS="-O2 -march=i686 -msse -mmmx -mfpmath=sse -fomit-frame-pointer -pipe" CXXLAGS="-O2 -march=i686 -msse -mmmx -mfpmath=sse -fomit-frame-pointer -pipe" ./configure --prefix=/opt/wx --enable-shared --disable-gui --enable-soname --with-zlib=sys --enable-std_iostreams --enable-intl

  475  CFLAGS="-O2 -march=i686 -msse -mmmx -mfpmath=sse -fomit-frame-pointer -pipe" CXXLAGS="-O2 -march=i686 -msse -mmmx -mfpmath=sse -fomit-frame-pointer -pipe" ./configure --prefix=/opt/wx --disable-gtk2 --enable-timedate --enable-gui --enable-protocol --enable-http --enable-ftp --enable-resources --enable-prologio --disable-debug --enable-final --enable-timer --with-gtk --disable-profile --enable-soname --enable-dynamic-loader --enable-std_iostreams --enable-intl

the polish
Title: Re: 2 Bugs in aMule 1.2.5
Post by: Galizah on February 13, 2004, 04:18:32 PM
It's self compiled.

Here is my ps output:
Code: [Select]
ps u -C amule
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
galizah   8150 49.9  15.1 44632 31536 ?       S    07:53  279:40 amule
galizah   8151  0.0  15.1 44632 31536 ?       S    07:53   0:00 amule
galizah   8152  0.0  15.1 44632 31536 ?       S    07:53   0:25 amule

Compiler options:

458 CFLAGS="-O2 -march=pentium4 -msse -mmmx -mfpmath=sse -fomit-frame-pointer -pipe" CXXLAGS="-O2 -march=pentium4 -msse -mmmx -mfpmath=sse -fomit-frame-pointer -pipe" ./configure --prefix=/usr/local/wx --enable-shared --disable-gui --enable-soname --with-zlib=sys --enable-std_iostreams --enable-intl

475 CFLAGS="-O2 -march=pentium4 -msse -mmmx -mfpmath=sse -fomit-frame-pointer -pipe" CXXLAGS="-O2 -march=pentium4 -msse -mmmx -mfpmath=sse -fomit-frame-pointer -pipe" ./configure --prefix=/usr/local/wx --disable-gtk2 --enable-timedate --enable-gui --enable-protocol --enable-http --enable-ftp --enable-resources --enable-prologio --disable-debug --enable-final --enable-timer --with-gtk --disable-profile --enable-soname --enable-dynamic-loader --enable-std_iostreams --enable-intl

It's nearly the same...

Greetings

Galizah
Title: Re: 2 Bugs in aMule 1.2.5
Post by: Galizah on February 13, 2004, 04:22:09 PM
BTW: I don't mean everything is compiled with own options, but every thing is compiled and not installed from binary. It was my wrong diction... sorry about that...
Title: Re: 2 Bugs in aMule 1.2.5
Post by: thepolish on February 13, 2004, 04:24:59 PM
very stange so, with your p4, u should have nearly 5% 10% ...

Code: [Select]
bash-2.05b$ ldd /opt/amule-cvs-dbg/bin/amule
        libwx_gtk-2.4.so.0 => /opt/wx-2.4.2/lib/libwx_gtk-2.4.so.0 (0x4001d000)
        libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x40501000)
        libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x4065a000)
        libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x40693000)
        libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x40696000)
        libdl.so.2 => /lib/libdl.so.2 (0x406bc000)
        libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x406bf000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x406c7000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x406d5000)
        libz.so.1 => /lib/libz.so.1 (0x407b3000)
        libcurl.so.2 => /usr/lib/libcurl.so.2 (0x407c4000)
        libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x407ef000)
        libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x40820000)
        libstdc++.so.5 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.so.
5 (0x4091f000)
        libm.so.6 => /lib/libm.so.6 (0x409d5000)
        libgcc_s.so.1 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc_s.so.1
(0x409f7000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x40a00000)
        libc.so.6 => /lib/libc.so.6 (0x40a52000)
        libgthread-1.2.so.0 => /usr/lib/libgthread-1.2.so.0 (0x40b82000)
        libpng.so.3 => /usr/lib/libpng.so.3 (0x40b85000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40bb1000)
        libtiff.so.3 => /usr/lib/libtiff.so.3 (0x40bcf000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

the polish
Title: Re: 2 Bugs in aMule 1.2.5
Post by: Galizah on February 13, 2004, 04:28:16 PM
Here's mine LDD:

Code: [Select]
ldd /usr/local/bin/amule
        libwx_gtk-2.4.so => /usr/lib/libwx_gtk-2.4.so (0x40020000)
        libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x404eb000)
        libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x4064c000)
        libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x4068d000)
        libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x40690000)
        libdl.so.2 => /lib/libdl.so.2 (0x406b5000)
        libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x406b8000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x406c1000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x406d1000)
        libz.so.1 => /usr/lib/libz.so.1 (0x407b3000)
        libcurl.so.2 => /usr/lib/libcurl.so.2 (0x407c4000)
        libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x407f1000)
        libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x40820000)
        libstdc++.so.5 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libstdc++.so.5 (0x408f2000)
        libm.so.6 => /lib/libm.so.6 (0x409bd000)
        libgcc_s.so.1 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libgcc_s.so.1 (0x409df000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x409e8000)
        libc.so.6 => /lib/libc.so.6 (0x40a37000)
        libgthread-1.2.so.0 => /usr/lib/libgthread-1.2.so.0 (0x40b5e000)
        libpng.so.3 => /usr/lib/libpng.so.3 (0x40b62000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40b8e000)
        libtiff.so.3 => /usr/lib/libtiff.so.3 (0x40bb8000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

I don't know why it uses so damn much cpu time...  ?(

Greetings

Galizah
Title: Re: 2 Bugs in aMule 1.2.5
Post by: deltaHF on February 13, 2004, 04:32:01 PM
try to play a bit with refresh dl/up lists .. disable, enable etc etc

whats your sources hard limit ?
Title: Re: 2 Bugs in aMule 1.2.5
Post by: Kry on February 13, 2004, 04:34:00 PM
you emerge instead of compiling, right?


And, btw, ALWAYS GENTOO!!!!!!!


arg


well, this is the fastest growing thread I've ever seen. can't we stick to irc for real-time stuff? :P
Title: Re: 2 Bugs in aMule 1.2.5
Post by: Galizah on February 13, 2004, 04:35:05 PM
I have already done this.

When set it to "refresh when updated" aMule crashes.

Source hard limit --> 350
Max. connections --> 4000

I'm getting maniac...  ;(

Greetings

Galizah
Title: Re: 2 Bugs in aMule 1.2.5
Post by: Galizah on February 13, 2004, 04:36:36 PM
No I don't.

I compile every amule stuff myself. Only the system stuff is emerged.

Greetings

Galizah
Title: Re: 2 Bugs in aMule 1.2.5
Post by: deltaHF on February 13, 2004, 04:41:16 PM
Quote
Originally posted by Galizah

When set it to "refresh when updated" aMule crashes.


run amule under gdb plz (howto in bt's forum) and post the output there plz
Title: Re: 2 Bugs in aMule 1.2.5
Post by: Galizah on February 13, 2004, 04:49:50 PM
There seems to be a fix!

When I hide the DL/UL lists I get this:

Code: [Select]
ps u -C amule
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
galizah   8150 17.0  6.3 46004 32916 ?       S    07:53  294:20 amule
galizah   8151  0.0  6.3 46004 32916 ?       S    07:53   0:00 amule
galizah   8152  0.0  6.3 46004 32916 ?       S    07:53   0:25 amule

I will look if it stays there!  :baby:

Thanks for helping. I will post here again, if it gets bad again, okay?

@deltaHF
I will test it...

Greetings

Galizah
Title: Re: 2 Bugs in aMule 1.2.5
Post by: Kry on February 13, 2004, 04:53:37 PM
Galizah: considered self-compiling wx2.4? instead of emerging, I mean. uses to fix stuff
Title: Re: 2 Bugs in aMule 1.2.5
Post by: Fade on February 19, 2004, 01:39:59 AM
Well, on my computer I noticed that aMule CPU usage is directly proportional to the number of file I being downloading (or maybe just the refreash rate).

I tried 3s and 10 sec in the first setting in the Statistics Window (I think it's for the main ul/dl panel) it doesn't seem to change the refreash rate.

On my 2.26GHz CPU, it takes less than 5% when idle but 30% when downloading two files and uploading three files.

I'm using aMule 1.2.6. Here are the library used (with geek command line).

Code: [Select]
[xxx@xxx xxx]$ type amule | cut -f3 -d\ | xargs ldd
        libwx_gtk-2.4.so.0 => /usr/lib/libwx_gtk-2.4.so.0 (0x40023000)
        libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x404ba000)
        libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x40600000)
        libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x4063b000)
        libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x4063e000)
        libdl.so.2 => /lib/libdl.so.2 (0x40664000)
        libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x40667000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4066f000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4067e000)
        libz.so.1 => /lib/libz.so.1 (0x40762000)
        libcurl.so.2 => /usr/lib/libcurl.so.2 (0x40770000)
        libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x4079a000)
        libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x407cc000)
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x408ce000)
        libm.so.6 => /lib/i686/libm.so.6 (0x40987000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x409ab000)
        libpthread.so.0 => /lib/i686/libpthread.so.0 (0x409b4000)
        libc.so.6 => /lib/i686/libc.so.6 (0x40a04000)
        libgthread-1.2.so.0 => /usr/lib/libgthread-1.2.so.0 (0x40b34000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0x40b37000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40b5d000)
        libtiff.so.3 => /usr/lib/libtiff.so.3 (0x40b7d000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)