Summary: | kget crashes when saving transfer list | ||
---|---|---|---|
Product: | [Applications] kget | Reporter: | Jens Zurheide <jens.zurheide> |
Component: | general | Assignee: | KGet authors <kget> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Jens Zurheide
2004-05-15 00:12:42 UTC
Same problem here, it makes KGet useless for me since I can not continue downloading a file after a reboot. Please fix this bug for KDE 3.3 ! Hi, I am using kde cvs compilied on aug 4, 2004 and I too am experencing this bug. When kget crashes it doesn't pop up the usual kde crash dialog, it just quietly crashes? I started kget from the console and it gives this output: kget: [void KMainWidget::checkQueue()] |--( GUI )--| Found 1 Running Jobs kget: [void Transfer::slotUpdateActions()] |--( GUI )--| >>>>Entering the item Status is =1offline=false kget: [void Transfer::slotUpdateActions()] |--( GUI )--| >>>>Leaving kget: [void Transfer::slotExecConnected()] |--( GUI )--| >>>>Leaving kget: [void Slave::slotInfoMessage(KIO::Job*, const QString&)] |--TH_ID ( 16384 )--| >>>>Entering MSG=Retrieving 77.4 MB from zip.members.easynews.com... kget: [void Slave::InfoMessage(const QString&)] |--TH_ID ( 16384 )--| Infor Msg:_msg = Retrieving 77.4 MB from zip.members.easynews.com... kget: [void Slave::slotInfoMessage(KIO::Job*, const QString&)] |--TH_ID ( 16384 )--| >>>>Leaving kget: [void Transfer::logMessage(const QString&)] |--( GUI )--| >>>>Entering Retrieving 77.4 MB from zip.members.easynews.com... kget: [void Transfer::logMessage(const QString&)] |--( GUI )--| >>>>Leaving kget: [void TransferList::writeTransfers(const QString&)] |--( GUI )--| >>>>Entering withfile =/home/mikecvs/.kde/share/apps/kget/transfers.kgt kget: [void Transfer::write(KSimpleConfig*, int)] |--( GUI )--| >>>>Entering *** KGet got signal 11 kio (KDirWatch): KDirWatch deleted (FAM closed) kio (KDirListerCache): -KDirListerCache This is with saving the transfer list every 1 minute, if I set it to longer like the default 10 minutes than kget will crash every 10 minutes. This is a really annoying bug since it effectivly makes kget useless to download with :( If I can provide anymore information to help get this fixed just let me know. CVS commit by tokoe: Fixed the crash mentioned in #81612 and changed the load/store method to use the correct KConfig::(read|write)Entry. CCMAIL:81612-done@bugs.kde.org M +5 -5 transfer.cpp 1.58 --- kdenetwork/kget/transfer.cpp #1.57:1.58 @@ -755,6 +755,6 @@ bool Transfer::read(KSimpleConfig * conf startTime = config->readDateTimeEntry("ScheduledTime"); canResume = config->readBoolEntry("CanResume", true); - totalSize = config->readNumEntry("TotalSize", 0); - processedSize = config->readNumEntry("ProcessedSize", 0); + totalSize = config->readUnsignedNum64Entry("TotalSize", 0); + processedSize = config->readUnsignedNum64Entry("ProcessedSize", 0); if (status != ST_FINISHED && totalSize != 0) { @@ -782,6 +782,6 @@ void Transfer::write(KSimpleConfig * con config->writeEntry("Status", status); config->writeEntry("CanResume", canResume); - config->writeEntry("TotalSize", ( QVariant & )totalSize); - config->writeEntry("ProcessedSize", processedSize); + config->writeEntry("TotalSize", totalSize ); + config->writeEntry("ProcessedSize", processedSize ); config->writeEntry("ScheduledTime", startTime); sDebugOut << endl; |