Crashing when reloading scripts/tools

Discuss Moho bugs (or suspected bugs) with other users. To report bugs to Smith Micro, please visit support.smithmicro.com

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
ernpchan
Posts: 154
Joined: Thu Aug 13, 2015 7:18 pm
Contact:

Crashing when reloading scripts/tools

Post by ernpchan »

Has anyone encountered crashing when they reloaded their tools/scripts? When I use my hotkey to reload my scripts ASP crashes out. It did this both with me launching ASP locally and over our network.

Unfortunately the crashing has now stopped but it was consistently crashing each time I reloaded my tools. I was doing some script testing so that's why I'm reloading.
My opinions and comments do not represent those of my employer.
http://www.ernestpchan.com
http://www.zazzle.com/gopuggo
User avatar
synthsin75
Posts: 9934
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Crashing when reloading scripts/tools

Post by synthsin75 »

Only if there is a fatal error in the script I'm working on.
ernpchan
Posts: 154
Joined: Thu Aug 13, 2015 7:18 pm
Contact:

Re: Crashing when reloading scripts/tools

Post by ernpchan »

Thanks. The script itself seems to work because ASP stopped crashing after awhile when I reloaded with the same script. I'll chalk it up to gremlins until I can reliably reproduce.
My opinions and comments do not represent those of my employer.
http://www.ernestpchan.com
http://www.zazzle.com/gopuggo
User avatar
hayasidist
Posts: 3492
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: Crashing when reloading scripts/tools

Post by hayasidist »

a few good ways to crash AS:

- have a layer script that has a runtime fatal error
- have a script with an infinite loop
- have two incompatible versions of the same menu or tool script
- update a script in such a way as to have incompatible values in Global variables as left over from the previous run
- ....
ernpchan
Posts: 154
Joined: Thu Aug 13, 2015 7:18 pm
Contact:

Re: Crashing when reloading scripts/tools

Post by ernpchan »

Thanks hayasidist,

My script is really simple. Just printed out the name of the file and the path to the file. I'm just trying to get familiar with lua and getting relevant information from ASP.
My opinions and comments do not represent those of my employer.
http://www.ernestpchan.com
http://www.zazzle.com/gopuggo
Post Reply