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

KTorrent Crashing on Startup...

Tags: None
(comma "," separated)
grsnow
Registered Member
Posts
4
Karma
0

KTorrent Crashing on Startup...

Sun Dec 31, 2006 11:43 pm
I've been using KTorrent for a couple of weeks now, with hardly any isues. Today though I made a change in the preferences and as soon as a clicked OK, the whole application closed with no error message at all. I tried re-launching it, and I will display the main window for a moment, and then close back to the desktop without an error. I had a torrent downloading, and I would really like to get it going again, but I can't seem to be able to keep the application open anymore.

I'm using 2.1beta1 installed from a .deb on Ubuntu Edgy in Gnome.

This happened to me once before and I could have sworn that all I did was delete the preferences for the program and then it started back up. Now I can't seem to remember where those preferences are.

Here is what I get when I try to launch the app from a console:

Code: Select all
gary@linux-ubuntu:~$ ktorrent
Qt: Warning: X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode:  147
  Minor opcode:  3
  Resource id:  0x0
Qt: Warning: Failed to open device
Qt: Warning: X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode:  147
  Minor opcode:  3
  Resource id:  0x0
Qt: Warning: Failed to open device
kio (KMimeType): WARNING: KServiceType::offers : servicetype ThumbCreator not found
kio (KMimeType): WARNING: KServiceType::offers : servicetype ThumbCreator not found
kio (KMimeType): WARNING: KServiceType::offers : servicetype ThumbCreator not found
kio (KMimeType): WARNING: KServiceType::offers : servicetype ThumbCreator not found
Qt: Warning: QObject::disconnect: Unexpected null parameter
Qt: Warning: QObject::disconnect: Unexpected null parameter
gary@linux-ubuntu:~$ KCrash: Application 'ktorrent' crashing...
KCrash cannot reach kdeinit, launching directly.


Thanks for any help you guys can give me on this...

Gary
George
Moderator
Posts
5421
Karma
1

Mon Jan 01, 2007 3:06 pm
First of all the preferences can be found in :

~/.kde/share/config/ktorrentrc

Second, do you have a backtrace, and what did you change in the settings ?
grsnow
Registered Member
Posts
4
Karma
0

Mon Jan 01, 2007 6:03 pm
George wrote:First of all the preferences can be found in :

~/.kde/share/config/ktorrentrc

Second, do you have a backtrace, and what did you change in the settings ?


Whats a backtrace, and how do I get you one? The setting that I changed was one of the bandwidth settings. Its hard to tell you the exact one, because I can't get into the program anymore. Also previously it did the same thing when I changed the port setting for DHT.

Gary
grsnow
Registered Member
Posts
4
Karma
0

Mon Jan 01, 2007 6:17 pm
George wrote:First of all the preferences can be found in :

~/.kde/share/config/ktorrentrc

Second, do you have a backtrace, and what did you change in the settings ?


Ok, Getting rid of the preference file alloweed me to get back into the program again. The setting that I changed was on the "General" tab. It was the "Download Bandwidth".

One question, whats the difference between the Upload/Download Bandwidth on the "General" Tab, and the Maximum Upload/Download Rate on the "Downloads" Tab in the preferences?

I still have the old Preferences file if you want me to try to recreate the Startup problem.

Gary
imported4-Ivan
Registered Member
Posts
819
Karma
0

Mon Jan 01, 2007 7:14 pm
One question, whats the difference between the Upload/Download Bandwidth on the "General" Tab, and the Maximum Upload/Download Rate on the "Downloads" Tab in the preferences?


The ones in 'General' tab are used for painting bandwidth bars on system tray. They don't affect your download/upload.

I still have the old Preferences file if you want me to try to recreate the Startup problem.


It would be nice if you could post that file here or send it to me or George.
grsnow
Registered Member
Posts
4
Karma
0

Mon Jan 01, 2007 9:21 pm
Ivan wrote:It would be nice if you could post that file here or send it to me or George.


Here it is, if there is some way to upload it to you or George, just let me know.

[ChunkDownloadView]
ColumnOrder=0,1,2,3,4
ColumnWidths=116,112,136,136,154
SortAscending=true
SortColumn=0

[InfoWidget]
InfoWidgetSize=1241,469

[KTorrentView]
ColumnOrder=0,1,2,3,4,5,6,7,8,9
ColumnWidths=276,100,94,77,77,96,79,122,52,94
SortAscending=false
SortColumn=0

[PeerView]
ColumnOrder=0,1,2,3,4,5,6,7,8,9,10,11,12,13
ColumnWidths=112,152,106,96,79,64,73,83,43,53,90,75,94,77
SortAscending=false
SortColumn=3

[WindowStatus]
Height 1024=1025
Width 1280=1281
hidden_on_exit=false

[WindowStatus Toolbar DownloadToolBar]
IconText=IconOnly
Index=1

[WindowStatus Toolbar KMdiTaskBar]
Hidden=true
IconText=IconOnly
Index=2
Offset=-1

[WindowStatus Toolbar mainToolBar]
Index=0

[downloads]
dhtSupport=true
downloadBandwidth=0
externalIP=
maxConnections=200
maxUploadRate=20
numUploadSlots=3
port=32460
saveDir=/home/gary
showSpeedBarInTrayIcon=true
showSystemTrayIcon=true
tempDir=/home/gary/.kde/share/apps/ktorrent/
uploadBandwidth=20
imported4-bob p
Registered Member
Posts
12
Karma
0

Tue Jan 02, 2007 9:53 am
I have two questions related to a dead ktorrent:

1. My ktorrent has also started crashing on startup and its no longer useable. I've deleted the config file reported in the previous message, but that did not help. I have a backtrace:

Code: Select all
(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1234176336 (LWP 4192)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#6  0xffffe410 in __kernel_vsyscall ()
#7  0xb6757770 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb6758ef3 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb6947520 in __gnu_cxx::__verbose_terminate_handler ()
   from /usr/lib/libstdc++.so.6
#10 0xb6944f55 in std::set_unexpected () from /usr/lib/libstdc++.so.6
#11 0xb6944f92 in std::terminate () from /usr/lib/libstdc++.so.6
#12 0xb69450ca in __cxa_throw () from /usr/lib/libstdc++.so.6
#13 0xb694550e in operator new () from /usr/lib/libstdc++.so.6
#14 0xb69455ed in operator new[] () from /usr/lib/libstdc++.so.6
#15 0xb7e0c2b8 in bt::BitSet::BitSet () from /usr/lib/libktorrent.so.0
#16 0xb7e24399 in bt::ChunkDownload::load () from /usr/lib/libktorrent.so.0
#17 0xb7e4a065 in bt::Downloader::loadDownloads ()
   from /usr/lib/libktorrent.so.0
#18 0xb7e5a7dd in bt::TorrentControl::continueStart ()
   from /usr/lib/libktorrent.so.0
#19 0xb7e5aafb in bt::TorrentControl::start () from /usr/lib/libktorrent.so.0
#20 0xb7e32405 in bt::QueueManager::startSafely ()
   from /usr/lib/libktorrent.so.0
#21 0xb7e32ad7 in bt::QueueManager::start () from /usr/lib/libktorrent.so.0
#22 0x080619f3 in ?? ()
#23 0x0808cd42 in ?? ()
#24 0x0808995f in ?? ()
#25 0x0808ebbc in ?? ()
#26 0x0808f341 in ?? ()
#27 0xb7650adf in KUniqueApplication::processDelayed ()
   from /usr/lib/libkdecore.so.4
#28 0xb76571b8 in KUniqueApplication::qt_invoke ()
   from /usr/lib/libkdecore.so.4
#29 0x08060daf in ?? ()
#30 0xb6f17957 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#31 0xb72a3f44 in QSignal::signal () from /usr/lib/libqt-mt.so.3
#32 0xb6f378ea in QSignal::activate () from /usr/lib/libqt-mt.so.3
#33 0xb6f3f300 in QSingleShotTimer::event () from /usr/lib/libqt-mt.so.3
#34 0xb6eaeb88 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#35 0xb6eb09b7 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#36 0xb765fdb2 in KApplication::notify () from /usr/lib/libkdecore.so.4
#37 0xb6e41389 in QApplication::sendEvent () from /usr/lib/libqt-mt.so.3
#38 0xb6ea15d3 in QEventLoop::activateTimers () from /usr/lib/libqt-mt.so.3
#39 0xb6e55ec5 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#40 0xb6ec925e in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#41 0xb6ec906e in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#42 0xb6eb0731 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#43 0x08065efb in ?? ()
#44 0xb67438cc in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#45 0x0805e301 in ?? ()


I am using kubuntu edgy.

2. As a stopgap measure, I have moved my torrent data to another machine, and I'd like to start a new version of ktorrent there. Unfortunately, I have no torrent files to move over along with my data. Instead of saving the torrent files and opening them in ktorrent, I just clicked on them on the web sites and had ktorrent open them. Where has ktorrent saved them?

thanks.
imported4-bob p
Registered Member
Posts
12
Karma
0

Mon Jan 08, 2007 3:20 pm
bumping:

$ 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
George
Moderator
Posts
5421
Karma
1

Mon Jan 08, 2007 6:06 pm
This looks familiar :

https://bugs.kde.org/show_bug.cgi?id=139607

What version are you using ?
imported4-bob p
Registered Member
Posts
12
Karma
0

Mon Jan 08, 2007 6:50 pm
I am using KTorrent 2.0.3 on KDE 3.5.5 and Kubuntu 6.10.

Things seem to work better by abandoning 2.0.3 and moving to 2.1-rc1.
imported4-bob p
Registered Member
Posts
12
Karma
0

Mon Jan 08, 2007 11:13 pm
a new problem: i had successfully migrated to 2.10rc1 and things were working well enough. then i ran the script to install Peer Guardian. The script took quite a bit of time to execute, but it completed successfully.

Now I can't restart ktorrent. When I attempt to run ktorrent, the process appears to crash on startup. when starting the app there isn't much that happens visually to let the user know what is happening -- i only see a little bouncing icon when i attempt to start ktorrent, but the icon quickly disappears. there is otherwise no trace that ktorrent even attempted to load.

looking at the output of the top command, ktorrent continues to eat up clock time and memory, but nothing is happening at the user interface.

when i attempt to run ktorrent fromthe console window, i get the exact same error reported previously about input device 166.

I am using ktorrent 2,1-r1 on Kubuntu Edgy 6.10. any insights would be appreciated.
imported4-bob p
Registered Member
Posts
12
Karma
0

Mon Jan 08, 2007 11:24 pm
Here is the debug output from starting Ktorrent at the console window:

Code: Select all
bob@linux:~$ ktorrent -v
Qt: 3.3.6
KDE: 3.5.5
KTorrent: 2.1rc1
bob@linux:~$ ktorrent --debug
Qt: Warning: X Error: BadDevice, invalid or uninitialized input device 166
  Major opcode:  144
  Minor opcode:  3
  Resource id:  0x0
Qt: Warning: Failed to open device
Qt: Warning: X Error: BadDevice, invalid or uninitialized input device 166
  Major opcode:  144
  Minor opcode:  3
  Resource id:  0x0
Qt: Warning: Failed to open device
Bound to port 6881
DHT: Starting on port 6881
DHT: Loading bucket 0
DHT: Loading bucket 1
DHT: Loading bucket 2
DHT: Loading bucket 3
DHT: Loading bucket 4
DHT: Loading bucket 5
DHT: Loading bucket 6
DHT: Loading bucket 7
DHT: Loading bucket 8
DHT: Loading bucket 9
DHT: Loading bucket 10
DHT: Loading bucket 11
DHT: Loading bucket 12
DHT: Loading bucket 13
DHT: Loading bucket 15
Loading /home/bob/.kde/share/apps/ktorrent/tor0/
Multi file torrent
OutputPath = /home/bob/torrents/DVD4/
Loading /home/bob/.kde/share/apps/ktorrent/tor1/
Multi file torrent
OutputPath = /home/bob/torrents/<filename-removed>/
Loading /home/bob/.kde/share/apps/ktorrent/tor10/
Encoding : UTF-8
Multi file torrent
OutputPath = /home/bob/torrents/RS 500 201 to 250/
Loading /home/bob/.kde/share/apps/ktorrent/tor13/
Encoding : UTF-8
Multi file torrent
OutputPath = /home/bob/torrents/RS 500 351 to 400/
Loading /home/bob/.kde/share/apps/ktorrent/tor14/
Multi file torrent
OutputPath = /home/bob/music/Mazzy Star/
Loading /home/bob/.kde/share/apps/ktorrent/tor15/
Encoding : UTF-8
Multi file torrent
OutputPath = /home/bob/torrents/<filename-removed>/
Loading /home/bob/.kde/share/apps/ktorrent/tor18/
Multi file torrent
OutputPath = /home/bob/torrents/DVD2/
Loading /home/bob/.kde/share/apps/ktorrent/tor19/
Multi file torrent
OutputPath = /home/bob/torrents/DVD3/
Loading /home/bob/.kde/share/apps/ktorrent/tor2/
Encoding : UTF-8
Multi file torrent
OutputPath = /home/bob/torrents/RS500_DVD_Art_Cover/
Loading /home/bob/.kde/share/apps/ktorrent/tor21/
Encoding : UTF-8
Multi file torrent
OutputPath = /home/bob/torrents/World War I/
Loading /home/bob/.kde/share/apps/ktorrent/tor3/
Multi file torrent
OutputPath = /home/bob/torrents/<filename-removed>/
Loading /home/bob/.kde/share/apps/ktorrent/tor4/
Encoding : UTF-8
Multi file torrent
OutputPath = /home/bob/torrents/<filename-removed>/
Loading /home/bob/.kde/share/apps/ktorrent/tor5/
Multi file torrent
OutputPath = /home/bob/torrents/<filename-removed>/
Loading /home/bob/.kde/share/apps/ktorrent/tor6/
Multi file torrent
OutputPath = /home/bob/torrents/Drugstore/
Loading /home/bob/.kde/share/apps/ktorrent/tor7/
Encoding : UTF-8
Multi file torrent
OutputPath = /home/bob/torrents/RS500_DVD_Art_Cover_51 to 97/
Loading /home/bob/.kde/share/apps/ktorrent/tor8/
Encoding : UTF-8
Multi file torrent
OutputPath = /home/bob/torrents/101-150/
Loading /home/bob/.kde/share/apps/ktorrent/tor9/
Encoding : UTF-8
Multi file torrent
OutputPath = /home/bob/torrents/151-200/
Loading plugin scanfolderplugin
Loading plugin infowidgetplugin
Loading plugin webinterfaceplugin
Loading plugin schedulerplugin
ERROR: Communication problem with ktorrent, it probably crashed.
bob@linux:~$ KCrash: Application 'ktorrent' crashing...
Unable to start Dr. Konqi           


And here's the backtrace info:

Code: Select all
This backtrace appears to be of no use.
This is probably because your packages are built in a way which prevents creation of proper backtraces, or the stack frame was seriously corrupted in the crash.

(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".



thanks.
imported4-bob p
Registered Member
Posts
12
Karma
0

Mon Jan 08, 2007 11:30 pm
still trying to restart, but got a different result this time:

Code: Select all
...
Loading plugin scanfolderplugin
Loading plugin infowidgetplugin
Loading plugin webinterfaceplugin
WWW Root Directory /usr/share/apps/ktorrent/www/
Web server listen on port 8080
Qt: Warning: QObject::disconnect: Unexpected null parameter
Starting minimized
File limit allready at maximum
Data limit allready at maximum


Bookmarks



Who is online

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