Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation Fault when executing collect.py #44

Open
wang414 opened this issue Jul 6, 2024 · 3 comments
Open

Segmentation Fault when executing collect.py #44

wang414 opened this issue Jul 6, 2024 · 3 comments

Comments

@wang414
Copy link

wang414 commented Jul 6, 2024

Thanks for your excellent work. I am facing segmentation fault while running python legged_gym/scripts/collect.py --headless --task a1_distill. I traced back for the problem, and found that it was caused by the forward_depth observation when the code is creating for the environment. Do you have any idea about it.

My GPU is A100-40G, pytorch version is 1.10.0+cu113.

@AlorithmKing
Copy link

AlorithmKing commented Jul 11, 2024

i meet the same issue when i run python legged_gym/scripts/train.py --task a1_leap

Building extension module gymtorch...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
ninja: no work to do.
Loading extension module gymtorch...
Setting seed: 1
Using LeggedRobotField.init, num_obs and num_privileged_obs will be computed instead of assigned.
Not connected to PVD
+++ Using GPU PhysX
Physics Engine: PhysX
Physics Device: cuda:0
GPU Pipeline: enabled
Segmentation fault (core dumped)
My GPU is 4090 torch==2.0.0+cu118 torchvision==0.15.0+cu118 torchaudio==2.0.0+cu118

@ZiwenZhuang
Copy link
Owner

i meet the same issue when i run python legged_gym/scripts/train.py --task a1_leap

Building extension module gymtorch... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) ninja: no work to do. Loading extension module gymtorch... Setting seed: 1 Using LeggedRobotField.init, num_obs and num_privileged_obs will be computed instead of assigned. Not connected to PVD +++ Using GPU PhysX Physics Engine: PhysX Physics Device: cuda:0 GPU Pipeline: enabled Segmentation fault (core dumped) My GPU is 4090 torch==2.0.0+cu118 torchvision==0.15.0+cu118 torchaudio==2.0.0+cu118

It seems you forgot to add --headless argument in a headless server?

@ZiwenZhuang
Copy link
Owner

Thanks for your excellent work. I am facing segmentation fault while running python legged_gym/scripts/collect.py --headless --task a1_distill. I traced back for the problem, and found that it was caused by the forward_depth observation when the code is creating for the environment. Do you have any idea about it.

My GPU is A100-40G, pytorch version is 1.10.0+cu113.

If it is the depth rendering problem, please make sure *Cfg.sim.no_camera is set to False in your config file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants