Denys88 / rl_games

RL implementations
MIT License
848 stars 142 forks source link

Segmentation fault when importing env_configurations #174

Closed fanshi14 closed 2 years ago

fanshi14 commented 2 years ago

Dear colleagues,

Thanks for your great contribution!

I found one problem when: $ import rl_games.common.env_configurations My PC will output: Segmentation fault (core dumped) I tried many different virtual environment but the same problem occurs.

Finally, I solved the problem by move import rl_games.envs.test into line 1 in env_configurations.py.

I do not know the exact reason why it could work after moving line 3 to the beginning. Just let you know in case it is a potential bug.

PC environment: python 3.7, ubuntu 18.04, AMD 3990x cpu, NV RTX 3080.

Denys88 commented 2 years ago

It is something new :) I have very similar configuration but python v 3.9 and it doesn't crash. did you use rl-games 1.1.4 or current master?

fanshi14 commented 2 years ago

Thanks for replying! @Denys88 I tried rl-games 1.4.0 installed with OmniIsaacGymEnvs, but it failed. Then I tried to install from your source, and tried the modification with both 1.4.0 and current master.

Denys88 commented 2 years ago

Thanks @fanshi14 I think Ill just add your update but still not sure why it happens. if you can try it with python 3.9 it could help.

fanshi14 commented 2 years ago

Thanks @Denys88 , I tried conda with python3.9.12, but same problem occurs on my pc.