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

Ktorrent just freezes

Tags: None
(comma "," separated)
Back2Cali
Registered Member
Posts
35
Karma
0

Ktorrent just freezes

Sun Sep 17, 2006 12:38 pm
Hi eveybody!

I'm new to the forum and would first of all like to thank everybody involved with Ktorrent for creating such a great app.

Unfortunately I have a big problem with using it. Like many others I wanted to get away from the bloated azureus and decided to use Ktorrent because of its enormous potential.
After installing the current version (2.0.2) and importing setting up and all the stuff needed to do before downloading the first data I added a torrent file to check out if everything is OK. Now here comes the problem:
Whenever I run ktorrent for a couple of minutes it freezes and cannot be shut down. I even cannot shut it down using the kill command. The system just don't do anything when using kill ktorrent. So the only thing left to do is restarting my computer.

So maybe you guys here can help me finding out what the problem is and how to solve it.

BTW.: I'm using archlinux on a pentium4 2.53GHz with 1GB Ram and several harddisks (IDE and Sata). Current Kernel is 2.6.17 and KDE is 3.5.4.

If more information needed, please let me know!

Thanks!
imported4-Ivan
Registered Member
Posts
819
Karma
0

Sun Sep 17, 2006 2:06 pm
Does this happen while you're downloading a torrent or everything is stopped? And if you're downloading, does this happen with every torrent or just one?
Back2Cali
Registered Member
Posts
35
Karma
0

Sun Sep 17, 2006 2:46 pm
It happens with every torrent file I've been using right know (probably around 30 different ones).

I haven't checked out if it also happens while not having a torrent file in the download list. If it also happens while not downloading anything I'll let you know, but right know I would say it only happens while downloading...


[edit]
I've checked it for some time now, letting Ktorrent run without downloading anything. The programm runs without freezing or any crash at all. So it's definitely only causing problems when downloading something.
Does that help you locating the error?
imported4-Ivan
Registered Member
Posts
819
Karma
0

Sun Sep 17, 2006 5:34 pm
It would be great to know where in code does this freeze happen, so maybe you could try finding out that information.

A little help (don't know if it'll work though). Type 'gdb' in terminal. After gdb interface shows up, type 'attach PID' and replace PID with KTorrent PID ("ps aux | grep ktorrent" to find out KTorrents PID). When(if) gdb attaches KT type 'break' and then type 'bt' to show stack. Copy/paste that output here and that should help us see the problem.

But, seeing that you have problems with killing KT I'm not sure this will work but it's worth a try.
Back2Cali
Registered Member
Posts
35
Karma
0

Sun Sep 17, 2006 5:58 pm
Nope, it didn't work.

Ktorrent keeps running. The tray Icon doesn't show any more information. It's just there. When I want to bring the ktorrent window to the front the whole window is just screwed up. No torrents, iconts, menus. Just the gray and white background. And closing doesn't work. Even the question about killing the no longer reacting application doesn't appear. So I guess we need to find another way for me to give you more information.... :wink:
imported4-Ivan
Registered Member
Posts
819
Karma
0

Mon Sep 18, 2006 6:42 pm
Say, what exactly part of my post did not work? You weren't able to attach KTorrent or something else? What happened?

I'm not sure I have anymore suggestions on how to help you find out what's wrong... George, maybe you'd have some tips?
Back2Cali
Registered Member
Posts
35
Karma
0

Tue Sep 19, 2006 11:36 am
The problem is, when I want to run gdb after ktorrent started freezing, I only have a couple of seconds left before the whole system freezes. So it's impossible for me to run gdb and post the output here since it's happening very fast.

If you need the output of gdb while ktorrent doesn't download anything please let me know. As I said before all this only happens if there is at least one file in the download list...


Thanks!
Moshroum
Registered Member
Posts
63
Karma
0

Tue Sep 19, 2006 2:45 pm
If I understand it correct, you start gdb when it started to freeze, but when it freezes the whole system goes crazy?

Why don't you start ktorrent, "ps ax|grep ktorrent" -> start gdb, "attach PID", "c"....wait until it starts to freeze, "ctrl+c", "bt", then save backtrace and "c", ctrl+c, "bt" again to look if the backtrace differs
imported4-Ivan
Registered Member
Posts
819
Karma
0

Tue Sep 19, 2006 3:18 pm
Yeah, Back2Cali try what Moshroum suggested.
Back2Cali
Registered Member
Posts
35
Karma
0

Tue Sep 19, 2006 4:13 pm
Hi!

I tried what was explained by moshroum. I started Ktorrent, started gdb in a terminal window, attached the pid to gdb, entered c for continuing, opened a torrent file in ktorrent and waited. But here's the problem:

When Ktorrent starts acting crazy I cannot enter ctrl+c in the console. I also cannot get the backtrace with bt, because nothing works. I can enter letters but when I want to press enter, ctrl+c or anithing like that, the system doesn't react so I can't get any output.
A couple of seconds later I can't switch windows any longe and the whole system freezes.

Now after restarting I wanted to open Ktorrent (the current torrent file is still in the download list) and the system freezes immediately. Only deleting the tor0 folder makes me able to start ktorrent again without freezing my system. But after adding another torrent file the same thing happens again and again.....

