SmartDashboard Crashes On Vision Target Detection

We are doing vision detection in Java with NetBeans. We have a method SmartDashboard.putNumber() that causes SmartDashboard to crash when it sees the target. We think there’s a problem with the looping in the processImage method. Any ideas/tips? Thanks.

Can you post more code? It’s hard to help if we can’t see the whole context.