ManimCommunity / manim

A community-maintained Python framework for creating mathematical animations.
https://www.manim.community
MIT License
26.26k stars 1.8k forks source link

Tex formular is incomplete in Create animation #3223

Closed foldl closed 1 year ago

foldl commented 1 year ago

Description of bug / unexpected behavior

Create a "Create" animation of a formular. The final characters are not properly rendered.

Expected behavior

At last, the whole formular is visible.

How to reproduce the issue

manim -ql bug.py Bug
class Bug(Scene):
    def construct(self):
        tex = Tex('$a_0 b_0 + a_1 b_1 + a_2 b_2 + a_3 b_3 + a_4 b_4$')
        self.play(Create(tex))

Additional media files

Images/GIFs ![Bug_ManimCE_v0 17 3](https://user-images.githubusercontent.com/4046440/233829094-38be7060-c6c1-47a0-ab8d-68372d148139.gif)

Logs

Terminal output ``` $ manim -v DEBUG -ql --format=gif aa.py Bug Manim Community v0.17.3 [04/23/23 16:36:32] DEBUG Hashing ... hashing.py:350 DEBUG Hashing done in 0.081241 s. hashing.py:362 DEBUG Hash generated : 4266129954_561006041_223132457 hashing.py:365 INFO Animation 0 : Using cached data (hash : 4266129954_561006041_223132457) cairo_renderer.py:78 DEBUG List of the first few animation hashes of the scene: ['4266129954_561006041_223132457'] cairo_renderer.py:87 [04/23/23 16:36:33] INFO Combining to Movie file. scene_file_writer.py:617 DEBUG Partial movie files to combine (1 files): scene_file_writer.py:561 ['.../media/videos/aa/480p15/partial_movie_files/Bug/4266129954_561006041_223132457.mp4'] INFO scene_file_writer.py:736 File ready at '.../media/videos/aa/480p15/Bug_ManimCE_v0.17.3.gif' INFO Rendered Bug scene.py:241 Played 1 animations ```

System specifications

System Details - OS: Linux Mint 21.1 x86_64 - RAM: 4GB - Python version: 3.10.6 - Installed modules: Package Version --------------------- ------------- apt-clone 0.2.1 apturl 0.5.2 beautifulsoup4 4.10.0 blinker 1.4 Brlapi 0.8.3 certifi 2020.6.20 chardet 4.0.0 charset-normalizer 3.1.0 click 8.0.3 click-default-group 1.2.2 cloup 0.13.1 colorama 0.4.4 colour 0.1.5 command-not-found 0.3 configobj 5.0.6 cryptography 3.4.8 cupshelpers 1.0 dbus-python 1.2.18 decorator 5.1.1 defer 1.0.6 distro 1.7.0 eyeD3 0.8.10 filelock 3.6.0 glcontext 2.3.7 grpcio 1.30.2 httplib2 0.20.2 idna 3.3 ifaddr 0.1.7 IMDbPY 2021.4.18 importlib-metadata 4.6.4 isosurfaces 0.1.0 jeepney 0.7.1 keyring 23.5.0 launchpadlib 1.10.16 lazr.restfulclient 0.14.4 lazr.uri 1.0.6 louis 3.20.0 macaroonbakery 1.3.1 Mako 1.1.3 manim 0.17.3 ManimPango 0.4.3 mapbox-earcut 1.0.1 markdown-it-py 2.2.0 MarkupSafe 2.0.1 mdurl 0.1.2 moderngl 5.8.2 moderngl-window 2.4.3 more-itertools 8.10.0 multipledispatch 0.6.0 nemo-emblems 5.6.0 netaddr 0.8.0 netifaces 0.11.0 networkx 2.8.8 numpy 1.24.2 oauthlib 3.2.0 onboard 1.4.1 packaging 21.3 PAM 0.4.2 pexpect 4.8.0 Pillow 9.5.0 pip 22.0.2 protobuf 3.12.4 psutil 5.9.0 ptyprocess 0.7.0 pycairo 1.23.0 pycups 2.0.1 pycurl 7.44.1 pydub 0.25.1 pyelftools 0.27 pyglet 2.0.5 Pygments 2.15.1 PyGObject 3.42.1 PyICU 2.8.1 pyinotify 0.9.6 PyJWT 2.3.0 pymacaroons 0.13.0 PyNaCl 1.5.0 pyparsing 2.4.7 pyparted 3.11.7 pyRFC3339 1.1 pyrr 0.10.3 python-apt 2.4.0+ubuntu1 python-debian 0.1.43ubuntu1 python-gnupg 0.4.8 python-magic 0.4.24 python-xlib 0.29 pytz 2022.1 pyxdg 0.27 PyYAML 5.4.1 reportlab 3.6.8 requests 2.28.2 requests-file 1.5.1 rich 13.3.4 scipy 1.10.1 screeninfo 0.8.1 SecretStorage 3.3.1 setproctitle 1.2.2 setuptools 59.6.0 six 1.16.0 skia-pathops 0.7.4 soupsieve 2.3.1 srt 3.5.3 ssh-import-id 5.11 svgelements 1.9.3 systemd-python 234 tinycss2 1.1.1 tldextract 3.1.2 tqdm 4.65.0 ubuntu-drivers-common 0.0.0 ufw 0.36.1 Unidecode 1.3.3 urllib3 1.26.5 wadllib 1.3.6 watchdog 2.3.1 webencodings 0.5.1 wheel 0.37.1 xdg 5 xkit 0.0.0 xlrd 1.2.0 youtube-dl 2021.12.17 zipp 1.0.0
LaTeX details + LaTeX distribution: TeX Live 2020 + Installed LaTeX packages: ``` (running on Debian, switching to user mode!) ```
FFMPEG Output of `ffmpeg -version`: ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)

Additional comments

foldl commented 1 year ago

Just add self.wait().