ros-visualization / rqt_bag

http://wiki.ros.org/rqt_bag
31 stars 55 forks source link

rqt_bag crash when select all topic to record sometimes #34

Open jack-wolfs opened 5 years ago

jack-wolfs commented 5 years ago

i used kinetic on Ubuntu16.04, and when i use rqt_bag to record all the topics it would crash and display the following error msg. Traceback (most recent call last): File "/home/lupeng/catkin_ws/src/rqt_bag/src/rqt_bag/timeline_frame.py", line 293, in paint self._draw_topic_dividers(painter) File "/home/lupeng/catkin_ws/src/rqt_bag/src/rqt_bag/timeline_frame.py", line 520, in _draw_topic_dividers (x, y, w, h) = self._history_bounds[topic] KeyError: '/usb_cam/image_raw'

ElonKou commented 5 years ago

I have the same question. what I do is add try catch for these codes. https://github.com/ros-visualization/rqt_bag/blob/master/rqt_bag/src/rqt_bag/timeline_frame.py#L520-L530 It works ,but I don't know what happened.