3b1b / 3b1b/manim

Broken Pipe Error

未關閉
#1,256 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
93.9k
分支
7.7k
平均合併
2 天 13 小時
30 天內合併 PR
4

描述

root@goorm:/workspace/Manim/manim(master)# python3 ./manim.py example_scenes.py SquareToCircle -pl
Media will be written to /workspace/Manim/manim/media/. You can change this behavior with the --media_dir flag.

Traceback (most recent call last):
File "/workspace/Manim/manim/manimlib/extract_scene.py", line 155, in main
scene = SceneClass(**scene_kwargs)
File "/workspace/Manim/manim/manimlib/scene/scene.py", line 75, in __init__
self.construct()
File "example_scenes.py", line 83, in construct
self.play(ShowCreation(square))
File "/workspace/Manim/manim/manimlib/scene/scene.py", line 848, in wrapper
func(self, *args, **kwargs)
File "/workspace/Manim/manim/manimlib/scene/scene.py", line 944, in play
self.progress_through_animations(animations)
File "/workspace/Manim/manim/manimlib/scene/scene.py", line 901, in progress_through_animations
self.add_frames(self.get_frame())
File "/workspace/Manim/manim/manimlib/scene/scene.py", line 1135, in add_frames
self.file_writer.write_frame(frame)
File "/workspace/Manim/manim/manimlib/scene/scene_file_writer.py", line 336, in write_frame
self.writing_process.stdin.write(frame.tobytes())
BrokenPipeError: [Errno 32] Broken pipe

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

該錯誤發生在 manimlib/scene/scene_file_writer.py 的第 336 行,其中一個 frame 被寫入 subprocess 的 stdin。調查 writing_process 的設置以及為何 pipe 會過早關閉。查看 file_writer 的初始化和 frame 寫入循環。檢查 ffmpeg 或 image 寫入進程是否提前終止。使用除錯輸出運行示例場景可能有助於隔離該條件。

由索引模型根據 Issue 內容生成。

評估

領域
audio-video-rtc, backend
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。