After *exactly* 2hours of usage, ObstacleTowerEnv ends in SIGABRT, from gRPC

I have not per say found the issue but it seems that both hurdles (i.e. (1) create environment instances within spawned/forked processes without raising UnityTimedOutException, and (2) use the environment instances without getting gRPC to bug after exactly 2 hours) vanished once the followings are set:

torch.multiprocessing.set_start_method('forkserver')
torch.multiprocessing.set_sharing_strategy('file_system')

Sources:

  1. https://pytorch.org/docs/master/multiprocessing.html#multiprocessing-cuda-sharing-details
  2. https://github.com/pytorch/pytorch/issues/11201

Hopefully it will be helpful to more than me, so good luck to you who is reading this :slight_smile: !