-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RealSense error calling rs2_pipeline_start( ):xioctl(VIDIOC_S_FMT) failed, errno=5 Last Error: Input/output error. #13685
Comments
Hi @kummerrrrrr Can you confirm please that realsense-viewer is not streaming depth at the time that you launch rs-pointcloud? Only one program at a time can access a particular camera stream, so if depth was enabled in realsense-viewer first and then rs-pointcloud was launched, rs-pointcloud would have a blank black screen because realsense-viewer has already claimed exclusive use of the depth stream until it is stopped or realsense-viewer is closed. |
Yes, I always close the current program before launching another one. |
If you built the tools and examples when compiling librealsense from source code, can you look for the pre-built executable version of rs-pointcloud in the usr/local/bin folder of Ubuntu please and try launching it from that location? |
If realsense-viewer is able to work correctly then it indicates that the problem is not related to the ability to run RealSense programs that use graphics. A difference between your realsense-viewer program and rs-pointcloud is that in realsense-viewer you do not have RGB color enabled, whilst rs-pointcloud automatically uses both depth and the RGB color stream. If you enable depth first and then RGB secondly in the 3D pointcloud mode of realsense-viewer, is a pointcloud with both depth and color detail on it able to be displayed? |
Thank you. Next, please run rs-capture. If it works and can display both depth and color streams then that would indicate that the input-output error is a problem that is specific to the rs-pointcloud example program on your computer. |
Still reports the error |
It is not clear why realsense-viewer would work but the example programs would not, as the the input/output error would typically be related to a problem with USB (the USB port or the USB cable). The USB cable is detected by realsense-viewer as 3.2, suggesting that it is in good working order. Which method did you use to install librealsense from source code? |
According to the method shown in the link below: |
The procedure for building librealsense from source code with CMake in RSUSB = true mode is described at #9931 (comment) With the RSUSB installation method, the kernel is bypassed, so it is not necessary to apply a kernel patch script. You also do not need to install prerequisites, as the RSUSB method installs them over an internet connection instead. This install method works well on computers that experience conflicts between librealsense and the Linux kernel. xioctl(VIDIOC_S_FMT) failed errors are usually related to such kernel conflicts. |
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
Issue Description
<Describe your issue / question / feature request / etc..>
I compiled librealsense using source code, located the executable file, and executed ./rs-pointcloud and ./realsense-viewer respectively.
The former reported an error: RealSense error calling rs2_pipeline_start(pipe:0x5560af0439b0):xioctl(VIDIOC_S_FMT) failed, errno=5 Last Error: Input/output error.
The latter can run normally. (Please see the attachment)
May I ask why this result occurs?
The text was updated successfully, but these errors were encountered: