Too many simultaneous streams error

Hello, our team is using generated Java code from GRIP for vision processing. We want to display the hslThresholdOutput image on the smart dashboard because we believe that there is an error in our parameters. However, when we try to do this, we get this error:

 CS: ERROR: serve_hslThresholdOutput: Too many simultaneous client streams (MjpegServerImpl.cpp:504) 

We get this error only when we bring up this source in the smart dashboard.

Our code:


private static CvSource hslThresholdOutputSource = CameraServer.getInstance().putVideo("hslThresholdOutput", 640, 360);
hslThreshold(hslThresholdInput, hslThresholdHue, hslThresholdSaturation, hslThresholdLuminance, hslThresholdOutput);
hslThresholdOutputSource.putFrame(hslThresholdOutput);

Thanks in advance.