Subscription accepting the cuda backend receives no messages when the cuda_buffer_backend plugin is not available in its process

Open
#34 0 comments 0 reactions 1 assignee View on GitHub

@nvcyc is already working on this.

Since Oct 29, 2026.

Assessment

This issue has not been assessed yet.

Description

Environment
  • ROS 2 Lyrical, Isaac ROS 5 buildfarm packages, Docker (Isaac ROS CLI)
  • Jetson AGX Thor, JetPack 7.2 (L4T 39.2), CUDA 13.2
  • ros-lyrical-cuda-buffer 0.1.2, cuda_buffer_backend 0.1.2 built from source
  • rmw_fastrtps_cpp (default RMW)
Description

A subscription created with rclcpp::SubscriptionOptions::acceptable_buffer_backends = "cuda" receives no messages at all when the cuda_buffer_backend plugin is not registered in the subscriber process (BufferBackendRegistry::get_backend_names() returns an empty list). This happens whether the publisher sends CUDA buffers or plain CPU data. Nothing is logged in either process.

The subscription is matched: ros2 topic info -v shows the publisher and the subscription with the same type hash and compatible QoS (RELIABLE, VOLATILE), but the callback is never called.

Steps to reproduce
  1. Publisher: a node publishing sensor_msgs/msg/Image (CUDA-backed rosidl::Buffer, or CPU data).
  2. Subscriber: a separate process with acceptable_buffer_backends = "cuda", started with the cuda_buffer_backend prefix removed from AMENT_PREFIX_PATH so the plugin is not found.
  3. The subscription callback is never called.
Publisher has the plugin Subscriber has the plugin Messages received by the subscription accepting cuda
yes yes all, as CUDA buffers
no (publishes CPU data) yes all, as CPU data
yes no none
no (publishes CPU data) no none

A subscription with acceptable_buffer_backends = "cpu" in the same process without the plugin receives all the messages.

Expected behavior

When the cuda backend is not available in the subscriber process, the subscription falls back to CPU data, as it does when the zero-copy path is not available for other reasons, or at least an error or warning is logged when the subscription is created.

Actual behavior

The subscription silently receives nothing.

Dominant language
C++
Stars
27
Forks
13
Avg merge
21d 23h
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ros2/rosidl_buffer_backends

All issues in ros2/rosidl_buffer_backends

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.