Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Stuck at a certain percent while extracting encrypted 7z file #183

Open
JackCui001 opened this issue Feb 22, 2023 · 0 comments
Open

Stuck at a certain percent while extracting encrypted 7z file #183

JackCui001 opened this issue Feb 22, 2023 · 0 comments

Comments

@JackCui001
Copy link

JackCui001 commented Feb 22, 2023

Hello, when I'm using extractor to extract certain encypted 7zip files, the process will be not responded. I used "extractor.Extracting" and " extractor.ExtractionFinished" to check out what happened, and it prints out the last percent and just trigger deadlock. Here is the print out info.

Normal situation:
// Start Printing 7z Info
13
3294407
Headers Size = 494
Method = LZMA2:12m LZMA:20 BCJ2
Solid = True
Number of blocks = 2
[0] a.file
......
[12] l.file
// Start Printing Extract Percent
1
......
100
Done!

Error situation:
// Start Printing 7z Info
6
18377458
Headers Size = 338
Method = LZMA2:18 7zAES
Solid = True
Number of blocks = 3
[0] a.file
......
[5] f.file
// Start Printing Extract Percent
1
Nothing printed out after that, 30 seconds later, "ContextSwitchDeadlock" triggered

Compressor is working fine.
Extractor will randomly work on certain files. Just some of the 7z files will freeze the process. Some will not.
There is a strange fact that I use the compressor to compress some files into 7zip format, but I cannot extract it using extractor after that.
Update: I noticed that when "CompressionMethod = CompressionMethod.Lzma2", this will most likely to happen. Changing it to Lzma for temporary fix. Although it costs much more time to compress.

@JackCui001 JackCui001 changed the title Stuck at a certain percent while extracting 7z file Stuck at a certain percent while extracting encrypted 7z file Feb 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant