rar header crc mismatch #524

Closed
opened 2026-01-29 22:13:17 +00:00 by claunia · 2 comments
Owner

Originally created by @ghost on GitHub (Jun 21, 2022).

Hi

When trying to open some RAR files, I get this exception below. What does it mean and how to solve it?

SharpCompress.Common.InvalidFormatException
HResult=0x80131500
Message=rar header crc mismatch
Source=SharpCompress
StackTrace:
at SharpCompress.Common.Rar.Headers.RarHeader.VerifyHeaderCrc(UInt32 crc32)
at SharpCompress.Common.Rar.Headers.RarHeader..ctor(RarHeader header, RarCrcBinaryReader reader, HeaderType headerType)
at SharpCompress.Common.Rar.Headers.RarHeaderFactory.TryReadNextHeader(Stream stream)
at SharpCompress.Common.Rar.Headers.RarHeaderFactory.d__12.MoveNext()
at SharpCompress.Common.Rar.RarVolume.d__10.MoveNext()
at SharpCompress.Archives.Rar.RarArchiveEntryFactory.d__0.MoveNext()
at SharpCompress.Archives.Rar.RarArchiveEntryFactory.d__1.MoveNext()
at SharpCompress.Archives.Rar.RarArchiveEntryFactory.d__2.MoveNext()
at SharpCompress.LazyReadOnlyCollection`1.LazyLoader.MoveNext()

Originally created by @ghost on GitHub (Jun 21, 2022). Hi When trying to open some RAR files, I get this exception below. What does it mean and how to solve it? SharpCompress.Common.InvalidFormatException HResult=0x80131500 Message=rar header crc mismatch Source=SharpCompress StackTrace: at SharpCompress.Common.Rar.Headers.RarHeader.VerifyHeaderCrc(UInt32 crc32) at SharpCompress.Common.Rar.Headers.RarHeader..ctor(RarHeader header, RarCrcBinaryReader reader, HeaderType headerType) at SharpCompress.Common.Rar.Headers.RarHeaderFactory.TryReadNextHeader(Stream stream) at SharpCompress.Common.Rar.Headers.RarHeaderFactory.<ReadHeaders>d__12.MoveNext() at SharpCompress.Common.Rar.RarVolume.<GetVolumeFileParts>d__10.MoveNext() at SharpCompress.Archives.Rar.RarArchiveEntryFactory.<GetFileParts>d__0.MoveNext() at SharpCompress.Archives.Rar.RarArchiveEntryFactory.<GetMatchedFileParts>d__1.MoveNext() at SharpCompress.Archives.Rar.RarArchiveEntryFactory.<GetEntries>d__2.MoveNext() at SharpCompress.LazyReadOnlyCollection`1.LazyLoader.MoveNext()
Author
Owner

@adamhathcock commented on GitHub (Jun 22, 2022):

Likely corrupt archives. Check with WinRAR or similar

@adamhathcock commented on GitHub (Jun 22, 2022): Likely corrupt archives. Check with WinRAR or similar
Author
Owner

@ghost commented on GitHub (Jun 23, 2022):

Thx. Problem solved!

@ghost commented on GitHub (Jun 23, 2022): Thx. Problem solved!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#524