ros-visualization / rqt_common_plugins

45 stars 132 forks source link

Fix crash of rqt_graph when enable_statistics == true, fixes #428 #439

Closed sosswald closed 7 years ago

sosswald commented 7 years ago

self.edges[sub][topic].keys() returns a list, while next() expects an iterator, which leads to a TypeError: list object is not an iterator exception. Fixed by converting key list to iterator first (this solution works both in Python 2 and 3).

dirk-thomas commented 7 years ago

Thank you for the patch. This is a regression from here: https://github.com/ros-visualization/rqt_common_plugins/pull/421/files#diff-21af4bb8c2f026faf20035854787c197R175