Closed Starlight220 closed 1 year ago
Moved to #781.
The log [here](https://github.com/wpilibsuite/shuffleboard/issues/770#issuecomment-1485491710) has this and more 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: ``` *
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: https://github.com/wpilibsuite/shuffleboard/blob/69b2dc2e98c3aa34d5ac3aec6a692467d36db6e2/plugins/cameraserver/src/main/java/edu/wpi/first/shuffleboard/plugin/cameraserver/CameraServerPlugin.java#L57 Is it possible that one second isn't fast enough? What can cause this?
(source: log file uploaded here -- note that this is with 2023.1.1)