Open Franz-Sebastian opened 1 month ago
Hey Franz, can you please copy and paste the whole stack trace here?
Hey Franz, can you please copy and paste the whole stack trace here?
The whole long texts in the terminal?
Yes, that one
I alr closed the app, so i run it one more time, here is the copy of my terminal:
MSV d:\Applications\Anaconda\Python Projects>"d:\Applications\Anaconda\envs\manim\Scripts\manim" "d:\Applications\Anaconda\Python Projects\Try.py" MyIntro Manim Community v0.18.1
+--------------------- Traceback (most recent call last) ---------------------+ | d:\Applications\Anaconda\envs\manim\lib\site-packages\manim\cli\render\comm | ands.py:120 in render | |
---|---|---|---|
117 try: | |||
118 with tempconfig({}): | |||
119 scene = SceneClass() | |||
> 120 scene.render() | |||
121 except Exception: | |||
122 error_console.print_exception() | |||
123 sys.exit(1) | |||
d:\Applications\Anaconda\envs\manim\lib\site-packages\manim\scene\scene.py: | |||
229 in render | |||
226 """ | |||
227 self.setup() | |||
228 try: | |||
> 229 self.construct() | |||
230 except EndSceneEarlyException: | |||
231 pass | |||
232 except RerunSceneException as e: | |||
d:\Applications\Anaconda\Python Projects\Try.py:6 in construct | |||
3 class MyIntro(Scene): | |||
4 def construct(self): | |||
5 text=Tex(r"Hello World") | |||
> 6 self.play(Write(text)) | |||
7 self.wait() | |||
8 | |||
9 | |||
d:\Applications\Anaconda\envs\manim\lib\site-packages\manim\scene\scene.py: | |||
1092 in play | |||
1089 return | |||
1090 | |||
1091 start_time = self.renderer.time | |||
> 1092 self.renderer.play(self, *args, **kwargs) | |||
1093 run_time = self.renderer.time - start_time | |||
1094 if subcaption: | |||
1095 if subcaption_duration is None: | |||
d:\Applications\Anaconda\envs\manim\lib\site-packages\manim\renderer\cairo_ | |||
renderer.py:114 in play | |||
111 # In this case, as there is only a wait, it will be the l | |||
112 self.freeze_current_frame(scene.duration) | |||
113 else: | |||
> 114 scene.play_internal() | |||
115 self.file_writer.end_animation(not self.skip_animations) | |||
116 | |||
117 self.num_plays += 1 | |||
d:\Applications\Anaconda\envs\manim\lib\site-packages\manim\scene\scene.py: | |||
1261 in play_internal | |||
1258 for t in self.time_progression: | |||
1259 self.update_to_time(t) | |||
1260 if not skip_rendering and not self.skip_animation_previe | |||
> 1261 self.renderer.render(self, t, self.moving_mobjects) | |||
1262 if self.stop_condition is not None and self.stop_conditi | |||
1263 self.time_progression.close() | |||
1264 break | |||
d:\Applications\Anaconda\envs\manim\lib\site-packages\manim\renderer\cairo_ | |||
renderer.py:160 in render | |||
157 | |||
158 def render(self, scene, time, moving_mobjects): | |||
159 self.update_frame(scene, moving_mobjects) | |||
> 160 self.add_frame(self.get_frame()) | |||
161 | |||
162 def get_frame(self): | |||
163 """ | |||
d:\Applications\Anaconda\envs\manim\lib\site-packages\manim\renderer\cairo_ | |||
renderer.py:190 in add_frame | |||
187 return | |||
188 self.time += num_frames * dt | |||
189 for _ in range(num_frames): | |||
> 190 self.file_writer.write_frame(frame) | |||
191 | |||
192 def freeze_current_frame(self, duration: float): | |||
193 """Adds a static frame to the movie for a given duration. The | |||
d:\Applications\Anaconda\envs\manim\lib\site-packages\manim\scene\scene_fil | |||
e_writer.py:391 in write_frame | |||
388 elif config.renderer == RendererType.CAIRO: | |||
389 frame = frame_or_renderer | |||
390 if write_to_movie(): | |||
> 391 self.writing_process.stdin.write(frame.tobytes()) | |||
392 if is_png_format() and not config["dry_run"]: | |||
393 self.output_image_from_array(frame) | |||
394 |
+-----------------------------------------------------------------------------+ OSError: [Errno 22] Invalid argument [19908] Execution returned code=1 in 8.628 seconds returned signal null
Tell me if i need to do a screenshots instead
I tried to find any solutions in the open or closed case here and tried it, but still not working. Here's the code and the error.![Screenshot 2024-07-12 023207](https://github.com/user-attachments/assets/afc358e4-3b12-4062-a7d3-9bf1d3655759)