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

Got GLException: (0x1280): Invalid enum when running example scenes #5

Open
zmx0142857 opened this issue Jan 31, 2024 · 4 comments
Open

Comments

@zmx0142857
Copy link

zmx0142857 commented Jan 31, 2024

$ cd manim3/examples
$ python create.py
manim3 v0.1.0
Traceback (most recent call last):
  File "D:\src\manim3\examples\create.py", line 31, in <module>
    CreateExample().run()
  File "D:\src\manim3\manim3\toplevel\scene.py", line 59, in run
    self._run()
  File "D:\src\manim3\manim3\toplevel\scene.py", line 50, in _run
    Toplevel._get_renderer().process_frame()
  File "D:\src\manim3\manim3\toplevel\renderer.py", line 344, in process_frame
    self._render_frame()
  File "D:\src\manim3\manim3\toplevel\renderer.py", line 335, in _render_frame
    self._final_framebuffer.render(self._oit_compose_vertex_array)
  File "D:\src\manim3\manim3\rendering\framebuffers\framebuffer.py", line 100, in render
    Toplevel._get_context().set_blendings(self._blendings)
  File "D:\src\manim3\manim3\toplevel\context.py", line 48, in set_blendings
    gl.glBlendFunci(
  File "D:\app\conda-env\py312\Lib\site-packages\pyglet\gl\lib_wgl.py", line 66, in __call__
    return self.func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\app\conda-env\py312\Lib\site-packages\pyglet\gl\lib.py", line 78, in errcheck
    raise GLException(f'(0x{error}): {msg}')
pyglet.gl.lib.GLException: (0x1280): Invalid enum. An unacceptable value is specified for an enumerated argument.
  • platform: windows 10
  • python version 3.12.1
  • pyglet version 2.0.10
  • OpenGL version 4.3.0 NVIDIA 536.23
@YishiMichael
Copy link
Owner

Please check out your OpenGL version support. The gl.glBlendFunci is supported for OpenGL >= 4.0. The version restriction should be applied in toplevel/window.py.

To check out the gl version of the context attached to the created window, after the window creation insert this line:

print(pyglet_window.context.get_info().version)

Ideally it should print out 4.3.0.

@YishiMichael
Copy link
Owner

By the way, what's the platform you are using? It's known that manim3 does not support macOS (for its end of support on OpenGL).

@zmx0142857
Copy link
Author

zmx0142857 commented Feb 1, 2024

Thanks for your reply. My platform is Windows 10 and OpenGL version is exactly 4.3.0

@YishiMichael
Copy link
Owner

Sorry but it seems I cannot bring any help further. My configuration is almost identical with yours, but I cannot reproduce your exception.

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

2 participants