Crash with usercommand using OPENCUSTOMVIEW

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Crash with usercommand using OPENCUSTOMVIEW

Post by *MVV »

1. Define usercommand em_blablabla with command OPENCUSTOMVIEW
2. Execute this usercommand via TC command line

Code: Select all

---------------------------
Total Commander 7.50a fin
---------------------------
Access violation at address 004027EE. Read of address 00000001.

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

Windows exception: C0000005
Stack trace:
004027EE
66565E  4DFD63  6647BF  67B7CC  50F80C  502A27
4443BA  >414514  44397B  414514  419B58  419BF0
69F119  
Raw:
69C025  66565E  4DFD63  665978  4438E9  414514
444733  442479  444689  433D25  443A3D  4443BA
4443DD  414514  44397B  414514  69C025  6647BF
43226E  431F4B  414514  4438E9  414514  444733
442479  444689  444689  4323D7  443A3D  4443BA
4443DD  414514  44397B  414514  45EB32  669B61
669CF2  507311  4438E9  414514  444733  442479
444689  442479  4323D7  443A3D  4443BA  4443DD
414514  44397B  414514  6957BB  695F6F  4438E9
414514  444733  442479  444689  4323D7  443A3D

Bug repeats each time I repeat step 2.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks, it's probably because you didn't specify a parameter...
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14741
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I cannot reproduce this when executing em_blablabla from the command line - I just get an error sound (ding!).

But when I assign em_blablabla to a button, or use a hotkey redefined to em_blablabla, I get this:

Code: Select all

---------------------------
Total Commander 7.50a fin
---------------------------
Access violation at address 0066568A. Read of address A1D193CA.

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

Windows exception: C0000005
Stack trace:
0066568A
4DFD63  6647BF  67B7CC  50F80C  502A27  4443BA
>414514  44397B  414514  419B58  419BF0  69F119

Raw:
4DFD63  4438E9  414514  444733  442479  444689
433D25  443A3D  4443BA  4443DD  414514  44397B
414514  69BC73  69C025  6647BF  69C26B  69C11F
69A0C0  695EE4  69C025  421731  6957BB  695F98
69C025  4217EB  69C025  4268AF  425FD5  425FEF
426919  69BBC9  69C025  473746  426BCD  69C025
426D03  69BC73  473524  69C025  478104  65271C
654204  6546D3  69C26B  69C11F  69A0C0  69C23B
6788F0  695EE4  69C025  421731  6957BB  695F98
693EF8  693EF8  60077C  60077C  682FBE  681ECF
---------------------------
If I provide OPENCUSTOMVIEW with a valid custom_columns_view_title as parameter everythings works OK.

If I provide OPENCUSTOMVIEW with an invalid custom_columns_view_title as parameter, nothing happens - not even a beep.

If I use If OPENCUSTOMVIEWL, OPENCUSTOMVIEWR, OPENCUSTOMVIEWS, OPENCUSTOMVIEWT or OPENCUSTOMVIEWB without any parameter, nothing happens, not even a beep, and no access violation - that only happens with OPENCUSTOMVIEW.

I can reproduce the AV (still only from a button or a hotkey) using either usercmd.ini or any wcmd_xxx.ini.

I cannot reproduce the bug using an Alias from the command line, as I cannot reproduce it using em_blablabla from the command line.
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
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

I also got the same behaviour if i define

Code: Select all

[em_ocv]
command: OPENCUSTOMVIEW 
parameters : %A
and call em_ocv AlternateV1 from the command line where AlternateV1 is a user columns view name.

By the way OPENCUSTOMVIEW AlternateV1 on the command line gives a file not found !!!
and the same with all the versions OPENCUSTOMVIEW(LRSTB)

Code: Select all

---------------------------
Total Commander 7.50a fin
---------------------------
Access violation at address 0069BE7A. Read of address 00000100.

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

Windows exception: C0000005
Stack trace:
0069BE7A
66565E  4DFD63  6647BF  67B7CC  661C91  51EC20
50471D  444EA7  >431F4B  414514  419B58  419BF0
69F119  
Raw:
69BFF6  66565E  4DFD63  665978  4438E9  414514
444733  442479  444689  433D25  443A3D  4443BA
4443DD  414514  44397B  414514  69BC73  6647BF
69BBC9  6668BC  402235  402235  4033D4  4021B4
65828F  65828F  4213A6  4213EE  6662F2  66630F
6957BB  695F6F  69C025  6668BC  414514  69C025
6668BC  4443BA  4443DD  414514  69C23B  6788F0
42A6E7  4023B3  4023DB  4026A4  4036C5  664E0A
67774E  69C23B  6788F0  69C025  69C0DF  677EDC
67774E  695F98  69C025  69C0DF  46005A  4DEF9E

Press Ctrl+C to copy this report!
Continue execution?
---------------------------
Oui   Non   
---------------------------
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

nsp wrote:By the way OPENCUSTOMVIEW AlternateV1 on the command line gives a file not found !!!
and the same with all the versions OPENCUSTOMVIEW(LRSTB)
That's because internal commands with parameters can't be executed via command line.
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

MVV wrote:
nsp wrote:By the way OPENCUSTOMVIEW AlternateV1 on the command line gives a file not found !!!
and the same with all the versions OPENCUSTOMVIEW(LRSTB)
That's because internal commands with parameters can't be executed via command line.
This is non-sense (even a bug) for me as i used opentabs, openbar via em_cmd and %A in TC 7.04 !
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

nsp wrote:
MVV wrote:
nsp wrote:By the way OPENCUSTOMVIEW AlternateV1 on the command line gives a file not found !!!
and the same with all the versions OPENCUSTOMVIEW(LRSTB)
That's because internal commands with parameters can't be executed via command line.
This is non-sense (even a bug) for me as i used opentabs, openbar via em_cmd and %A in TC 7.04 !
I meant internal commands with parameters (OPENTABS, SYNCOPEN, OPENBAR and so on, not user-defined) can't be used directly from command line.

Hmm, OPENBAR works fine using %A as parameter! So OPENCUSTOMVIEW should also work in same way! Also I think TC should accept also quoted parameter for commands like OPENBAR.
User avatar
petermad
Power Member
Power Member
Posts: 14741
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Fixed in TC 7.55b1 :-)
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: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply