Bug 203414

Summary: Large files don't seem to get installed
Product: [Frameworks and Libraries] kdelibs Reporter: Akarsh Simha <akarsh.simha>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: normal CC: alexey.skladnoy, faure, mboquien, pindle
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Unspecified   
Latest Commit: Version Fixed In:

Description Akarsh Simha 2009-08-11 12:40:18 UTC
Version:            (using KDE 4.3.0)
Installed from:    SuSE RPMs

Large files downloaded via GHNS don't seem to get installed correctly.

Users have repeatedly complained that KStars' 1.4GB star catalog (2.1GB when unextracted) which is downloaded via GHNS (Link to providers.xml: http://edu.kde.org/kstars/downloads/providers.xml) downloads completely, but fails to install.

Here's a rather long thread on the KStars' mailing list, that discusses the issue:
http://lists.kde.org/?l=kstars-devel&m=124979648307943&w=2

Here's a very relevant message, that identifies a potential cause of the bug as a type overflow:
http://lists.kde.org/?l=kstars-devel&m=124993060615429&w=2
Comment 1 Christoph Feck 2009-08-12 06:15:08 UTC
Probably an KTar or KGZipFilter issue.
Comment 2 David Faure 2009-08-14 01:14:16 UTC
Did you test with ktartest on the file?
If that fails, I can have a look (please include direct link to the file I should test, thanks)
Comment 3 Alexey Khudiakov 2009-08-16 16:08:56 UTC
What is ktartest exactly? And where could it be found 

BTW link to tar file in question 
http://download.kde.org/apps/kstars/USNO-NOMAD-1e8-1.0.tar.gz

GNU tar has no problems with its decompression.
Comment 4 Médéric Boquien 2009-08-19 23:02:04 UTC
*** Bug 204462 has been marked as a duplicate of this bug. ***
Comment 5 David Faure 2009-08-20 12:10:56 UTC
Like all kdelibs test programs: in kdelibs ;)
(cd kdelibs/kio/tests; make ktartest)

Indeed the bug happens in ktartest, I'll fix it.
-Asterix- dfaure 12:05 /d/kde/build/t/kdelibs/kio/tests>./ktartest USNO-NOMAD-1e8-1.0.tar.gz
ktartest(25505)/KTar KTar::createDevice: mimetype= "application/x-gzip"
ktartest(25505)/KTar KTar::createDevice: creating tempfile: "/tmp/dfaure-kde4/kde-dfaure/ktar-k25505.tar"
ktartest(25505)/KTar KTar::KTarPrivate::fillTempFile: filling tmpFile of mimetype "application/x-gzip"
QFile::at: Cannot set file position -2121848832
ktartest(25505)/KTar KTar::openArchive: skipping -2121849344 failed
ktartest(25505)/KTar KTar::KTarPrivate::readRawHeader: KTar: invalid TAR file. Header is: "Ú<
Comment 6 David Faure 2009-08-20 12:46:33 UTC
SVN commit 1013636 by dfaure:

Fix ktar bug with large files. Will backport for 4.3.1.
BUG: 203414


 M  +2 -2      ktar.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1013636