Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [BUG] - TopicSubscriber Node crashes on start #91

Open
Oberacda opened this issue Jul 25, 2024 · 1 comment
Open

🐛 [BUG] - TopicSubscriber Node crashes on start #91

Oberacda opened this issue Jul 25, 2024 · 1 comment
Assignees
Labels
bug Something isn't working good first issue Good for newcomers High Priority Nodes Issues concerning the standard node library.
Milestone

Comments

@Oberacda
Copy link
Contributor

Description

Topic subscriber crashes on startup due to an internal error.

Reproduction URL

https://github.com/fzi-forschungszentrum-informatik/ros2_ros_bt_py

Reproduction steps

1. Create a new tree
2. Add a Topic Subscriber
3. Start the tree

Screenshots

No response

Logs

[tree_node-1] [INFO] Not calling shutdown method, node has not been initialized yet  (TopicSubscriber loginfo:1114)
[tree_node-1] Traceback (most recent call last):
[tree_node-1]   File "/home/doberacker/repos/ros_ws/ros2_ros_bt_py/colcon_ws/install/ros_bt_py/lib/ros_bt_py/tree_node", line 33, in <module>
[tree_node-1]     sys.exit(load_entry_point('ros-bt-py', 'console_scripts', 'tree_node')())
[tree_node-1]   File "/home/doberacker/repos/ros_ws/ros2_ros_bt_py/colcon_ws/build/ros_bt_py/ros_bt_py/tree_node.py", line 434, in main
[tree_node-1]     executor.spin()
[tree_node-1]   File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/executors.py", line 294, in spin
[tree_node-1]     self.spin_once()
[tree_node-1]   File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/executors.py", line 739, in spin_once
[tree_node-1]     self._spin_once_impl(timeout_sec)
[tree_node-1]   File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/executors.py", line 736, in _spin_once_impl
[tree_node-1]     raise handler.exception()
[tree_node-1]   File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/task.py", line 239, in __call__
[tree_node-1]     self._handler.send(None)
[tree_node-1]   File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/executors.py", line 437, in handler
[tree_node-1]     await call_coroutine(entity, arg)
[tree_node-1]   File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/executors.py", line 391, in _execute_service
[tree_node-1]     response = await await_or_execute(srv.callback, request, srv.srv_type.Response())
[tree_node-1]   File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/executors.py", line 107, in await_or_execute
[tree_node-1]     return callback(*args)
[tree_node-1]   File "/home/doberacker/repos/ros_ws/ros2_ros_bt_py/colcon_ws/build/ros_bt_py/ros_bt_py/tree_manager.py", line 1073, in control_execution
[tree_node-1]     root.shutdown()
[tree_node-1]   File "/home/doberacker/repos/ros_ws/ros2_ros_bt_py/colcon_ws/build/ros_bt_py/ros_bt_py/node.py", line 767, in shutdown
[tree_node-1]     self.state = self._do_shutdown()
[tree_node-1]   File "/home/doberacker/repos/ros_ws/ros2_ros_bt_py/colcon_ws/build/ros_bt_py/ros_bt_py/nodes/sequence.py", line 110, in _do_shutdown
[tree_node-1]     child.shutdown()
[tree_node-1]   File "/home/doberacker/repos/ros_ws/ros2_ros_bt_py/colcon_ws/build/ros_bt_py/ros_bt_py/node.py", line 767, in shutdown
[tree_node-1]     self.state = self._do_shutdown()
[tree_node-1]   File "/home/doberacker/repos/ros_ws/ros2_ros_bt_py/colcon_ws/build/ros_bt_py/ros_bt_py/ros_nodes/topic.py", line 113, in _do_shutdown
[tree_node-1]     if self._subscriber is None:
[tree_node-1] AttributeError: 'TopicSubscriber' object has no attribute '_subscriber'. Did you mean: '_subscribe'?

ROS2 Version

Humble

OS

Ubuntu 22.04

@Oberacda Oberacda added bug Something isn't working good first issue Good for newcomers Nodes Issues concerning the standard node library. High Priority labels Jul 25, 2024
@Oberacda Oberacda added this to the ROSCon 2024 milestone Jul 25, 2024
@mdeitersen
Copy link

Working on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers High Priority Nodes Issues concerning the standard node library.
Projects
None yet
Development

No branches or pull requests

2 participants