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

Can't launch ktorrent

Tags: None
(comma "," separated)
juanmf
Registered Member
Posts
9
Karma
0

Can't launch ktorrent

Mon Nov 20, 2006 8:11 pm
Hi, i just can't launch it!
A few days ago it gorked great but someone at home, wanted to use the pc and I think she just tiped "init 6" to go to windows.
the fact is that when I restarted KDE all the progs that where running came up, except ktorrent, from this day it just crashes in every try to launch...
i recompiled and reinstalled it several times and nothing happends..
PLEASE HELP
here is the crash report:
Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1241610528 (LWP 2403)]
[KCrash handler]
#3 0xb7d58410 in __udivdi3 () from /usr/lib/./libgcc_s.so.1
#4 0xb7e6fc75 in bt::HTTPTracker::doRequest ()
from /usr/local/lib/libktorrent.so.0
#5 0xb7e4ef74 in bt::Tracker::doRequest ()
from /usr/local/lib/libktorrent.so.0
#6 0xb7e4f138 in bt::Tracker::start () from /usr/local/lib/libktorrent.so.0
#7 0xb7e57588 in bt::TorrentControl::continueStart ()
from /usr/local/lib/libktorrent.so.0
#8 0xb7e57368 in bt::TorrentControl::start ()
from /usr/local/lib/libktorrent.so.0
#9 0xb7e8cf1e in bt::QueueManager::startSafely ()
from /usr/local/lib/libktorrent.so.0
#10 0xb7e8bc30 in bt::QueueManager::start ()
from /usr/local/lib/libktorrent.so.0
#11 0x0806e658 in KTorrentCore::start ()
#12 0x0806eada in KTorrentCore::loadExistingTorrent ()
#13 0x0806ee86 in KTorrentCore::loadTorrents ()
#14 0x0805f565 in KTorrent::KTorrent ()
#15 0x08076ce7 in KTorrentApp::newInstance ()
#16 0xb7641342 in KUniqueApplication::processDelayed ()
from /opt/kde/lib/libkdecore.so.4
#17 0xb76417ef in KUniqueApplication::qt_invoke ()
from /opt/kde/lib/libkdecore.so.4
#18 0x08076f47 in KTorrentApp::qt_invoke ()
#19 0xb6fab1ec in QObject::activate_signal ()
from /usr/lib/qt/lib/libqt-mt.so.3
#20 0xb72ce0fa in QSignal::signal () from /usr/lib/qt/lib/libqt-mt.so.3
#21 0xb6fc53dd in QSignal::activate () from /usr/lib/qt/lib/libqt-mt.so.3
#22 0xb6fccd13 in QSingleShotTimer::event () from /usr/lib/qt/lib/libqt-mt.so.3
#23 0xb6f4e95f in QApplication::internalNotify ()
from /usr/lib/qt/lib/libqt-mt.so.3
#24 0xb6f4df5e in QApplication::notify () from /usr/lib/qt/lib/libqt-mt.so.3
#25 0xb7583585 in KApplication::notify () from /opt/kde/lib/libkdecore.so.4
#26 0xb6f3e195 in QEventLoop::activateTimers ()
from /usr/lib/qt/lib/libqt-mt.so.3
#27 0xb6ef88fb in QEventLoop::processEvents ()
from /usr/lib/qt/lib/libqt-mt.so.3
#28 0xb6f60d18 in QEventLoop::enterLoop () from /usr/lib/qt/lib/libqt-mt.so.3
#29 0xb6f60bc8 in QEventLoop::exec () from /usr/lib/qt/lib/libqt-mt.so.3
#30 0xb6f4ebb1 in QApplication::exec () from /usr/lib/qt/lib/libqt-mt.so.3
#31 0x0805e37f in main ()
juanmf
Registered Member
Posts
9
Karma
0

hi, problem olved.

Tue Nov 21, 2006 3:49 am
i could compile it with no errors nw thanks anyway!
the problem was that i tryed to insert an "OUT()" in code to see if i coul see some more info about torrents. in log or in debug mode..
i dont know why but it crashed right after the out() command...
i commented it out and it worked.. does anybody knows (and this is more related with development...) why doesnt it output my text?
his is the line tha i cemmented:
Out(SYS_TRK|LOG_NOTICE) << "Con TorrentRatio = " << s.TorrentRatio << endl;
in debug mode it hungs after printing:
"Con TorrentRatio = <Num>"
George
Moderator
Posts
5421
Karma
1

Tue Nov 21, 2006 7:25 pm
The logging system can be accessed from multiple threads, so to make it work and to not have lines from multiple threads mixed together, the following things happen :

Out() locks the mutex of the log, and endl unlocks it again. This means that any code using Out must close the line with endl, the following code will totaly block ktorrent :

Out() << "Yeehaw !!!!!!!!!!!!!!!!!!!";
Out() << "We will never get here" << endl;

That is pretty much the only reason why it would hang with the logging system. But you used endl, so it should not hang, maybe the compiler used the wrong endl, you should try using bt::endl, that way the correct one is used.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]