Skip to content

PointWithTrace path updater no longer displays in 0.19.0 #4218

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

Open
ragibson opened this issue Apr 16, 2025 · 1 comment · May be fixed by #4219
Open

PointWithTrace path updater no longer displays in 0.19.0 #4218

ragibson opened this issue Apr 16, 2025 · 1 comment · May be fixed by #4219

Comments

@ragibson
Copy link
Contributor

Description of bug / unexpected behavior

The PointWithTrace example no longer shows the trace as of version 0.19.0.

See https://docs.manim.community/en/stable/examples.html#pointwithtrace.

Expected behavior

The trace should display (or perhaps the example should be rewritten/removed).

On version 0.18.1, the trace does display.
Image

How to reproduce the issue

Code for reproducing the problem
from manim import *

class PointWithTrace(Scene):
    def construct(self):
        path = VMobject()
        dot = Dot()
        path.set_points_as_corners([dot.get_center(), dot.get_center()])
        def update_path(path):
            previous_path = path.copy()
            previous_path.add_points_as_corners([dot.get_center()])
            path.become(previous_path)
        path.add_updater(update_path)
        self.add(path, dot)
        self.play(Rotating(dot, radians=PI, about_point=RIGHT, run_time=2))
        self.wait()
        self.play(dot.animate.shift(UP))
        self.play(dot.animate.shift(LEFT))
        self.wait()

Additional media files

Images/GIFs
PointWithTrace.mp4

Logs

Terminal output
Manim Community v0.19.0

[04/15/25 20:51:01] DEBUG    Hashing ...                                                                                                                                                                              hashing.py:352
                    DEBUG    Hashing done in 0.002606 s.                                                                                                                                                              hashing.py:364
                    DEBUG    Hash generated :  3977891868_2076493038_3391789843                                                                                                                                       hashing.py:367
                    INFO     Animation 0 : Using cached data (hash : 3977891868_2076493038_3391789843)                                                                                                          cairo_renderer.py:89
                    DEBUG    List of the first few animation hashes of the scene: ['3977891868_2076493038_3391789843']                                                                                          cairo_renderer.py:98
                    DEBUG    Animation with empty mobject                                                                                                                                                           animation.py:190
                    DEBUG    Hashing ...                                                                                                                                                                              hashing.py:352
                    DEBUG    Hashing done in 0.002324 s.                                                                                                                                                              hashing.py:364
                    DEBUG    Hash generated :  2852726489_2834709167_2777518013                                                                                                                                       hashing.py:367
                    INFO     Animation 1 : Using cached data (hash : 2852726489_2834709167_2777518013)                                                                                                          cairo_renderer.py:89
                    DEBUG    List of the first few animation hashes of the scene: ['3977891868_2076493038_3391789843', '2852726489_2834709167_2777518013']                                                      cairo_renderer.py:98
                    DEBUG    Hashing ...                                                                                                                                                                              hashing.py:352
                    DEBUG    Hashing done in 0.004027 s.                                                                                                                                                              hashing.py:364
                    DEBUG    Hash generated :  2852726489_3168925982_2631930603                                                                                                                                       hashing.py:367
                    INFO     Animation 2 : Using cached data (hash : 2852726489_3168925982_2631930603)                                                                                                          cairo_renderer.py:89
                    DEBUG    List of the first few animation hashes of the scene: ['3977891868_2076493038_3391789843', '2852726489_2834709167_2777518013', '2852726489_3168925982_2631930603']                  cairo_renderer.py:98
                    DEBUG    Hashing ...                                                                                                                                                                              hashing.py:352
                    DEBUG    Hashing done in 0.003338 s.                                                                                                                                                              hashing.py:364
                    DEBUG    Hash generated :  2852726489_2696038255_2631930603                                                                                                                                       hashing.py:367
                    INFO     Animation 3 : Using cached data (hash : 2852726489_2696038255_2631930603)                                                                                                          cairo_renderer.py:89
                    DEBUG    List of the first few animation hashes of the scene: ['3977891868_2076493038_3391789843', '2852726489_2834709167_2777518013', '2852726489_3168925982_2631930603',                  cairo_renderer.py:98
                             '2852726489_2696038255_2631930603']                                                                                                                                                                    
                    DEBUG    Animation with empty mobject                                                                                                                                                           animation.py:190
                    DEBUG    Hashing ...                                                                                                                                                                              hashing.py:352
                    DEBUG    Hashing done in 0.002884 s.                                                                                                                                                              hashing.py:364
                    DEBUG    Hash generated :  2852726489_2834709167_3890943015                                                                                                                                       hashing.py:367
                    INFO     Animation 4 : Using cached data (hash : 2852726489_2834709167_3890943015)                                                                                                          cairo_renderer.py:89
                    DEBUG    List of the first few animation hashes of the scene: ['3977891868_2076493038_3391789843', '2852726489_2834709167_2777518013', '2852726489_3168925982_2631930603',                  cairo_renderer.py:98
                             '2852726489_2696038255_2631930603', '2852726489_2834709167_3890943015']                                                                                                                                
                    INFO     Combining to Movie file.                                                                                                                                                       scene_file_writer.py:739
                    DEBUG    Partial movie files to combine (5 files):                                                                                                                                      scene_file_writer.py:622
                             ['/home/ryan/.../manim_examples/media/videos/point_with_trace/1080p60/partial_movie_files/PointWithTrace/3977891868_2076493038_3391789843.mp4',                          
                             '/home/ryan/.../manim_examples/media/videos/point_with_trace/1080p60/partial_movie_files/PointWithTrace/2852726489_2834709167_2777518013.mp4',                           
                             '/home/ryan/.../manim_examples/media/videos/point_with_trace/1080p60/partial_movie_files/PointWithTrace/2852726489_3168925982_2631930603.mp4',                           
                             '/home/ryan/.../manim_examples/media/videos/point_with_trace/1080p60/partial_movie_files/PointWithTrace/2852726489_2696038255_2631930603.mp4',                           
                             '/home/ryan/.../manim_examples/media/videos/point_with_trace/1080p60/partial_movie_files/PointWithTrace/2852726489_2834709167_3890943015.mp4']                           
                    INFO                                                                                                                                                                                    scene_file_writer.py:886
                             File ready at '/home/ryan/.../manim_examples/media/videos/point_with_trace/1080p60/PointWithTrace.mp4'                                                                   
                                                                                                                                                                                                                                    
                    INFO     Rendered PointWithTrace                                                                                                                                                                    scene.py:255
                             Played 5 animations                                                                                                                                                                                    
                    INFO     Previewed File at: '/home/ryan/.../manim_examples/media/videos/point_with_trace/1080p60/PointWithTrace.mp4'                                               file_ops.py:237

