Bug 203414 - Large files don't seem to get installed
Summary: Large files don't seem to get installed
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Unspecified
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
: 204462 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-11 12:40 UTC by Akarsh Simha
Modified: 2009-08-20 12:46 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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