systemart / rtgui

Automatically exported from code.google.com/p/rtgui
0 stars 0 forks source link

incorrect torrent sizes on display #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am unsure as to where exactly the problem lies, either in rtgui or in the
XML-RPC interface itself, but here it goes.

http://img.flashtux.org/img132432b13cd0x256cc021.jpg

First torrent's size is 4513MB, second is 6427MB, third is 1405MB, the
fourth is 4725MB and the fifth is 1405MB... all of which display their size
correctly in rTorrent itself, so I am guessing that the issue lies in
rtgui's code. While I have not yet looked at the code, I will check if
needed be.

Original issue reported on code.google.com by user00...@gmail.com on 11 Dec 2007 at 7:18

GoogleCodeExporter commented 9 years ago
Upon looking at the code, get_full_list() is showing a negative number returned 
for 
the data, so either the php extension is not translating properly, or the rpc 
is not 
sending the correct data.

Original comment by user00...@gmail.com on 14 Dec 2007 at 3:01

GoogleCodeExporter commented 9 years ago
Anything over 2GB seems to get a negative back from rTorrent's RPC, this is 
from 
their code aparently... I'll but the rTorrent people.

Original comment by user00...@gmail.com on 14 Dec 2007 at 3:11

GoogleCodeExporter commented 9 years ago
Yes, correct. Issue on 32bit int's and xmlrpc-c. Fixed by updating to xmlrpc-c 
version later than 1.10.x (svn HEAD in my case). This bug is invalid.

Original comment by user00...@gmail.com on 14 Dec 2007 at 6:04

GoogleCodeExporter commented 9 years ago
Thanks for the research.  I *think* I installed xmlrpc-c from an OpenSuse 
package
which would give me 1.06.14...

Any more info regarding this issue gratefully received. I've only got one 
system to
test rtGui against!

Original comment by lemonbe...@gmail.com on 14 Dec 2007 at 8:22

GoogleCodeExporter commented 9 years ago
See this link: http://libtorrent.rakshasa.no/ticket/967

Original comment by user00...@gmail.com on 14 Dec 2007 at 8:36

GoogleCodeExporter commented 9 years ago
I am using the SVN Version of xmlrpc-c, but also get negative numbers. There are
other strange display bugs, too, for example it says one of my torrent files is 
360.3
MB, but it is >4gig (displays fine in rtorrent).

Any change to fix this?

Original comment by rmi6...@gmail.com on 5 Jan 2008 at 11:22

GoogleCodeExporter commented 9 years ago
Note, it's not the SVN version of xmlrpc-c, it is the "advanced" tree in their
repository.

This one: http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/advanced

Original comment by user00...@gmail.com on 5 Jan 2008 at 11:33

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks for your answer, but I used that one. Is it possible that the new 
version may
is disturbed by an older version I had installed (I think it was from the 
ubuntu-reps)?

Another thing is, I also get stragne numbers (like -356%) while hash-checking a 
torrent.

Original comment by rmi6...@gmail.com on 5 Jan 2008 at 11:39

GoogleCodeExporter commented 9 years ago
That is due to the same issue. 64-bit integers are only supported in the 
"advanced"
tree of xmlrpc-c... but if you're using it and you're still getting that, then 
your
issue lies in another place.

Try recompiling the xmlrpc-c advanced sources, installing them and then doing 
the
same for rtorrent. If that does not have any change, then go upstream on 
xmlrpc-c...
it's their library that's the culprit.

Original comment by user00...@gmail.com on 5 Jan 2008 at 11:43

GoogleCodeExporter commented 9 years ago
Ah, the ubuntu repos... that might be it. Have a link handy for me to see the 
.deb info?

Original comment by user00...@gmail.com on 5 Jan 2008 at 11:45

GoogleCodeExporter commented 9 years ago
Sry, Im not very experienced with Linux, so I can only guess what you mean with 
the
.deb info. Maybe this helps you: 
http://packages.ubuntu.com/gutsy/libs/libxmlrpc-c3

I deleted that package, and are currently recompiling everything.

Original comment by rmi6...@gmail.com on 5 Jan 2008 at 11:59

GoogleCodeExporter commented 9 years ago
After recompiling, everything works! Thank you!

Original comment by rmi6...@gmail.com on 6 Jan 2008 at 12:39

GoogleCodeExporter commented 9 years ago
I tried compiling the xmlrpc-c/advanced from svn, but when I start rtorrent now 
I get
an error saying that libxmlrpc_server.so.9 is missing. I can't find a
libxmlrpc_server.so file after the compile, only a libxmlrpc_server.a file. 

I realise this isn't xmlrpc-c support forum, but any help would be appreciated.

Original comment by alan.ole...@gmail.com on 6 Jan 2008 at 9:55

GoogleCodeExporter commented 9 years ago
You also need to recompile rtorrent if you recompile xmlrpc-c.

Original comment by user00...@gmail.com on 6 Jan 2008 at 10:09

GoogleCodeExporter commented 9 years ago

Original comment by lemonbe...@gmail.com on 19 Jan 2008 at 12:02

GoogleCodeExporter commented 9 years ago
I am unable to compile xml-rpc-c from svn... I get an error "2".  I'd mainly 
like to 
see this bug squashed as it is annoying.  It looks like the stable release was 
just a 
few days ago but the advanced release was over a year ago... does that mean the 
new 
xml-rpc has the bug squashed or do I go with the 2007 "advanced" version?  
xml-rpc is 
installed from the repos right now, so either way I'm looking at compiling 
xmlrpc 
myself, but I'd really prefer stability over bleeding-edge.  Thanks!

