Skip to content
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

"colcon build" never finishes. #402

Open
Shekyaga opened this issue Dec 30, 2024 · 4 comments
Open

"colcon build" never finishes. #402

Shekyaga opened this issue Dec 30, 2024 · 4 comments

Comments

@Shekyaga
Copy link

Shekyaga commented Dec 30, 2024

Bug report

Required Info:

  • Operating System:
    • Docker Container Ubuntu 22.04
  • Version or commit hash:
    • osrf/ros:humble-desktop
  • DDS implementation:
    • Fast-RTPS

Steps to reproduce issue

After I created container and check talker-listener, I wanted to create a workspace as it described in tutorial https://docs.ros.org/en/humble/Tutorials/Beginner-Client-Libraries/Colcon-Tutorial.html.

mkdir -p ~/ros2_ws/src
cd ~/ros2_ws
git clone https://github.com/ros2/examples src/examples -b humble
colcon build --symlink-install

Expected behavior

It should install all the example package as shown in the tutorial.

Actual behavior

It cannot finish installing packages and the powershell freezes during building. The installation is also freeze the whole system so that I cannot halt or cancel process after 20 seconds build started.

Additional information

When I tried the same process for Ubuntu 22.04 Desktop, It ended up the same. Only can recover desktop as I reboot. When I checked the github repo, last time updated of rclcpp and rclpy file was last week. Maybe it can result from the update somehow.

@fujitatomoya
Copy link
Collaborator

freeze the whole system so that I cannot halt or cancel process after 20 seconds build started.

docker stop does help? which sends the sigkill to the container process after grace period. (if i remember correctly 10 seconds)

Only can recover desktop as I reboot.

you mean window manager is not responding at all? can you use the shell with other terminals and try to kill the build process id?

@Shekyaga
Copy link
Author

Shekyaga commented Jan 2, 2025

Neither docker stop is working. I tried to kill wsl on task manager and I could not. When I restart the system, it returns to normal. I finally solved it by downloading all packages one by one. I think it is basically because system tries to build all packages at once and it loads the CPU alot. Btw, sorry for delay in replying. It was due to Christmas.

@fujitatomoya
Copy link
Collaborator

I think it is basically because system tries to build all packages at once and it loads the CPU alot.

that is what we do pretty much every day. using --parallel-workers or --executor sequential could help your situation?

sounds like this is problem for kernel, user space should not be able to do this.

@Shekyaga
Copy link
Author

Shekyaga commented Jan 3, 2025

Thank you very much. I will use those options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants