ScriptWFX plugin crashes TC , stack trace included
Moderators: Hacker, petermad, Stefan2, white
ScriptWFX plugin crashes TC , stack trace included
The ScriptWFX plugin crashes in certain conditions and causes TC to also crash. It would be great if TC could manage to stay alive and swallow the crash. Here is a link to the stack trace Image: http://img855.imageshack.us/img855/8897/clipboard01xq.png
---------------------------
Total Commander 7.56a
---------------------------
Exception in ScriptWFX.wfx:FsFindFirst!
External exception EEDFADE
Windows XP SP3 5.1 (Build 2600)
Please report this error to the Author, with a description
of what you were doing when this error occurred!
Windows exception: 0EEDFADE
Stack trace:
08A76B7D
6C1DF0 >646D9C 5F4133 5F8A55 444491 422CC0
444F62 422CC0 444523 422CC0 6BBEF5 444491
422CC0 444491 422CC0 446B2C 444F62 422CC0
444491 45875F 443011 442F4F 445316 444F62
422CC0 444523 422CC0 444491 422CC0 444F62
422CC0 444523 422CC0 42838C 428424 6C53C9
Raw:
643C81 676D08 676D60 5C0056 6C1DF0 64649F
6C1DF0 690064 690064 5C0057 6760FF 6C1DF0
645310 6763FC 680071 4E18E0 40208E 402212
402235 4162A8 415F35 416308 646D9C 422CC0
445231 42499C 6C2368 6BB900 67006C 680071
610074 4452DB 443011 445231 443011 433098
4445E5 444F62 444F85 43FFFE 422CC0 444523
422CC0 444491 422CC0 6C2174 5384B7 5384DE
444F62 444F85 422CC0 444523 422CC0 6C2ED7
40208E 4023B3 4023DB 4026A4 4036AD 403796
Press Ctrl+C to copy this report!
Continue execution?
---------------------------
Yes No
---------------------------
Total Commander 7.56a
---------------------------
Exception in ScriptWFX.wfx:FsFindFirst!
External exception EEDFADE
Windows XP SP3 5.1 (Build 2600)
Please report this error to the Author, with a description
of what you were doing when this error occurred!
Windows exception: 0EEDFADE
Stack trace:
08A76B7D
6C1DF0 >646D9C 5F4133 5F8A55 444491 422CC0
444F62 422CC0 444523 422CC0 6BBEF5 444491
422CC0 444491 422CC0 446B2C 444F62 422CC0
444491 45875F 443011 442F4F 445316 444F62
422CC0 444523 422CC0 444491 422CC0 444F62
422CC0 444523 422CC0 42838C 428424 6C53C9
Raw:
643C81 676D08 676D60 5C0056 6C1DF0 64649F
6C1DF0 690064 690064 5C0057 6760FF 6C1DF0
645310 6763FC 680071 4E18E0 40208E 402212
402235 4162A8 415F35 416308 646D9C 422CC0
445231 42499C 6C2368 6BB900 67006C 680071
610074 4452DB 443011 445231 443011 433098
4445E5 444F62 444F85 43FFFE 422CC0 444523
422CC0 444491 422CC0 6C2174 5384B7 5384DE
444F62 444F85 422CC0 444523 422CC0 6C2ED7
40208E 4023B3 4023DB 4026A4 4036AD 403796
Press Ctrl+C to copy this report!
Continue execution?
---------------------------
Yes No
---------------------------
-
- Member
- Posts: 103
- Joined: 2005-06-21, 00:42 UTC
The version that I'm using is whatever is on totalcmd.net which seems to be 1.1.
The conditions are simple. If the script throws an error, the VBScript error box will show up which is the normal behavior then after that, the TC stack trace window will pop up then crash.
In my case to describe what I'm doing I make an HTTP GET to retrieve a page. I can only retrieve the pages over VPN. Sometimes if I forget that I'm connected over VPN and I execute the script which then I can not access the page and throw the error.
The problem is reproducable with other scripts that don't catch errors usually through On Error Resume Next which I try to avoid to determine the source of the problem.
I downloaded the latest version from the link you posted. Could you please post it to totalcmd.net? That's where people usually look for plugins.
The conditions are simple. If the script throws an error, the VBScript error box will show up which is the normal behavior then after that, the TC stack trace window will pop up then crash.
In my case to describe what I'm doing I make an HTTP GET to retrieve a page. I can only retrieve the pages over VPN. Sometimes if I forget that I'm connected over VPN and I execute the script which then I can not access the page and throw the error.
The problem is reproducable with other scripts that don't catch errors usually through On Error Resume Next which I try to avoid to determine the source of the problem.
I downloaded the latest version from the link you posted. Could you please post it to totalcmd.net? That's where people usually look for plugins.
-
- Member
- Posts: 103
- Joined: 2005-06-21, 00:42 UTC
In case of a exception, TC ask's to continue execution. If i select "Yes" then i can go on to use TC.
If there's an unhandled exception, nobody can say if all is in an consistent state. I assume that's why ghisler optional aks's to stop execution.
If there are potential exceptions in script, then you should handle it, analyze and display a message.
I think it's not a good idea to suppress unhandled exceptions.
It seems totalcmd.net has changed access for authors of plugins. I contacted the webmaster via mail.
If there's an unhandled exception, nobody can say if all is in an consistent state. I assume that's why ghisler optional aks's to stop execution.
If there are potential exceptions in script, then you should handle it, analyze and display a message.
I think it's not a good idea to suppress unhandled exceptions.
It seems totalcmd.net has changed access for authors of plugins. I contacted the webmaster via mail.
I do handle exception when necessary but on initial testing of the script I noticed the behavior and thought that the plugin should have handled it more elegantly.
In normal circumstances when using the VBScript engine, when I get an error, the engine simply handles it by displaying an error box and terminates the script. The actual engine itself does not crash but simply returns an error code of 1 or whatever. Can ScriptWFX work in this manner by simply swallowing the exception rather than pass it to TC?
In some situations if you decide to click "yes" and continue execution in TC, you will not get back the normal behavior and some functions seize to function and so I simply click NO because an exception of that size is rather very very deep and TC was nice enough to display it.
In normal circumstances when using the VBScript engine, when I get an error, the engine simply handles it by displaying an error box and terminates the script. The actual engine itself does not crash but simply returns an error code of 1 or whatever. Can ScriptWFX work in this manner by simply swallowing the exception rather than pass it to TC?
In some situations if you decide to click "yes" and continue execution in TC, you will not get back the normal behavior and some functions seize to function and so I simply click NO because an exception of that size is rather very very deep and TC was nice enough to display it.
I happened to search for the word "Script" in totalcmd.net to see what other scripting plugins out there and saw ScriptWFX 1.3. I thought totalcmd.net will show new added plugins. When did you submit the new version? How come it does not show in totalcmd.net list of new plugins?
There is got to be better coordination for this kind of stuff.
There is got to be better coordination for this kind of stuff.
totalcmd.net is totally independent from ghisler.com/ch. totalcmd.net - you should complain at totalcmd.net - not here.There is got to be better coordination for this kind of stuff.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
-
- Member
- Posts: 103
- Joined: 2005-06-21, 00:42 UTC
I cannot reproduce the behavior you describe.
In my case, if a script takes to long to execute (the timeout is configurable in the ScriptWFX.ini), and i decide to not continue, then TotalCommander gets the exception and asks wheter to continue execution of TC or not.
This is a very good desired behavior in my opinion.
In my case, if a script takes to long to execute (the timeout is configurable in the ScriptWFX.ini), and i decide to not continue, then TotalCommander gets the exception and asks wheter to continue execution of TC or not.
This is a very good desired behavior in my opinion.
-
- Member
- Posts: 103
- Joined: 2005-06-21, 00:42 UTC
the timeout is set to 30 seconds here.
I don't have any scripts running longer than that time, so i have no real experience in the behavior. I have testet only with a simulatet "delay", and then all is going on correctly.
Do you have a reproducable sample script, where the functionality is broken after a timeout?
I don't have any scripts running longer than that time, so i have no real experience in the behavior. I have testet only with a simulatet "delay", and then all is going on correctly.
Do you have a reproducable sample script, where the functionality is broken after a timeout?