Giter Club home page Giter Club logo

Comments (7)

gavrielstate avatar gavrielstate commented on August 14, 2024

Without more details it's a bit hard to diagnose the problem. It's possible that you've run out of memory - the default parameters are tuned for systems with 64gb of RAM, and Isaac Sim is currently somewhat memory hungry at startup.

Can you try running with num_envs=1024 instead?

from omniisaacgymenvs.

jinseokbae avatar jinseokbae commented on August 14, 2024

Hi,
I also cannot sure the exact situation that @fanshi14 faced, but I got a similar error log containing Segmentation fault message when launching training code.
My case was due to setting invalid value for num_envs argument, which violated assert(self.batch_size % self.minibatch_size == 0) in rl_games/common/a2c_common.py.
So check this out if you manually changed num_envs in configuration file.

from omniisaacgymenvs.

fanshi14 avatar fanshi14 commented on August 14, 2024

Thank you @gavrielstate @jinseokbae for the kind advice!

I solved the problem on my pc, which is related to:

  • import omni.client in path_utils.py
  • rl-games installation (created an issue in rl-games)

When path_utils is imported in rlgames_train.py, my PC will output:
File "/home/USER/codes/OmniIsaacGymEnvs/omniisaacgymenvs/utils/config_utils/path_utils.py", line 32, in <module> import omni.client File "/home/USER/.local/share/ov/pkg/isaac_sim-2022.1.0/kit/extscore/omni.client/omni/client/__init__.py", line 21, in <module> from ._omniclient import * ImportError: /home/USER/.local/share/ov/pkg/isaac_sim-2022.1.0/kit/extscore/omni.usd.libs/bin/libjs.so: undefined symbol: _ZN32pxrInternal_v0_20__pxrReserved__18Tf_PostErrorHelperERKNS_13TfCallContextENS_16TfDiagnosticTypeEPKcz

The client's undefined symbol problem might be similar to disucussion1 and discussion2, I guess it is because of the order of import.

Finally, my temporary solution is to comment omni.client related codes in path_utils.py, since these functions are not used in current training scripts.

Maybe it is a special case for my desktop, but just let you know in case it is a potential bug.

from omniisaacgymenvs.

cyzhu-hiter avatar cyzhu-hiter commented on August 14, 2024

Hi all,

I'm also facing the bug that is the same as @fanshi14 posted. I try to fix that by just reinstalling sim and gym but failed.

So, I switched to another PC and built the environment from the bottom. It works!

chay@chay-MS-7C94:~/Downloads/OmniIsaacGymEnvs/omniisaacgymenvs$ PYTHON_PATH scripts/rlgames_train.py task=Cartpole Traceback (most recent call last): File "scripts/rlgames_train.py", line 34, in <module> from omniisaacgymenvs.utils.config_utils.path_utils import retrieve_checkpoint_path File "/home/chay/Downloads/OmniIsaacGymEnvs/omniisaacgymenvs/utils/config_utils/path_utils.py", line 32, in <module> import omni.client File "/home/chay/.local/share/ov/pkg/isaac_sim-2022.1.0/kit/extscore/omni.client/omni/client/__init__.py", line 21, in <module> from ._omniclient import * ImportError: /home/chay/.local/share/ov/pkg/isaac_sim-2022.1.0/kit/extscore/omni.usd.libs/bin/libjs.so: undefined symbol: _ZN32pxrInternal_v0_20__pxrReserved__18Tf_PostErrorHelperERKNS_13TfCallContextENS_16TfDiagnosticTypeEPKcz There was an error running python

Desktop: Ubuntu 18.04 + RTX 3070Ti

I used the old version of the gym and switch to the new one while sim remains in version 2022.1.0. Is that a potential cause to this problem?

from omniisaacgymenvs.

kellyguo11 avatar kellyguo11 commented on August 14, 2024

Thanks for bringing up the issue with the omni.client import. It appears we may have a bad ordering of imports happening.

If you are not planning to load a pre-trained checkpoint, it is safe to comment out the import for now.
Alternatively, the import should be moved to after we initialize VecEnvRLGames in rlgames_train.py.

We will fix this for the next release.

from omniisaacgymenvs.

hpf9017 avatar hpf9017 commented on August 14, 2024

@kellyguo11 When will the next version be released ? Thanks.

from omniisaacgymenvs.

kellyguo11 avatar kellyguo11 commented on August 14, 2024

We are targeting August for the next release.

from omniisaacgymenvs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.