vscode_ros2_workspace icon indicating copy to clipboard operation
vscode_ros2_workspace copied to clipboard

Running the hubmle branch using WSL2 gets error on build.

Open milangroshev opened this issue 4 months ago • 1 comments

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

milangroshev avatar Mar 07 '24 15:03 milangroshev