General Robot while loop crashes Visual Components: “While loop goes through over 1000 times” even when just editing

Hi,

I’ve run into a really annoying problem with the General Robot programming language.

If I add even a simple WHILE loop to a robot program — while the simulation is STOPPED — Visual Components immediately throws:

Error: While loop goes through over 1000 times

And in some cases it crashes the entire software.
After this happens, I can’t even open or edit the robot program anymore because the same error pops up every time I click the program. The layout basically becomes unusable.

This happens even if:

  • The simulation is not running

  • The program is not started

  • The WHILE loop is empty or unfinished

It looks like VC starts executing/validating the robot program automatically the moment I add the WHILE loop, and if the condition is true, it instantly loops 1000+ times and kills itself.

My question:
Does anyone know if there is a fix or workaround for this?
Or is there a way to disable automatic execution / validation while editing a robot program?

Right now it’s impossible to build a proper sensor loop because the program crashes before I can even finish writing it.

Any tips or settings I’ve missed would be greatly appreciated.

Thanks.

Hy,
This sounds weird, I didn’t succeed in reproducing the problem (in VC 4.10 OLP), if so, can you provide your simulation environment?