Closed phrack closed 7 years ago
Is this one of those cases where shot detection is broken because something threw an NPE in its thread?
Regardless, seems like we should catch UEs at the shot thread level and warn the user. Preferably send us the log too, breaking shot detection should be a priority bug
There is a different issue we need a separate thread for. The shot detection thread passes new shots to the canvas manager and then to the training exercises. This means anything that happens in a shotDetected
method in an exercise happens on a shot detection thread. In theory this does not slow things down since one shot detection thread = one shot. However, this does cause two problems:
shotDetected
method can break shot detection.The second one alone is enough reason to fix this. I'll open a separate issue to deal with this.
Pops here with an NPE:
https://github.com/phrack/ShootOFF/blob/master/src/main/java/com/shootoff/plugins/SteelChallenge.java#L234
My guess is the exercise isn't being restarted after recalibration.
Calibrate, add target, calibrate, shoot target should dupe it.