[TC 11.00b4] Pack with encryption, operation not unpaused when switching between foreground and background during verify

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

User avatar
white
Power Member
Power Member
Posts: 4647
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

[TC 11.00b4] Pack with encryption, operation not unpaused when switching between foreground and background during verify

Post by *white »

HISTORY.TXT wrote:09.06.13 Fixed: Copy files, click on "Background", then "Pause", then "Foreground" -> we need to continue the operation so it can move to the foreground (32/64)
ghisler(Author) wrote: 2014-04-27, 09:34 UTC This isn't a bug - unfortunately it is necessary to unpause a function so it can be moved to the background or back to foreground. It has been like this for many years.
Same is done for packing. But it looks like it is not done for the verify part of zip with encryption.
  • Pack huge amount of data using encryption
  • During verify, click Pause
  • Click Background button
  • TC hangs
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48173
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b3]

Post by *ghisler(Author) »

I will check it, thanks.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48173
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b3] Pack with encryption, operation not unpaused when switching between foreground and background during ve

Post by *ghisler(Author) »

Unfortunately I could not reproduce it, neither with TC 32-bit nor 64-bit.
Can anyone else reproduce it?
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4647
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.00b3] Pack with encryption, operation not unpaused when switching between foreground and background during ve

Post by *white »

"TC hangs" is not entirely correct. The background window hangs. The Pause/Start, Foreground and Close button (X) do not work correctly.
Tested with 32-bit and 64-bit and ZIP2.0 and all AES encryptions. TC 10.52 works OK. TC 11.00 b1 and b3 don't. (b2 crashes when using encryption)
User avatar
white
Power Member
Power Member
Posts: 4647
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.00b3] Pack with encryption, operation not unpaused when switching between foreground and background during ve

Post by *white »

Another scenario:
  1. Select an amount of files that takes some time to pack and verify.
  2. Open the Pack file dialog (Alt+F5) and select Encryption (Alt+Y).
  3. Start packing so the password dialog pops up.
  4. Enter password and select AES256 encryption (because this encryption is slowest).
  5. Click OK button.
  6. Enter password again and click OK button.
  7. Press Alt+B (background button)
  8. Wait until packing process is finished and verifying process is in progress and then click the Foreground button.
  9. TC hangs.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48173
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b3] Pack with encryption, operation not unpaused when switching between foreground and background during ve

Post by *ghisler(Author) »

I have tried exactly these steps, but it does not hang. I have even tried it with a fresh ini file, no crash.
Could you also try with a fresh ini file, please?
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4647
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.00b3] Pack with encryption, operation not unpaused when switching between foreground and background during ve

Post by *white »

I always test with new ini. Just to make sure I unpacked TC 11.00b3 again to a new folder, created wincmd.ini with UseIniInProgramDir=7, and tried again. Same results.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48173
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b3] Pack with encryption, operation not unpaused when switching between foreground and background during ve

Post by *ghisler(Author) »

What else could it be?
- Windows version?
- PC speed?
- Background programs?
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4647
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.00b3] Pack with encryption, operation not unpaused when switching between foreground and background during ve

Post by *white »

Don't know. Would be nice if someone else tested it too.

Windows 11 Pro 22H2 22621.1702. Same on Windows Sandbox, same on Windows 10 virtual machine.
Are you sure you are doing the thing during the verifying phase?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48173
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b3] Pack with encryption, operation not unpaused when switching between foreground and background during ve

Post by *ghisler(Author) »

Yes, I always did the switch to background/foreground in the verifying phase.
In your second scenario, you didn't use the pause button, is that correct or did you just forget to mention it?
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4647
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.00b3] Pack with encryption, operation not unpaused when switching between foreground and background during ve

Post by *white »

ghisler(Author) wrote: 2023-05-24, 16:31 UTC In your second scenario, you didn't use the pause button, is that correct or did you just forget to mention it?
Yes, that is correct. No pause in that scenario. Then the progress window moves to foreground and is stuck.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48173
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b3] Pack with encryption, operation not unpaused when switching between foreground and background during ve

Post by *ghisler(Author) »

I just tried it in a virtual machine (Windows XP), no problems there either. I will have to postpone this to beta 5, I hope that I will find a way to reproduce it by then...
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4647
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.00b3] Pack with encryption, operation not unpaused when switching between foreground and background during ve

Post by *white »

It seems my assumption that it had something to do with pausing was wrong. It happens when switching between foreground and background (either way) during the verify phase after packing with encryption. Same problem with TC 11.00b4. I will try to create a video later.
User avatar
AntonyD
Power Member
Power Member
Posts: 1250
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: [TC 11.00b4] Pack with encryption, operation not unpaused when switching between foreground and background during ve

Post by *AntonyD »

---------------------------
Total Commander 11.00b4
---------------------------
Fatal error in zip thread, aborting!
Access violation
Windows 10 EnterpriseS 10.0 (Build 17763), base: 0400000

Please report this error to the Author, with a description
of what you were doing when this error occurred!

Stack trace (x64):414544
4146C9 414817 41317A 9E512C 9E77D0 9E80B4 9EDAF0 94E74B
80B6E4
Press Ctrl+C to copy this report!
---------------------------
ОК
---------------------------

I got when I tried to follow 2white gif explanation)))

And not an auto-closed Total - but a hung Total in the background - so I had to kill it from TaskManager.
#146217 personal license
Post Reply