Required prerequisites
Questions
I encountered an intermittent error while running training using this repository. The error occurs occasionally and is not easily reproducible with the same configuration. I am running another task on a different GPU at the same time. Could this cause interference?
Processing rollout for epoch: 21... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸ 100% 0:00:01
Traceback (most recent call last):
File "/home/sunyuanxu/Algorithm/examples/train_policy.py", line 96, in
agent.learn()
File "/home/sunyuanxu/Algorithm/omnisafe/algorithms/algo_wrapper.py", line 187, in learn
ep_ret, ep_cost, ep_len = self.agent.learn()
File "/home/sunyuanxu/Algorithm/omnisafe/algorithms/on_policy/base/policy_gradient.py", line 260, in learn
self._env.rollout(
File "/home/sunyuanxu/Algorithm/omnisafe/adapter/my_adapter.py", line 47, in rollout
next_obs, reward, cost, terminated, truncated, info = self.step(act)
File "/home/sunyuanxu/Algorithm/omnisafe/adapter/online_adapter.py", line 205, in step
return self._env.step(action)
File "/home/sunyuanxu/Algorithm/omnisafe/envs/wrapper.py", line 514, in step
return super().step(action)
File "/home/sunyuanxu/Algorithm/omnisafe/envs/core.py", line 245, in step
return self._env.step(action)
File "/home/sunyuanxu/Algorithm/omnisafe/envs/wrapper.py", line 231, in step
obs, reward, cost, terminated, truncated, info = super().step(action)
File "/home/sunyuanxu/Algorithm/omnisafe/envs/core.py", line 245, in step
return self._env.step(action)
File "/home/sunyuanxu/Algorithm/omnisafe/envs/safety_gymnasium_env.py", line 190, in step
obs, reward, cost, terminated, truncated, info = self._env.step(
File "/home/sunyuanxu/miniconda3/envs/new_omnisafe/lib/python3.10/site-packages/gymnasium/vector/vector_env.py", line 203, in step
return self.step_wait()
File "/home/sunyuanxu/new-safety-gymnasium/safety_gymnasium/vector/async_vector_env.py", line 123, in step_wait
obs, rew, cost, terminated, truncated, info = result
TypeError: cannot unpack non-iterable NoneType object
And I also encountered another intermittent error, but not at the same time.
ERROR: Received the following error from Worker-18: ValueError: Error: PNG file load error 'invalid ADLER32 encountered (checking ADLER32 can be disabled)' in tex
ture id = 0
Object name = , id = 0, line = 2, column = -1
ERROR: Shutting down Worker-18.
ERROR: Raising the last exception back to the main process.
Traceback (most recent call last):
File "/home/sunyuanxu/Algorithm/examples/train_policy.py", line 96, in
agent.learn()
File "/home/sunyuanxu/Algorithm/omnisafe/algorithms/algo_wrapper.py", line 187, in learn
ep_ret, ep_cost, ep_len = self.agent.learn()
File "/home/sunyuanxu/Algorithm/omnisafe/algorithms/on_policy/base/policy_gradient.py", line 260, in learn
self._env.rollout(
File "/home/sunyuanxu/Algorithm/omnisafe/adapter/my_adapter.py", line 38, in rollout
obs, _ = self.reset()
File "/home/sunyuanxu/Algorithm/omnisafe/adapter/online_adapter.py", line 222, in reset
return self._env.reset(seed=seed, options=options)
File "/home/sunyuanxu/Algorithm/omnisafe/envs/core.py", line 263, in reset
return self._env.reset(seed=seed, options=options)
File "/home/sunyuanxu/Algorithm/omnisafe/envs/wrapper.py", line 258, in reset
obs, info = super().reset(seed=seed, options=options)
File "/home/sunyuanxu/Algorithm/omnisafe/envs/core.py", line 263, in reset
return self._env.reset(seed=seed, options=options)
File "/home/sunyuanxu/Algorithm/omnisafe/envs/safety_gymnasium_env.py", line 227, in reset
obs, info = self._env.reset(seed=seed, options=options)
File "/home/sunyuanxu/miniconda3/envs/new_omnisafe/lib/python3.10/site-packages/gymnasium/vector/vector_env.py", line 139, in reset
return self.reset_wait(seed=seed, options=options)
File "/home/sunyuanxu/miniconda3/envs/new_omnisafe/lib/python3.10/site-packages/gymnasium/vector/async_vector_env.py", line 249, in reset_wait
self._raise_if_errors(successes)
File "/home/sunyuanxu/miniconda3/envs/new_omnisafe/lib/python3.10/site-packages/gymnasium/vector/async_vector_env.py", line 543, in _raise_if_errors
raise exctype(value)
ValueError: Error: PNG file load error 'invalid ADLER32 encountered (checking ADLER32 can be disabled)' in texture id = 0
Object name = , id = 0, line = 2, column = -1