Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: nativeCode: 2147500037, lresultCode: 2147500037, msg: Failed to extract the archive: Data error.. #246

Open
1 task done
taoyuansanju opened this issue Sep 23, 2024 · 3 comments
Assignees
Labels

Comments

@taoyuansanju
Copy link

bit7z version

4.0.x

Compilation options

BIT7Z_7ZIP_VERSION

7-zip version

v23.01

7-zip shared library used

7z.dll / 7z.so

Compilers

MSVC

Compiler versions

MSVC 2022

Architecture

x86

Operating system

Windows

Operating system versions

Window 11

Bug description

When compressing a 11G zip package on some computers, an error message is displayed: lresultCode: 2147500037, msg: Failed to extract the archive: Data error..

Steps to reproduce

No response

Expected behavior

none

Relevant compilation output

none

Code of Conduct

@rikyoz
Copy link
Owner

rikyoz commented Sep 24, 2024

Hi, sorry for the late reply!

When compressing a 11G zip package on some computers, an error message is displayed: lresultCode: 2147500037, msg: Failed to extract the archive: Data error..

Is the failing operation an extraction or a compression? First you say "When compressing a 11G zip package", but then the error message is of an extraction operation ("Failed to extract the archive:").

If it is an extraction, does the extraction fail when extracting always the same file from the archive? You can check the files that caused the error via the BitException::failedFiles() method.

Also, does the 7-Zip GUI or CLI succeed when extracting the same archive, or does it fail as well?

@taoyuansanju
Copy link
Author

Sorry, the description is wrong. It is an error when decompressing a 11G zip file. There is no problem when using the same version of 7-zip GUI. The BitException::failedFiles() method does not provide error file information. The message only shows: Failed to extract the archive: Data error..
After investigation, it was found that the error was interrupted after decompressing a certain file. Is it related to memory?

@rikyoz
Copy link
Owner

rikyoz commented Sep 26, 2024

Sorry, the description is wrong. It is an error when decompressing a 11G zip file. There is no problem when using the same version of 7-zip GUI. The BitException::failedFiles() method does not provide error file information. The message only shows: Failed to extract the archive: Data error..

No problem. Does the 11G zip file contain other archive files inside?

Is it related to memory?

Unlikely. Usually the Data error message happens when the archive is corrupted or is opened incorrectly. I can rule out the first option, as it can be extracted successfully by the 7-ZIP GUI, so my guess is that there's some issue with opening the file.
Are you using the automatic format detection feature of bit7z (the BIT7Z_AUTO_FORMAT CMake option)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants