phrack / ShootOFF

A virtual shooting range to enhance laser dry fire training.
http://shootoffapp.com
GNU General Public License v3.0
133 stars 71 forks source link

Clicking save in preferences too rapidly causes all cameras to be locked open #698

Closed cbdmaul closed 7 years ago

cbdmaul commented 7 years ago

Also causes exceptions (Probably in already open cams?):

Exception in thread "FetchImageCellWebcamImages" java.lang.UnsupportedOperationException: Provided data element number (0) should be multiple of the Mat channels count (1) at org.opencv.core.Mat.put(Mat.java:2550) at com.shootoff.camera.cameratypes.OptiTrackCamera.translateCameraArrayToMat(OptiTrackCamera.java:179) at com.shootoff.camera.cameratypes.OptiTrackCamera.getFrame(OptiTrackCamera.java:187) at com.shootoff.camera.cameratypes.OptiTrackCamera.getBufferedImage(OptiTrackCamera.java:194) at com.shootoff.gui.CheckableImageListCell.fetchWebcamImage(CheckableImageListCell.java:271) at com.shootoff.gui.CheckableImageListCell.lambda$1(CheckableImageListCell.java:165) at java.lang.Thread.run(Thread.java:745)

cbdmaul commented 7 years ago

Not sure about this one. I get the optitrack error consistently but not the locked cams. I only noticed it by accidentally double clicking.

phrack commented 7 years ago

Yea, doesn't dupe at all for me after multiple attempts.

cbdmaul commented 7 years ago

Let's just close it, if it is an optitrack problem nobody but me will get it anyway.