-
Notifications
You must be signed in to change notification settings - Fork 119
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
[Foxy] Handle exception on deserializing ROS message #603
Conversation
Signed-off-by: Erki Suurjaak <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, that looks fully compatible, and more complete. And looking it over, I noticed a few more things I would change, to make deserialization more robust. The dynamic_cpp version can throw How should I go about this - cherry-pick commits from that pull request into this one? |
#505 has been merged to master, humble and galactic. So yes, you can cherry-pick the PR.
#505 seems to address this too. If you have additional fix related, i would create another PR to master then backport it to humble, galactic and foxy. |
As an example, deserializeROSMessage(Cdr&, void*, void*) calls the overloaded deserializeROSMessage(Cdr&, MembersType*, void*), and the latter throws Does this not look equally crash-inducing? |
#505 addresses CDR exception, which i think we can fix original issue for foxy ros2/rclpy#923.
i am not sure if we can make this happen, but as you pointed out this possibly generates the |
* Capturing fastcdr exceptions. Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Erki Suurjaak <[email protected]>
Signed-off-by: Erki Suurjaak <[email protected]>
Added #505.
Can you clarify this comment? I am not sure what you meant here. |
i mean i am not sure if we can make it happen. if you are willing to address this, i am happy to review PR too !!! in that case, probably we would want to have another PR, so that we can have individual PR for each problem. |
Regarding making another pull request - there appears no need, as the current ROS2 master no longer terminates |
@MiguelCompany @ivanpauno requesting another review. |
@fujitatomoya Is there a problem on the buildfarm?
|
I think the reason for this is that the CI was launched with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@clalancette do we need to run CI_USE_FASTRTPS_DYNAMIC? by default, CI does not run this one. |
could you check test failures https://ci.ros2.org/job/ci_windows/17188/testReport/? it seems to be unrelated, but just in case. https://ci.ros2.org/job/ci_windows/17188/cmake/folder.114148/ and https://ci.ros2.org/job/ci_windows/17188/msbuild/new/ are unrelated for sure. |
@fujitatomoya anything specific from those 79 failures? I looked over a few dozen items and they all seemed unrelated. |
Okay now mainline(foxy branch) has the same unstable result. I will go ahead to merge this into foxy. |
Fixes ros2/rclpy#923.
Minimal code for reproducing error:
Result without the fix:
Result with the fix: