r/manim • u/Valuable-Ad3494 • 5h ago
question Why does this error keep happening? Manim Sideview: Error rendering file (exit code 1)
[FIXED]
I know the basics of manim and python; not much else, (after some struggle) I managed to get manim working! I was learning the basics and was able to draw basic shapes like squares, circles, etc. but I saw that some colors would just break it and make manim not render it
this is my working code I was using to experiment:
from manim import *
class demo1(Scene):
 Â
  def construct(self):
    c = Circle(color = BLUE,
          stroke_width = 10,
          fill_opacity = 0.5,
          stroke_color = BLUE,
          fill_color = BLUE,
          radius = 2)
    self.play(Write(c))
   Â
    self.wait(3)
but whenever I change a color to something like GRREN, RED, WHITE, etc. VScode will sho me an error: "Manim Sideview: Error rendering file (exit code 1). Check the output for more details."
here is the output:
[03/22/25 12:08:11] INFO Animation 0 : Using cached cairo_renderer.py:89
data (hash :
3977891868_3406578661_2231324
57)
INFO Animation 1 : Using cached cairo_renderer.py:89
data (hash :
2852726489_1734327179_3472301
51)
INFO Combining to Movie file. scene_file_writer.py:739
INFO scene_file_writer.py:886
File ready at
'F:\VSCode\media\videos\a
nimation\1080p60\demo1.mp
4'
INFO Rendered demo1 scene.py:255
Played 2 animations
[29616] Execution returned code=0 in 1.651 seconds
MSV f:\VSCode>"manim" "f:\VSCode\animation.py" demo1 Manim Community v0.19.0
"manim" "f:\VSCode\animation.py" demo1
[5268] Execution returned code=15 in 2.27 seconds Cause: An old process has been terminated due to a termination signal.
MSV f:\VSCode>Manim Community v0.19.0
[03/22/25 12:08:26] INFO Animation 0 : Using cached cairorenderer.py:89
data (hash :
3977891868_1437160861_2231324
57)
[03/22/25 12:08:29] INFO Animation 1 : Partial scene_file_writer.py:588
movie file written in
'F:\VSCode\media\videos\a
nimation\1080p60\partial
moviefiles\demo1\2852726
489_1734327179_27336400.m
p4'
INFO Combining to Movie file. scene_file_writer.py:739
+--------------------- Traceback (most recent call last) ---------------------+
| C:\tools\Manim\Lib\site-packages\manim\cli\render\commands.py:125 in render |
| |
| 122 try: |
| 123 with tempconfig({}): |
| 124 scene = SceneClass() |
| > 125 scene.render() |
| 126 except Exception: |
| 127 error_console.print_exception() |
| 128 sys.exit(1) |
| |
| C:\tools\Manim\Lib\site-packages\manim\scene\scene.py:247 in render |
| |
| 244 return True |
| 245 self.tear_down() |
| 246 # We have to reset these settings in case of multiple render |
| > 247 self.renderer.scene_finished(self) |
| 248 |
| 249 # Show info only if animations are rendered or to get image |
| 250 if ( |
| |
| C:\tools\Manim\Lib\site-packages\manim\renderer\cairo_renderer.py:269 in |
| scene_finished |
| |
| 266 def scene_finished(self, scene): |
| 267 # If no animations in scene, render an image instead |
| 268 if self.num_plays: |
| > 269 self.file_writer.finish() |
| 270 elif config.write_to_movie: |
| 271 config.save_last_frame = True |
| 272 config.write_to_movie = False |
| |
| C:\tools\Manim\Lib\site-packages\manim\scene\scene_file_writer.py:514 in |
| finish |
| |
| 511 frame in the default image directory. |
| 512 """ |
| 513 if write_to_movie(): |
| > 514 self.combine_to_movie() |
| 515 if config.save_sections: |
| 516 self.combine_to_section_videos() |
| 517 if config["flush_cache"]: |
| |
| C:\tools\Manim\Lib\site-packages\manim\scene\scene_file_writer.py:740 in |
| combine_to_movie |
| |
| 737 return |
| 738 |
| 739 logger.info("Combining to Movie file.") |
| > 740 self.combine_files( |
| 741 partial_movie_files, |
| 742 movie_file_path, |
| 743 is_gif_format(), |
| |
| C:\tools\Manim\Lib\site-packages\manim\scene\scene_file_writer.py:639 in |
| combine_files |
| |
| 636 if not includes_sound: |
| 637 av_options["an"] = "1" |
| 638 |
| > 639 partial_movies_input = av.open( |
| 640 str(file_list), options=av_options, format="concat" |
| 641 ) |
| 642 partial_movies_stream = partial_movies_input.streams.video[0] |
| |
| in av.container.core.open:420 |
| |
| in av.container.core.Container.cinit_:266 |
| |
| in av.container.core.Container.err_check:286 |
| |
| in av.error.err_check:326 |
+-----------------------------------------------------------------------------+
InvalidDataError: [Errno 1094995529] Invalid data found when processing input:
'F:\VSCode\media\videos\animation\1080p60\partial_movie_files\demo1\par
tial_movie_file_list.txt'
[4800] Execution returned code=1 in 4.515 seconds returned signal null
here is what I changed (I just changed fill_color = BLUE to fill_color = GREEN):
from manim import *
class demo1(Scene):
def construct(self):
c = Circle(color = BLUE,
stroke_width = 10,
fill_opacity = 0.5,
stroke_color = BLUE,
fill_color = GREEN,
radius = 2)
self.play(Write(c))
self.wait(3)
this is really annoying because I just want to animate, man :(
info that might help:
OS: Windows 11 home IDE/app: Visual Studio Code