ros / ros_comm

ROS communications-related packages, including core client libraries (roscpp, rospy, roslisp) and graph introspection tools (rostopic, rosnode, rosservice, rosparam).
http://wiki.ros.org/ros_comm
752 stars 913 forks source link

when unregister topic,throw self.socket is None #2222

Open HomeAventador opened 2 years ago

HomeAventador commented 2 years ago
[rospy.internal][INFO] 2022-01-13 09:47:13,953: topic impl's ref count is zero, deleting topic /map_matching/MatchResult...
[rospy.internal][INFO] 2022-01-13 09:47:13,955: topic[/map_matching/MatchResult] removing connection to http://integrate-kybersim-dwqcx-798156872:43801/
[rospy.internal][WARNING] 2022-01-13 09:47:13,970: Unknown error initiating TCP/IP socket to integrate-kybersim-dwqcx-798156872:47687 (http://integrate-kybersim-dwqcx-798156872:43801/): Traceback (most recent call last):
  File "/opt/x86/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_base.py", line 555, in connect
    self.socket.connect((dest_addr, dest_port))
AttributeError: 'NoneType' object has no attribute 'connect'
MatthijsBurgh commented 2 years ago

This could have the same cause as https://github.com/ros/ros_comm/issues/2212