-
Notifications
You must be signed in to change notification settings - Fork 48
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
Core-dump when converting messags with key-ed member #218
Comments
Uh, might be the way how key-ed field is handled differently for the python binding generator? Adding |
It looks like a straightforward bug in the handling of The reason Part of XTypes is type discovery and type assignability checking. For that we need to represent the types in the standard way (the noxious In case you're curious: this was supported by Cyclone pre-XTypes but fundamentally incompatible with how XTypes represents keys: struct inner { long a, b; };
struct outer { inner x, y; };
#pragma keylist outer x.a, y.b for which IDLC now reports |
@eboasson I see. Thanks for the explanation. Makes perfect sense. If we are about to use it in a project, is there a recommended version combination that are compatible? E.g., Core in 0.10.4, CXX in 0.10.4 and Python binding in 0.10.2? Of course I'd love to use |
Yes, 0.10.4/0.10.4/0.10.2 is good. I've only recently realised the Python package should be bumped to, even if the sources have not changed: because that way the pre-built pypi packages can use the newer core library. But ... I need some time to figure out the process ... I was considering doing an 11.01 alpha 1 tag soon. Once I merge eclipse-cyclonedds/cyclonedds#1676 and no-one complains about it, to be precise. I've reviewed it, played with it and fixed a few odds and ends on my own fork (still to be reviewed by the PR author). It is a big one, but I'll have to bite the bullet one day and I think it is at the stage where I don't gain anything more by waiting longer. Once there is tag/branch, a lot of things become possible, among others trying to get ROS 2 "rolling" to switch over. And then we can finally leave the 0.10.x behind. 🙂 Footnotes
|
I have a message that has a key-ed data member. Generating a Python file from it yields core dump.
CycloneDDS version: eclipse-cyclonedds/cyclonedds@b6fe21d
Build command:
cmake -DCMAKE_INSTALL_PREFIX=$(realpath ../install) -DBUILD_EXAMPLES=ON -DBUILD_IDLC=ON -DENABLE_TYPELIB=ON -DENABLE_TYPE_DISCOVERY=NO -DENABLE_TOPIC_DISCOVERY=NO -DENAB LE_SOURCE_SPECIFIC_MULTICAST=NO -DBUILD_IDLC_XTESTS=NO ..
Python binding version: 2023.8.24 https://pypi.org/project/cyclonedds-nightly/2023.8.24/
Command:
The text was updated successfully, but these errors were encountered: