nvdiffrec icon indicating copy to clipboard operation
nvdiffrec copied to clipboard

‘eglInitialize() failed’

Open 19dx opened this issue 2 years ago • 3 comments

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

19dx avatar Jul 14 '22 08:07 19dx

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.

JHnvidia avatar Jul 25 '22 09:07 JHnvidia

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.

npochhi avatar Aug 16 '22 23:08 npochhi

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.

dendenxu avatar Jun 24 '23 08:06 dendenxu