removing and immediately re-adding a node to the EventsCBGExecutor leaves its entities unregistered
Mantenedores costumam responder em até 1 dia
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Generated by Generative AI
Found using Claude Opus 5.5
Operating System:
Ubuntu 26.04 (x86_64) (inside a rolling developer container)
ROS version or commit hash:
rolling 917c1240
RMW implementation (if applicable):
rmw_fastrtps_cpp
RMW Configuration (if applicable):
No response
Client library (if applicable):
rclcpp
'ros2 doctor --report' output
ros2 doctor --report
<COPY OUTPUT HERE>
Steps to reproduce issue
Spin an EventsCBGExecutor, then call remove_node(node) immediately followed by add_node(node):
rclcpp::executors::EventsCBGExecutor executor(rclcpp::ExecutorOptions(), 2);
auto node = std::make_shared<rclcpp::Node>("n");
auto timer = node->create_wall_timer(5ms, [&]() {timer_calls++;});
auto sub = node->create_subscription<std_msgs::msg::Empty>("t", 10, [&](auto) {sub_calls++;});
executor.add_node(node);
std::thread spin([&]() {executor.spin();});
// ... timer and subscription are running ...
executor.remove_node(node);
executor.add_node(node);
// timer_calls and sub_calls never increase again
Reproducer gist here: https://gist.github.com/skyegalaxy/715297510b38d222035c960c3c66f60d
Expected behavior
After add_node() the node's timer, subscription, and other entities run again, as they do with the
SingleThreadedExecutor and the MultiThreadedExecutor.
Actual behavior
None of the node's entities run again. The timer never fires and the subscription never receives a message.
With a 30 ms pause between remove_node() and add_node(), everything works again.
Additional information
No response
- Linguagem predominante
- C++
- Estrelas
- 829
- Forks
- 587
- Merge médio
- 4d 6h
- PRs com merge (30d)
- 30
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de ros2/rclcpp
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
Mantenedores costumam responder em até 1 dia
-
Memory grows per callback group created and destroyed on long lived nodesTalvez já em andamento @jwallace42 assumiu há 1 dia. Abertabug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 28/100
ros2/rclcpp#3428 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
[Humble] Removing a node with more than one auto-added callback group leaves a dangling guard condition in the executorTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
ros2/rclcpp#3410 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Copy constructor exception leaks intra-process message allocationTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 35/100
Mantenedores costumam responder em até 1 dia
Todas as issues de ros2/rclcpp
Issues semelhantes
-
arch-based bug niri
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
noctalia-dev/noctalia#5552 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 82/100
EchoTools/nevr-runtime#2912 ·
Mantenedores costumam responder em até 1 dia
-
area/docdb kind/failing-test priority/medium status/awaiting-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
yugabyte/yugabyte-db#39462 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
meshtastic/firmware#12519 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 79/100
Mantenedores costumam responder em até 1 dia