ros2 colcon build
When I write the colcon build function, everything closes including the terminal.
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org |
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
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2022-06-16 02:55:15 -0500
Seen: 213 times
Last updated: Jun 20 '22
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)