[9.0a]Crash when pressing F1 when exiting help.

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
hit02
Junior Member
Junior Member
Posts: 2
Joined: 2017-12-08, 21:24 UTC

[9.0a]Crash when pressing F1 when exiting help.

Post by *hit02 »

Totalcmd crashes when user tries to close help window with F1 key pressed.

How to reproduce:
Press F1 to open help and don't lift the key.
Then press X icon to close help.

Problem seems to reproduce more often when help is opened from lister, or when F1 and F2 are pressed simultaneously.

My totalcmd version is 9.0a 64 bit (2016-12-14)
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I can reproduce this with TC 9.12 x 64, but not with the 32bit version.

But what a weird idea to keep holding down the F1 key :roll: :wink:
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6429
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [9.0a]Crash when pressing F1 when exiting help.

Post by *Horst.Epp »

hit02 wrote:Totalcmd crashes when user tries to close help window with F1 key pressed.

How to reproduce:
Press F1 to open help and don't lift the key.
Then press X icon to close help.

Problem seems to reproduce more often when help is opened from lister, or when F1 and F2 are pressed simultaneously.

My totalcmd version is 9.0a 64 bit (2016-12-14)
Solution for this "Problems" is simple
don't make such strange key presses which no one ever does. :)
Windows 11 Home x64 Version 23H2 (OS Build 22631.3296)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
hit02
Junior Member
Junior Member
Posts: 2
Joined: 2017-12-08, 21:24 UTC

Post by *hit02 »

Haha I know it's strange. :P
Tried to keep F2 pressed using something heavy to automaticly see changes in file and accidently discovered it. :D
User avatar
Dalai
Power Member
Power Member
Posts: 9352
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

Can't reproduce it, neither with TC 9.0a x64 nor 9.12 x64 (on Win7).

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No crash here either on Windows 7 x64...
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Hmm, I can reproduce it every time, also with a clean ini file.

Just do it from the main TC screen - Press F1 and keep it down and then click on the red X in the upper right corner of the Help window.

TC 9.12 x64 under Windows 7, Windows 8.1 and Windows 10
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No crash here on Windows 7 and 10, sorry. The help just re-opens after a few seconds.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Hmm, I tried on the same 3 computers with the same result, but alo tried on 2 other Windows 7 PC's, where I cannot reproduce it on one of them but can on the other.

So that is on 4 out of 5 PC's where I can reproduce it - but it also shows that it is not 100% reproducible - so maby you should try it on some other conputers...
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6429
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

petermad wrote:Hmm, I tried on the same 3 computers with the same result, but alo tried on 2 other Windows 7 PC's, where I cannot reproduce it on one of them but can on the other.

So that is on 4 out of 5 PC's where I can reproduce it - but it also shows that it is not 100% reproducible - so maby you should try it on some other conputers...
Thats wasting time for situation which never comes for any normal use :)
Windows 11 Home x64 Version 23H2 (OS Build 22631.3296)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Thats wasting time for situation which never comes for any normal use
That's right...
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Stefan2
Power Member
Power Member
Posts: 4124
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

no, that's fun on hunting a bug










 
User avatar
tuska
Power Member
Power Member
Posts: 3733
Joined: 2007-05-21, 12:17 UTC

Post by *tuska »

The fun on the matter can go by quickly.

Well,
- let's do a PC restart
- press F1, then press this button down again and keep pressing, afterwords click quickly on the "x" several times

Sometimes TC crashes on the first click on the "X" and sometimes only after the fourth or sixth attempt.
TC 9.12 - 32 bit + 64 bit, Windows 10 Pro (x64) Version 1709 (Build 16299.125)

Nice side effect:
If the browser (EDGE) has been opened first, then TC has crashed and F1 is still pressed,
it will be switched back to the browser and new tabs will be created there.

Therefore, please do not forget to let go of the F1 key at some point! :D
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: [9.0a]Crash when pressing F1 when exiting help.

Post by *DrShark »

I could reproduce this crash when holding F1 key while closing CHM Help with mouse here on Vista 32-bit.

I sent dumps to Christian Ghisler, he wrote it looks like it's a bug in Windows HTML Help Viewer, and dumps don't have hints on possible workaround.

Calls from dump's stack trace:

Code: Select all

mshtml!DllCanUnloadNow+0x1399
mshtml!DllCanUnloadNow+0x1e58
mshtml!DllCanUnloadNow+0x5d86
mshtml!DllCanUnloadNow+0x5d1d
ieframe!Ordinal160+0x20b5
ieframe!Ordinal160+0x2947
ieframe!Ordinal160+0x28c1
ieframe!Ordinal162+0x39e2
ieframe!Ordinal160+0x2da0
ieframe!Ordinal160+0x2ee0
ieframe!Ordinal153+0x4a1c
ieframe!Ordinal153+0x4c7a
ieframe!Ordinal234+0x67cb
user32!GetWindowLongW+0x4b3
user32!GetWindowLongW+0x58b
user32!ReleaseDC+0x7d
user32!WCSToMBEx+0xcc
ntdll!KiUserCallbackDispatcher+0x2e
ieframe!Ordinal153+0x5472
ieframe!Ordinal153+0x561f
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [9.0a]Crash when pressing F1 when exiting help.

Post by *ghisler(Author) »

Yes, as you can see in the log, there is no trace of Total Commander code in it.
Author of Total Commander
https://www.ghisler.com
Post Reply