Unity-Technologies / ml-agents

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.
https://unity.com/products/machine-learning-agents
Other
17.18k stars 4.16k forks source link

BrokenPipeError and EOFError Please help #3805

Closed ninazrdl closed 4 years ago

ninazrdl commented 4 years ago

The training process was running fine and suddenly it throws these errors. The first few episodes are fine. I used this command with a virtual env, with and without anaconda: mlagents-learn trainer_config.yaml --env=UnityProject.exe --run-id=1 --train. A window alerting me that Python stopped working comes together with the following error log:

2020-04-18 07:53:22 INFO [trainer.py:214] 2: Brain: Step: 110000. Time Elapsed: 6598.126 s Mean Reward: 1.000. Std of Reward: 0.000. Training.
(UnityMLAVnv) (base) C:\Users\User\Desktop>Process Process-1:
Traceback (most recent call last):
File "c:\programdata\anaconda3\lib\multiprocessing\connection.py", line 312, in _recv_bytes
nread, err = ov.GetOverlappedResult(True)
BrokenPipeError: [WinError 109] パイプは終了しました。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\programdata\anaconda3\lib\multiprocessing\process.py", line 297, in _bootstrap
self.run()
File "c:\programdata\anaconda3\lib\multiprocessing\process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "c:\users\user\unitymlavnv\lib\site-packages\mlagents\trainers\subprocess_env_manager.py", line 120, in worker
cmd: EnvironmentCommand = parent_conn.recv()
File "c:\programdata\anaconda3\lib\multiprocessing\connection.py", line 250, in recv
buf = self._recv_bytes()
File "c:\programdata\anaconda3\lib\multiprocessing\connection.py", line 321, in _recv_bytes
raise EOFError​
EOFError

Environment:

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had activity in the last 14 days. It will be closed in the next 14 days if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been automatically closed because it has not had activity in the last 28 days. If this issue is still valid, please ping a maintainer. Thank you for your contributions.

github-actions[bot] commented 3 years ago

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.