3b1b / 3b1b/manim

Example Scene OpeningManimExample throws an out of range error since submobjects is empty.

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

描述

I have just downloaded and installed Manim exactly as described in the instructions. I have MikTex and Ffmpeg etc installed too. I can run the SquaresToCircles example but this example fails.

```
File "D:\Development\Manim\manimlib\extract_scene.py", line 155, in main
scene = SceneClass(**scene_kwargs)
File "D:\Development\Manim\manimlib\scene\scene.py", line 75, in __init__
self.construct()
File "example_scenes.py", line 20, in construct
title = TextMobject("This is some \\LaTeX")
File "D:\Development\Manim\manimlib\mobject\svg\tex_mobject.py", line 150, in __init__
self.break_up_by_substrings()
File "D:\Development\Manim\manimlib\mobject\svg\tex_mobject.py", line 190, in break_up_by_substrings
sub_tex_mob.move_to(self.submobjects[last_submob_index], RIGHT)
IndexError: list index out of range
```

貢獻指南

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

研究方向

此錯誤發生在 tex_mobject.py 的第190行,當 submobjects 為空時。先檢查 example_scenes.py 中的 OpeningManimExample,以查看 TextMobject 的呼叫方式。查看 tex_mobject.py 中的 break_up_by_substrings 方法,釐清為何 submobjects 可能為空以及如何處理該情況。執行示例場景來重現此錯誤並驗證修復。

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

評估

領域
backend
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
描述清楚
新手友好度
65/100

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

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