[Cause]
1. The program instruction calling itself was executed without restriction.
2. Too many programs are called at one time.
3. The stack capacity is insufficient due to the call of the KAREL program. Too many local variables were declared, or too many routines were called.
4. If iRPickTool is being used, the trigger distance may be too short, the vision sensor is being detected too frequently, or an unused sensor may be enabled.
5. Due to the setting of the number of local registers, the stack capacity is insufficient.
[Countermeasure]
1. When executing the instruction that calls itself, program it to stop the call midway.
2. Reduce the number of programs called at one time.
3. Increase the stack capacity of the calling source program on the program details screen.
Try them in the order 300→500→800→1000.
After increasing the stack capacity, the memory used when executing the program will increase, and the maximum setting is 1000.
4. If this is a KAREL program, see the KAREL reference manual for stack usage, %STACKSIZE conversion instructions.
5. If you are using iRPickTool and then using a vision sensor, please set the trigger distance as long as possible. Set unused sensors to disabled.