sharpcompress: Can't extract big tbz file(408 MB) - BZip2 implementations C# won't extract everything

Hello! I am trying to extract this file: https://drive.google.com/open?id=0B_hcLdxD3U8Td2dXRGhSaHl0cDg In destination folder I’ve got only 879 KB of result and it is not growing, but program is still running. Looks like program is stuck or all archive is still extracting in memory (but I can’t see process with growing memory) My code:

        private void ExtractArchiveFileToTempFolder(string path, string feedDate)
        {
            var destination = Path.Combine(this.tempFolderPath, feedDate);
            if (!Directory.Exists(destination))
            {
                Directory.CreateDirectory(destination);
            }

            using (Stream stream = File.OpenRead(path))
            {
                var reader = ReaderFactory.Open(stream);
                while (reader.MoveToNextEntry())
                {
                    if (!reader.Entry.IsDirectory)
                    {
                        Console.WriteLine(reader.Entry.Key);
                        reader.WriteEntryToDirectory(destination);
                    }
                }
            }
        }

About this issue

  • Original URL
  • State: open
  • Created 8 years ago
  • Comments: 21 (9 by maintainers)

Most upvoted comments

This is weird. All implementations of Bzip2 in C# I’ve tried will only extract 879k of the file. It just stops after that.