C271A1 error occurs even with a simple infinite loop

Hello,

I am working with a UR5e and URP to create a program that runs indefinitely.
However, within about 1 hour of operation, I encounter a C271A1 error. I have tried all possible measures I could think of, but the issue persists.

To narrow it down, I tested with a very simple infinite loop, yet the same error still occurs.

Here is the code I tested:

def main():

    popup("start")

    while True:
        sleep(1)
    end

end

I also tried replacing sleep() with sync(), but the error still appears after 1–2 hours of runtime.
Even when increasing the sleep duration up to 3 seconds, the problem remains.

My PolyScope version is 5.13.

What could be causing this issue, and how can I resolve it?

Check the logs to see if there’s any additional indication of what’s going on. If you have any URCAPs installed, they can contribute script to the program in the Installation, which means even if you don’t have anything in your PROGRAM, they could still be causing problems. Lastly you can try updating Polyscope. 5.13 is pretty old.

Maybe this solved thread helps you with your issue: C271A1 Error during thread - Technical Questions - Universal Robots Forum