[Humble] Regression in tf2 0.25.21-0.25.23: process-wide stall after transient TF starvation (buffer never recovers)

Open
#995 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Active
Tech stack
cpp
Domain
robotics

Research direction

Reproduce the stall with ROS 2 Humble and tf2 0.25.23, then compare behavior with the pinned 0.25.20 packages. Inspect the tf2 and tf2_ros changes between 0.25.20 and 0.25.23, focusing on the transient TF-starvation path. Done means the buffer and hosting component process resume normal TF and non-TF callback delivery after starvation without a restart.

Written by the indexing model from the issue text.

Description

Bug report

Environment

  • ROS 2 Humble, Ubuntu 22.04 (jammy), amd64, Docker containers with network_mode: host
  • rmw_cyclonedds_cpp (reproduced with both 1.3.4 and 1.3.5; RMW ruled out, see bisection)
  • Nav2 1.1.20 from apt, running in component_container_isolated (amcl, costmaps, collision monitor, planner, controller, etc. in one process)
  • Affected: ros-humble-tf2 0.25.23-1jammy.20260907.213559 (+ family)
  • Healthy: ros-humble-tf2 0.25.20-2jammy.20260605.130708 (+ family)
  • Indoor delivery robots (differential drive), WiFi networking, TF tree at ~10–20 Hz (odom→base from EKF, map→odom from AMCL)

Symptom

With tf2 0.25.23, within 1–3 minutes of driving, the whole nav2 component container process enters a permanent stall of message delivery:

  • local costmap's TF listener stops ingesting /tf: getRobotPose keeps returning the pose from the stall instant (published footprint frozen at a stale pose while live TF moves on);
  • costmap filter logs Lookup would require extrapolation into the future ... the latest data is at time <T> where <T> is one frozen timestamp repeated hundreds of times per minute;
  • AMCL stops broadcasting map→odom (its last transform carries the same frozen stamp <T>);
  • notably, non-TF subscriptions of the same process stall too: the collision monitor stops reacting to its cmd_vel input topic while the publisher keeps publishing at 15–20 Hz.

A freshly started node in the same container sees live /tf and all topics normally. Only restarting the process recovers. Nothing is logged at the stall instant.

Trigger

The environment occasionally produces short TF starvation while driving (WiFi hiccups; map→odom lags ~5 s). With tf2 0.25.20 these episodes self-heal (we see two ~5 s bursts of the same extrapolation error, then normal operation). With 0.25.23 an episode appears to wedge the process permanently — the frozen stamps in the log match the moment of such an episode. This looks like a lock/wait introduced between 0.25.20 and 0.25.23 that can deadlock or permanently block an executor thread, starving the process's callbacks.

Bisection matrix (two identical robots, same configs; only image contents varied)

tf2 rmw_cyclonedds_cpp everything else result
0.25.20 1.3.4 June sync (reference robot) healthy, weeks of operation
0.25.23 1.3.5 Sept sync permanent stall in 1–3 min of driving, reproduced 4+ times
0.25.23 1.3.4 (pinned) Sept sync permanent stall (RMW ruled out)
0.25.20 (image from reference robot) 1.3.4 June sync binaries + current configs healthy, real delivery run
0.25.20 (pinned .debs only) 1.3.5 Sept sync healthy, real delivery run

Additional data point: the reference robot runs tf2_ros 0.25.22 with tf2 0.25.20 and is healthy — so the suspect range is the tf2 core changes in 0.25.21–0.25.23, or tf2_ros exactly 0.25.23.

Expected behavior

Transient TF starvation must not permanently stall the buffer or the hosting process; 0.25.20 recovers within seconds on identical hardware/network.

Workaround

Pinning the tf2 family to 0.25.20 (.debs from the 2026-07-02 snapshot) on top of an otherwise current Humble install.

Happy to test patches or provide detailed logs / reproduction help.

Dominant language
C++
Stars
157
Forks
265
Avg merge
13h 41m
Merged PRs (30d)
7

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from ros2/geometry2

All issues in ros2/geometry2

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.