Issue reading a specific tar.xz file #714

Open
opened 2026-01-29 22:16:18 +00:00 by claunia · 2 comments
Owner

Originally created by @Corniel on GitHub (Nov 8, 2025).

Originally assigned to: @Copilot on GitHub.

Trying to open the archive adressen.tar.xz with the following code did not seem to recognize this file:

using var stream = new FileStream("path/to/locally/stored");
var archive = TarArchive.Open(load);
var entry = archive.Entries.First();

It claims there are not entries. When I open it with 7Zip or the built-in archiving tooling of Windows, I can open the archive.

The used method (according to 7Zip) is LZMA2:26 CRC64. Am I doing something wrong? Or am I facing a (file size maybe, the backed file is just over 1 GB unpacked) issue?

Originally created by @Corniel on GitHub (Nov 8, 2025). Originally assigned to: @Copilot on GitHub. Trying to open the archive [adressen.tar.xz](https://github.com/LJPc-solutions/Nederlandse-adressen-en-postcodes/raw/refs/heads/main/adressen.tar.xz) with the following code did not seem to recognize this file: ``` C# using var stream = new FileStream("path/to/locally/stored"); var archive = TarArchive.Open(load); var entry = archive.Entries.First(); ``` It claims there are not entries. When I open it with 7Zip or the built-in archiving tooling of Windows, I can open the archive. The used method (according to 7Zip) is `LZMA2:26 CRC64`. Am I doing something wrong? Or am I facing a (file size maybe, the backed file is just over 1 GB unpacked) issue?
claunia added the bugup for grabs labels 2026-01-29 22:16:18 +00:00
Author
Owner

@adamhathcock commented on GitHub (Nov 25, 2025):

I can't seemingly find that tar from that repo anymore

@adamhathcock commented on GitHub (Nov 25, 2025): I can't seemingly find that tar from that repo anymore
Author
Owner

@Corniel commented on GitHub (Nov 25, 2025):

Me neither. They have changed the format. Too bad, as now it is hard to reproduce the issue. (Sharing 65MB file is not ideal)

@Corniel commented on GitHub (Nov 25, 2025): Me neither. They have changed the format. Too bad, as now it is hard to reproduce the issue. (Sharing 65MB file is not ideal)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#714