Original comment by arrrg...@gmail.com on 10 Nov 2008 at 7:03

GoogleCodeExporter commented 9 years ago
The advanced release on the download page is just a dummy. Inside it has a text 
file
telling you to use the svn repository and a older version of xmlrpc-c. I havn't 
tried
the recently-released stable. I'll try it soon(tm).

I'm personally running from svn with revision 1471 of the advanced branch... I 
havn't
seen this issue at all.

Original comment by user00...@gmail.com on 10 Nov 2008 at 4:52

GoogleCodeExporter commented 9 years ago
I tried rtorrent with wTorrent. It can handle big torrents correctly. I tried 
with
over 10 gb file and it shows correct. Hope this error will be fixed some day in 
the
future even issues status is now WontFix...

Original comment by gmo...@gmail.com on 11 Nov 2008 at 7:29

GoogleCodeExporter commented 9 years ago
wTorrent also requires you to compile XMLRPC-C, according to 
http://www.wtorrent-
project.org/trac/wiki/wTorrentInstall

As far as I can work out, this problem is related to Ubuntu (and poss. others) 
standard package of XMLRPC which is why you need to download and compile it 
manually.

I'm very open to any suggestions on how to 'fix' this from rtGui.

Original comment by lemonbe...@gmail.com on 12 Nov 2008 at 7:25

GoogleCodeExporter commented 9 years ago
to be honest, it seems impossible to fix it on rtGui's code, since the xml calls
themselves are already returning incorrect data... perhaps, try sprintf and 
using
"%u" (unsigned) ints... but I don't consider that a proper "fix"

Original comment by user00...@gmail.com on 13 Nov 2008 at 8:09

GoogleCodeExporter commented 9 years ago
Used the copy from the advanced directory, and it worked great!

Thanks.

Original comment by davedau...@gmail.com on 23 Nov 2008 at 7:10

GoogleCodeExporter commented 9 years ago
I don't understand.  I'm compiling from the advanced branch, and it seemed to 
work. 
I recompiled the newest rtorrent and libtorrent.  I run rtorrent, and it shows 
the
old version (0.8.2 not 0.8.4) and so does libtorrent (0.12.2 not 0.12.4).  I 
also
grabbed the newest rtgui (0.2.5), and that still shows 0.2.4.  It looks like 
they all
compiled correctly, and I rebooted the machine (although I figured restarting
rTorrent would be enough...)  Maybe there's something special I have to do?  I 
just
./configure make make install'd all 3, and they all *appeared* to work 
error-free.  I
am not very well-versed in compiling source, however.

Original comment by arrrg...@gmail.com on 2 Dec 2008 at 5:04

GoogleCodeExporter commented 9 years ago
2 arrrghhh,
did you uninstall previous version rTorrent befor compiling newest?

Original comment by Mikhail....@gmail.com on 2 Dec 2008 at 5:58

GoogleCodeExporter commented 9 years ago
arrrghhh, if you compiled it by using just "./configure" it most likely 
installed to
the /usr/local prefix instead of /usr prefix... and I bet that rtorrent linked
against the older libtorrent.

check: /usr/bin/rtorrent should be the old version you had installed and
/usr/local/bin/rtorrent should be a newer version you compiled.

Original comment by user00...@gmail.com on 2 Dec 2008 at 7:03

GoogleCodeExporter commented 9 years ago
I really appreciate the help... I know this isn't the right place for this
assistance, but rtorrent was compiled correctly - and I didn't uninstall the 
old one.
 Now once I uninstalled the old one and reran rtorrent I found it would not run:
XMLRPC not supported.  I recompiled with the ./configure --with-xml-rpc-c and 
when I
do the make I get an error 2.  Perhaps I don't have xml-rpc-c installed 
correctly?  I
installed it from svn, and that install looked like it went successfully.  
Thanks!

Original comment by arrrg...@gmail.com on 3 Dec 2008 at 1:39

GoogleCodeExporter commented 9 years ago
Since you configured xmlrpc-c without --prefix, try configuring rtorrent with:

./configure --with-xmlrpc-c=/usr/local

Original comment by user00...@gmail.com on 3 Dec 2008 at 7:28

GoogleCodeExporter commented 9 years ago
arrrghhh, while cannot speak specifically to your situation, I myself had some
difficulty getting things working from source.  My suggestion is to make sure 
you
remove all three of the related libraries, libtorrent, rtorrent, xmlrpc-c3 (or
whatever your distro calls it), and then recompile.

In my case, I still had the xmlrpc-c3 binary package and lib/rtorrent were 
linking
against that.  While libtorrent had no errors, compiling rtorrent would fail in 
a
fashion that left me bewildered for several days as to what was causing it.

Good luck!

Original comment by llamaXxX@gmail.com on 5 Dec 2008 at 5:51

GoogleCodeExporter commented 9 years ago
I've made a few notes how I compiled XMLRPC-C, libtorrent and rtorrent here: 
http://
code.google.com/p/rtgui/wiki/CompilingRtorrent

Hope it helps.

-Simon

Original comment by lemonbe...@gmail.com on 5 Dec 2008 at 9:25

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Well I was having issues compiling it, and I assumed it hadn't worked.  Well,
evidently it did I just started downloading a 11gb torrent and it shows up 
perfectly
fine in rtgui!  Go figure!

Original comment by arrrg...@gmail.com on 15 Dec 2008 at 3:40