One bad timestamp can stall a whole pipeline; ROS debates an exception policy for executors
Published on December 4, 2026Technical Sharing

A design discussion on ROS Discourse proposes adding an exception-handling layer to rclcpp and rclpy executors. It stems from an issue in the message_filters repository: any message with an invalid header timestamp can stop an entire robot pipeline (ROS Discourse, 2026-12-03).
Today there are only 2 routes. (ROS Discourse, 2026-12-03) Add custom filters to every input stream to drop messages with invalid timestamps, or wrap node.spin in try/except at a high level, catch the exception and continue. The first is cumbersome; the second is too coarse, since one bad message restarts the whole node.
The proposal makes the policy a configurable object: specify an error_handling_policy when constructing a Node, calling spin, or constructing an executor. In the pseudo-code, a SingleThreadedExecutor takes a callback that decides which exceptions to re-raise and which to swallow; KeyboardInterrupt still propagates, the rest are logged and execution continues.
Pairing it with message_filters works better. If that package defines its own exception types and throws only those, the policy can ignore specific errors such as NegativeTimestampException, letting the Synchronizer treat the bad message as never received and move on.
The thread also carries objections, and they hit the mark. Adding the same policy to Subscriber, Service, SimpleFilter and other components blurs responsibility: the default should be to raise immediately, and if every layer can swallow exceptions, debugging becomes a nightmare. Subscribers, services and filters should own their functionality, not exception policy.
The problem is granularity.
That objection draws the design boundary: keep the policy at the executor layer only, and leave other components raising on error. Responsibility stays clear, at the cost that users must handle all exception types at the executor level rather than expecting downstream components to filter them. (ROS Discourse, 2026-12-03)Debugging gets harder.
From an engineering view, the proposal addresses an old problem for long-running robots. A production robot cannot reboot because of one bad frame, nor silently swallow errors; it needs one place to decide which errors can be skipped, how many times, and when it must stop and report.
This is still a discussion thread, with no implementation plan. The author is interested in writing code but wants the high-level design settled first. Two things to watch: whether maintainers agree with keeping it only at the executor layer, and whether message_filters is willing to define its own exception types. Without the latter, no policy has recognisable errors to catch.
