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

Torrent cause 100% CPU Usage even in Queued

Tags: None
(comma "," separated)
User avatar
bassmadrigal
Registered Member
Posts
113
Karma
0
First off... this may have been fixed, but I am unable to compile the new version (more on that later), but I am running ktorrent 3.1.3 on KDE 4.1.0. I realize both of these are old, but I was unable to do a full switchover to KDE4 due to some incompatibilities with my laptop. Thus I am running packages that allow KDE 3 and 4 to coexist. Unfortunately they were never updated past 4.1.0 and the latest ktorrent svn build errors out at 99%. I found today while trying to load a torrent that ktorrent would max out my processor. This was just after I opened the URL and it shows the selection dialog. Even when it sat in a queued or stopped state the processor would be maxed out. The only way to take care of it is to remove the torrent.

I realize that this version is old, and that this problem may have been fixed, so I decided to get the latest svn code and run that. Well it goes all the way through, but then shows the following error.

Code: Select all
Generating moc_applet.cpp
Scanning dependencies of target plasma_applet_ktorrent
[ 99%] Building CXX object plasma/applet/CMakeFiles/plasma_applet_ktorrent.dir/plasma_applet_ktorrent_automoc.o
In file included from /home/jbhansen/program-downloads/ktorrent/build/plasma/applet/moc_applet.cpp:10,
                 from /home/jbhansen/program-downloads/ktorrent/build/plasma/applet/plasma_applet_ktorrent_automoc.cpp:2:
/home/jbhansen/program-downloads/ktorrent/build/plasma/applet/../../../plasma/applet/applet.h:24:32: error: plasma/popupapplet.h: No such file or directory
In file included from /home/jbhansen/program-downloads/ktorrent/build/plasma/applet/../../../plasma/applet/applet.h:27,
                 from /home/jbhansen/program-downloads/ktorrent/build/plasma/applet/moc_applet.cpp:10,
                 from /home/jbhansen/program-downloads/ktorrent/build/plasma/applet/plasma_applet_ktorrent_automoc.cpp:2:
/home/jbhansen/program-downloads/ktorrent/build/plasma/applet/../../../plasma/applet/fadingnavigationwidget.h:27:24: error: Plasma/Frame: No such file or directory
In file included from /home/jbhansen/program-downloads/ktorrent/build/plasma/applet/../../../plasma/applet/applet.h:27,
                 from /home/jbhansen/program-downloads/ktorrent/build/plasma/applet/moc_applet.cpp:10,
                 from /home/jbhansen/program-downloads/ktorrent/build/plasma/applet/plasma_applet_ktorrent_automoc.cpp:2:
/home/jbhansen/program-downloads/ktorrent/build/plasma/applet/../../../plasma/applet/fadingnavigationwidget.h:37: error: ISO C++ forbids declaration of 'Frame' with no type
/home/jbhansen/program-downloads/ktorrent/build/plasma/applet/../../../plasma/applet/fadingnavigationwidget.h:37: error: invalid use of '::'
/home/jbhansen/program-downloads/ktorrent/build/plasma/applet/../../../plasma/applet/fadingnavigationwidget.h:37: error: expected ';' before '*' token
/home/jbhansen/program-downloads/ktorrent/build/plasma/applet/../../../plasma/applet/fadingnavigationwidget.h:52: error: ISO C++ forbids declaration of 'Frame' with no type
/home/jbhansen/program-downloads/ktorrent/build/plasma/applet/../../../plasma/applet/fadingnavigationwidget.h:52: error: invalid use of '::'
/home/jbhansen/program-downloads/ktorrent/build/plasma/applet/../../../plasma/applet/fadingnavigationwidget.h:52: error: expected ';' before '*' token
In file included from /home/jbhansen/program-downloads/ktorrent/build/plasma/applet/moc_applet.cpp:10,
                 from /home/jbhansen/program-downloads/ktorrent/build/plasma/applet/plasma_applet_ktorrent_automoc.cpp:2:
/home/jbhansen/program-downloads/ktorrent/build/plasma/applet/../../../plasma/applet/applet.h:50: error: expected class-name before '{' token
/home/jbhansen/program-downloads/ktorrent/build/plasma/applet/../../../plasma/applet/applet.h:58: error: 'KConfigDialog' has not been declared
In file included from /home/jbhansen/program-downloads/ktorrent/build/plasma/applet/plasma_applet_ktorrent_automoc.cpp:2:
/home/jbhansen/program-downloads/ktorrent/build/plasma/applet/moc_applet.cpp:51: error: 'Plasma::PopupApplet' has not been declared
/home/jbhansen/program-downloads/ktorrent/build/plasma/applet/moc_applet.cpp: In member function 'virtual void* ktplasma::Applet::qt_metacast(const char*)':
/home/jbhansen/program-downloads/ktorrent/build/plasma/applet/moc_applet.cpp:65: error: 'PopupApplet' in namespace 'Plasma' does not name a type
/home/jbhansen/program-downloads/ktorrent/build/plasma/applet/moc_applet.cpp:66: error: 'QMocSuperClass' has not been declared
/home/jbhansen/program-downloads/ktorrent/build/plasma/applet/moc_applet.cpp: In member function 'virtual int ktplasma::Applet::qt_metacall(QMetaObject::Call, int, void**)':
/home/jbhansen/program-downloads/ktorrent/build/plasma/applet/moc_applet.cpp:71: error: 'PopupApplet' in namespace 'Plasma' does not name a type
/home/jbhansen/program-downloads/ktorrent/build/plasma/applet/moc_applet.cpp:72: error: 'QMocSuperClass' has not been declared
make[2]: *** [plasma/applet/CMakeFiles/plasma_applet_ktorrent.dir/plasma_applet_ktorrent_automoc.o] Error 1
make[1]: *** [plasma/applet/CMakeFiles/plasma_applet_ktorrent.dir/all] Error 2
make: *** [all] Error 2


Normally I run ktorrent in a VM on my desktop (updated KDE and ktorrent), but due to a hard drive issue, I am required to run it on my laptop for the time being. I have only found this issue on one other torrent, but I didn't figure out which one was causing it.

Last edited by bassmadrigal on Mon Jun 01, 2009 12:21 pm, edited 1 time in total.
George
Moderator
Posts
5421
Karma
1

Mon Jun 01, 2009 8:31 am
I think the CPU usage problem you are seeing was fixed in 3.1.4.

Try compiling 3.1.6, that should build on KDE 4.1
User avatar
bassmadrigal
Registered Member
Posts
113
Karma
0

Mon Jun 01, 2009 12:20 pm
Thank you... 3.1.6 compiled correctly and the torrent loads properly now.

I can't wait to get my VM back up and running with the latest version. Hopefully the replacement harddrive will arrive in the next couple of days.


Bookmarks



Who is online

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