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

**URL:** <https://forum.visualcomponents.com/t/general-robot-while-loop-crashes-visual-components-while-loop-goes-through-over-1000-times-even-when-just-editing/8732>\
**Category:** Robot Programming\
**Created:** [November 20, 2025, 10:25am UTC](https://forum.visualcomponents.com/t/general-robot-while-loop-crashes-visual-components-while-loop-goes-through-over-1000-times-even-when-just-editing/8732 "2025-11-20T10:25:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![JSRobo](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/j/f4b2a3/32.png) [@JSRobo](https://forum.visualcomponents.com/u/JSRobo)\
**Post date:** [November 20, 2025, 10:25am UTC](https://forum.visualcomponents.com/t/general-robot-while-loop-crashes-visual-components-while-loop-goes-through-over-1000-times-even-when-just-editing/8732/1 "2025-11-20T10:25:54Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![BAD](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/b/67e7ee/32.png) [@BAD](https://forum.visualcomponents.com/u/BAD)\
**Post date:** [November 21, 2025, 1:21am UTC](https://forum.visualcomponents.com/t/general-robot-while-loop-crashes-visual-components-while-loop-goes-through-over-1000-times-even-when-just-editing/8732/2 "2025-11-21T01:21:34Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![PyhiS](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/p/f19dbf/32.png) [@PyhiS](https://forum.visualcomponents.com/u/PyhiS)\
**Post date:** [January 9, 2026, 12:13pm UTC](https://forum.visualcomponents.com/t/general-robot-while-loop-crashes-visual-components-while-loop-goes-through-over-1000-times-even-when-just-editing/8732/3 "2026-01-09T12:13:36Z")

</div>

Hello,

did you solve this? I´ve got OLP 4.9 version which is the same as is used in Academy videos. I´ve got similar kind of situation. When ever I try to put more than one while loops the error appears: **While loop goes over 1000 times.** I have tried to restrict the loops with variables but always when I put the second loop to the program, the error appears.

Any advices??

---

<div class="post-metadata">

**Author:** ![PyhiS](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/p/f19dbf/32.png) [@PyhiS](https://forum.visualcomponents.com/u/PyhiS)\
**Post date:** [January 9, 2026, 12:13pm UTC](https://forum.visualcomponents.com/t/general-robot-while-loop-crashes-visual-components-while-loop-goes-through-over-1000-times-even-when-just-editing/8732/4 "2026-01-09T12:13:39Z")

</div>

Little bit more info. The error appears when I put the second while loop inside the first one. And I also tried to put a third one inside the second one and that shuts down the VC software.

---

<div class="post-metadata">

**Author:** ![JSRobo](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/j/f4b2a3/32.png) [@JSRobo](https://forum.visualcomponents.com/u/JSRobo)\
**Post date:** [January 9, 2026, 12:54pm UTC](https://forum.visualcomponents.com/t/general-robot-while-loop-crashes-visual-components-while-loop-goes-through-over-1000-times-even-when-just-editing/8732/5 "2026-01-09T12:54:51Z")

</div>

Just gave up and coded the movements with python API 😅

---

<div class="post-metadata">

**Author:** ![Este](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/este/32/760_2.png) [@Este](https://forum.visualcomponents.com/u/Este)\
**Post date:** [January 12, 2026, 7:15am UTC](https://forum.visualcomponents.com/t/general-robot-while-loop-crashes-visual-components-while-loop-goes-through-over-1000-times-even-when-just-editing/8732/6 "2026-01-12T07:15:54Z")

</div>

Could you provide an example simulation file where this happens?

---

<div class="post-metadata">

**Author:** ![PyhiS](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/p/f19dbf/32.png) [@PyhiS](https://forum.visualcomponents.com/u/PyhiS)\
**Post date:** [January 13, 2026, 11:03am UTC](https://forum.visualcomponents.com/t/general-robot-while-loop-crashes-visual-components-while-loop-goes-through-over-1000-times-even-when-just-editing/8732/7 "2026-01-13T11:03:51Z")

</div>

I run this error when I was doing the Palletizing robot programming in Academy videos. Time in video is 12:50 when he creates three while loops. And also one is made before and the hole main program is inside this. In this attached file I made the second while loop and instantly the error appears. And if I now make one more and move it inside the previous one, the program crashes.

This also appears if I just add Generic Articulated Robot in blank project and then add three While-loops to its program

[Palletizing robot programming.vcmx](https://forum.visualcomponents.com/uploads/short-url/zL8bmM4jhZejJKbZIxYpVKBjM2A.vcmx) (400.5 KB)

.

---

<div class="post-metadata">

**Author:** ![Este](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/este/32/760_2.png) [@Este](https://forum.visualcomponents.com/u/Este)\
**Post date:** [January 13, 2026, 11:15am UTC](https://forum.visualcomponents.com/t/general-robot-while-loop-crashes-visual-components-while-loop-goes-through-over-1000-times-even-when-just-editing/8732/8 "2026-01-13T11:15:00Z")

</div>

Thanks for the additional details. This seems to be an issue with the OLP product, as the problem does not occur in the non-OLP version.

I will report the issue to the developers, and hopefully we get it fixed in future versions.
