ros2 colcon build
When I write the colcon build function, everything closes including the terminal.
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
When I write the colcon build function, everything closes including the terminal.
I have seen this happen when running out of system memory - to confirm that is what is happening you can check /var/log/syslog for a recent out of memory termination of your terminal.
A couple possible work arounds:
I had a similar experience with fresh Ubuntu 22.04 and ROS 2 Humble during building examples
packages. When I executed colcon build --symlink-install
, the terminal crashes and the building stopped after a few seconds. However, I was able to build these packages one by one without any problem
Asked: 2022-06-16 02:55:15 -0500
Seen: 770 times
Last updated: Jun 20 '22
ROS2 Foxy composable node: Failed to load component due to undefined symbol
How to add C++ plugin to sdf file in ROS2 Humble ?
ROS in arm/v7, Docker, and Limited Storage Robot
Update odometry based on pose estimate
/odom topic doesn't work on ROS2
subscription callback types ROS1 vs. ROS2
ROS2 topic list only working once (or any other command)
What can you find in the logs of your ROS workspace? Maybe there will be something
What is in your workspace? And what platform? I've recently seen this building Moveit2 on Arm64 - and have not yet found the cause.
Digging deeper on my end: it's an out of memory issue. Even restarting a build - that is 75% done, very quickly ends up at 10GB of RAM used (I'm in a virtual machine, 8GB actual ram, 2GB swap)