Closed George056 closed 2 years ago
Hi @George056
This is not a bug, just a warning that we are using a torch function signature of nonzero
that is deprecated.
However, crashing after a few minutes sounds like an issue. Can you share the error logs?
I have not seen any error logs, when it crashes python freezes.
Does it crash on the Unity side and then the python side times out (UnityTimeoutException
) or does everything freeze? I'm assuming the editor console logs are empty too?
I'm not sure where the bug could be originating. It might help to remove some features (curiosity and self-play) to determine if it's something in the trainers or just C#.
Unity temporarily stops but then goes back to playing using the heuristic.
I do know that I get a lot of warnings in Unity due to the collect observations not just being called when it is not that AI's turn to make a move.
I just removed the lines that caused all of the warning and it still froze. What exactly happens is that at the end of a game, and I have only seen it happen at the end of a game, is that Unity freezes and then python says that the environment has stopped. I the return to Unity and it starts to play using the heuristic and python is frozen.
Is there anything in the player logs located in results/<run-id>/run_logs/Player-x.log
?
This is only happening on Reset? Do you know if the call to OnEpisodeBegin
for the next game is occurring?
Also, can you clarify what you mean by "manually being called" in the initial post. Are you using RequestDecision
?
No log files are made, just 2 json files (timers and training_status). I am calling RequestDecision, the game is turn based and I call it when it is this agents turn.
This issue has been automatically marked as stale because it has not had activity in the last 28 days. It will be closed in the next 14 days if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 42 days. If this issue is still valid, please ping a maintainer. Thank you for your contributions.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
When training I receive an error but training continues, but python then crashes after training continues for a few minutes. Also, the summery folder is not generated and the obtained reward is not printed. I am having this bug on my custom environment that is using discrete actions and is manually being called. My training configuration follows.