Skip to content

Random decompression errors #182

Answered by rikyoz
Polar-Pumpkin asked this question in Q&A
Discussion options

You must be logged in to vote

The -2147024809 error code corresponds to the E_INVALIDARG HRESULT error (0x80070057 in hex, https://learn.microsoft.com/en-us/windows/win32/seccrypto/common-hresult-values).
This same error happens due to the issue #181, so you may be experiencing it too.
If this is the case, the problem is due to an old bug in MSVC's std::filesystem, which was fixed only in the latest versions of the compiler.
One possible workaround that I proposed is to use the new BIT7Z_DISABLE_USE_STD_FILESYSTEM CMake option provided in the hotfix/v4.0.5 branch, as it makes bit7z avoid using std::filesystem altogether.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Polar-Pumpkin
Comment options

@Polar-Pumpkin
Comment options

@Polar-Pumpkin
Comment options

@Polar-Pumpkin
Comment options

@rikyoz
Comment options

Answer selected by Polar-Pumpkin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants