examples icon indicating copy to clipboard operation
examples copied to clipboard

:farmer: launch_testing_exaples tests `set_param_launch_test` and `check_node_launch_test` RuntimeError in Humble and Iron Connext

Open Crola1702 opened this issue 1 year ago • 1 comments

Bug report

Required Info:

  • Operating System:
    • Ubuntu Jammy
  • Installation type:
    • Source
  • Version or commit hash:
    • Humble, Iron
  • DDS implementation:
    • RTI Connext
  • Client library (if applicable):
    • Rclpy (shown in log output)

Steps to reproduce issue

  1. Run a build in Hci__nightly-connext_ubuntu_jammy_amd64 or Ici__nightly-connext_ubuntu_jammy_amd64
  2. See launch_testing_examples test failures

Additional information

Reference build:

Test regressions:

Log output:

=================================== FAILURES ===================================
_________ launch tests: launch_testing_examples.check_node_launch_test _________

========================================================================================================================================================
FAIL: launch_testing_examples.check_node_launch_test.TestFixture.test_node_start
--------------------------------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/ws/src/ros2/examples/launch_testing/launch_testing_examples/launch_testing_examples/check_node_launch_test.py", line 48, in test_node_start
    rclpy.init()
  File "/tmp/ws/install_isolated/rclpy/local/lib/python3.10/dist-packages/rclpy/__init__.py", line 88, in init
    context.init(args, domain_id=domain_id)
  File "/tmp/ws/install_isolated/rclpy/local/lib/python3.10/dist-packages/rclpy/context.py", line 70, in init
    raise RuntimeError('Context.init() must only be called once')
RuntimeError: Context.init() must only be called once

...

_________ launch tests: launch_testing_examples.set_param_launch_test __________

==========================================================================================================================================================
FAIL: launch_testing_examples.set_param_launch_test.TestFixture.test_set_parameter
----------------------------------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/ws/src/ros2/examples/launch_testing/launch_testing_examples/launch_testing_examples/set_param_launch_test.py", line 47, in test_set_parameter
    rclpy.init()
  File "/tmp/ws/install_isolated/rclpy/local/lib/python3.10/dist-packages/rclpy/__init__.py", line 88, in init
    context.init(args, domain_id=domain_id)
  File "/tmp/ws/install_isolated/rclpy/local/lib/python3.10/dist-packages/rclpy/context.py", line 70, in init
    raise RuntimeError('Context.init() must only be called once')
RuntimeError: Context.init() must only be called once

Crola1702 avatar Aug 26 '24 14:08 Crola1702

@Crola1702 it looks like fixes are already applied to humble and iron, do we still have the same failure after those patches? or we can close this one?

fujitatomoya avatar Sep 17 '24 21:09 fujitatomoya

@Crola1702 it looks like fixes are already applied to humble and iron, do we still have the same failure after those patches? or we can close this one?

This is not happening anymore. Thanks for the reminder

Crola1702 avatar Oct 09 '24 14:10 Crola1702