Hey all  ,
I’m currently working on an implementation of A3C integrated with openai gym.
As some of the environments (e.g. CartPole-v0) don’t return an rgb array as an observation, I leverage env.render(mode='rgb_array') to obtain the pixel representation of the current game state.
However, this causes my processes to fail silently. It simply doesn’t execute and the program exits the training loop.
I was wondering whether anyone already encountered this problem and already found a fix for this. My current machine is a late 2013 Macbook Pro.
Tbh, I’m not that familiar with multiprocessing, but from what I have found on stack overflow, this might be related to the fact that you can’t call UI actions on a child thread.
Best,
Deniz