ros2 / ros2/ros2cli

NodeStrategy init Hanging

Open
#610 18 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

more-information-needed
Dominant language
Python
Stars
262
Forks
228
Avg merge
23h 15m
Merged PRs (30d)
12

Description

https://github.com/ros2/ros2cli/blob/094bcd9d8ba0a381f3598eeaba03eb45ed3d2df1/ros2cli/ros2cli/node/strategy.py#L25

Hangs within this method. Issue: #ros2/ros2/issues/1093

can recreate with command:
ros2 topic list (hangs with constant increase of memory allocation until manually killed)

and directly recreate with:

/root/wsdev/src/jtbot/src/topicList.py 
lv = ListVerb()
v.main(args=None)

Environment:

ros-foxy-desktop/focal,now 0.9.2-1focal.20210226.004308 amd64 [installed]
Docker ubuntu 20.04 
python3.8/focal-updates,focal-security,now 3.8.5-1~20.04.2 amd64 [installed,automatic]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in ros2cli/ros2cli/node/strategy.py at line 25 and reproduce the hang with ros2 topic list. Compare that behavior with the direct ListVerb invocation shown in topicList.py, then trace the initialization path to identify why memory usage continually increases. Done means the command completes without hanging or unbounded memory growth.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.