NVlabs / nvdiffrec

Official code for the CVPR 2022 (oral) paper "Extracting Triangular 3D Models, Materials, and Lighting From Images".
Other
2.09k stars 222 forks source link

‘eglInitialize() failed’ #61

Open 19dx opened 1 year ago

19dx commented 1 year ago

After I solved the problem this way, I encountered a new one below: image I work on Linux, RTX6000/RTX3090(both failed). I don't know how this problem is caused. Ubuntu = 18.04 GCC = 7.5.0 CUDA = 11.3 Pytorch = 1.12

JHnvidia commented 1 year ago

Hi,

This error is related to nvdiffrast (which is a dependency), so i would recommend first installing and trying to run an example from nvdiffrast to see if that works. If the error persists they may know more about how to solve it. https://nvlabs.github.io/nvdiffrast/#linux

The error in question is triggered when trying to initialize OpenGL ES: https://github.com/NVlabs/nvdiffrast/blob/a4e7a4db7e09695b4efc7641cc6b044ef706f953/nvdiffrast/common/glutil.cpp#L337. It's likely that this is due to missing libary, library version conflict or driver conflict, but I've never seen it before so it's hard to say.

npochhi commented 1 year ago

Hi, I'm not sure if this solves the issue but I faced the same issue earlier and I solved it by copying nvdiffrec/docker/10_nvidia.json to /usr/share/glvnd/egl_vendor.d.

dendenxu commented 1 year ago

Hi, I'm not sure if this solves the issue but I faced the same issue earlier and I solved it by copying nvdiffrec/docker/10_nvidia.json to /usr/share/glvnd/egl_vendor.d.

This solved my exact same issue too.