Occasionally losing robot code while enabled

We have been having this problem for a while now, but now that We have a working robot I want to get it fixed so that it doesn’t happen during the competition. We get an unknown error statue at edu.wpi.first.wpilibj.hal.HALUtil.checkStatus(HALUtil.java:51). Does anyone know what this error is, and if they do, what to do about it?

Is there a more complete call stack or is that all the information you get?

There should be much more in the error message which would tell you at what line in your code it is occurring. Please copy and paste the entire message.

Well I can’t seem to replicate the error, so perhaps that error log was from something else. It is still dropping code and coms for a second and then regaining it. I don’t know if it’s doing this because there’s things in the code that aren’t on the robot yet or what.

Can’t seem to replicate the error. Still dropping code and coms for a second, and then regaining them.

Does this happen when tethered or only on WiFi? Is there a specific period to it (the charts tab or log viewer may help here)?

We have not done a lot of testing over a wired connection, so it is possible that there is something wrong with the wifi, however I would think that if something was wrong with the wifi then the coms light should shut off first. I have not checked the charts tab yet but I will do so and see if I see anything that could be out of the ordinary and I will get back to you ASAP.

I looked at the tables and I think we are having packet loss problems. The original problem of losing code and coms for a second happens also when the robot is disabled, and the loss % graph spikes to 100 whenever we loose coms and code. Do you possibly know how to fix this?

Can you please answer the question I posted above.

Sorry about that. It appears to be happening at the same point in the graph, approximately between 50 and 55 seconds into the 1m length.

There are a few periods of around 1 min that have typically been traced to a WiFi driver. I would check if there are any updated drivers available or if the issue also occurs with another computer as the DS (this assumes that the issue doesn’t happen when tethered).

You may also want to look for any type of update service that may be running.

Alright. Ill check it out and see what I can do. Thanks for your help. Ill respond if I try all of the things that you suggested and none of them work.