[Humble] Regression in tf2 0.25.21-0.25.23: process-wide stall after transient TF starvation (buffer never recovers)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
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:getRobotPosekeeps 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_velinput 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ros2/geometry2
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
ros2/geometry2#1014 · 1 comment ·
Maintainers usually reply within 1 day
-
canTransform() returns true but lookupTransform() throws "Static cache is empty" after clear() (crashes Viz on Reset)May be free again A pull request for this issue was closed without being merged. Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
-
Behavior change on Lyrical: static transforms are cleared by BufferCore::clear() (RViz Reset)Possibly taken @tfoote claimed this 34 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
ros2/geometry2#992 · 3 comments ·
Maintainers usually reply within 1 day
-
Transform lookup with per-edge latest fallbackMay be free again @aarushjain355 claimed this 77 days ago, and no pull request is open. Openenhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
ros2/geometry2#981 · 5 comments ·
Maintainers usually reply within 1 day
Similar issues
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
EchoTools/nevr-runtime#2912 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
bug-unconfirmed
Difficulty 1/5 Under an hour Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
libc++
Difficulty 1/5 Under an hour Newbie friendliness 88/100
llvm/llvm-project#246508 ·
Maintainers usually reply within 1 day