Skip to content

Scene Caching Tries to Access the Wrong File in Certain Circumstances #451

Closed
@sudgy

Description

@sudgy

Consider the following scene:

class Issue3DCache(ThreeDScene):
    def construct(self):
        self.begin_ambient_camera_rotation(rate=0.1)
        self.wait()
        self.wait()

when I run manim once, it makes a black screen as expected, but when I run it again, it crashes saying that it can't find the partial movie file.

When running manim test.py Issue3DCache -pl the first time:

Animation 0 : Partial movie file written in {'.../480p15/partial_movie_files/Issue3DCache/2314591449_1-0_2415171488.mp4'}
Animation 1 : Partial movie file written in {'.../480p15/partial_movie_files/Issue3DCache/1347326907_1-0_2415171488.mp4'}

When running it again:

Wait 0 : Using cached data (hash : 2314591449_1-0_2415171488)
Animation 1 : Partial movie file written in {'.../480p15/partial_movie_files/Issue3DCache/2314591449_1-0_2415171488.mp4'}
Impossible to open 'file:.../480p15/partial_movie_files/Issue3DCache/865043704_1-0_2415171488.mp4'
.../480p15/partial_movie_files/Issue3DCache/partial_movie_file_list.txt: No such file or directory

Metadata

Metadata

Labels

pr:bugfixBug fix for use in PRs solving a specific issue:bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions