[F glutil.cpp:338] eglInitialize() failed
AmanKishore opened this issue · 4 comments
AmanKishore commented
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
ybbbbt commented
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 commented
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 commented
Thank you!
AmanKishore commented
Seems to result in a blob for the output, not sure if related