Skip to content

Local execute action fails to flush process output on exit #859

@mhidalgo-bdai

Description

@mhidalgo-bdai

Operating System:

Ubuntu 22.04

ROS version or commit hash:

humble

RMW implementation (if applicable):

No response

RMW Configuration (if applicable):

No response

Client library (if applicable):

No response

'ros2 doctor --report' output

Not applicable

Steps to reproduce issue

Just launch any node that produces output along with a time delayed shutdown.

Expected behavior

All output gets flushed with no error

Actual behavior

Every now and then an AttributeError about an info method missing from an io.StringIO gets raised.

Additional information

Issue is simpler to explain than to reproduce.

is treating an io.StringIO buffer as if it was a logger. This was silently addressed for Iron and onwards by an unrelated patch (#679) that was never backported to Humble.

Even if we cannot backport #679 in full, backport that one liner would be ideal.

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