My team had a similar problem last year, but I'd be surprised if it hasn't been fixed yet. This may be the solution you're looking for, but with newer versions of WPILib it could be something completely different.
Our trouble was with WPILib itself when using the newer camera - the AxisCamera and AxisCameraParams classes do not use semaphores correctly when accessing the camera, leading to a race condition.
I posted
this thread detailing the fix last year. Since the HTML links don't work in the archive, Joe Hurler's original fix is
here, and the download for the patch files is
here.