rosbag record --node
crashes if monitored node dies violently
#357
Labels
rosbag record --node
crashes if monitored node dies violently
#357
To reproduce, compile the following two programs:
Now, in four separate terminals:
The rosbag process will exit with the exception "terminate called after throwing an instance of 'XmlRpc::XmlRpcException'" and leave a broken bag 'test.bag.active' that cannot be fixed by
rosbag reindex
.The problem can be traced to the Recorder::doCheckMaster() function in ros_comm/tools/rosbag/src/recorder.cpp.
Changing line 570 fixes it:
Note also that there is an error in line 578:
Here,
resp
is meant to refer to the response to the XmlRpc "lookupNode" call to master, but it actually refers to the "getSubscriptions" call. Thus, the error messsage does not print a URI, as intended.The text was updated successfully, but these errors were encountered: