-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[F glutil.cpp:338] eglInitialize() failed Aborted (core dumped) #2
Comments
Hi, the problem seems to be caused by some OpenGL related libraries required by nvdiffrast. Could you try to follow the Dockerfile provided by nvdiffrast to install the dependencies and re-install nvdiffrast to see if it works? |
Thank for your answering, the problem has been solved. I can close this issue. |
Hi, glad to hear that you have solved the issue. Could you post the extra dependencies you have installed? |
nvdiffrast.zip |
Okay. Thanks for your kind reply. |
@YuDeng Hi, I also encountered |
@yuzhou164 Hi, could you share your version Cuda and version Nvidia Drive? |
Do I have to run the docker environment? What is the command to do that? Sorry, I'm not an expert in docker. If I just build it then try to run the test.py script I still get the egInitialize() failed error |
I also encounter this problem when I run the code on our lab server. And that because the server missing some Nvidia drivers. Try to install the missing packages or just reinstall the whole driver. |
@YuDeng hello, I also encounter
I want to know if it is really caused by the nvidia driver version or some other problems. |
According to NVlabs/nvdiffrast#56 (comment), I successfully resolve this problem by reinstalling the NVIDIA driver without -no-opengl-files. |
Hi,May i ask that how to use the command of 'docker'? |
May i ask how to reinstall the NVIDIA driver without -no-opengl-files? Could u provide more details? |
Hi, I downloaded the corresponding Nvidia Driver from https://www.nvidia.cn/Download/index.aspx?lang=cn and installed it without -no-opengl-files in my device. |
Very glad to receive your sincere reply. |
@ChenVoid, this blog (https://blog.csdn.net/weixin_43925119/article/details/109808670) may help you. When installing the Nvidia Driver, I changed the command "sudo ./NVIDIA-Linux-x86_64-430.14.run -no-x-check -no-nouveau-check -no-opengl-files" to "sudo ./NVIDIA-Linux-x86_64-430.14.run". |
@Rodger-Huang, thanks for your reply. |
The same problem came across to me. It seems that the use of a low version OpenGL (specifically, Mesa instead of Nvidia) caused this error. |
@SunYangtian Could you explain more? The previous solution is not working because I don't have permission to reinstall the nvidia driver. |
Following #108, we have updated the code and README to support CUDA context. For someone having trouble installing OpenGL, you may try to add "--use_opengl False" to the script to switch to using CUDA context. |
SolutionReplace all |
I have tried different images using docker, and all failed with the same error. But this works for me. And these codes are located in util/nvdiffrast.py Line 62. I do like this: if self.ctx is None: |
Thank you, confirmed this worked for me too. |
|
Greate work. I'm having a problem on running the inference code.



Firstly, I meeted the problem of fatal error: EGL/egl.h: No such file or directory.
I installed a package by apt-get install libegl1-mesa-dev.
Then I met another problem
[F glutil.cpp:338] eglInitialize() failed
Aborted (core dumped).,
Do you have any ideas how to fix this problem?
My Linux Environment:
cudnn: 7.6
cuda: 10.2
python :3.6
pytorch:1.6.0
The text was updated successfully, but these errors were encountered: