![]() Registered Member ![]()
|
Just tried to use my webinterface to add some torrents but Ktorrent crashed.
It goes to the redirect.html and then crashes KTorrent. It worked fine before but after adding more torrents it started doing this. Downloads: 11 Uploads: 13 [edit] ok I did some testing and put a break in the php (using an If else statement) when i get to 21 KTorrent crashes when i put it back to 20 it works fine. So as long as i'm only displaying 20 torrents it works fine... I'm working on redesigning the webinterface a little bit so it looks better for my needs as soon as I've cleaned up the code I'll post it online. I didn't make any big changes to the code to make it stop working. All I've done so far is change the layout and put an SubStr() in for the torrent name so the table doesn't get so messy any more. [/edit] I'm using 2.1beta1 on a Ubuntu 6.10 edgy eft distro. Thanx, [mad]Berry |
![]() Registered Member ![]()
|
|
![]() Registered Member ![]()
|
|
![]() Registered Member ![]()
|
|
![]() Registered Member ![]()
|
Here's what ktorrent --nofork returns:
|
![]() Registered Member ![]()
|
$ gdb ktorrent
GNU gdb 6.4 .... (gdb) r --nofork Starting program: /usr/kde/3.5/bin/ktorrent --nofork ...... <after crash> (gdb)bt then copy bt output and paste here.
if you have modified c++ code get source from svn (see FAQ) and try if the crash persists.
unzip;strip;touch;finger;mount;fsck;more;yes;umount;sleep
|
![]() Registered Member ![]()
|
I didn't modify the c++ just the PHP.
Sorry didn't understand what you meant hang in there while i get the information you need....
Last edited by madberry on Wed Dec 13, 2006 10:37 am, edited 1 time in total.
|
![]() Registered Member ![]()
|
|
![]() Registered Member ![]()
|
ok here is what i think i know:
currently I have 21 torrents that are in ktorrent. I think it must be a memory problem that has to do with the size of the array $stats (which is deprived from downloadStatus() ) If i do a print_r() on $stats ktorrent freezes. If i try to load everything with the original PHP script ktorrent freezes. If I adapt the script and put in:
which chops the array $stats in two then it loads. I tired the changing the memory_limit in /etc/php5/cli/php.ini from 8MB to 20MB to 50MB to 100MB that didn't help. I'm out of idea's as how to solve this problem. The temporary solution I'm using now is that I made an interfacep2.php in which I changed the line:
That way i can at least see all my torrents. But i would like them in one big list... Does anybody have an idea on how I couls solve this? thanx[mad]Berry |
Registered users: Bing [Bot], Evergrowing, Google [Bot]