Steps to reproduce:
We have a program with about 8k lines, basically 4 script blocks executing path following with servoj, but it’s unrelated to the problem. The problem is the program being fairly long, when pushing Play, the controller will hang for a few seconds while compiling the program and the user might get confused and push again the Play button, which has not changed to Pause yet. The major issue is if pushing again Play while Polyscope is still compiling the program, it seems that a second Play command is registered, and when the program finally starts, it will unexpectedly restart after a few seconds. In our case this means a crash as the robot has started a tool pickup routine and abruptly goes back to the start position, and obviously the robot being unresponsive during the few first seconds means the operator is very likely to push the Play button again thinking they mis-pressed.
Expected Behavior:
A push on Play should guarantee only a single Program start, even if the Play button is pushed again during program compilation.
Actual Behavior:
Program restarts a few seconds after having already started in an uncontrolled manner.
Workaround Suggestion:
Right now the only way we found was to make the program autostart and wait for a user input on a push-button to act as program start but this is not ideal at all since it means the robot is not technically stopped.
Affected Version(s):
5.13