AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

Reading operation of getSimGroundTruthKinematics()/getCollisionInfo() from rpc handler threads and writing operation of those from UE GameThread seems not to be atomic.

Open seheevic opened this issue 7 years ago • 1 comments

As rpc server side, 'simGetGroundTruthKinematics' request is simply redirected to the code below in Unreal plugins. https://github.com/microsoft/AirSim/blob/c6f0729006ecd6d792a750edc7e27021469c5649/Unreal/Plugins/AirSim/Source/PawnSimApi.cpp#L522-L525 This just returns the state as a poco chunk. But, this handler is called on rpc handler thread, and the writer of the state is the UE game thread who is responsible for AActor::Tick(). No mutex (or mt-safe tool) has been used, so that there could be some possibility of reading non-atomic value of the requested state (like pose from previous frame and velocity from current frame, or contaminated data chunk). And this also seems to happen during processing 'simGetCollisionInfo'. Is this a bug? or do I miss something?

seheevic avatar Oct 11 '19 04:10 seheevic

This issue has been automatically marked as stale because it has not had activity from the community in the last year. It will be closed if no further activity occurs within 20 days.

stale[bot] avatar Apr 17 '22 15:04 stale[bot]