System specifications

System Details
  • OS (with version, e.g., Windows 10 v2004 or macOS 10.15 (Catalina)): Linux Mint 22.1
  • RAM: 16 GB
  • Python version (python/py/python3 --version): Python 3.12.3
  • Installed modules (provide output from pip list):
Package             Version
------------------- -----------
av                  13.1.0
beautifulsoup4      4.13.4
certifi             2025.1.31
charset-normalizer  3.4.1
click               8.1.8
click-default-group 1.2.4
cloup               2.1.2
decorator           5.2.1
glcontext           3.0.0
idna                3.10
isosurfaces         0.1.0
manim               0.19.0
ManimPango          0.6.0
mapbox_earcut       1.0.3
markdown-it-py      3.0.0
mdurl               0.1.2
moderngl            5.12.0
moderngl-window     3.1.1
multipledispatch    1.0.0
networkx            3.2.1
numpy               2.2.4
pillow              11.2.1
pip                 25.0.1
pycairo             1.28.0
pydub               0.25.1
pyglet              2.1.3
pyglm               2.8.2
Pygments            2.19.1
pyrr                0.10.3
requests            2.32.3
rich                14.0.0
scipy               1.15.2
screeninfo          0.8.1
skia-pathops        0.8.0.post2
soupsieve           2.6
srt                 3.5.3
svgelements         1.9.6
tqdm                4.67.1
typing_extensions   4.13.2
urllib3             2.4.0
watchdog            3.0.0
LaTeX details
  • LaTeX distribution (e.g. TeX Live 2020): texlive-full (2023.20240207-1)
  • Installed LaTeX packages:

Additional comments

N/A

@irvanalhaq9
Copy link
Contributor

irvanalhaq9 commented Apr 16, 2025

I’ve opened PR #4219 to fix this issue.
The problem was that add_points_as_corners() did not connect to the last point of the existing path, so when only a single new point was provided, no line was added.

Link to the docs: https://manimce--4219.org.readthedocs.build/en/4219/examples.html#pointwithtrace

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

Successfully merging a pull request may close this issue.

2 participants