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

[F glutil.cpp:338] eglInitialize() failed #131

Open
AmanKishore opened this issue Feb 3, 2023 · 4 comments
Open

[F glutil.cpp:338] eglInitialize() failed #131

AmanKishore opened this issue Feb 3, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@AmanKishore
Copy link

Description

Getting this error [F glutil.cpp:338] eglInitialize() failed when running with latest commit

Steps to Reproduce

Run latest code with Dockerfile

Expected Behavior

This is during python3 main.py --workspace trial -O2 --test --save_mesh

Environment

Ubuntu 20.04

@AmanKishore AmanKishore added the bug Something isn't working label Feb 3, 2023
@ybbbbt
Copy link

ybbbbt commented Feb 3, 2023

This might due to the problem of headless rendering on a server.
I found a solution on sicxu/Deep3DFaceRecon_pytorch#2 and it works.

export PYOPENGL_PLATFORM=egl
cp docker/10_nvidia.json /usr/share/glvnd/egl_vendor.d/10_nvidia.json

where docker/10_nvidia.json can be downloaded from https://github.com/nv-tlabs/GET3D/blob/master/docker/10_nvidia.json

@ashawkey
Copy link
Owner

ashawkey commented Feb 3, 2023

Thanks @ybbbbt for the solution!
I have also changed nvdiffrast's default backend to Cuda in the latest commit, which should work without OpenGL.

@AmanKishore
Copy link
Author

Thank you!

@AmanKishore
Copy link
Author

Seems to result in a blob for the output, not sure if related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants