BUG: try to Cut-Paste a file onto itself, press ESC twice -> TotalCmd exits

English support forum

Moderators: Stefan2, white, sheep, Hacker

Post Reply
pjotrb
Junior Member
Junior Member
Posts: 45
Joined: 2006-11-02, 13:11 UTC
Location: The Netherlands

BUG: try to Cut-Paste a file onto itself, press ESC twice -> TotalCmd exits

Post by *pjotrb » 2019-04-29, 12:28 UTC

Using TotalCmd (x64) 9.22a

I accidentally tried to Cut a file (Ctrl-X) and then Paste it onto itself (Ctrl-V).
Obviously that doesn't make sense, and TotalCmd warns "The source and destination file names are the same." with 'Skip' and 'Cancel' buttons.

If you then press Esc once, all is fine: 'Cancel' is activated and the operation stops.

But if you press Esc twice, with a short delay in between (like 0.2-0.4 sec), then TotalCmd exits about two seconds later, and just before that happens a popup is shown very briefly. It looks like the 'Cancel' operation from the first Esc gets cancelled by the second Esc, in such a way that it causes TotalCmd to terminate or crash.

Using a screen recorder I managed to screenshot the very brief popup.
The caption is: "This will cancel all transfers in progress."
And text inside: "Are you sure you want to cancel all transfers?" with 'Yes' and 'No' buttons.

I hope this can be fixed. It is 100% reproducible on my side, if you get the timing right (doing the double Esc too fast or too slow = it won't happen).

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37570
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: BUG: try to Cut-Paste a file onto itself, press ESC twice -> TotalCmd exits

Post by *ghisler(Author) » 2019-04-29, 13:54 UTC

Thanks, I can reproduce it with the 64-bit version, but not with the 32-bit version. I will try to find the reason. That dialog isn't part of Total Commander, so it may be difficult...
Author of Total Commander
http://www.ghisler.com

User avatar
DrShark
Power Member
Power Member
Posts: 1264
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262

Re: BUG: try to Cut-Paste a file onto itself, press ESC twice -> TotalCmd exits

Post by *DrShark » 2019-04-29, 16:57 UTC

ghisler(Author) wrote:
2019-04-29, 13:54 UTC
Thanks, I can reproduce it with the 64-bit version, but not with the 32-bit version.
I also can't reproduce it on 32-bit right now using steps described by pjotrb, but it's possible that it may appear on 32-bit TC using different reproduce steps. I had TC 32-bit crash which also happened involving cut and paste actions, my old report is here: https://www.ghisler.ch/board/viewtopic.php?f=16&t=47525
(that crash was unexpected, so I can't tell exact steps to reproduce it)
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right

Post Reply