robotology / poeticon

This is the repository of the POETICON++ EU project http://www.poeticon.eu
GNU General Public License v2.0
4 stars 6 forks source link

World state (and other modules): ctrl+c when an RPC is stuck #178

Open gsaponaro opened 8 years ago

gsaponaro commented 8 years ago

When one or more RPCs are stuck, worldStateManager does not quit gracefully:

^C[try 1 of 3] Trying to shut down
RFModule closing
[INFO]closing RPC port
yarp: Removing input from /activityInterface/worldState:rpc to /wsm/rpc:i
[INFO]starting shutdown procedure
[INFO]interrupting ports
yarp: Removing output from /wsm/activity:rpc to /activityInterface/rpc:i
[WARNING]isReachableWith obtained invalid response:  
[WARNING]isPullableWith obtained invalid response:  
[WARNING]refreshTracker did not receive data from tracker 
Segmentation fault
gsaponaro commented 8 years ago

It doesn't crash anymore, however it doesn't quit on the first ctrl+c (requires three of them). Enhancement for after the demo.