Skip to content

Why does changing and recompiling a package cause other container to crash, but recompiling the entire project allows it to run normally? #5211

Closed Answered by maxime-clem
luojiaxiang11 asked this question in Q&A
Discussion options

You must be logged in to vote

I add a variable in TrajectoryPoint.idl in autoware_auto_planning_msgs

If you do not rebuild all packages that use the TrajectoryPoint message, then they will still use the "old" message definition which can create wrong memory access.
The solution is to build all packages that depend on autoware_auto_planning_msgs, which I think can be done with the colcon build option --packages-above (see https://colcon.readthedocs.io/en/released/reference/package-selection-arguments.html).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@liuXinGangChina
Comment options

Answer selected by liuXinGangChina
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants