TC shuts down when trying to overwrite file and then cancel it with Esc

This forum contains bug reports from previous beta tests - the issue has remained unresolved, either because it couldn't be reproduced, or couldn't be prevented/fixed

Moderators: Hacker, Stefan2, white

Sektor
Member
Member
Posts: 155
Joined: 2007-04-04, 10:11 UTC
Location: Russia

TC shuts down when trying to overwrite file and then cancel it with Esc

Post by *Sektor »

Here are the steps to reproduce situation:
1) Have two files with identical names - say, C:\Folder1\File1.txt and C:\Folder2\File1.txt.
2) Press Ctrl+C on the file in Folder2.
3) Go to Folder1.
4) Press Ctrl+V. The Windows dialog appears saying "The destination already has a file named File1.txt".
5) Now, if you PRESS and HOLD Esc, TC shuts down after about 2-4 seconds.
License #299429
There is no knowledge that is not power
umbra
Power Member
Power Member
Posts: 857
Joined: 2012-01-14, 20:41 UTC

Re: TC shuts down when trying to overwrite file and then cancel it with Esc

Post by *umbra »

I could reproduce it, but only in Win11.
Here is the report from Event Viewer:

Code: Select all

Faulting application name: TOTALCMD64.EXE, version: 10.0.0.0, time stamp: 0x00000000
Faulting module name: DUI70.dll, version: 10.0.22000.1, time stamp: 0x5213495d
Exception code: 0xc0000005
Fault offset: 0x000000000003733e
Faulting process id: 0x968
Faulting application start time: 0x01d770d657df8923
Faulting application path: C:\Program Files (x86)\Total Commander\TOTALCMD64.EXE
Faulting module path: C:\WINDOWS\SYSTEM32\DUI70.dll
Report Id: e98e06d2-7646-4416-8e16-267c140452fa
Faulting package full name: 
Faulting package-relative application ID:
Windows 7 Pro x64, Windows 10 Pro x64
User avatar
Horst.Epp
Power Member
Power Member
Posts: 5223
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: TC shuts down when trying to overwrite file and then cancel it with Esc

Post by *Horst.Epp »

Not confirmed.
Tested with TC x64 and x86
Windows 11 Home x64 Version 22H2 (OS Build 22621.608)
TC 10.52 RC1 x64 / x86
Everything 1.5.0.1321a (x64)
User avatar
petermad
Power Member
Power Member
Posts: 11924
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: TC shuts down when trying to overwrite file and then cancel it with Esc

Post by *petermad »

I cannot reproduce this. Tested wih 32bit and 64 bit TC 10.00 under Windows 7 and Windows 10 21H1.

So it is probably a Windows 11 problem as umbra points out.

Interesting that the Windows 11 version of DUI70.dll has version: 10.0.22000.1 and not 11.something, but I guess that is Microsoft in a nutshell... ;-) :roll:
License #524 (1994)
Danish Total Commander Translator
TC 10.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (21H2) 64bit, 'Everything' 1.4.1.1021 (x64)
TC 3.40b4 on Android 6 & 12
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Sektor
Member
Member
Posts: 155
Joined: 2007-04-04, 10:11 UTC
Location: Russia

Re: TC shuts down when trying to overwrite file and then cancel it with Esc

Post by *Sektor »

@petermad @Horst.Epp @umbra
It's Windows 10 Home 21H1 19043.1081 x64
TC is x64, dark theme, regular user mode
License #299429
There is no knowledge that is not power
User avatar
Horst.Epp
Power Member
Power Member
Posts: 5223
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: TC shuts down when trying to overwrite file and then cancel it with Esc

Post by *Horst.Epp »

Sektor wrote: 2021-07-04, 17:09 UTC @petermad @Horst.Epp @umbra
It's Windows 10 Home 21H1 19043.1081 x64
TC is x64, dark theme, regular user mode
Its exactly my environment and as said I can't reproduce it.
Windows 11 Home x64 Version 22H2 (OS Build 22621.608)
TC 10.52 RC1 x64 / x86
Everything 1.5.0.1321a (x64)
User avatar
petermad
Power Member
Power Member
Posts: 11924
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: TC shuts down when trying to overwrite file and then cancel it with Esc

Post by *petermad »

2Sektor
It's Windows 10 Home 21H1 19043.1081 x64
TC is x64, dark theme, regular user mode
Except for the Dark theme - it was the same I tested with - I have now tried with TC in Dark mode, but still no crash.
Last edited by petermad on 2021-07-04, 22:43 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 10.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (21H2) 64bit, 'Everything' 1.4.1.1021 (x64)
TC 3.40b4 on Android 6 & 12
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Sektor
Member
Member
Posts: 155
Joined: 2007-04-04, 10:11 UTC
Location: Russia

Re: TC shuts down when trying to overwrite file and then cancel it with Esc

Post by *Sektor »

@petermad @Horst.Epp @umbra
Maybe this info will help: I installed Windows 11 but then got back to Windows 10. Maybe this is the reson?
License #299429
There is no knowledge that is not power
Sektor
Member
Member
Posts: 155
Joined: 2007-04-04, 10:11 UTC
Location: Russia

Re: TC shuts down when trying to overwrite file and then cancel it with Esc

Post by *Sektor »

@petermad @Horst.Epp @umbra
Also tested on another computer: Win10 Pro 21H1 19043.1081 x64 (no Win11 installation), TC x64 regular user mode.
Same thing!
License #299429
There is no knowledge that is not power
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 43822
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC shuts down when trying to overwrite file and then cancel it with Esc

Post by *ghisler(Author) »

I can reproduce the problem, but it seems to be a bug in Windows itself. It does not need to be in dark mode, it also happens in normal mode. However, it doesn't always happen, only when a Windows dialog flashes shortly on the screen.

The dialog shows:
Title: This cancels all transfers in progress.
Text: Are you sure you want to cancel all transfers?

So what I think happens is that the pressed ESC cancels the dialog multiple times.
Interestingly, I get the same dialog in Explorer, but it doesn't crash...
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 2988
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: TC shuts down when trying to overwrite file and then cancel it with Esc

Post by *white »

Total Commander 7.50 Public Beta 4 works fine.
Total Commander 7.50 Public Beta 5 (pre1) doesn't.

Probable cause:
HISTORY.TXT wrote:31.05.09 Fixed: Copy+Paste (Ctrl+C/Ctrl+V): Execute 'paste' in background thread because it hangs on Vista when pasting large files
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 43822
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC shuts down when trying to overwrite file and then cancel it with Esc

Post by *ghisler(Author) »

Sorry, I can't move past back to the foreground thread, it can cause the program to hang.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 2988
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: TC shuts down when trying to overwrite file and then cancel it with Esc

Post by *white »

ghisler(Author) wrote: 2022-04-26, 10:01 UTC Sorry, I can't move past back to the foreground thread, it can cause the program to hang.
No one is asking you to. But perhaps you can now better pin point the problem and perhaps fix it.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 43822
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC shuts down when trying to overwrite file and then cancel it with Esc

Post by *ghisler(Author) »

I have tried it, when I call the exact same functions from the foreground thread, the error doesn't occur. Unfortunately this has other downsides like possible hangs, so I don't want to do this.

I tried not closing the background thread, but that didn't help either. The error occurs in a completely different thread (created by OLE2) outside of my own code.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 2988
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: TC shuts down when trying to overwrite file and then cancel it with Esc

Post by *white »

Is it possible to prevent that TC exits?
Post Reply