Error about user program exceeded 3 seconds

Hi All,
Anyone get the error about user program exceeds or exceeded 3 seconds and have to Reboot?

We got this several times and just pressed [x] like it said. Did not take a screenshot. This time this happened on a perfectly working program 100% of the time. After the program was downloaded, we went to run it during a tournament. It just would not start this time. The error message displayed on screen. Normally we get this error on download (sometimes) but this time download was successful and then got this error message for the first time. Not sure why.

We have seen this prior to a download a total of 3 times over 1 month period, where we might have done nothing for 3-4 mins and then start download. So a timeout is understandable…

Firmware Updater 1.17 with brain 1.13 joystick 1.04 RobotC firmware bin 1027.

Thank you.

Yes we have received this periodically. Seems like after the reboot it works fine but it is annoying.

So true. I know but this time, it downloaded and selecting the program displayed this message. All you could do was [x] and this repeats. It is ok when you have that time but on official run on stage… out of luck. It is counted as an attempt. But when we re-download the program again after that it ran fine. We continue to run it even now without problems.

It happened to me for a very simple program couple times in 5 minutes. I am using robotc 4.28 beta version

Usually when we see this issue, it is because a user-created program causes the ROBOTC Virtual Machine to hang for longer than 3 seconds; if the ROBOTC VM takes more than 3 seconds to return to the ‘master’ code, the error you are seeing will trigger.

To help with the debugging process, please send a copy of the code with a reference to this forum post to us directly via [email protected] and we’ll be more than happy to take a look at the program to see what could be causing it. Please make sure to let us know what motors/sensors are plugged into which ports on the IQ, as well (even if they aren’t being used in the program).

Thanks in advance!

Hi John,
We got this again 4 times today. Once or twice I noticed this when you try to download the program to robot when debugger is running (not started, just ready). If you exit first then it seems to download ok. So may be the time it takes debugger to exit and the download begins is more than 3 secs. Not sure if the kids caught on to that. I should remember to talk to them. Thank you.

Regards,
surgeon

Hi John,
Enhancement Request: If such an error occurs, the original program should be retained on the brain. Currently the program will be in an inconsistent state while the new program with download in progress is invalid (that is, old program was replaced with invalid new program stub).

Not sure what the condition is for overwriting the existing program in the brain but what happened to us was that the program might have partially downloaded. The program existed in the list of programs on the brain port. Upon running the program, the error is displayed. However if this error has occurs then it should have not downloaded so the original program should not have been touched (deleted or modified). Thank you.

Regards,
surgeon

If possible, please send a copy of one of the programs that has been able to generate this error message to us directly via [email protected] (with a description of the error and a reference to this post); I would like to try to replicate the issue here so we can debug this issue further on our end.

Thanks in advance!