That's why I can't get any output from gdb.... :(
George
Moderator
Posts
5421
Karma
1

Tue Sep 19, 2006 4:56 pm
And if you startup in GDB :

gdb /usr/bin/ktorrent

run --nofork

Then make sure your gdb window has focus so you can do CTRL + C, when it starts freezing
Back2Cali
Registered Member
Posts
35
Karma
0

Tue Sep 19, 2006 7:44 pm
This is what I got in the first try. Even after using ctrl+c ktorrent still doesn't close, but at least, the system doesn't freeze.
Here's the output from gdb:

Program received signal SIGINT, Interrupt.
[Switching to Thread -1232209408 (LWP 10128)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb6b7ed8b in __open_nocancel () from /lib/libc.so.6
#2 0xb6b31592 in __GI__IO_file_open () from /lib/libc.so.6
#3 0xb6b31744 in _IO_new_file_fopen () from /lib/libc.so.6
#4 0xb6b268e9 in __fopen_internal () from /lib/libc.so.6
#5 0xb6b28dea in fopen64 () from /lib/libc.so.6
#6 0xb73774d2 in QFile::open () from /opt/qt/lib/libqt-mt.so.3
#7 0xb76f2bfd in KConfigINIBackEnd::getEntryMap () from /opt/kde/lib/libkdecore.so.4
#8 0xb7785394 in KConfigINIBackEnd::writeConfigFile () from /opt/kde/lib/libkdecore.so.4
#9 0xb7787b4b in KConfigINIBackEnd::sync () from /opt/kde/lib/libkdecore.so.4
#10 0xb769ece8 in KConfigBase::sync () from /opt/kde/lib/libkdecore.so.4
#11 0xb5f1ce63 in kt::InfoWidget::~InfoWidget () from /opt/kde/lib/kde3/ktinfowidgetplugin.so
#12 0xb5f16603 in kt::InfoWidgetPlugin::unload () from /opt/kde/lib/kde3/ktinfowidgetplugin.so
#13 0xb7ebfbd0 in kt::PluginManager::unloadAll () from /opt/kde/lib/libktorrent.so.0
#14 0x0806e301 in QListViewItem::removeItem ()
#15 0x0805f097 in QGList::count ()
#16 0xb79337e0 in KMainWindow::shuttingDown () from /opt/kde/lib/libkdeui.so.4
#17 0xb7a7e0a1 in KMainWindow::qt_invoke () from /opt/kde/lib/libkdeui.so.4
#18 0x08061770 in QGList::count ()
#19 0xb70ecf19 in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#20 0xb70edb2d in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#21 0xb76ba2dc in KApplication::shutDown () from /opt/kde/lib/libkdecore.so.4
#22 0xb76cee2b in KApplication::qt_emit () from /opt/kde/lib/libkdecore.so.4
---Type <return> to continue, or q <return> to quit---
#23 0xb76cee6b in KUniqueApplication::qt_emit () from /opt/kde/lib/libkdecore.so.4
#24 0x080789ef in QValueListPrivate<int>::at ()
#25 0xb70eced6 in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#26 0xb70edb2d in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#27 0xb740d6ba in QApplication::aboutToQuit () from /opt/qt/lib/libqt-mt.so.3
#28 0xb70a5570 in QEventLoop::enterLoop () from /opt/qt/lib/libqt-mt.so.3
#29 0xb70a53a6 in QEventLoop::exec () from /opt/qt/lib/libqt-mt.so.3
#30 0xb708e87f in QApplication::exec () from /opt/qt/lib/libqt-mt.so.3
#31 0x0805e0ab in ?? ()
#32 0xb6ae7808 in __libc_start_main () from /lib/libc.so.6
#33 0x0805dcd1 in ?? ()

After quitting gdb, ktorrent finally closed. Before that it was frozen the way I explained before.

I hope this helps.....

Thanks!
George
Moderator
Posts
5421
Karma
1

Wed Sep 20, 2006 4:06 pm
Where you interrupt, KT is shutting down, which is very strange. You interrupted when the infowidget plugin was being unloaded and it was saving it's settings.

Maybe the problem is in a plugin. Can you empty the following file :

~/.kde/share/apps/ktorrent/plugins

Just delete all lines, this will make sure no plugins are loaded.

Then restart KT and load a torrent.
Back2Cali
Registered Member
Posts
35
Karma
0

Wed Sep 20, 2006 6:56 pm
OK, I unloaded all plugins and it runs (for now). So I reactivated all plugins using before except the infowidget plugin.
Right now it looks like ktorrent keeps running. So I guess we found the reason for all the crashes.

Maybe there's hope for a working infowidget plugin in the next release since I usually wanted to use it to get all the extra information??!? :wink:

Anyway... Thanks a lot for the support. I'll keep the torrent running and let you guys know if something else unusual happens...

Thanks a lot again...
Back2Cali
Registered Member
Posts
35
Karma
0

Thu Sep 21, 2006 2:47 pm
Well I guess I was too fast in being happy and thinking that it works now. I tried it during the night and the same errors happened again. So I disabled all plugins and checked it out again, but the results are the same. After a couple of minutes ktorrent can't be closed but this time it can't be closed eben by pressing ctrl+c within gdb. Even if I want to close the terminal window it won't let me do that and the only thing left to do is pushing the reset button.....

I guess I have to keep crossing my thumbs and continue to hope for the next release since I can't even give you the output from gdb because of the behaviour I mentioned above..... sorry.... :cry:

Thanks anyway for the support! It lets me know that this is the torrent program to use if it won't crash my system any longer. Gonne wait for the next release. I hope it won't take too long... :wink:


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar