OpenFTC / EasyOpenCV

Finally, a straightforward and easy way to use OpenCV on an FTC robot!
213 stars 95 forks source link

Getting repeated occasions of "Viewport container specified by user is not empty!" #73

Closed Vector5233 closed 6 months ago

Vector5233 commented 6 months ago

As of today, we are getting this message:

"Viewport container specified by user is not empty!"

It seems to originate in line 273 of OpenCVCameraBase.java.

It occurs any time we try to run our autonomous OpMode twice in a row without turning off and back on.

The "fix" is to turn the robot and back on (hard reset). Resetting the robot does not work.

I assume that we are failing to release some resource somewhere?

Vector5233 commented 6 months ago

We found the problem - tried to initialize the VisionPortal twice in the same OpMode. Removed that and the problem went away.

Vector5233 commented 6 months ago

RESOLVED