librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

Segmentation fault when using multicam in 14.04.03

Open oliviakim321 opened this issue 10 years ago • 5 comments

When connecting multiple cameras and runing multicam example file, I get the following output:

Segmentation fault (core dumped) 2016-01-25 13:23:45 INFO: UVC device detected with VID = 0x8086 PID = 0xa66 2016-01-25 13:23:45 INFO: Connecting to Intel RealSense F200 2016-01-25 13:23:45 INFO: UVC device detected with VID = 0x8086 PID = 0xa66

It seems like the devices aren't being registered separately.

oliviakim321 avatar Jan 25 '16 18:01 oliviakim321

Do you have an updated 4.4 kernel? Can you print out the firmware versions of the individual cameras?

ddiakopoulos avatar Jan 25 '16 20:01 ddiakopoulos

Yes, I'm running the updated 4.4 kernel. Do you know how I would check/update the firmware versions on linux?

oliviakim321 avatar Jan 25 '16 20:01 oliviakim321

cpp-tutorial-1-depth has a statement to print out firmware version. Also, could you check that librealsense can properly stream data from individual cameras?

ddiakopoulos avatar Jan 25 '16 20:01 ddiakopoulos

I updated my cameras to version 2.60.0.0, but am still getting the segmentation fault. Both cameras can properly stream data when plugged in individually.

oliviakim321 avatar Jan 26 '16 15:01 oliviakim321

I've pushed a commit (bbf9e73a43eb0d38eb982dea2dd94cf8f55511b2) which should fix this issue.

The problem is that our Video4Linux backend was not correctly determining which USB device corresponds to which /dev/video* file. It was only looking for a VID/PID match, which meant that multiple instances of the same device on Linux would be incorrectly associated. The new code matches based on USB bus number and device number, which should work regardless of number and combination of devices are plugged in.

sgorsten avatar Jan 26 '16 23:01 sgorsten