Skip to content

🧑‍🌾 Windows: demo_nodes_cpp test_last_process_exit_code fails with access violation #803

Description

@miguelgonrod

Generated by Generative AI

No response

Operating System:

Windows

ROS version or commit hash:

Rolling

RMW implementation (if applicable):

No response

RMW Configuration (if applicable):

No response

Client library (if applicable):

No response

'ros2 doctor --report' output

No response

Steps to reproduce issue

  1. Go to nightly_win_rel
  2. Build a job
  3. See test failing

Expected behavior

Build without test regressions

Actual behavior

Building with test regressions

Additional information

Reference Build

Failing tests

  • demo_nodes_cpp.TestExecutablesTutorialAfterShutdown.test_last_process_exit_code

Log Output

12: [WARNING] [python.exe-3]: 'SIGINT' sent to process[python.exe-3] not supported on Windows, escalating to 'SIGTERM'
12: [INFO] [python.exe-3]: sending signal 'SIGTERM' to process[python.exe-3]
12: [ERROR] [python.exe-3]: process has died [pid 31684, exit code 1, cmd 'C:\pixi_ws\.pixi\envs\default\python.exe -c 
12: import signal
12: import time
12: 
12: try:
12:     while True:
12:         time.sleep(1)
12: except KeyboardInterrupt:
12:     pass
12: '].
12: test_last_process_exit_code (demo_nodes_cpp.TestExecutablesTutorialAfterShutdown.test_last_process_exit_code)
12: Test last process exit code. ... FAIL
12: 
12: ======================================================================
12: FAIL: test_last_process_exit_code (demo_nodes_cpp.TestExecutablesTutorialAfterShutdown.test_last_process_exit_code)
12: Test last process exit code.
12: ----------------------------------------------------------------------
12: Traceback (most recent call last):
12:   File "C:\ci\ws\build\demo_nodes_cpp\test_add_two_ints_server_add_two_ints_client_async__rmw_connextdds_Release.py", line 95, in test_last_process_exit_code
12:     launch_testing.asserts.assertExitCodes(
12:   File "C:\ci\ws\install\Lib\site-packages\launch_testing\asserts\assert_exit_codes.py", line 62, in assertExitCodes
12:     assert info.returncode in allowable_exit_codes, 'Proc {} exited with code {}'.format(
12:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12: AssertionError: Proc test_executable_1-2 exited with code 3221225477
12: 

Flakyness 15 days

job_name last_fail first_fail build_count failure_count failure_percentage
nightly_win_rel 2026-08-05 2026-07-21 10 10 100.0
nightly_win_rep 2026-08-03 2026-07-22 4 4 100.0

No clear beginning, but seems to be windows problem

CC: @Crola1702

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions