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

assert error #7

Open
shenjackyuanjie opened this issue May 17, 2024 · 1 comment
Open

assert error #7

shenjackyuanjie opened this issue May 17, 2024 · 1 comment

Comments

@shenjackyuanjie
Copy link

manim3 v0.1.0
Traceback (most recent call last):
  File "V:\githubs\manim\manim3\test1.py", line 33, in <module>
    WriteAnimationExample().run()
  File "V:\githubs\manim\manim3\env\Lib\site-packages\manim3\toplevel\scene.py", line 59, in run
    self._run()
  File "V:\githubs\manim\manim3\env\Lib\site-packages\manim3\toplevel\scene.py", line 50, in _run
    Toplevel._get_renderer().process_frame()
  File "V:\githubs\manim\manim3\env\Lib\site-packages\manim3\toplevel\renderer.py", line 344, in process_frame
    self._render_frame()
  File "V:\githubs\manim\manim3\env\Lib\site-packages\manim3\toplevel\renderer.py", line 332, in _render_frame
    self._oit_framebuffer.render(vertex_array)
  File "V:\githubs\manim\manim3\env\Lib\site-packages\manim3\rendering\framebuffers\framebuffer.py", line 84, in render
    if (vertex_array_info := vertex_array._vertex_array_info_) is None:
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "V:\githubs\manim\manim3\env\Lib\site-packages\manim3\lazy\lazy_descriptor.py", line 166, in __get__
    return self._composer(self.get_elements(instance))
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "V:\githubs\manim\manim3\env\Lib\site-packages\manim3\lazy\lazy_descriptor.py", line 259, in get_elements
    return tuple(memoized_element.get_value() for memoized_element in self._get_memoized_elements(instance))
                                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "V:\githubs\manim\manim3\env\Lib\site-packages\manim3\lazy\lazy_descriptor.py", line 223, in _get_memoized_elements
    memoized_elements = self._memoize_elements(self._decomposer(self._method(*(
                                                                ^^^^^^^^^^^^^^^
  File "V:\githubs\manim\manim3\env\Lib\site-packages\manim3\rendering\vertex_array.py", line 239, in _vertex_array_info_
    uniform_block_info.verify_structured_field(field)
  File "V:\githubs\manim\manim3\env\Lib\site-packages\manim3\rendering\vertex_array.py", line 44, in verify_structured_field
    assert field._itemsize_ == self.size
AssertionError

running
https://github.com/YishiMichael/manim3/blob/dev/examples/write_animation.py

@shenjackyuanjie
Copy link
Author

Traceback (most recent call last):
  File "V:\githubs\manim\manim3\test1.py", line 33, in <module>
    WriteAnimationExample().run()
  File "V:\githubs\manim\manim3\env\Lib\site-packages\manim3\toplevel\scene.py", line 59, in run
    self._run()
  File "V:\githubs\manim\manim3\env\Lib\site-packages\manim3\toplevel\scene.py", line 50, in _run
    Toplevel._get_renderer().process_frame()
  File "V:\githubs\manim\manim3\env\Lib\site-packages\manim3\toplevel\renderer.py", line 344, in process_frame
    self._render_frame()
  File "V:\githubs\manim\manim3\env\Lib\site-packages\manim3\toplevel\renderer.py", line 332, in _render_frame
    self._oit_framebuffer.render(vertex_array)
  File "V:\githubs\manim\manim3\env\Lib\site-packages\manim3\rendering\framebuffers\framebuffer.py", line 84, in render
    if (vertex_array_info := vertex_array._vertex_array_info_) is None:
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "V:\githubs\manim\manim3\env\Lib\site-packages\manim3\lazy\lazy_descriptor.py", line 166, in __get__
    return self._composer(self.get_elements(instance))
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "V:\githubs\manim\manim3\env\Lib\site-packages\manim3\lazy\lazy_descriptor.py", line 259, in get_elements
    return tuple(memoized_element.get_value() for memoized_element in self._get_memoized_elements(instance))
                                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "V:\githubs\manim\manim3\env\Lib\site-packages\manim3\lazy\lazy_descriptor.py", line 223, in _get_memoized_elements
    memoized_elements = self._memoize_elements(self._decomposer(self._method(*(
                                                                ^^^^^^^^^^^^^^^
  File "V:\githubs\manim\manim3\env\Lib\site-packages\manim3\rendering\vertex_array.py", line 239, in _vertex_array_info_
    uniform_block_info.verify_structured_field(field)
  File "V:\githubs\manim\manim3\env\Lib\site-packages\manim3\rendering\vertex_array.py", line 44, in verify_structured_field
    assert field._itemsize_ == self.size, f"{field._itemsize_} != {self.size}"
AssertionError: 32 != 24

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

1 participant