Timed out getting frame? (Help)

Hello! I am on team FYRE 5480 and was having some issues with vision processing. It does not involve the code not working (not yet anyways) and would really like some insight as to what is going on here, and how to make it work.

This is the error that I am getting:

timed out getting frame
Error at java.base/java.lang.Thread.run(Unknown Source): timed out getting frame
at edu.wpi.first.wpilibj.RobotBase$1.reportDriverStationError(RobotBase.java:56)
at edu.wpi.first.vision.VisionRunner.runOnceInternal(VisionRunner.java:87)
at edu.wpi.first.vision.VisionRunner.runForever(VisionRunner.java:113)
at java.base/java.lang.Thread.run(Unknown Source)
Error at java.base/java.lang.Thread.run(Unknown Source):
at edu.wpi.first.wpilibj.RobotBase$1.reportDriverStationError(RobotBase.java:56)
at edu.wpi.first.vision.VisionRunner.runOnceInternal(VisionRunner.java:87)
at edu.wpi.first.vision.VisionRunner.runForever(VisionRunner.java:113)
at java.base/java.lang.Thread.run(Unknown Source)
CommandScheduler loop overrun

Any help would be greatly appreciated. Thank you! :slightly_smiling_face:

I am pretty new to vision coding but I’ve gotten this too. You are likely scheduling multiple commands and running them simultaneously/overloading the command scheduler somehow. This causes a lot of stress on the RIO, slowing down the vision thread. It will take much longer to get frames from the camera and process them.

If you can somehow space out whatever commands these may be, or find out some other way to reduce command scheduler stress, everything should run much smoother and your vision thread shouldn’t time out grabbing frames.

1 Like

Awesome, I will try that, thank you!

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.