This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Ktorrent crash after a while - Symbol lookup error

Tags: None
(comma "," separated)
Keltosh
Registered Member
Posts
7
Karma
0
I have this crash with ktorrent, so I thought I'd post it here hoping to find a solution/ let you know.

I am downloading 5 torrents: 4 are "normal torrents", the other is a folder containing images for a total of 1500 files. I mentioned this just in case the problem is due to the staggering amount of files... (stupid people who don't compress....) Oh, btw, I use ktorrent on Ubuntu dapper 6.06.1, with gnome, also just in case it helps

The crash message in the console is this one:
symbol lookup error: /usr/lib/libktorrent.s o.0: undefined symbol: _ZNK8KNetwork10KIpAddress12hostIPv4AddrEb
DCOP Cleaning up dead connections.

I'm of course willing to provide any other additional information which may help
George
Moderator
Posts
5421
Karma
1

Thu Sep 07, 2006 5:25 pm
You probably need to upgrade some KDE libraries. You need at least KDE 3.4.

Go to Settings -> About KDE if you don't know where to look for the KDE version.
Keltosh
Registered Member
Posts
7
Karma
0

Sat Sep 09, 2006 1:54 pm
George wrote:You probably need to upgrade some KDE libraries. You need at least KDE 3.4.

Go to Settings -> About KDE if you don't know where to look for the KDE version.


Actually, it told me "Using KDE 3.5.4"
I did a few try, and I confirmed that it's just THAT torrent that gives me mistakes. Sometimes it stops saying: "Error can't write file in /home/keltosh/.kde/share/apps/ktorrent/<folder with the torrent info files..>, Too many files open"

Any other torrent works just fine, thatis why I'm inclined to think that the crash is somehow due to the excessive number of files in that torrent. At any rate, it's not such a big deal, I just wanted you to know
George
Moderator
Posts
5421
Karma
1

Sun Sep 10, 2006 3:32 pm
Can you send me that torrent. So I can try it out myself.
jarlath
Registered Member
Posts
36
Karma
0

Same prob here since 2.0.2 upgrade

Sat Sep 30, 2006 11:46 am
I'm also having this problem. Application crashes within minutes of starting with error
Code: Select all
ja@ja-laptop:~$ ktorrent
X Error: BadDevice, invalid or uninitialized input device 166
  Major opcode:  144
  Minor opcode:  3
  Resource id:  0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 166
  Major opcode:  144
  Minor opcode:  3
  Resource id:  0x0
Failed to open device
ScimInputContextPlugin()
ja@ja-laptop:~$ ktorrent: symbol lookup error: /usr/lib/libktorrent.so.0: undefined symbol: _ZNK8KNetwork10KIpAddress12hostIPv4AddrEb


I'm using KDE 3.5.2 and I never had this problem with the last version. I wouldn't have thought it's a torrent causing it either because when I upgraded, I was still downloading the same torrents.

Should I downgrade?
George
Moderator
Posts
5421
Karma
1

Sat Sep 30, 2006 2:10 pm
I think you should first try installing KTorrent from source.
jarlath
Registered Member
Posts
36
Karma
0

Sun Oct 01, 2006 12:53 pm
Thanks George. I'm trying that, but I'm getting stuck with kde libraries (which I think are installed).
Code: Select all
ja@ja-laptop:~/ktorrent-2.0.2$ ./configure --with-qt-dir=/usr/share/qt3 --with-qt-includes=/usr/share/qt3
checking build system type... i686-pc-linux-gnu

...

checking if Qt needs -ljpeg... no
checking for rpath... yes
checking for KDE... configure: error:
in the prefix, you've chosen, are no KDE headers installed. This will fail.
So, check this please and use another prefix!
ja@ja-laptop:~/ktorrent-2.0.2$                               


What option do I use to point to kde, and which directory do I use please?

Thanks,
Jarlath
George
Moderator
Posts
5421
Karma
1

Sun Oct 01, 2006 1:37 pm
You also need the KDE headers, they are usually part of development packages, and most distros these days do not install these by default.
jarlath
Registered Member
Posts
36
Karma
0

Sun Oct 01, 2006 1:54 pm
I installed a lot of kde libs / dev packages, I'll see if I missed anything. In the meantime, I've written this script that checks if the program is running, and if not, launces it.

Code: Select all
#check-kt
#script to check if ktorrent is still running.
#If not, a new instance is launched.

#!/bin/sh

while true ; do
  ps -A | grep ktorrent

  if test "$?" = "1" ; then
    echo "ktorrent is not running. Starting..."
    ktorrent &
 fi

  sleep 120
done



Save this as 'check-kt' in your home directory. Then from the konsole type
Code: Select all
chmod +x check-kt

Then type
Code: Select all
./check-kt &


There won't be more that 2 minutes downtime per crash with this script running.[/code]


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]