ManimCommunity / ManimCommunity/manim

Experimental: Manimation Freezes Consistently, but Randomly

Open
#4,863 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
40.9k
Forks
3.1k
Avg merge
3d 12h
Merged PRs (30d)
25

Description

## Description of bug / unexpected behavior
Both the preview window (`manim -p file.py`) and movie file (`manim -w file.py`) at a random location in the manimation freezes and then previews the same frame for the rest of the manimation. It seems like the rest of the manimation is still processing like normal (progress bars and info prints still proceed as normal).

## How to reproduce the issue
Run any manimation, though longer ones have an increasingly larger chance of freezing.

## Logs
Terminal output
No details found by `-v DEBUG`.

## System specifications

System Details

- OS: Windows 10
- RAM: 8GB
- Python version: 3.12.9
- Installed modules (provide output from `pip list`):
```
Package Version Editable project location
------------------------- ------------------------ -------------------------
addict 2.4.0
aiodns 3.5.0
aiohappyeyeballs 2.6.1
aiohttp 3.12.14
aiortsp 1.4.0
aiosignal 1.4.0
annotated-types 0.7.0
appdirs 1.4.4
asttokens 3.0.0
attrs 25.1.0
av 16.1.0
beaupy 3.10.1
beautifulsoup4 4.13.3
Brotli 1.1.0
build 1.3.0
cffi 1.17.1
click 8.1.8
cloup 3.0.5
colorama 0.4.6
colour 0.1.5
contourpy 1.3.1
cycler 0.12.1
debugpy 1.8.20
decorator 5.1.1
delvewheel 1.11.2
Deprecated 1.2.18
diskcache 5.6.3
dpkt 1.9.8
easyhid-ng 0.1.0
emoji 2.14.1
executing 2.2.0
filelock 3.18.0
fonttools 4.56.0
frozenlist 1.5.0
fsspec 2025.3.2
glcontext 3.0.0
greenlet 3.2.3
idna 3.10
ifaddr 0.2.0
ipython 8.32.0
isosurfaces 0.1.2
jedi 0.19.2
Jinja2 3.1.6
keyboard 0.13.5
kiwisolver 1.4.8
libusb 1.0.29
llvmlite 0.44.0
manim 0.20.1 C:\Users\colin\manim
manimgl 1.7.2
ManimPango 0.6.1
mapbox_earcut 1.0.3
markdown-it-py 3.0.0
MarkupSafe 3.0.2
matplotlib 3.10.0
matplotlib-inline 0.1.7
mdurl 0.1.2
moderngl 5.12.0
moderngl-window 3.1.1
mpmath 1.3.0
msgpack 1.1.1
multidict 6.1.0
mypy 1.18.2
mypy_extensions 1.1.0
narwhals 1.41.0
networkx 3.4.2
numba 0.61.2
numpy 2.2.4
opencv-python 4.12.0.88
packaging 25.0
pandas 2.2.3
parso 0.8.4
pathspec 0.12.1
patsy 1.0.2
pefile 2024.8.26
pillow 11.1.0
pip 25.2
pkg_about 2.0.1
pl-neon-recording 0.1.12
plotly 6.1.2
prettytable 3.17.0
prompt_toolkit 3.0.50
propcache 0.2.1
protobuf 5.29.3
pupil-labs-neon-recording 2.1.2
pupil-labs-realtime-api 1.8.0
pupil-labs-video 1.0.6
pure_eval 0.2.3
pycairo 1.27.0
pycares 4.9.0
pycparser 2.22
pydantic 2.10.6
pydantic_core 2.27.2
pydub 0.25.1
pygame 2.6.1
pyglet 2.1.2
pyglm 2.8.0
Pygments 2.19.1
pynvim 0.5.2
PyOpenGL 3.1.9
pyparsing 3.2.1
pyperclip 1.11.0
pyproject_hooks 1.2.0
PyQt5 5.15.11
PyQt5-Qt5 5.15.2
PyQt5_sip 12.17.0
pyqtgraph 0.13.7
pyserial 3.5
python-dateutil 2.9.0.post0
python-yakh 0.4.1
pytz 2025.1
PyYAML 6.0.3
questo 0.4.1
rich 13.9.4
scipy 1.15.1
screeninfo 0.8.1
setuptools 80.9.0
six 1.17.0
skia-pathops 0.9.1
sounddevice 0.5.5
soupsieve 2.6
srt 3.5.3
stack-data 0.6.3
statsmodels 0.14.5
structlog 25.1.0
svgelements 1.9.6
sympy 1.13.3
torch 2.9.0.dev20250716+cu129
torchaudio 2.8.0.dev20250717+cu129
torchvision 0.24.0.dev20250717+cu129
tqdm 4.67.1
traitlets 5.14.3
typing_extensions 4.12.2
tzdata 2025.1
universal_pathlib 0.2.6
validators 0.35.0
watchdog 6.0.0
wcwidth 0.2.13
websockets 15.0.1
wrapt 1.17.2
yarl 1.18.3
zeroconf 0.147.0
```

## Additional comments
I am running on experimental, on a personal branch of mine that has a couple differences than experimental branch. My machine has had issues with doing shading with vec3 instead of vec4, so maybe my machine has another special issue. Perhaps a comfirmation that experimental runs fine from someone would be a good first step. I'll include one of the files I've had trouble running for comparison.

Since the issue is in both previewing and file writing, what would cause the output to be stuck?

I also wonder if my code for getting preview window interaction is breaking it somehow.

[12-8.py](https://github.com/user-attachments/files/29649893/12-8.py)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the freeze with the attached 12-8.py file using both `manim -p file.py` and `manim -w file.py` on the experimental branch. Compare the preview and written movie behavior, then use the rendering and preview paths to isolate whether the issue is in animation processing or output. Done means the freeze is reproduced reliably and its cause is confirmed or the behavior is fixed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.