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

Running the hubmle branch using WSL2 gets error on build. #74

Open
milangroshev opened this issue Mar 7, 2024 · 1 comment
Open

Running the hubmle branch using WSL2 gets error on build. #74

milangroshev opened this issue Mar 7, 2024 · 1 comment

Comments

@milangroshev
Copy link

Hi,

When using the tutorial on Ubuntu20.04 WSL2 the build fails with error:
[Processing: examples_rclcpp_async_client, examples_rclcpp_cbg_executor, examples_rclcpp_minimal_action_client, examples_rclcpp_minimal_action_server, examples_rclcpp_minimal_client, examples_rclcpp_minimal_composition, examples_rclcpp_minimal_publisher, examples_rclcpp_minimal_service, examples_rclcpp_minimal_subscriber, examples_rclcpp_minimal_timer, examples_rclcpp_multithreaded_executor, examples_rclcpp_wait_set, examples_rclpy_executors, examples_rclpy_guard_conditions, examples_rclpy_minimal_action_client, examples_rclpy_minimal_action_server]
--- stderr: examples_rclpy_minimal_action_server
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
error: [Errno 12] Cannot allocate memory: '/workspaces/my-example-ros2-pkg/build/examples_rclpy_minimal_action_client/examples_rclpy_minimal_action_client.egg-info'

Failed <<< examples_rclpy_minimal_action_server [42.9s, exited with code 1]
Finished <<< examples_rclcpp_minimal_service [51.6s]
Aborted <<< examples_rclcpp_wait_set [51.4s]
Aborted <<< examples_rclcpp_cbg_executor [52.0s]
Aborted <<< examples_rclpy_executors [51.5s]
Aborted <<< examples_rclpy_guard_conditions [51.4s]
Aborted <<< examples_rclpy_minimal_action_client [51.4s]
Aborted <<< examples_rclcpp_minimal_timer [51.7s]
Aborted <<< examples_rclcpp_minimal_client [55.0s]
Aborted <<< examples_rclcpp_minimal_action_server [1min 19s]
Aborted <<< examples_rclcpp_async_client [1min 20s]
Aborted <<< examples_rclcpp_minimal_publisher [1min 19s]
Aborted <<< examples_rclcpp_minimal_action_client [1min 21s]
Aborted <<< examples_rclcpp_multithreaded_executor [1min 34s]
Aborted <<< examples_rclcpp_minimal_subscriber [1min 37s]
Aborted <<< examples_rclcpp_minimal_composition [1min 54s]

Summary: 1 package finished [1min 57s]
1 package failed: examples_rclpy_minimal_action_server
14 packages aborted: examples_rclcpp_async_client examples_rclcpp_cbg_executor examples_rclcpp_minimal_action_client examples_rclcpp_minimal_action_server examples_rclcpp_minimal_client examples_rclcpp_minimal_composition examples_rclcpp_minimal_publisher examples_rclcpp_minimal_subscriber examples_rclcpp_minimal_timer examples_rclcpp_multithreaded_executor examples_rclcpp_wait_set examples_rclpy_executors examples_rclpy_guard_conditions examples_rclpy_minimal_action_client
7 packages had stderr output: examples_rclcpp_minimal_action_client examples_rclcpp_minimal_action_server examples_rclcpp_minimal_subscriber examples_rclpy_executors examples_rclpy_guard_conditions examples_rclpy_minimal_action_client examples_rclpy_minimal_action_server
6 packages not processed

  • The terminal process "/bin/bash '-c', './build.sh'" terminated with exit code: 1.
  • Terminal will be reused by tasks, press any key to close it.

It looks like the memory problem in WLS. Any idea on how to fix this fast ?

Thanks

@athackst
Copy link
Owner

athackst commented Mar 8, 2024

You might want to see if the container has write access to that folder by trying to write a test file to it.

I'd guess there's a write permission issue with docker and your volume mounts? Windows tends to have extra access control settings

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