IntelRealSense / librealsense

Intel® RealSense™ SDK
https://www.intelrealsense.com/
Apache License 2.0
7.61k stars 4.83k forks source link

Firmware 5.12.2.100 causes realsense-viewer to crash when imu is on D435i #5717

Closed Ezward closed 4 years ago

Ezward commented 4 years ago

Required Info
Camera Model D435i
Firmware Version 05.12.02.100
Operating System & Version Ubuntu18.04
Kernel Version (Linux Only) 5.3.0-26-generic
Platform MSI Gaming Laptop RTX2060
SDK Version 2.32.1
Language realsense-viewer
Segment Robot-donkeycar

Issue Description

I updated SDK, then updated firmware. Now when I run realsense viewer, if I use rgb and depth everything is fine (although missng 848x480 resolution, which I used to have), but if I turn on Motion Module, realsense-view crashes. Restarting and it will crash as well, indicating camera is in a bad state. Hardware reset from realsense-view did not work. Uplugging camera, quitting realsense-viewer, plug back in camera and restart realsense-viewer and I'm back to where I can use RGB and Depth.

If I only use the Motion Module, it seems to work fine (which is an improvement over prior versions, where it did not seem to return correct values). However, once I turn on RGB camera, I get error message. Here is what console looks like;

(venv) (base) ezward@ezward-GV63-8SE:~/projects/realsenseutils$ realsense-viewer
 26/01 15:26:47,551 WARNING [140222487144192] (types.cpp:49) Accel Sensitivity:hwmon command 0x4f failed. Error type: No data to return (-21).
 26/01 15:26:47,780 ERROR [140222487144192] (types.h:304) xioctl(VIDIOC_S_CTRL) failed Last Error: Invalid argument
 26/01 15:26:47,780 WARNING [140222487144192] (sensor.cpp:630) Exception was thrown when inspecting Raw RGB Camera property Controls white balance of color image. Setting any value will disable auto white balance
 26/01 15:26:47,781 ERROR [140222487144192] (types.h:304) xioctl(VIDIOC_G_CTRL) failed Last Error: Invalid argument
 26/01 15:26:47,781 WARNING [140222487144192] (sensor.cpp:630) Exception was thrown when inspecting Raw RGB Camera property Enable / disable auto-exposure
 26/01 15:26:51,042 WARNING [140222306162432] (backend-hid.cpp:681) HID set_power 1 failed for /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.5/0003:8086:0B3A.0010/HID-SENSOR-200073.3.auto/iio:device0/buffer/enable
 26/01 15:26:51,143 WARNING [140222083884800] (sensor.cpp:968) HID timestamp not found, switching to Host timestamps.
 26/01 15:28:43,910 WARNING [140222314555136] (backend-v4l2.cpp:973) Frames didn't arrived within 5 seconds

Those first six lines show up if I just start realsense-viewer and never even try to turn on a sensor.

Here is what happens run I run some python examples from librealsense:

Is there a way to revert; what I had before worked well. At this point, the camera is useless to me because I need all 3 streams.

ev-mp commented 4 years ago

@Ezward hello, I tried D435i with the same FW and kernel versions as specified but could not reproduce any of the above in realsense-viewer/ rs-capture / rs-measure. Can you turn on and provide the SDK and kernel logs for review ?

Additionally I'd recommend to try a different USB cable/port as some of the warnings are associated with power/hw setup.

Ezward commented 4 years ago

It was the cable. I was using a 3rd party cable when getting the errors. When I switch to the supplied cable, everything worked. Thank you.