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

Unable to send single character #23

Closed
Karsten1987 opened this issue Apr 16, 2020 · 1 comment
Closed

Unable to send single character #23

Karsten1987 opened this issue Apr 16, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Karsten1987
Copy link
Collaborator

When trying to send a single character between two python nodes, the system crashes with:

Unexpected condition: string capacity was zero for allocated data! Exiting.

The error comes from a c-string not being properly allocated: https://github.com/ros2/rosidl/blob/master/rosidl_runtime_c/src/string_functions.c#L46-L51

To reproduce:
Terminal 1:

RMW_IMPLEMENTATION=rmw_iceoryx_cpp ros2 topic pub /chatter std_msgs/msg/String "{data: 1}"

Terminal 2:

RMW_IMPLEMENTATION=rmw_iceoryx_cpp ros2 topic echo /chatter std_msgs/msg/String

As far as I can tell, this issue is not having with a c++ typesupport.

@Karsten1987 Karsten1987 added the bug Something isn't working label Apr 16, 2020
@Karsten1987 Karsten1987 self-assigned this Apr 16, 2020
@Karsten1987
Copy link
Collaborator Author

fixed with #30

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

1 participant