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

Resuming partial download makes ktorrent crash

Tags: None
(comma "," separated)
Orosius
Registered Member
Posts
1
Karma
0
Hi all,

I have encountered a problem with resuming a download that makes ktorrent crash. I was downloading a large torrent (2.9 Gb, 18 files) on a partition that is not mounted at startup.
Yesterday, I shut down my computer and when I started up today, I stupidly opened KTorrent without first mounting the partition. This lead to an error and the torrent had disappeared.

I thought I could just use the resume-plugin, so I did. When it asked me for the torrent, I was at a loss: I am not in the habit of saving torrents, I usually just download them. No problem, I search the torrent again, save it this time, and use it to resume the download (although I'm not really sure you can do that). Here's where the problem occurs: The "resumed" torrent starts downloading something and stops after about 1.6 Mb after which it starts seeding.
This couldn't be right, because the download had 2 Gb to go, so I stop the seeding and remove it all. Then Ktorrent crashes. This was the backtrace I got:

(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
`shared object read from target memory' has disappeared; keeping its symbols.
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1208698656 (LWP 3413)]
[KCrash handler]
#6 0x0077b1e2 in kt::KTorrentMonitor::~KTorrentMonitor$delete ()
from /usr/lib/kde3/ktinfowidgetplugin.so
#7 0x00777640 in kt::InfoWidget::changeTC ()
from /usr/lib/kde3/ktinfowidgetplugin.so
#8 0x0076dfd5 in kt::InfoWidgetPlugin::currentDownloadChanged ()
from /usr/lib/kde3/ktinfowidgetplugin.so
#9 0x0055e309 in kt::GUIInterface::notifyDownloadViewListeners ()
from /usr/lib/libktorrent.so.0
#10 0x0806095f in KTorrent::qt_invoke ()
#11 0x04285154 in QObject::activate_signal ()
from /usr/lib/qt-3.3//lib/libqt-mt.so.3
#12 0x04619334 in QTabWidget::currentChanged ()
from /usr/lib/qt-3.3//lib/libqt-mt.so.3
#13 0x043bf01a in QTabWidget::showTab ()
from /usr/lib/qt-3.3//lib/libqt-mt.so.3
#14 0x0461929d in QTabWidget::qt_invoke ()
from /usr/lib/qt-3.3//lib/libqt-mt.so.3
#15 0x059d1257 in KTabWidget::qt_invoke () from /usr/lib/libkdeui.so.4
#16 0x04285154 in QObject::activate_signal ()
from /usr/lib/qt-3.3//lib/libqt-mt.so.3
#17 0x0428577a in QObject::activate_signal ()
from /usr/lib/qt-3.3//lib/libqt-mt.so.3
#18 0x04618a22 in QTabBar::selected () from /usr/lib/qt-3.3//lib/libqt-mt.so.3
#19 0x043bd592 in QTabBar::setCurrentTab ()
from /usr/lib/qt-3.3//lib/libqt-mt.so.3
#20 0x043bd2ef in QTabBar::mousePressEvent ()
from /usr/lib/qt-3.3//lib/libqt-mt.so.3
#21 0x059249ba in KTabBar::mousePressEvent () from /usr/lib/libkdeui.so.4
#22 0x042c3323 in QWidget::event () from /usr/lib/qt-3.3//lib/libqt-mt.so.3
#23 0x043bb4f6 in QTabBar::event () from /usr/lib/qt-3.3//lib/libqt-mt.so.3
#24 0x0422074d in QApplication::internalNotify ()
from /usr/lib/qt-3.3//lib/libqt-mt.so.3
#25 0x0422167f in QApplication::notify ()
from /usr/lib/qt-3.3//lib/libqt-mt.so.3
#26 0x056b9251 in KApplication::notify () from /usr/lib/libkdecore.so.4
#27 0x041b8098 in QETWidget::translateMouseEvent ()
from /usr/lib/qt-3.3//lib/libqt-mt.so.3
#28 0x041b6813 in QApplication::x11ProcessEvent ()
from /usr/lib/qt-3.3//lib/libqt-mt.so.3
#29 0x041ca848 in QEventLoop::processEvents ()
from /usr/lib/qt-3.3//lib/libqt-mt.so.3
#30 0x04238db2 in QEventLoop::enterLoop ()
from /usr/lib/qt-3.3//lib/libqt-mt.so.3
#31 0x04238cd6 in QEventLoop::exec () from /usr/lib/qt-3.3//lib/libqt-mt.so.3
#32 0x04220119 in QApplication::exec ()
from /usr/lib/qt-3.3//lib/libqt-mt.so.3
#33 0x0805bf7f in main ()

I hope there is some way to safely resume this download, otherwise I have downloaded a Gb for nothing, which is a terrible waste of band width in my eyes.

Is there anybody who can help?
stoeptegel
Registered Member
Posts
1075
Karma
0
Version number?

Orosius wrote:Yesterday, I shut down my computer and when I started up today, I stupidly opened KTorrent without first mounting the partition. This lead to an error and the torrent had disappeared.


I think this should be prevented with an error box telling to check/mount the location and asking you to remove the torX folder.

No problem, I search the torrent again, save it this time, and use it to resume the download (although I'm not really sure you can do that). Here's where the problem occurs: The "resumed" torrent starts downloading something and stops after about 1.6 Mb after which it starts seeding.


No, <|KTorrent2.0Beta you MUST use the import plugin to resume a download which is not listed in GUI yet. This is probably where things got messy.

I hope there is some way to safely resume this download, otherwise I have downloaded a Gb for nothing, which is a terrible waste of band width in my eyes.


If you didn't removed the data too while removing the torrent, this should work:
Activate import plugin in settings-> File... "Import existing download"-> point to proper torrent file and folder where the data was saved (if there are multiple files in a torrent: you point to the first folder inside the torrent)
George
Moderator
Posts
5421
Karma
1

Thu Jul 13, 2006 4:58 pm
Currently we check if all files are present and ask the user what to do. In multi file torrents this is recreate the missing files or do not download them.

In single file torrents we ask to recreate the file. There is still an issue if you press no (torrent still gets started), but I'm working on that.

EDIT: I have added an option to not start a torrent when files are missing
stoeptegel
Registered Member
Posts
1075
Karma
0

Sun Jul 16, 2006 3:04 am
Thanks George :)


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]