IntelRealSense / realsense-ros

ROS Wrapper for Intel(R) RealSense(TM) Cameras
http://wiki.ros.org/RealSense
Apache License 2.0
2.6k stars 1.76k forks source link

Libusb Errors Leading to Node Crash #3245

Open BryanBetancur opened 2 weeks ago

BryanBetancur commented 2 weeks ago

Hello

Required Info  
Camera Model D435i
Firmware Version 5.16.0.1
Operating System Ubuntu 20.04.6 LTS
Platform NVIDIA Jetson Orin AGX
Jetpack 5.1.1 [L4T 35.3.1]
Kernel Version (Linux Only) 5.10.104-tegra
Librealsense SDK Version 2.56.1
ROS Distro Humble
RealSense ROS Wrapper Version 4.56.1

Issue Description

After enabling and disabling the camera multiple times, the following errors occur randomly, causing the node to crash and subsequently respawn. I've documented three different cases (but all related with libusb), which I'll outline below:

  1. libusb: debug [libusb_handle_events_timeout_completed] another thread is doing event handling:
    [nav_bottom-5] [INFO] [1730918083.523281362] [gary.cameras.nav_bottom]: Starting Sensor: RGB Camera
    [nav_bottom-5] [INFO] [1730918083.611428773] [gary.cameras.nav_bottom]: Open profile: stream_type: Color(0), Format: RGB8, Width: 1280, Height: 720, FPS: 15
    [nav_bottom-5] 06/11 18:34:43,692 WARNING [281472913082672] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_bottom-5] 06/11 18:34:43,703 WARNING [281472913082672] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_bottom-5] 06/11 18:34:43,716 WARNING [281472913082672] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_bottom-5] 06/11 18:34:43,727 WARNING [281472913082672] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_bottom-5] 06/11 18:34:43,738 WARNING [281472913082672] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_bottom-5] 06/11 18:34:43,750 WARNING [281472913082672] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_bottom-5] 06/11 18:34:44,484 WARNING [281472913082672] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_bottom-5] 06/11 18:34:44,497 WARNING [281472913082672] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_bottom-5] 06/11 18:34:59,916 ERROR [281472135014704] (uvc-streamer.cpp:105) uvc streamer watchdog triggered on endpoint: 130
    [nav_bottom-5] 06/11 18:35:14,600 ERROR [281472135014704] (uvc-streamer.cpp:105) uvc streamer watchdog triggered on endpoint: 130
    [nav_bottom-5] 06/11 18:35:15,938 ERROR [281472135014704] (uvc-streamer.cpp:105) uvc streamer watchdog triggered on endpoint: 130
    [nav_bottom-5] 06/11 18:35:33,958 ERROR [281472135014704] (uvc-streamer.cpp:105) uvc streamer watchdog triggered on endpoint: 130
    [nav_bottom-5] [INFO] [1730918139.783360474] [gary.cameras.nav_bottom]: Stopping Sensor: Depth Module
    [nav_bottom-5] [INFO] [1730918139.783490012] [gary.cameras.nav_bottom]: Stop Sensor: Depth Module
    [nav_bottom-5] [INFO] [1730918139.783534493] [gary.cameras.nav_bottom]: Close Sensor. 
    [nav_bottom-5] [INFO] [1730918140.021006423] [gary.cameras.nav_bottom]: Close Sensor - Done. 
    [nav_bottom-5] [INFO] [1730918140.065551972] [gary.cameras.nav_bottom]: Stopping Sensor: RGB Camera
    [nav_bottom-5] [INFO] [1730918140.065680006] [gary.cameras.nav_bottom]: Stop Sensor: RGB Camera
    [nav_bottom-5] [INFO] [1730918140.066495860] [gary.cameras.nav_bottom]: Close Sensor. 
    [nav_bottom-5] [INFO] [1730918141.384667244] [gary.cameras.nav_bottom]: Close Sensor - Done. 
    [nav_top-3] 06/11 18:36:08,472 WARNING [281472225208624] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:37:17,589 WARNING [281472225208624] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:37:22,124 WARNING [281472225208624] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:37:30,129 WARNING [281472225208624] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] [INFO] [1730918275.221905562] [gary.cameras.nav_top]: Stopping Sensor: RGB Camera
    [nav_top-3] [INFO] [1730918275.222154910] [gary.cameras.nav_top]: Stop Sensor: RGB Camera
    [nav_top-3] [INFO] [1730918275.222243456] [gary.cameras.nav_top]: Close Sensor. 
    [nav_top-3] [INFO] [1730918276.413789795] [gary.cameras.nav_top]: Close Sensor - Done. 
    [nav_top-3] [INFO] [1730918399.482503770] [gary.cameras.nav_top]: Stopping Sensor: RGB Camera
    [nav_top-3] [INFO] [1730918399.517535260] [gary.cameras.nav_top]: Starting Sensor: RGB Camera
    [nav_top-3] [INFO] [1730918399.781650015] [gary.cameras.nav_top]: Open profile: stream_type: Color(0), Format: RGB8, Width: 1280, Height: 720, FPS: 15
    [nav_top-3] 06/11 18:40:00,113 WARNING [281472225208624] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:40:01,670 WARNING [281472225208624] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:42:28,975 WARNING [281472225208624] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:46:44,162 WARNING [281472225208624] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:46:45,295 WARNING [281472225208624] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:47:48,876 WARNING [281472225208624] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:48:08,423 WARNING [281472225208624] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:49:04,464 WARNING [281472225208624] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:49:18,140 WARNING [281472225208624] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:52:56,703 WARNING [281472225208624] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:54:14,288 WARNING [281472225208624] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:59:02,563 WARNING [281472225208624] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:59:04,833 WARNING [281472225208624] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] libusb: debug [libusb_handle_events_timeout_completed] another thread is doing event handling
    [LAUNCH ERROR] [nav_top-3.launch]: process has died [pid 72794, exit code -11, cmd '/robot/additional_ros_packages/install/lib/realsense2_camera/realsense2_camera_node --ros-args -r __node:=nav_top -r __ns:=/gary/cameras --params-file /robot/build/ros_pkgs/install/gary_cameras/share/gary_cameras/config/gary_cameras.yaml --params-file /robot/config/general.config.yaml --params-file /robot/config/cameras/cameras.config.yaml -r /gary/cameras/nav_top/depth/color/points:=/gary/cameras/nav_top/points'].
    [LAUNCH INFO] [nav_top-3.launch]: process started with pid [1640333]
    [nav_top-3] [INFO] [1730919589.058724861] [gary.cameras.nav_top]: RealSense ROS v4.56.1
    [nav_top-3] [INFO] [1730919589.058892289] [gary.cameras.nav_top]: Built with LibRealSense v2.56.1
    [nav_top-3] [INFO] [1730919589.058933409] [gary.cameras.nav_top]: Running with LibRealSense v2.56.1
    [nav_top-3] [INFO] [1730919589.986805719] [gary.cameras.nav_top]: Device with serial number 046222070575 was found.
    [nav_top-3] [INFO] [1730919589.987035484] [gary.cameras.nav_top]: Device with physical ID 2-1.3-6 was found.
    [nav_top-3] [INFO] [1730919589.987075773] [gary.cameras.nav_top]: Device with name Intel RealSense D435I was found.
    [nav_top-3] [INFO] [1730919589.995900047] [gary.cameras.nav_top]: Device with port number 2-1.3 was found.
    [nav_top-3] [INFO] [1730919590.682521807] [gary.cameras.nav_top]: Device with serial number 207122078101 was found.
    [nav_top-3] [INFO] [1730919590.682698130] [gary.cameras.nav_top]: Device with physical ID 2-3.2-5 was found.
    [nav_top-3] [INFO] [1730919590.682748467] [gary.cameras.nav_top]: Device with name Intel RealSense D435I was found.
    [nav_top-3] [INFO] [1730919590.685380104] [gary.cameras.nav_top]: Device with port number 2-3.2 was found.
    [nav_top-3] [INFO] [1730919590.685515115] [gary.cameras.nav_top]: Device USB type: 3.2
    [nav_top-3] [INFO] [1730919591.443157476] [gary.cameras.nav_top]: JSON file is not provided
    [nav_top-3] [INFO] [1730919591.443404393] [gary.cameras.nav_top]: Device Name: Intel RealSense D435I
    [nav_top-3] [INFO] [1730919591.443446058] [gary.cameras.nav_top]: Device Serial No: 207122078101
    [nav_top-3] [INFO] [1730919591.443472874] [gary.cameras.nav_top]: Device physical port: 2-3.2-5
    [nav_top-3] [INFO] [1730919591.443496235] [gary.cameras.nav_top]: Device FW version: 5.16.0.1
    [nav_top-3] [INFO] [1730919591.443519403] [gary.cameras.nav_top]: Device Product ID: 0x0B3A
    [nav_top-3] [INFO] [1730919591.443541196] [gary.cameras.nav_top]: Sync Mode: Off
    [nav_top-3] [WARN] [1730919597.057868325] [gary.cameras.nav_top]: re-enable the stream for the change to take effect.
    [nav_top-3] [WARN] [1730919597.071464631] [gary.cameras.nav_top]: re-enable the stream for the change to take effect.
    [nav_top-3] [WARN] [1730919597.963122652] [gary.cameras.nav_top]: re-enable the stream for the change to take effect.
    [nav_top-3] [INFO] [1730919598.165433325] [gary.cameras.nav_top]: RealSense Node Is Up!
  2. libusb: debug [libusb_cancel_transfer] transfer 0xffff500027f8:
    [nav_bottom-5] [INFO] [1730930679.394471380] [gary.cameras.nav_bottom]: Starting Sensor: RGB Camera
    [nav_bottom-5] [INFO] [1730930679.413228337] [gary.cameras.nav_bottom]: Open profile: stream_type: Color(0), Format: RGB8, Width: 1280, Height: 720, FPS: 15
    [nav_bottom-5] 06/11 22:04:39,707 WARNING [281472913082672] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_bottom-5] 06/11 22:04:39,718 WARNING [281472913082672] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_bottom-5] 06/11 22:04:39,729 WARNING [281472913082672] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_bottom-5] 06/11 22:04:39,739 WARNING [281472913082672] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_bottom-5] [INFO] [1730930711.492027852] [gary.cameras.nav_bottom]: Stopping Sensor: RGB Camera
    [nav_bottom-5] [INFO] [1730930711.492172014] [gary.cameras.nav_bottom]: Stop Sensor: RGB Camera
    [nav_bottom-5] [INFO] [1730930711.492255824] [gary.cameras.nav_bottom]: Close Sensor. 
    [nav_bottom-5] [INFO] [1730930712.859958304] [gary.cameras.nav_bottom]: Close Sensor - Done. 
    [nav_top-3] [INFO] [1730930722.048916488] [gary.cameras.nav_top]: Stopping Sensor: RGB Camera
    [nav_top-3] [INFO] [1730930722.077716429] [gary.cameras.nav_top]: Starting Sensor: RGB Camera
    [nav_top-3] [INFO] [1730930722.292365839] [gary.cameras.nav_top]: Open profile: stream_type: Color(0), Format: RGB8, Width: 1280, Height: 720, FPS: 15
    [nav_top-3] 06/11 22:05:22,613 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:05:22,624 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:08:44,260 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:10:04,784 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:17:03,888 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:18:49,364 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:19:46,740 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:20:02,751 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:21:59,769 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:22:02,104 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:22:11,312 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:22:37,731 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:25:20,716 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:27:32,877 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:31:59,139 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:34:17,640 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:35:23,020 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:38:04,803 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:38:09,408 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:40:01,688 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:40:51,125 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:41:06,068 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:42:37,869 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:42:49,411 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:46:52,788 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:48:15,647 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:48:58,210 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:51:13,776 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:51:19,580 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:52:22,629 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:53:00,655 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:53:39,682 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:54:48,666 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 22:57:13,504 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] [INFO] [1730933983.485542847] [gary.cameras.nav_top]: Stopping Sensor: RGB Camera
    [nav_top-3] [INFO] [1730933983.485651648] [gary.cameras.nav_top]: Stop Sensor: RGB Camera
    [nav_top-3] [INFO] [1730933983.485689825] [gary.cameras.nav_top]: Close Sensor. 
    [nav_top-3] [INFO] [1730933984.950486213] [gary.cameras.nav_top]: Close Sensor - Done. 
    [nav_top-3] [INFO] [1730936291.167258628] [gary.cameras.nav_top]: Stopping Sensor: RGB Camera
    [nav_top-3] [INFO] [1730936291.175279669] [gary.cameras.nav_top]: Starting Sensor: RGB Camera
    [nav_top-3] [INFO] [1730936291.400359091] [gary.cameras.nav_top]: Open profile: stream_type: Color(0), Format: RGB8, Width: 1280, Height: 720, FPS: 15
    [nav_top-3] 06/11 23:40:12,174 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 23:40:27,118 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 23:42:56,293 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 23:42:57,427 WARNING [281472007129392] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] libusb: debug [libusb_cancel_transfer] transfer 0xffff500027f8
    [LAUNCH ERROR] [nav_top-3.launch]: process has died [pid 1640333, exit code -11, cmd '/robot/additional_ros_packages/install/lib/realsense2_camera/realsense2_camera_node --ros-args -r __node:=nav_top -r __ns:=/gary/cameras --params-file /robot/build/ros_pkgs/install/gary_cameras/share/gary_cameras/config/gary_cameras.yaml --params-file /robot/config/general.config.yaml --params-file /robot/config/cameras/cameras.config.yaml -r /gary/cameras/nav_top/depth/color/points:=/gary/cameras/nav_top/points'].
    [LAUNCH INFO] [nav_top-3.launch]: process started with pid [366695]
    [nav_top-3] [INFO] [1730936644.928427407] [gary.cameras.nav_top]: RealSense ROS v4.56.1
    [nav_top-3] [INFO] [1730936644.928607762] [gary.cameras.nav_top]: Built with LibRealSense v2.56.1
    [nav_top-3] [INFO] [1730936644.928642707] [gary.cameras.nav_top]: Running with LibRealSense v2.56.1
    [nav_top-3] [INFO] [1730936645.874155098] [gary.cameras.nav_top]: Device with serial number 046222070575 was found.
    [nav_top-3] [INFO] [1730936645.874532353] [gary.cameras.nav_top]: Device with physical ID 2-1.3-6 was found.
    [nav_top-3] [INFO] [1730936645.874586946] [gary.cameras.nav_top]: Device with name Intel RealSense D435I was found.
    [nav_top-3] [INFO] [1730936645.877205207] [gary.cameras.nav_top]: Device with port number 2-1.3 was found.
    [nav_top-3] [INFO] [1730936646.857322637] [gary.cameras.nav_top]: Device with serial number 207122078101 was found.
    [nav_top-3] [INFO] [1730936646.859864544] [gary.cameras.nav_top]: Device with physical ID 2-3.2-5 was found.
    [nav_top-3] [INFO] [1730936646.859922913] [gary.cameras.nav_top]: Device with name Intel RealSense D435I was found.
    [nav_top-3] [INFO] [1730936646.864417755] [gary.cameras.nav_top]: Device with port number 2-3.2 was found.
    [nav_top-3] [INFO] [1730936646.864535741] [gary.cameras.nav_top]: Device USB type: 3.2
    [nav_top-3] [INFO] [1730936647.953317097] [gary.cameras.nav_top]: JSON file is not provided
    [nav_top-3] [INFO] [1730936647.953505325] [gary.cameras.nav_top]: Device Name: Intel RealSense D435I
    [nav_top-3] [INFO] [1730936647.953550958] [gary.cameras.nav_top]: Device Serial No: 207122078101
    [nav_top-3] [INFO] [1730936647.953585934] [gary.cameras.nav_top]: Device physical port: 2-3.2-5
    [nav_top-3] [INFO] [1730936647.953613647] [gary.cameras.nav_top]: Device FW version: 5.16.0.1
    [nav_top-3] [INFO] [1730936647.953638735] [gary.cameras.nav_top]: Device Product ID: 0x0B3A
    [nav_top-3] [INFO] [1730936647.953660208] [gary.cameras.nav_top]: Sync Mode: Off
    [nav_top-3] 06/11 23:44:13,481 WARNING [281472023914800] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] [WARN] [1730936653.915120022] [gary.cameras.nav_top]: re-enable the stream for the change to take effect.
    [nav_top-3] [WARN] [1730936653.920595107] [gary.cameras.nav_top]: re-enable the stream for the change to take effect.
    [nav_top-3] [WARN] [1730936654.762709978] [gary.cameras.nav_top]: re-enable the stream for the change to take effect.
    [nav_top-3] [INFO] [1730936654.949506535] [gary.cameras.nav_top]: RealSense Node Is Up!
  3. libusb: debug [reap_for_handle] urb type=1 status=-2 transferred=0:
    
    [nav_bottom-5] [INFO] [1730912653.929038039] [gary.cameras.nav_bottom]: Starting Sensor: Depth Module
    [nav_top-3] [INFO] [1730912653.929358012] [gary.cameras.nav_top]: Starting Sensor: Depth Module
    [nav_top-3] [INFO] [1730912654.135611889] [gary.cameras.nav_top]: Open profile: stream_type: Depth(0), Format: Z16, Width: 848, Height: 480, FPS: 15
    [nav_bottom-5] [INFO] [1730912654.180333549] [gary.cameras.nav_bottom]: Open profile: stream_type: Depth(0), Format: Z16, Width: 848, Height: 480, FPS: 15
    [nav_bottom-5] 06/11 17:04:14,181 WARNING [281472309102896] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_bottom-5] 06/11 17:04:14,193 WARNING [281472309102896] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_bottom-5] 06/11 17:04:15,026 WARNING [281472309102896] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_bottom-5] 06/11 17:04:15,037 WARNING [281472309102896] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_bottom-5] 06/11 17:04:15,053 WARNING [281472309102896] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_bottom-5] 06/11 17:04:15,072 WARNING [281472309102896] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_bottom-5] 06/11 17:04:15,089 WARNING [281472309102896] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] [INFO] [1730912692.320683331] [gary.cameras.nav_top]: Stopping Sensor: Depth Module
    [nav_top-3] [INFO] [1730912692.320821861] [gary.cameras.nav_top]: Stop Sensor: Depth Module
    [nav_top-3] [INFO] [1730912692.321718833] [gary.cameras.nav_top]: Close Sensor. 
    [nav_bottom-5] [INFO] [1730912692.775775026] [gary.cameras.nav_bottom]: Stopping Sensor: Depth Module
    [nav_bottom-5] [INFO] [1730912692.775901428] [gary.cameras.nav_bottom]: Stop Sensor: Depth Module
    [nav_bottom-5] [INFO] [1730912692.776013622] [gary.cameras.nav_bottom]: Close Sensor. 
    [nav_top-3] [INFO] [1730912692.817049656] [gary.cameras.nav_top]: Close Sensor - Done. 
    [nav_bottom-5] [INFO] [1730912693.813831546] [gary.cameras.nav_bottom]: Close Sensor - Done. 
    [nav_top-3] 06/11 17:06:26,751 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 17:10:46,473 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 17:15:29,477 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 17:16:37,862 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 17:19:12,971 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 17:23:26,958 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 17:23:37,365 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 17:26:00,873 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 17:27:11,923 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 17:28:05,956 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 17:31:18,029 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 17:31:36,910 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 17:32:19,141 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 17:33:46,870 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 17:35:06,328 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 17:35:14,334 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 17:37:53,849 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 17:43:27,025 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 17:45:54,733 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 17:51:33,778 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 17:56:36,130 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 17:58:52,562 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:03:53,913 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:15:37,291 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:16:07,244 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:16:37,334 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:20:05,218 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:22:22,917 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:25:42,464 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_top-3] 06/11 18:29:44,572 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
    [nav_bottom-5] libusb: debug [reap_for_handle] urb type=1 status=-2 transferred=0
    [LAUNCH ERROR] [nav_bottom-5.launch]: process has died [pid 652130, exit code -11, cmd '/robot/additional_ros_packages/install/lib/realsense2_camera/realsense2_camera_node --ros-args -r __node:=nav_bottom -r __ns:=/gary/cameras --params-file /robot/build/ros_pkgs/install/gary_cameras/share/gary_cameras/config/gary_cameras.yaml --params-file /robot/config/general.config.yaml --params-file /robot/config/cameras/cameras.config.yaml -r /gary/cameras/nav_bottom/depth/color/points:=/gary/cameras/nav_bottom/points'].
    [LAUNCH INFO] [nav_bottom-5.launch]: process started with pid [2367548]
    [nav_bottom-5] [INFO] [1730917842.907188675] [gary.cameras.nav_bottom]: RealSense ROS v4.56.1
    [nav_bottom-5] [INFO] [1730917842.907396390] [gary.cameras.nav_bottom]: Built with LibRealSense v2.56.1
    [nav_bottom-5] [INFO] [1730917842.907445574] [gary.cameras.nav_bottom]: Running with LibRealSense v2.56.1
    [nav_bottom-5] [INFO] [1730917843.719654597] [gary.cameras.nav_bottom]: Device with serial number 044322073670 was found.
    [nav_bottom-5] [INFO] [1730917843.719838951] [gary.cameras.nav_bottom]: Device with physical ID 2-1-2 was found.
    [nav_bottom-5] [INFO] [1730917843.719895592] [gary.cameras.nav_bottom]: Device with name Intel RealSense D435I was found.
    [nav_bottom-5] [INFO] [1730917843.723826943] [gary.cameras.nav_bottom]: Device with port number 2-1 was found.
    [nav_bottom-5] [INFO] [1730917844.401873368] [gary.cameras.nav_bottom]: Device with serial number 138422075037 was found.
    [nav_bottom-5] [INFO] [1730917844.404364987] [gary.cameras.nav_bottom]: Device with physical ID 2-2-8 was found.
    [nav_bottom-5] [INFO] [1730917844.404906562] [gary.cameras.nav_bottom]: Device with name Intel RealSense D435I was found.
    [nav_bottom-5] [INFO] [1730917844.410751219] [gary.cameras.nav_bottom]: Device with port number 2-2 was found.
    [nav_bottom-5] [INFO] [1730917844.412304873] [gary.cameras.nav_bottom]: Device USB type: 3.2
    [nav_bottom-5] [INFO] [1730917845.677390286] [gary.cameras.nav_bottom]: JSON file is not provided
    [nav_bottom-5] [INFO] [1730917845.677523151] [gary.cameras.nav_bottom]: Device Name: Intel RealSense D435I
    [nav_bottom-5] [INFO] [1730917845.677561520] [gary.cameras.nav_bottom]: Device Serial No: 138422075037
    [nav_bottom-5] [INFO] [1730917845.677587184] [gary.cameras.nav_bottom]: Device physical port: 2-2-8
    [nav_bottom-5] [INFO] [1730917845.677608977] [gary.cameras.nav_bottom]: Device FW version: 5.16.0.1
    [nav_bottom-5] [INFO] [1730917845.677629905] [gary.cameras.nav_bottom]: Device Product ID: 0x0B3A
    [nav_bottom-5] [INFO] [1730917845.677649873] [gary.cameras.nav_bottom]: Sync Mode: Off
    [nav_bottom-5] [WARN] [1730917851.318330186] [gary.cameras.nav_bottom]: re-enable the stream for the change to take effect.
    [nav_bottom-5] [WARN] [1730917851.327211813] [gary.cameras.nav_bottom]: re-enable the stream for the change to take effect.
    [nav_bottom-5] [WARN] [1730917852.117824405] [gary.cameras.nav_bottom]: re-enable the stream for the change to take effect.
    [nav_bottom-5] [INFO] [1730917852.267727667] [gary.cameras.nav_bottom]: RealSense Node Is Up!


