You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :)
Required Info
Camera Model
{ D435 }
Firmware Version
(Open RealSense Viewer --> 2.53.1)
Operating System & Version
Linux (Ubuntu 22.04 LTS)
Kernel Version (Linux Only)
(5.15.0-56-generic)
Platform
PC (x86 CPU)
SDK Version
{ 2.53.1}
Language
{C/C++ }
Segment
{others }
Issue Description
I have been attempting to install on a new Ubuntu distro 22.04 LTS, however when running my program which previously worked on Ubuntu 20.04 I find the following error being thrown:
RealSense error calling rs2_create_device(info_list:0x555e5b7a8c00, index:1):
/dev/video0 is no video capture device Last Error: Invalid argument
When I go to list my devices out for my computer I see the following and indeed the Depth camera does not correspond with /dev/video0
I have tested out the realsense-viewer and recorder which seems to work fine. I only have one device connected. I have also checked my code and found that the problem starts when I query for the devices. specifically looping through any connected devices:
for (rs2::device &&dev : ctx.query_devices()){
...
I have seen a similar issue from here #10072. I have checked for memory leaks which don't seem to present. I have seen that they used docker (which currently I am not using). Is there any way to get this fixed short of a custom build? Thanks.
The text was updated successfully, but these errors were encountered:
Hi @yeric1789 If you are only using one camera and wish to access the depth stream, an alternative to looping through all connected devices may be to query for the first depth sensor that can be detected. For example in C++:
auto sensor = selection.get_device().first<rs2::depth_sensor>();
One of the best C++ references for using query_devices for querying the presence of all attached cameras rather than a specific sensor is #2219
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
I have been attempting to install on a new Ubuntu distro 22.04 LTS, however when running my program which previously worked on Ubuntu 20.04 I find the following error being thrown:
When I go to list my devices out for my computer I see the following and indeed the Depth camera does not correspond with /dev/video0
I have tested out the realsense-viewer and recorder which seems to work fine. I only have one device connected. I have also checked my code and found that the problem starts when I query for the devices. specifically looping through any connected devices:
I have seen a similar issue from here #10072. I have checked for memory leaks which don't seem to present. I have seen that they used docker (which currently I am not using). Is there any way to get this fixed short of a custom build? Thanks.
The text was updated successfully, but these errors were encountered: