JeffreyXiang / ivid

PyTorch implementation of the ICCV paper "3D-aware Image Generation using 2D Diffusion Models"
https://jeffreyxiang.github.io/ivid/
MIT License
306 stars 4 forks source link

libEGL warning: MESA-LOADER: failed to open nouveau #8

Closed Riqzz closed 1 year ago

Riqzz commented 1 year ago

When executing the following, an error occurs.

def init_gl_context(self, device):
        """
        Initialize OpenGL context.
        """
        # init gl context
        ## Initialize EGL
        self.mgl_ctx = moderngl.create_context(standalone=True, backend='egl', device_index=device)
    ...
Traceback (most recent call last):
...
Exception: eglInitialize failed (0x3001)
Exception ignored in: <function AggregationRenderer.__del__ at 0x7fe2bce31360>
...
AttributeError: 'NoneType' object has no attribute 'release'
Riqzz commented 1 year ago

I fixed it by reinstalling nvidia driver without -no-opengl-files

fuchao01 commented 11 months ago

除了重新安装显卡驱动,还有别的办法吗?