Skip to content

OpenGL throws error when trying to render CircumscribeΒ #4410

@Papagemabodi

Description

@Papagemabodi

Description of bug / unexpected behavior

When using --renderer=opengl and trying to apply Circumscribe() to Tex/MathTex formula it throws TypeError: Expected all inputs for parameter mobjects to be a Mobjects

Expected behavior

Succesful rendering result

How to reproduce the issue

Use the python -m manim other.py UsingCircumscribe -p -ql --renderer=opengl --disable_caching -v DEBUG --write_to_movie to render scene, it fails with TypeError: Expected all inputs for parameter mobjects to be a Mobjects

Code for reproducing the problem
from manim import *

class UsingCircumscribe(Scene):
    def construct(self):
        lbl = Tex(r"$\vec{F}(x,y)=\big(\sin(y)+0.7\sin(\tfrac{x}{2}),\,\sin(x)-0.5\cos(-\tfrac{y}{2})\big)$").scale(2)
        self.add(lbl)
        self.play(Circumscribe(lbl))
        self.play(Circumscribe(lbl, Circle))
        self.play(Circumscribe(lbl, fade_out=True))
        self.play(Circumscribe(lbl, time_width=2))
        self.play(Circumscribe(lbl, Circle, True))

Additional media files

Images/GIFs

Logs

Terminal output
https://pastebin.com/b1yQMeYY

System specifications

System Details
  • OS: WIndows 11
  • RAM: 64 GB
  • Python version (python/py/python3 --version):Python 3.13.7
  • Installed modules (provide output from pip list):
Package           Version
----------------- -----------
audioop-lts       0.2.2
av                13.1.0
beautifulsoup4    4.13.5
click             8.2.1
cloup             3.0.8
colorama          0.4.6
decorator         5.2.1
glcontext         3.0.0
isosurfaces       0.1.2
llvmlite          0.44.0
manim             0.19.0
manimpango        0.6.0
mapbox-earcut     1.0.3
markdown-it-py    4.0.0
mdurl             0.1.2
moderngl          5.12.0
moderngl-window   3.1.1
networkx          3.5
numba             0.61.2
numpy             2.2.6
pillow            11.3.0
pycairo           1.28.0
pydub             0.25.1
pyglet            2.1.8
pyglm             2.8.2
pygments          2.19.2
rich              14.1.0
scipy             1.16.1
screeninfo        0.8.1
skia-pathops      0.8.0.post2
soupsieve         2.7
srt               3.5.3
svgelements       1.9.6
tqdm              4.67.1
typing-extensions 4.15.0
watchdog          6.0.0
LaTeX details
  • LaTeX distribution: MiKTeX
  • Installed LaTeX packages:

https://pastebin.com/4rbEQW9b

Additional comments

Issue is clearly with opengl because without it everything is okay

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    πŸ†• New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions