Skip to content
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

OSError: [Errno 22] Invalid Argument || [8792] Execution returned code=1 in 1.925 seconds returned signal null #94

Open
Franz-Sebastian opened this issue Jul 11, 2024 · 10 comments

Comments

@Franz-Sebastian
Copy link

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

@Rickaym
Copy link
Owner

Rickaym commented Jul 12, 2024

Hey Franz, can you please copy and paste the whole stack trace here?

@Franz-Sebastian
Copy link
Author

Hey Franz, can you please copy and paste the whole stack trace here?

The whole long texts in the terminal?

@Rickaym
Copy link
Owner

Rickaym commented Jul 12, 2024

Yes, that one

@Franz-Sebastian
Copy link
Author

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

@Franz-Sebastian
Copy link
Author

Tell me if i need to do a screenshots instead

@yuduotianzhun
Copy link

i got the issue too,how to solved

@Rickaym
Copy link
Owner

Rickaym commented Nov 28, 2024

This seems to be an issue with the animation code. Does it work when run normally?

@NielaoGanBu
Copy link

FadeIn() is OK, any other animation can cause the problem

@NielaoGanBu
Copy link

FadeIn() is OK, any other animation can cause the problem

manually use all the animation code once can fix this problem, but why

@Rickaym
Copy link
Owner

Rickaym commented Jan 4, 2025

Ah, so the issue is resolved?

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

No branches or pull requests

4 participants