Denys88/rl_games

Segmentation fault when importing env_configurations

Closed this issue · 4 comments

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.

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?

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.

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.

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