Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bazel_ros2_rules] Handle's typesupport identifier (rosidl_typesupport_cpp) is not supported by this library #314

Open
lgulich opened this issue Nov 10, 2023 · 0 comments

Comments

@lgulich
Copy link

lgulich commented Nov 10, 2023

Hi,

First of all thanks for creating this great tool!

I am running a ROS node with a custom message, both built with the bazel_ros2_rules from this repo.
Unfortunately, I am encountering the following runtime error Handle's typesupport identifier (rosidl_typesupport_cpp) is not supported by this library.

Interestingly this error only occurs when I ingest a ROS install space that I built myself. (I followed the official instructions to build this install space ROS from source on Ubuntu 20.04).

If I use the example ROS install space from https://repo.ros2.org/ci_archives/nightly-cyclonedds/ everything works fine.

If I use my self-built install space but don't use any messages that are built from bazel_ros2_rules then also everything works fine. Ie. my node only throws the runtime error if I use my self-built install space and a bazel-built message.

Thanks for any help in advance!

The full log of the runtime error is here:

1699631909.646568 [0] _talker_no: selected interface "lo" is not multicast-capable: disabling multicast

>>> [rcutils|error_handling.c:108] rcutils_set_error_state()
This error state is being overwritten:

  'Type support not from this implementation. Got:
    Handle's typesupport identifier (rosidl_typesupport_cpp) is not supported by this library, at /tmp/binarydeb/ros-humble-rosidl-typesupport-cpp-2.0.1/src/type_support_dispatch.hpp:111
    Could not load library libexample_msgs__rosidl_typesupport_introspection_cpp.so: dlopen error: libexample_msgs__rosidl_typesupport_introspection_cpp.so: cannot open shared object file: No such file or directory, at /tmp/binarydeb/ros-humble-rcutils-5.1.3/src/shared_library.c:99, at /tmp/binarydeb/ros-humble-rosidl-typesupport-cpp-2.0.1/src/type_support_dispatch.hpp:76
while fetching it, at /tmp/binarydeb/ros-humble-rmw-cyclonedds-cpp-1.3.4/src/rmw_node.cpp:1958'

with this new error message:

  'type_support is null, at /tmp/binarydeb/ros-humble-rmw-cyclonedds-cpp-1.3.4/src/rmw_node.cpp:2277'

rcutils_reset_error() should be called after error handling to avoid this.
<<<
terminate called after throwing an instance of 'rclcpp::exceptions::RCLError'
  what():  could not create publisher: type_support is null, at /tmp/binarydeb/ros-humble-rmw-cyclonedds-cpp-1.3.4/src/rmw_node.cpp:2277, at /tmp/binarydeb/ros-humble-rcl-5.3.5/src/rcl/publisher.c:116
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant