GRIP icon indicating copy to clipboard operation
GRIP copied to clipboard

Error with webcam

Open londonwafflez opened this issue 3 years ago • 0 comments
trafficstars

Please describe what actions we can take to reproduce the bug you found, including the error message.

When I accidentally enabled a logitech camera that didn't display video all was fine until I clicked the x next to the camera input. After that the error occured:

Thread[Webcam 0 Service,5,main] threw an exception

Stack Trace:

java.lang.RuntimeException: /bytedeco/javacpp-presets/opencv/cppbuild/linux-x86_64/opencv-3.0.0/modules/imgcodecs/src/loadsave.cpp:470: error: (-215) !buf.empty() && buf.isContinuous() in function imdecode_

	at org.bytedeco.javacpp.opencv_videoio.cvRetrieveFrame(Native Method)
	at org.bytedeco.javacv.OpenCVFrameGrabber.start(OpenCVFrameGrabber.java:205)
	at edu.wpi.grip.core.sources.GrabberService.startUp(GrabberService.java:52)
	at com.google.common.util.concurrent.AbstractExecutionThreadService$1$2.run(AbstractExecutionThreadService.java:60)
	at com.google.common.util.concurrent.Callables$4.run(Callables.java:122)
	at java.lang.Thread.run(Thread.java:745)

System Info:

Property Name Property
GRIP Version v1.5.2
java.version 1.8.0_102
javafx.version 8.0.102
os.name Linux
os.version 5.11.0-43-generic
os.arch amd64

londonwafflez avatar Dec 27 '21 02:12 londonwafflez