jetsonhacks / buildLibrealsense2Xavier

Build librealsense 2.0 library on the NVIDIA Jetson AGX Xavier Developer Kit. Intel RealSense D400 series cameras.
MIT License
56 stars 29 forks source link

Depth stream freezes with error "USB SCP overflow" #6

Open WasabiFan opened 5 years ago

WasabiFan commented 5 years ago

After following the setup instructions in this repo, the depth stream stops updating within a few minutes of opening it. It doesn't recover unless I unplug/replug the device or click "Hardware Reset" in the viewer. Here's what it looks like in the realsense-viewer app:

screenshot from 2019-03-06 18-16-18

I believe this is specific to the Jetson. I had similar depth stream freezing issues on the TX2, but it works fine on my Windows laptop.

Any suggestions for debugging this?

WasabiFan commented 5 years ago

Update: building with -DFORCE_LIBUVC=true seems to help. Whereas the depth stream consistently froze within 50 seconds before, now I've been able to run it for 10+ minutes multiple times without it stopping. I don't know why this occurs.

longwoo commented 5 years ago

I had the same problem. It is weird that it is OK in the https://www.youtube.com/watch?v=Pp18JL6H2zc tutorials.

WasabiFan commented 5 years ago

Currently, in my system it runs OK at first but then will intermittently freeze for anywhere from a second to ten seconds. I still haven't been able to figure out what is causing it.

I've been trying to get the official librealsense maintainers to help out, but they seem to be ignoring my issues... https://github.com/IntelRealSense/librealsense/issues/3268 was closed and https://github.com/IntelRealSense/librealsense/issues/3906 hasn't had any responses since I posted it. It might be that they don't want to deal with platforms other than x86... I can't say.

longwoo commented 5 years ago

The Intel and Nvidia corp is not support offcially.

The comments on the blog https://www.jetsonhacks.com/2019/01/21/intel-realsense-d435i-on-nvidia-jetson-agx-xavier/ gives some ideas to solve this ,such as usb3.0 hub , pcie to usb. Have you tried? I don't have a Xavier at hand now, so I cannot make a test.

longwoo commented 5 years ago

It works on usb3.0 hub.

WasabiFan commented 5 years ago

@longwoo a hub or a PCIe card?

longwoo commented 5 years ago

@WasabiFan A use3.0 hub connected to Xavier usb port. I had tested it for hours.

ustyui commented 5 years ago

@WasabiFan A use3.0 hub connected to Xavier usb port. I had tested it for hours.

@WasabiFan I also have tested using an usb3.0 hub and it actually works, but that is because when using usb3.0 configuration the camera resolution is 1024768 or something (less than when you are using usb3.2, 1280768 or so).

If lowing the resolution would be okay for you I suggest that you use a USB 3.0 config.

WasabiFan commented 5 years ago

I'm running color at 960x540 and depth at 640x480. I highly doubt that resolution is the issue.