Skip to content

rmw_create_node: failed to create domain, error Error #537

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

Open
edu-rossrobotics opened this issue Apr 4, 2025 · 1 comment
Open

rmw_create_node: failed to create domain, error Error #537

edu-rossrobotics opened this issue Apr 4, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@edu-rossrobotics
Copy link

Operating System:

Docker image for ROS2 humble (arm64v8/ros:humble)

ROS version or commit hash:

Humble

RMW implementation (if applicable):

rmy_cyclonedds_cpp

RMW Configuration (if applicable):

<CycloneDDS>
  <Domain>
    <General>
      <Interfaces>
        <NetworkInterface name="lo"/>
      </Interfaces>
      <AllowMulticast>
        true
      </AllowMulticast>
    </General>
    <Discovery>
      <ParticipantIndex>
        none
      </ParticipantIndex>
    </Discovery>
  </Domain>
</CycloneDDS>
<Gen>
  <Allow>
    spdp
  </Allow>
</Gen>

Client library (if applicable):

rclcpp

'ros2 doctor --report' output

Running the command doesn't produce any output

Steps to reproduce issue

  1. Try to run any node

Expected behavior

Node launches successfully and it behaves as expected.

Actual behavior

Node crashes when initializing with the following error:

2025-04-04T07:12:42.299999571Z [ERROR] [1743750762.299514820] [rmw_cyclonedds_cpp]: rmw_create_node: failed to create domain, error Error
2025-04-04T07:12:42.300846317Z
2025-04-04T07:12:42.300988185Z >>> [rcutils|error_handling.c:108] rcutils_set_error_state()
2025-04-04T07:12:42.301013369Z This error state is being overwritten:
2025-04-04T07:12:42.301034480Z
2025-04-04T07:12:42.301055850Z   'error not set, at ./src/rcl/node.c:263'
2025-04-04T07:12:42.301076831Z
2025-04-04T07:12:42.301097072Z with this new error message:
2025-04-04T07:12:42.301118756Z
2025-04-04T07:12:42.301138608Z   'rcl node's rmw handle is invalid, at ./src/rcl/node.c:415'
2025-04-04T07:12:42.301159293Z
2025-04-04T07:12:42.301182274Z rcutils_reset_error() should be called after error handling to avoid this.
2025-04-04T07:12:42.301202663Z <<<
2025-04-04T07:12:42.301223421Z [ERROR] [1743750762.299917573] [rcl]: Failed to fini publisher for node: 1

Additional information

I've tried with different network interfaces, and it always produce the same error. Multicast is enabled on the interface and the docker container has access to it (it's using --network=host and --privileged).

@edu-rossrobotics edu-rossrobotics added the bug Something isn't working label Apr 4, 2025
@Splinter1984
Copy link

Hi @edu-rossrobotics, I tried your setup and encountered the same issue.
It's looks like domain initialization error because of not valid configuration provided. Strip out <Gen>...</Gen> section solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants