Closed behackl closed 4 years ago
CC @ManimCommunity/scene-caching
I can confirm this bug: https://github.com/ManimCommunity/manim/issues/460#issuecomment-697327133
@behackl It's not a bug.
Your scene won't generate any video, as there is no scene.play
or scene.wait
invocation.
If you wonder why does it work sometimes, it's because manim opens a video file named with the name of the file containing the scene, no matter if the scene was supposed to produce something. So, what can happen is that manim takes an old generated video as it didn't get replaced by a new generated one.
Nevertheless, I think it should be change.
Your scene won't generate any video, as there is no scene.play or scene.wait invocation.
@huguesdevimeux self.activate_zooming(animate=True)
seems to include a play
call somewhere; the video included over at https://manimce.readthedocs.io/en/latest/examples/camera_settings.html is produced.
@behackl You're right. I will investigate.
PS : First time I see the documentation quoted as a reference. Although I didn't contribute to it, I feel very proud :D
Just to let you know, I found a potential fix. I will PR a soon as I can :D
PS : First time I see the documentation quoted as a reference. Although I didn't contribute to it, I feel very proud :D
It is pretty cool, I do have to admit. Even though there is still lots of work to do, its fun to see how it slowly becomes more and more useful! :-)
Thanks for investigating, I will certainly have a look at whatever you come up with. 👍
I second this, also having this bug.
This will take longer as I expected.
This issue hides two : One related to how partial movie files are handled when some animations are skipped (in particular, when the first one is skipped), and one more serious that is that the hash produced by the second play call of scene.activate_zooming
is non-consistent for some reason.
Sooo, not sure when I will fix this. But if you need to run these kind of stuff, using --disable_caching
should work fine.
should be fixed in #489
Here is another scene caching error: running the code
(one of our examples from the documentation) twice raises the following error:
(I've noticed this from running
make html && make clean && make html
fromdocs
.)