liu115 / renderpy

Simple python rasterizer tool implemented by OpenGL and C++
8 stars 1 forks source link

EGL Error when caling the render function #2

Open Bensong0506 opened 8 months ago

Bensong0506 commented 8 months ago

File "/shared/scannetpp/common/render.py", line 47, in main render_engine = renderpy.Render() RuntimeError: EGL error at eglInitializewith error code: 12296

Hi I managed to install and build the renderpy in the conda environment, but I got this error and I had no idea how to solve it.

burui11087 commented 8 months ago

+1

liu115 commented 8 months ago

Hi! I didn't have this issues before. Could you share a bit about your environment? like operating system, version, nvidia driver version etc.

Did you have the opengl package properly installed? is it installed in the conda env or in the system using apt install? (like libgl1-mesa-dev libglu1-mesa-dev)

Some people also have this error when EGL init but fixed by upgrading the nvidia driver

Sunwenxin1 commented 8 months ago

Hi! I didn't have this issues before. Could you share a bit about your environment? like operating system, version, nvidia driver version etc.

Did you have the opengl package properly installed? is it installed in the conda env or in the system using apt install? (like libgl1-mesa-dev libglu1-mesa-dev)

Some people also have this error when EGL init but fixed by upgrading the nvidia driver

hello, sir. I met the OpenGL.error.GLError: err=12289. some information about my environment are as follows. Snipaste_2024-03-18_10-50-09

XiangyuSu611 commented 7 months ago

I have the same issue.

image

Sunwenxin1 commented 7 months ago

I have the same issue.

image

i met this problem when i tried to run the VIBE project. my error is 12289 while yours is 12296. maybe the pyrender or the EGL is the reason. when i tried VIBE in the COLAB, the problem disappeared.

liu115 commented 7 months ago

Thanks for reporting. I will try different machines and environments and see if I can reproduce the issue but it might take a while.

At the meantime, a quick solution will be using other tools to do the rendering. I assume the main usage here is to render depth for ScanNet++ images. An alternative we had tried is to use pytorch3d MeshRasterizer. Reference that render semantic labels into 2D: https://github.com/scannetpp/scannetpp/blob/main/semantic/prep/rasterize_semantics_2d.py you should be able to read the z-buffer the get the depth map.

zhanghaoyu816 commented 4 months ago

Is there any better solution for this error? I have also encountered this error with Ubuntu22.04 image image My device infomation: image image image

YHChen0511 commented 2 months ago

I met this problem too. Are there any possible solutions?

junyuan-fang commented 4 weeks ago

I also have EGL error: image

['Render', 'doc', 'file', 'loader', 'name', 'package', 'spec', 'version'] Init EGL Detected 4 devices Using device 0 Using EGL version 1.5 OpenGL version: 4.6.0 NVIDIA 550.107.02 EGL version: 1.5 Bus error (core dumped)

miaolin968 commented 3 weeks ago

@junyuan-fang Have you fixed this problem?

junyuan-fang commented 3 weeks ago

@miaolin968 Nope. Have you?

miaolin968 commented 3 weeks ago

@junyuan-fang Nope. And my problem is: image "Detected 0 devices" means EGL can't detecte my GPU

tsj-001 commented 2 weeks ago

I also meet the similar problem, is there any solution?

Snipaste_2024-10-27_20-42-44
mokrueger commented 5 days ago

@junyuan-fang can you check if your issue is related to https://github.com/liu115/renderpy/issues/4 ?