# Realsense failure issues

**URL:** <https://forum.hello-robot.com/t/realsense-failure-issues/659>\
**Category:** Ask\
**Created:** [April 5, 2023, 5:40pm UTC](https://forum.hello-robot.com/t/realsense-failure-issues/659 "2023-04-05T17:40:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zackory](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/zackory/32/114_2.png) [@Zackory](https://forum.hello-robot.com/u/Zackory)\
**Post date:** [April 5, 2023, 5:40pm UTC](https://forum.hello-robot.com/t/realsense-failure-issues/659/1 "2023-04-05T17:40:09Z")

</div>

The RealSense D435i on one of our Stretch RE1s has been failing consistently for over a month now. There are days where the camera will not work at all for the entire day.  
We have done a firmware update on the camera.  
This is Ubuntu 20.04 and ROS Noetic  
System check passes on realsense

If we run `realsense-viewer` We get the following errors in the terminal

 ![Screenshot 2023-04-05 at 1.31.54 PM](https://canada1.discourse-cdn.com/flex030/uploads/hello_robot2/original/1X/191d0a6554ca17747583ea8e4caeea9cfa916cf1.jpeg)

The viewer also outputs the following error:  
 ![Screenshot 2023-04-05 at 1.31.19 PM](https://canada1.discourse-cdn.com/flex030/uploads/hello_robot2/original/1X/aa3001b2d0b8820b84058a164270456bd22793e1.png)

These errors also arise when we run `roslaunch stretch_core stretch_driver.launch`

---

<div class="post-metadata">

**Author:** ![Zackory](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/zackory/32/114_2.png) [@Zackory](https://forum.hello-robot.com/u/Zackory)\
**Post date:** [April 5, 2023, 6:12pm UTC](https://forum.hello-robot.com/t/realsense-failure-issues/659/2 "2023-04-05T18:12:58Z")

</div>

Some more details on this.  
It seems the camera is constantly crashing and resetting.  
Below are two images showing the errors that occur when this crash and reset happens.

 ![IMG_5911](https://canada1.discourse-cdn.com/flex030/uploads/hello_robot2/original/1X/524d00e4265acaa6ccf56de997a2b18a66c4ba5d.jpeg)

 ![IMG_5912](https://canada1.discourse-cdn.com/flex030/uploads/hello_robot2/original/1X/813307ef1540122c232f5f7536c85a6d3807acfa.jpeg)

---

<div class="post-metadata">

**Author:** ![aedsinger](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/aedsinger/32/6_2.png) [@aedsinger](https://forum.hello-robot.com/u/aedsinger)\
**Post date:** [April 5, 2023, 6:27pm UTC](https://forum.hello-robot.com/t/realsense-failure-issues/659/3 "2023-04-05T18:27:57Z")

</div>

Hi Zackory,

It certainly seems that there may be a hardware issue (cable or camera). Mohamed (our RealSense expert) will follow up shortly.

FWIW, this guide can help with software related issues.

> [@Working productively around Realsense D435i](https://forum.hello-robot.com/t/working-productively-around-realsense-d435i/647):
>
> The [Realsense D435i](https://www.intelrealsense.com/depth-camera-d435i/) is the RGB-D camera found in the Stretch’s head pan-tilt module and it functions as the primary perception sensor for the robot. When the Realsense D435i camera is connected to a Linux computer via USB, the operating system will recognize it as a USB device. The camera uses a standard [USB video class (UVC) driver](https://www.kernel.org/doc/html/v4.9/media/v4l-drivers/uvcvideo.html) which will create video device files (i.e. /dev/video\*) that can be accessed by any applications easily on the computer to receive video frames. An application can u…

More soon.

---

<div class="post-metadata">

**Author:** ![Zackory](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/zackory/32/114_2.png) [@Zackory](https://forum.hello-robot.com/u/Zackory)\
**Post date:** [April 5, 2023, 6:53pm UTC](https://forum.hello-robot.com/t/realsense-failure-issues/659/4 "2023-04-05T18:53:02Z")

</div>

Okay we fixed this (hopefully it continues working).

We tried unplugging the real sense in the head (at the USB C side of the cable and plugging the cable into a brand new D435i and it still kept crashing (so it was either the software or cable, not the realsense).  
We plugged the new D435i into the back of the robot via a new USB cable and it worked, so there was an issue with the cable.

Previously the real sense was plugged directly into the Intel NUC.  
**Ultimately, we unplugged the real sense from the NUC and plugged it into an open port on one of the USB hub splitters inside the robot and now the camera works.**

---

<div class="post-metadata">

**Author:** ![Mohamed\_Fazil](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/mohamed_fazil/32/261_2.png) [@Mohamed\_Fazil](https://forum.hello-robot.com/u/Mohamed_Fazil)\
**Post date:** [April 5, 2023, 11:16pm UTC](https://forum.hello-robot.com/t/realsense-failure-issues/659/5 "2023-04-05T23:16:01Z")

</div>

Hi @Zackory, We are glad you were able to fix the issue by yourself. Thank you for providing the error outputs and debug methodology, which is very helpful for us to profile our realsense issues. Please let us know when the problem pops up again.