The only thing I’ve been able to identify is that it happens after the logs of `(messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11`, which occur quite frequently. I would appreciate it if you could guide me on how to resolve this issue.
MartyG-RealSense commented 2 weeks ago

Hi @BryanBetancur Does it make a difference if you add initial_reset:=true to the launch instruction to reset the camera at launch, please?

BryanBetancur commented 2 weeks ago

Thanks for your quick response, I will check it during the day.

BryanBetancur commented 2 weeks ago

It continues happening with the initial_reset:=true. Last time I got:

[nav_top-3] [INFO] [1730996836.209927038] [gary.cameras.nav_top]: Starting Sensor: RGB Camera
[nav_top-3] [INFO] [1730996836.426728644] [gary.cameras.nav_top]: Open profile: stream_type: Color(0), Format: RGB8, Width: 1280, Height: 720, FPS: 15
[nav_top-3] 07/11 16:27:16,726 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:27:16,737 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:27:16,752 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:27:17,647 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:28:07,483 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:29:08,795 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:32:05,723 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:32:21,334 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:33:02,965 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:34:43,170 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:35:13,259 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:35:45,483 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:39:41,320 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:40:24,819 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:40:36,028 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:40:50,571 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:41:48,746 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] [INFO] [1730997726.231472188] [gary.cameras.nav_top]: Stopping Sensor: RGB Camera
[nav_top-3] [INFO] [1730997726.231711840] [gary.cameras.nav_top]: Stop Sensor: RGB Camera
[nav_top-3] [INFO] [1730997726.231785729] [gary.cameras.nav_top]: Close Sensor. 
[nav_top-3] [INFO] [1730997727.742850137] [gary.cameras.nav_top]: Close Sensor - Done. 
[nav_top-3] [INFO] [1730997870.889564946] [gary.cameras.nav_top]: Stopping Sensor: RGB Camera
[nav_top-3] [INFO] [1730997870.910164796] [gary.cameras.nav_top]: Starting Sensor: RGB Camera
[nav_top-3] [INFO] [1730997871.131990332] [gary.cameras.nav_top]: Open profile: stream_type: Color(0), Format: RGB8, Width: 1280, Height: 720, FPS: 15
[nav_top-3] 07/11 16:44:31,462 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:45:51,873 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:46:40,175 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:46:58,256 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:49:19,627 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:50:47,689 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:54:45,862 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:54:50,331 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] 07/11 16:56:40,144 WARNING [281471604476208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[nav_top-3] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[LAUNCH ERROR] [nav_top-3.launch]: process has died [pid 45381, exit code -11, cmd '/robot/additional_ros_packages/install/lib/realsense2_camera/realsense2_camera_node --ros-args -r __node:=nav_top -r __ns:=/gary/cameras --params-file /robot/build/ros_pkgs/install/gary_cameras/share/gary_cameras/config/gary_cameras.yaml --params-file /robot/config/general.config.yaml --params-file /robot/config/cameras/cameras.config.yaml -r /gary/cameras/nav_top/depth/color/points:=/gary/cameras/nav_top/points'].
[LAUNCH WARNING] [nav_top-3.launch]: Respawning...
[LAUNCH INFO] [nav_top-3.launch]: process started with pid [888226]
[nav_top-3] [INFO] [1730998749.335814170] [gary.cameras.nav_top]: RealSense ROS v4.56.3
[nav_top-3] [INFO] [1730998749.338386067] [gary.cameras.nav_top]: Built with LibRealSense v2.56.3
[nav_top-3] [INFO] [1730998749.338562839] [gary.cameras.nav_top]: Running with LibRealSense v2.56.3
[nav_top-3] [INFO] [1730998750.462962969] [gary.cameras.nav_top]: Device with serial number 046222070575 was found.
[nav_top-3] [INFO] [1730998750.463121884] [gary.cameras.nav_top]: Device with physical ID 2-1.3-11 was found.
[nav_top-3] [INFO] [1730998750.463157501] [gary.cameras.nav_top]: Device with name Intel RealSense D435I was found.
[nav_top-3] [INFO] [1730998750.466836430] [gary.cameras.nav_top]: Device with port number 2-1.3 was found.
[nav_top-3] [INFO] [1730998751.710910016] [gary.cameras.nav_top]: Device with serial number 207122078101 was found.
[nav_top-3] [INFO] [1730998751.712142843] [gary.cameras.nav_top]: Device with physical ID 2-3.2-10 was found.
[nav_top-3] [INFO] [1730998751.713234099] [gary.cameras.nav_top]: Device with name Intel RealSense D435I was found.
[nav_top-3] [INFO] [1730998751.718102365] [gary.cameras.nav_top]: Device with port number 2-3.2 was found.
[nav_top-3] [INFO] [1730998751.719703264] [gary.cameras.nav_top]: Device USB type: 3.2
[nav_top-3] [INFO] [1730998751.721035677] [gary.cameras.nav_top]: Resetting device...
[nav_top-3] [INFO] [1730998758.550678620] [gary.cameras.nav_top]: Device with serial number 046222070575 was found.
[nav_top-3] [INFO] [1730998758.550825727] [gary.cameras.nav_top]: Device with physical ID 2-1.3-11 was found.
[nav_top-3] [INFO] [1730998758.550865632] [gary.cameras.nav_top]: Device with name Intel RealSense D435I was found.
[nav_top-3] [INFO] [1730998758.554860439] [gary.cameras.nav_top]: Device with port number 2-1.3 was found.
[nav_top-3] [INFO] [1730998759.347111553] [gary.cameras.nav_top]: Device with serial number 207122078101 was found.
[nav_top-3] [INFO] [1730998759.347268996] [gary.cameras.nav_top]: Device with physical ID 2-3.2-10 was found.
[nav_top-3] [INFO] [1730998759.347303685] [gary.cameras.nav_top]: Device with name Intel RealSense D435I was found.
[nav_top-3] [INFO] [1730998759.350680462] [gary.cameras.nav_top]: Device with port number 2-3.2 was found.
[nav_top-3] [INFO] [1730998759.350794833] [gary.cameras.nav_top]: Device USB type: 3.2
[nav_top-3] [INFO] [1730998760.011321788] [gary.cameras.nav_top]: getParameters...
[nav_top-3] [INFO] [1730998760.147916863] [gary.cameras.nav_top]: JSON file is not provided
[nav_top-3] [INFO] [1730998760.149199131] [gary.cameras.nav_top]: Device Name: Intel RealSense D435I
[nav_top-3] [INFO] [1730998760.149958955] [gary.cameras.nav_top]: Device Serial No: 207122078101
[nav_top-3] [INFO] [1730998760.150022061] [gary.cameras.nav_top]: Device physical port: 2-3.2-10
[nav_top-3] [INFO] [1730998760.150052333] [gary.cameras.nav_top]: Device FW version: 5.16.0.1
[nav_top-3] [INFO] [1730998760.150076078] [gary.cameras.nav_top]: Device Product ID: 0x0B3A
[nav_top-3] [INFO] [1730998760.150100206] [gary.cameras.nav_top]: Sync Mode: Off
[nav_top-3] [WARN] [1730998765.241663287] [gary.cameras.nav_top]: re-enable the stream for the change to take effect.
[nav_top-3] [WARN] [1730998765.250972098] [gary.cameras.nav_top]: re-enable the stream for the change to take effect.
[nav_top-3] [WARN] [1730998766.110442700] [gary.cameras.nav_top]: re-enable the stream for the change to take effect.
[nav_top-3] [INFO] [1730998766.333801798] [gary.cameras.nav_top]: Stopping Sensor: RGB Camera
[nav_top-3] [INFO] [1730998766.425976218] [gary.cameras.nav_top]: Starting Sensor: RGB Camera
[nav_top-3] [INFO] [1730998766.481471697] [gary.cameras.nav_top]: Open profile: stream_type: Color(0), Format: RGB8, Width: 1280, Height: 720, FPS: 15
[nav_top-3] [INFO] [1730998766.550470829] [gary.cameras.nav_top]: RealSense Node Is Up!
MartyG-RealSense commented 2 weeks ago

Would it be possible for you to check Ubuntu's htop system monitoring tool to see whether the available memory capacity of the computer reduces after each start-stop? If it does then this is called a 'memory leak' and once enough of the memory has been consumed then a program can become unstable or freeze / exit.

BryanBetancur commented 1 week ago

Hi Marty,

I replicated the issue while monitoring the memory and CPU usage of the container where the cameras are running. Here are the results:

image

Memory usage remains relatively stable overall, with the exception of a noticeable spike at 10:36:14. The blue arrow indicates the exact moment when the node crashes, showing the error: libusb: debug [libusb_submit_transfer] transfer 0xffff3939c848.

In this test, I was enabling and disabling the color, depth, and point cloud sensors of two cameras simultaneously. Could the simultaneous access of both cameras to the USB be causing this issue?

Any insights you have on this would be very helpful.

Thanks!

MartyG-RealSense commented 1 week ago

Are the cameras plugged into USB ports on the computer or plugged into a USB hub? The ports on a computer should have individual USB controllers for each port. On a hub though, a single USB controller might be processing two of the hub's ports simultaneously.

BryanBetancur commented 1 week ago

I initially had both cameras connected to a USB hub, but I also tested connecting them directly to the Jetson, carefully selecting ports to avoid internal Jetson hubs. Unfortunately, the issue still occurs under both setups.

Additionally, I tried connecting only one camera. While this setup took longer to fail, the issue eventually reappeared.

As another test, I activated the color, depth, and point cloud streams for one camera without performing continuous stop/start cycles—simply enabling them once and leaving them active. Even in this configuration, the problem reemerged after several hours with the difference of after the node respawn the camera doesn't stream correctly, the node shows the prints of the sensor starts but never send frames.

Let me know if there are any other troubleshooting steps I should try.

MartyG-RealSense commented 1 week ago

Does the launch have less problems if you use ros2 run instead of ros2 launch?

ros2 run realsense2_camera realsense2_camera_node --ros-args -p pointcloud.enable:=true

BryanBetancur commented 1 week ago

Hi Marty,

It seems the issue is related to setting parameters. I conducted the following tests:

First Test:

Second Test:

It appears that the issue might be triggered by enabling the sensors dynamically, rather than having them set to true from the beginning. Let me know if you need further details on the setup or if there’s anything else you'd like me to try.

MartyG-RealSense commented 1 week ago

I do not have further suggestions of things to try. If your project allows you to set the sensors to true from the start instead of changing them dynamically during runtime and it works for you then I would certainly recommend continuing with that method.