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

OpenGL.error #249

Open
PeiZhangNEU opened this issue Dec 23, 2024 · 9 comments
Open

OpenGL.error #249

PeiZhangNEU opened this issue Dec 23, 2024 · 9 comments

Comments

@PeiZhangNEU
Copy link

[Genesis] [08:27:07] [INFO] Building visualizer...
Exception in thread Thread-2 (_init_and_start_app):
Traceback (most recent call last):
File "/home/zp/anaconda3/envs/genesis/lib/python3.11/site-packages/OpenGL/latebind.py", line 43, in call
return self._finalCall( *args, **named )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not callable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/zp/anaconda3/envs/genesis/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
File "/home/zp/anaconda3/envs/genesis/lib/python3.11/threading.py", line 982, in run
self._target(*self._args, **self._kwargs)
File "/home/zp/anaconda3/envs/genesis/lib/python3.11/site-packages/genesis/ext/pyrender/viewer.py", line 1149, in _init_and_start_app
pyglet.clock.tick()
File "/home/zp/anaconda3/envs/genesis/lib/python3.11/site-packages/pyglet/clock.py", line 528, in tick
return _default.tick(poll)
^^^^^^^^^^^^^^^^^^^
File "/home/zp/anaconda3/envs/genesis/lib/python3.11/site-packages/pyglet/clock.py", line 270, in tick
self.call_scheduled_functions(delta_t)
File "/home/zp/anaconda3/envs/genesis/lib/python3.11/site-packages/pyglet/clock.py", line 217, in call_scheduled_functions
item.func(now - item.last_ts, *item.args, **item.kwargs)
File "/home/zp/anaconda3/envs/genesis/lib/python3.11/site-packages/genesis/ext/pyrender/viewer.py", line 941, in _time_event
self.on_draw()
File "/home/zp/anaconda3/envs/genesis/lib/python3.11/site-packages/genesis/ext/pyrender/viewer.py", line 640, in on_draw
self._render()
File "/home/zp/anaconda3/envs/genesis/lib/python3.11/site-packages/genesis/ext/pyrender/viewer.py", line 1086, in _render
retval = renderer.render(self.scene, flags, seg_node_map=seg_node_map)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zp/anaconda3/envs/genesis/lib/python3.11/site-packages/genesis/ext/pyrender/renderer.py", line 141, in render
self._update_context(scene, flags)
File "/home/zp/anaconda3/envs/genesis/lib/python3.11/site-packages/genesis/ext/pyrender/renderer.py", line 916, in _update_context
texture._add_to_context()
File "/home/zp/anaconda3/envs/genesis/lib/python3.11/site-packages/genesis/ext/pyrender/texture.py", line 219, in _add_to_context
max_aniso = glGetFloat(texture_filter_anisotropic.GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zp/anaconda3/envs/genesis/lib/python3.11/site-packages/OpenGL/latebind.py", line 47, in call
return self._finalCall( *args, **named )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zp/anaconda3/envs/genesis/lib/python3.11/site-packages/OpenGL/wrapper.py", line 678, in wrapperCall
raise err
File "/home/zp/anaconda3/envs/genesis/lib/python3.11/site-packages/OpenGL/wrapper.py", line 671, in wrapperCall
result = wrappedOperation( *cArguments )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zp/anaconda3/envs/genesis/lib/python3.11/site-packages/OpenGL/platform/baseplatform.py", line 415, in call
return self( *args, **named )
^^^^^^^^^^^^^^^^^^^^^^
File "/home/zp/anaconda3/envs/genesis/lib/python3.11/site-packages/OpenGL/error.py", line 230, in glCheckError
raise self._errorClass(
OpenGL.error.GLError: GLError(
err = 1280,
description = b'invalid enumerant',
baseOperation = glGetFloatv,
pyArgs = (
GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT,
<object object at 0x7f5f45aa3f30>,
),
cArgs = (
GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT,
array([0.], dtype=float32),
),
cArguments = (
GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT,
array([0.], dtype=float32),
)
)

RTX3090
NVIDIA-SMI 555.42.02
Driver Version: 555.42.02
CUDA Version: 12.5
Python: 3.11.11

@chenfei8888
Copy link

I have a same error

2 similar comments
@zhang-qiang-github
Copy link

I have a same error

@DoiryCool
Copy link

I have a same error

@sridhar-mani
Copy link

any solution

@VerizonCao
Copy link

same issue on Mac M3.

@z-yf17
Copy link

z-yf17 commented Dec 30, 2024

same issue

@sridhar-mani
Copy link

i found a work around is the bug still open

@DoiryCool
Copy link

i found a work around is the bug still open

so what’s the problem?

@sridhar-mani
Copy link

the problem is the opengl obviously just change pyopengl version and override mesa

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

7 participants