Skip to content

Negative ref count in test_node.py on windows debug #136

Closed

Description

@dhood

test_create_service has been giving errors sometimes on windows debug nightlies lately (first time Oct 28):

Fatal Python error: C:\J\workspace\nightly_win_deb\ws\src\ros2\rclpy\rclpy\src\rclpy\_rclpy.c:1444 object at 000001F7B40882C0 has negative ref count -7870023856155525121
ValueError: Failed to create service due to invalid topic name '/get/42parameters': topic name is invalid, at C:\J\workspace\nightly_win_deb\ws\src\ros2\rcl\rcl\src\rcl\expand_topic_name.c:67

Current thread 0x00000a38 (most recent call first):
  File "C:/J/workspace/nightly_win_deb/ws/src/ros2/rclpy/rclpy\rclpy\node.py", line 177 in create_service
  File "C:\J\workspace\nightly_win_deb\ws\src\ros2\rclpy\rclpy\test\test_node.py", line 75 in test_create_service

http://ci.ros2.org/job/nightly_win_deb/659/testReport/junit/(root)/projectroot/rclpytests/

It seems to be unhappy with this Py_DECREF upon service init failure that was added in #129:
https://github.com/ros2/rclpy/pull/129/files#diff-80dda03110b5be606b823d6b0558b5c2R1444

Looking closer it seems to just be accidentally referencing service instead of pyservice so I'll fix it up now (still opening this ticket for future reference and visibility).

Activity

  1. added
    bug
    on Oct 31, 2017
  2. self-assigned this
    on Oct 31, 2017
  3. sloretz commented on Oct 31, 2017

    @sloretz
    Contributor

    Oops, thanks for fixing it!

  4. added
    in progress
    on Oct 31, 2017
  5. dhood commented on Oct 31, 2017

    @dhood
    MemberAuthor

    not a problem, #137

  6. removed
    in progress
    on Oct 31, 2017
  7. added a commit that references this issue on Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions