Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyrender and opengl issue on VMs #39

Closed
alighofrani95 opened this issue May 2, 2021 · 5 comments
Closed

pyrender and opengl issue on VMs #39

alighofrani95 opened this issue May 2, 2021 · 5 comments

Comments

@alighofrani95
Copy link

I have to try loading the project on VM machine and this issue occurs,
my machine is UBUNTU 18.04, and 3D is enabled in VMware.
Indeed I tried with multiple pyrender and OpenGL Versions but doesn't solve it.

INFO - 2021-05-02 18:43:37,442 - base - finished build model.
Traceback (most recent call last):
File "/root/Desktop/final/m3d/src/core/test.py", line 230, in
main()
File "/root/Desktop/final/m3d/src/core/test.py", line 210, in main
demo = Demo()
File "/root/Desktop/final/m3d/src/core/test.py", line 7, in init
self.prepare_modules()
File "/root/Desktop/final/m3d/src/core/test.py", line 15, in prepare_modules
self.visualizer = Visualizer(resolution=self.vis_size, input_size=self.input_size,with_renderer=True)
File "/root/Desktop/final/m3d/src/core/../lib/models/../utils/../maps_utils/../dataset/../dataset/../dataset/../visualization/visualization.py", line 23, in init
self.renderer = get_renderer(resolution=resolution)
File "/root/Desktop/final/m3d/src/core/../lib/models/../utils/../maps_utils/../dataset/../dataset/../dataset/../visualization/../visualization/renderer.py", line 142, in get_renderer
renderer = Renderer(faces,resolution=resolution[:2])
File "/root/Desktop/final/m3d/src/core/../lib/models/../utils/../maps_utils/../dataset/../dataset/../dataset/../visualization/../visualization/renderer.py", line 72, in init
point_size=1.0)
File "/usr/local/lib/python3.6/dist-packages/pyrender/offscreen.py", line 31, in init
self._create()
File "/usr/local/lib/python3.6/dist-packages/pyrender/offscreen.py", line 149, in _create
self._platform.init_context()
File "/usr/local/lib/python3.6/dist-packages/pyrender/platforms/egl.py", line 188, in init_context
EGL_NO_CONTEXT, context_attributes
File "/usr/local/lib/python3.6/dist-packages/OpenGL/platform/baseplatform.py", line 409, in call
return self( *args, **named )
File "src/errorchecker.pyx", line 58, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
OpenGL.error.GLError: GLError(
err = 12297,
baseOperation = eglCreateContext,
cArguments = (
<OpenGL._opaque.EGLDisplay_pointer object at 0x7f3dba91e2f0>,
<OpenGL._opaque.EGLConfig_pointer object at 0x7f3dba91e378>,
<OpenGL._opaque.EGLContext_pointer object at 0x7f3dbcaabe18>,
<OpenGL.arrays.lists.c_int_Array_7 object at 0x7f3dbcaab1e0>,
),
result = <OpenGL._opaque.EGLContext_pointer object at 0x7f3dba940268>
)

@Arthur151
Copy link
Owner

I have met this problem on one of three remote servers. It occurs in some times but not always. You can try to repeatly run the code. This error doesn't occur in some times.

@flywheel1412
Copy link

you could reinstall cuda driver with opengl support.

@JiajunWan
Copy link

I found a solution in this post.

@Arthur151
Copy link
Owner

Does adding the MESA_GL_VERSION_OVERRIDE=4.1 work for you? @JiajunWan

@JiajunWan
Copy link

Does adding the MESA_GL_VERSION_OVERRIDE=4.1 work for you? @JiajunWan

Yeah it worked. But in my case I also need to change GL_MAX_SAMPLES to 1 in glRenderbufferStorageMultisample() as it says in the post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants