Closed KeplerC closed 2 years ago
If unset RMW_IMPLEMENTATION=rmw_cyclonedds_cpp, the talker and listener example works perfectly.
This problem is similar to #390. However, it works fine with 20.04 in my case, so I am wondering if this is the problem with Ubuntu 22.04
Hm, this is interesting, because I have the same version of rmw_cyclonedds_cpp
installed, and I can run the examples just fine.
The error about "Loaning not supported" suggests to me that something weird is going on. Do you happen to have any environment variables about LOAN enabled? Or otherwise have some CycloneDDS configuration in use?
Hi Thanks for the clarification. I tried to further debug my own code and found the issue:
The cyclonedds retrieved by apt-get
is not compatible with the ros:rolling
docker image. In my dockerfile, I did not put apt update
before apt get
, and the cyclone is retrieved from an incompatible build. This problem is resolved by changing image ros:rolling
to ubuntu:jammy
.
I am not 100% certain why this happens. I am closing this issue since the problem is solved, and I am happy to reopen if further investigation is neede.d
Bug report
Required Info:
Operating System:
Installation type:
Version or commit hash:
DDS implementation: rmw_cyclonedds_cpp
Steps to reproduce issue
Minimally working dockerfile:
and run
Expected behavior
listener and talker communicate with each other.
Actual behavior
or sometimes they end up with segmentation fault or stack smashing.