mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
decompressing big .7z file throws error #751
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DevOnBike on GitHub (Dec 24, 2025).
Originally assigned to: @adamhathcock, @Copilot on GitHub.
lib version 0.42.1
under .net 10
code:
usage
Data Error
at SharpCompress.Compressors.LZMA.LzmaStream.d__52.MoveNext()
at SharpCompress.Compressors.LZMA.LzmaStream.d__56.MoveNext()
at System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable`1.ConfiguredValueTaskAwaiter.GetResult()
at SharpCompress.IO.ReadOnlySubStream.d__24.MoveNext()
at System.IO.Stream.<g__Core|30_0>d.MoveNext()
at SharpCompressExtractor.d__0.MoveNext() in SharpCompressExtractor.cs
file : probably any from https://www.podatki.gov.pl/narzedzia/white-list/
but for sure exist for this url: https://plikplaski.mf.gov.pl/pliki//20251223.7z
this file perfectly uncompress under win11 using native extractor or 7zip manager
@Camble commented on GitHub (Dec 26, 2025):
Also experiencing this with my 7z tests after updating to v0.42.x
v0.41.0 is fine
@adamhathcock commented on GitHub (Dec 26, 2025):
Sounds like the fix I did for https://github.com/adamhathcock/sharpcompress/pull/1081
I can validate next week though.
@DevOnBike commented on GitHub (Jan 4, 2026):
nope, still same exception now in 0.43.0
@adamhathcock commented on GitHub (Jan 6, 2026):
You're right....testing this myself the async path is broken. However, the sync path works.
If you change
CopyToAsynctoCopytTothen it works for megonna look at a real fix though
@DevOnBike commented on GitHub (Jan 6, 2026):
I think that current trend is to use async methods most of the time if logic is IO-bound.
So let me wait for permanet fix for async version.
@adamhathcock commented on GitHub (Jan 7, 2026):
Try https://www.nuget.org/packages/SharpCompress/0.44.0-beta.40
@DevOnBike commented on GitHub (Jan 7, 2026):
works like a charm on 0.44.0-beta.40.
So please publish it as normal package (not beta).
Thanks a lot.
@DevOnBike commented on GitHub (Jan 8, 2026):
yup, works also great in final v0.44.
Thank u, and have a good day :)