What does this mean? What is causing this, and can I do anything to prevent it?Abort script execution
What is causing "Abort script execution"?
What is causing "Abort script execution"?
Sometimes during simulation I get the message:
Re: What is causing "Abort script execution"?
This happens when you spend too much time in non-threaded scripts. For instance when you do too much calculations in such a script. In that case, simulation runs normally, but the button is there so that the user can cancel it, and stop simulation. Imagine you have an infinite loop in one of your scripts.
To avoid that you can either:
1) do less calculations at each simulation pass
2) use a threaded child script
Cheers
To avoid that you can either:
1) do less calculations at each simulation pass
2) use a threaded child script
Cheers
Re: What is causing "Abort script execution"?
Well, maybe you can make a setting for when that would happen. Because now when I have a lot of objects in my simulation, this happens all the time.
This is very annoying, because I let the simulation run and record in the background, but it gets the focus every time the button is shown...
This is very annoying, because I let the simulation run and record in the background, but it gets the focus every time the button is shown...
Re: What is causing "Abort script execution"?
Next release (V-REP 3.0.2 to be released by mid-March 2013) will have an option to turn this off. Refer to the settings file system/usrset.txt and the variable "abortScriptExecutionButton".
Cheers
Cheers
Re: What is causing "Abort script execution"?
Ok, thanks!
But it is a necessary addition, so it would be nice if I could increase the amount of time that is necessary before the button shows. That would give me the opportunity to abort scripts with infinite loops, and still run my simulation in a userfriendly way..!
But it is a necessary addition, so it would be nice if I could increase the amount of time that is necessary before the button shows. That would give me the opportunity to abort scripts with infinite loops, and still run my simulation in a userfriendly way..!
Re: What is causing "Abort script execution"?
By the way, I could not find the variable "abortScriptExecutionButton". Just adding it should work?Refer to the settings file system/usrset.txt and the variable "abortScriptExecutionButton".
Re: What is causing "Abort script execution"?
That will be supported from Release 3.0.2 on
Cheers
Cheers
Re: What is causing "Abort script execution"?
Ok, than I misunderstood your previous statement.