-
Notifications
You must be signed in to change notification settings - Fork 62
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 (Core Dumped ) #5
Comments
We have not tested the compilation steps for ubuntu 18. Are you using the docker? |
I have encountered the same problem. BTW I am using a docker. |
I am not using the docker, have used the other installation method. I am doing this whole process on a compute cluster and for admin reasons cannot use docker. |
If you are using a cluster, then you probably do not have a display enviornment for GL applications. Can you try running softgym with the headless option on? |
I had this problem when running the example from inside the docker. (In Ubuntu 18 and CUDA 11) I solved it executing the example outside the container, but you need to set env variables again if not already in .bashrc
|
So on the cluster I have been using xvfb and so the display environment should be working properly (because other GL applications like glxgears works as expected). However, I just ran it again headless and get a very similar error. I also attempted the solution provided by FranBesq and get the same issue.
|
Looks like this is an EGL error. Are you sure you have all correct EGL libraries installed on the cluster? maybe try this: |
Yup, these libraries are all installed. |
I still get: |
Have you tried @yufeiwang63 answer? If it didn't work here are some things I would try. Although I don't want to send you on a wild goose chase.
|
Hello, Thanks for your answering. |
Hi @yufeiwang63 and @Xingyu-Lin , I can produce a detailed issue report, but before doing that, I am interested in knowing the workflow that you two use to run softgym. Just to be clear, did you need to follow the instructions in this fork linked above? Is this the workflow that you generally follow? And when you run your python commands, are you using the usual command line shell or are you inside a docker environment? |
The purpose of the container is to compile PyFlex as far as I understood. I followed similar steps to the PyFlex docker.md when creating the fork and got it to work this way. Again, Im not going to talk in behalf of the authors obviously. But I think is worth giving it a try. |
We generally do not use the docker on our local desktop and only use it for launch experiments on computing clusters. On our local desktop, we follow the instructions here https://github.com/Xingyu-Lin/softgym/blob/master/README.md. The purpose of the docker was to make the compilation easier for more people. What @FranBesq said is correct: The docker is only used for compiling the Flex and PyFlex. Once the compilation is done, softgym can be run in a normal python environment.
|
Hi @Xingyu-Lin @FranBesq here is my more detailed minimum working example: (In a separate issue report) |
Hey @Xingyu-Lin what do you have in your /usr/lib/nvidia-440 folder? I do not have a folder like that in /usr/lib, and I suspect that could be my issue. |
Hi @rehaanahmad2013, here is my ls result:
|
Hello, I got the same question in an ubuntu16.04 server. My cuda version is 9.2, and the nvidia driver version is 460.73.01. When I ran the random_env.py, if headless 0, it showed |
If you are on a ubuntu server, it's very likely that you don't have a display environment. Does it work with headless set to 1? |
No, I tried both, neither 1 nor 0, it didn't work. |
Dirver version does make a difference. We got it working with Nvidia driver 440.33.01, and cuda version 9.1 or 9.2, although others also got it working under some other driver versions. |
Ok,thanks, I 'll try. |
Hi,when I ran . ./compile_1.0.sh, there were some warnings: |
Hi, have you solved this problem? |
@DhananjayAshok Have you been able to solve this problem? Others have had the segmentation fault but I'm also experiencing the exact same output error with "eglInitialize()..." etc. I also used a non-docker approach for admin reasons. |
Have you solved the problem yet? |
Have you solved the problem yet? |
Hello, I have encountered the same problem as you. Have you resolved it? |
Late to the party, but if anyone is stuck on this, you can run the examples in headless mode. e.g., This worked in the prebuild Docker image which I setup in Ubuntu 20.04. The build script uses CUDA 9.2. |
Hi, have you solved this problem? |
Hi there,
When I try to run SoftGym, The PyFleX compilation works just fine, but when I run the line in the example python file that goes:
env = normalize(SOFTGYM_ENVSargs.env_name)
I get the error:
Unable to initialize SDLCould not initialize GL extensions
Reshaping
Segmentation fault (core dumped)
Do you have any idea what could be causing this?
System specifications:
Ubuntu 18.04, CUDA 9.1
OpenGL applications work fine on my system, for example glxinfo and glxgears work as expected.
The text was updated successfully, but these errors were encountered: