-
Notifications
You must be signed in to change notification settings - Fork 412
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
Segfault when using Parameter Client with spelling like DemoRobot #195
Comments
To clarify, you only see the segfault if the name of the parameter is "DemoRobot"? Are you suggesting that the CamelCase name is the cause of the segfault? Or the particular string? That seems to be a dubious cause for the issue. Can you make a more minimal example that reproduces the segfault? A debugger backtrace from the segfault would also be helpful, if you don't have time to make a MWE. |
I tried to compile your demo application which took quite a while and some updates. Please make sure that your examples compile correctly out of the box against the latest default branches in the future. That being said I can reproduce the segfault in the demo_client now:
And the problem seems to be this - actually
|
The client segfaults due to two bugs in your code:
|
…on (ros2#195) * cmake 3.10 compatibility: pass absolute path to file(GENERATE) function * passing the right path to add_test is useful too
When trying to create a demo application for #193 I got another segfault when using a Parameter Client with a spelling like DemoRobot for the parameter name.
Have a look at my demo application https://github.com/firesurfer/ros2_components_demo
It need the qt5 dev package in order to compile.
The application consists of three parts.
demo_parameter_server
demo_server
demo_client
The segfault happens in the demo_client in the file /src/ros2_components/Robot.h in the function ListAllKnownRobots
The text was updated successfully, but these errors were encountered: