View Single Post
  #7   Spotlight this post!  
Unread 27-01-2017, 00:39
avayner avayner is offline
Registered User
FRC #3501
 
Join Date: Jan 2017
Location: Sunnyvale, CA
Posts: 4
avayner is an unknown quantity at this point
Re: ioctl Errors and Intermediate Vision sample not working

We seem to be having the same issue.

We are just trying to initialize the USB camera (using Java) by doing this:

camera = CameraServer.getInstance().startAutomaticCapture()

and we are getting this:


CS: ERROR: ioctl VIDIOC_S_EXT_CTRLS failed at UsbCameraProperty.cpp:66: Input/output error (UsbUtil.cpp:122)
Exception in thread "NTListener" VideoException [edu.wpi.cscore.VideoException: property write failed]
at edu.wpi.cscore.CameraServerJNI.setProperty(Native Method)
at edu.wpi.cscore.VideoProperty.set(VideoProperty.jav a:68)
at edu.wpi.first.wpilibj.CameraServer.lambda$new$1(Ca meraServer.java:498)
at edu.wpi.first.wpilibj.CameraServer$$Lambda$2/3326003.apply(Unknown Source)
CS: USB Camera 0: set FPS to 0
CS: ERROR: ioctl VIDIOC_S_EXT_CTRLS failed at UsbCameraProperty.cpp:66: Input/output error (UsbUtil.cpp:122)
Exception in thread "NTListener" VideoException [edu.wpi.cscore.VideoException: property write failed]
at edu.wpi.cscore.CameraServerJNI.setProperty(Native Method)
at edu.wpi.cscore.VideoProperty.set(VideoProperty.jav a:68)
at edu.wpi.first.wpilibj.CameraServer.lambda$new$1(Ca meraServer.java:498)
at edu.wpi.first.wpilibj.CameraServer$$Lambda$2/3326003.apply(Unknown Source)
CS: ERROR: ioctl VIDIOC_S_CTRL failed at UsbCameraProperty.cpp:72: Input/output error (UsbUtil.cpp:122)
Exception in thread "NTListener" VideoException [edu.wpi.cscore.VideoException: property write failed]
at edu.wpi.cscore.CameraServerJNI.setProperty(Native Method)
at edu.wpi.cscore.VideoProperty.set(VideoProperty.jav a:68)
at edu.wpi.first.wpilibj.CameraServer.lambda$new$1(Ca meraServer.java:498)
at edu.wpi.first.wpilibj.CameraServer$$Lambda$2/3326003.apply(Unknown Source)
Reply With Quote