Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CameraServer telemetry exceptions #781

Open
Starlight220 opened this issue Mar 28, 2023 · 0 comments
Open

CameraServer telemetry exceptions #781

Starlight220 opened this issue Mar 28, 2023 · 0 comments

Comments

@Starlight220
Copy link
Member

The log here has the following exceptions:

Mar 24, 2023 6:51:40 PM edu.wpi.first.shuffleboard.plugin.cameraserver.source.CameraServerSource lambda$new$5
WARNING: Could not get bandwidth
VideoException [edu.wpi.first.cscore.VideoException: empty value]
	at edu.wpi.first.cscore.CameraServerJNI.getTelemetryAverageValue(Native Method)
	at edu.wpi.first.cscore.CameraServerJNI.getTelemetryAverageValue(CameraServerJNI.java:364)
	at edu.wpi.first.cscore.VideoSource.getActualDataRate(VideoSource.java:334)
	at edu.wpi.first.shuffleboard.plugin.cameraserver.source.CameraServerSource.lambda$new$5(CameraServerSource.java:139)

Mar 24, 2023 6:51:40 PM edu.wpi.first.shuffleboard.plugin.cameraserver.source.CameraServerSource lambda$new$5
WARNING: Could not get framerate
VideoException [edu.wpi.first.cscore.VideoException: empty value]
	at edu.wpi.first.cscore.CameraServerJNI.getTelemetryAverageValue(Native Method)
	at edu.wpi.first.cscore.CameraServerJNI.getTelemetryAverageValue(CameraServerJNI.java:364)
	at edu.wpi.first.cscore.VideoSource.getActualFPS(VideoSource.java:321)
	at edu.wpi.first.shuffleboard.plugin.cameraserver.source.CameraServerSource.lambda$new$5(CameraServerSource.java:145)

@PeterJohnson Now that I look at the API docs of those cscore methods, I see this warning:

   * <p>CameraServerJNI#setTelemetryPeriod() must be called for this to be valid (throws
   * VisionException if telemetry is not enabled).

It appears that this might be what's happening here, despite that method being called here, after loading the native libs, when the plugin is loaded:


Is it possible that one second isn't fast enough? What can cause this?

Originally posted by @Starlight220 in #773 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant