-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Description
Description of bug / unexpected behavior
If I try to access the color of a highlighted Table
cell (created using table.get_highlighted_cell()
), I get a stack overflow error (code=3221225725). Looking at the trace, the code bounces between get_color()
and get_fill_color()
.
Expected behavior
I expect the code (below) to print "#83C167
" (GREEN
)
How to reproduce the issue
Code for reproducing the problem
from manim import *
import sys
sys.setrecursionlimit(200) # So that we can see the trace
class Test(Scene):
def construct(self):
table = Table(
[["This", "is a"],["simple", "table"]]
)
rect = table.get_highlighted_cell((1,1), color=GREEN)
print(rect.color)
# Alternatively:
# print(rect.get_color())
# print(rect.get_fill_color())
Logs
Terminal output
| C:\Users\maxdu\AppData\Local\Programs\Python\Python310\lib\site-packages\ma |
| nim\mobject\types\vectorized_mobject.py:619 in get_color |
| |
| 616 def get_color(self) -> ManimColor: |
| 617 if np.all(self.get_fill_opacities() == 0): |
| 618 return self.get_stroke_color() |
| > 619 return self.get_fill_color() |
| 620 |
| 621 color = property(get_color, set_color) |
| 622 |
| |
| C:\Users\maxdu\AppData\Local\Programs\Python\Python310\lib\site-packages\ma |
| nim\mobject\geometry\shape_matchers.py:150 in get_fill_color |
| |
| 147 def get_fill_color(self) -> ManimColor: |
| 148 # The type of the color property is set to Any using the prop |
| 149 # vectorized_mobject.py#L571 |
| > 150 temp_color: ManimColor = self.color |
| 151 return temp_color |
| 152 |
| 153 |
| |
| C:\Users\maxdu\AppData\Local\Programs\Python\Python310\lib\site-packages\ma |
| nim\mobject\types\vectorized_mobject.py:619 in get_color |
| |
| 616 def get_color(self) -> ManimColor: |
| 617 if np.all(self.get_fill_opacities() == 0): |
| 618 return self.get_stroke_color() |
| > 619 return self.get_fill_color() |
| 620 |
| 621 color = property(get_color, set_color) |
| 622 |
| |
| C:\Users\maxdu\AppData\Local\Programs\Python\Python310\lib\site-packages\ma |
| nim\mobject\geometry\shape_matchers.py:150 in get_fill_color |
| |
| 147 def get_fill_color(self) -> ManimColor: |
| 148 # The type of the color property is set to Any using the prop |
| 149 # vectorized_mobject.py#L571 |
| > 150 temp_color: ManimColor = self.color |
| 151 return temp_color |
| 152 |
| 153 |
| |
System specifications
System Details
- OS: Windows 10.0.19045 Build 19045
- RAM: 16 GB
- Python version: 3.10.11
- Installed modules (provide output from
pip list
):
Package Version
------------------------- -----------
asttokens 3.0.0
attrs 25.3.0
av 13.1.0
beautifulsoup4 4.13.4
blinker 1.9.0
certifi 2025.8.3
charset-normalizer 3.4.3
click 8.2.1
click-default-group 1.2.4
cloup 3.0.8
colorama 0.4.6
colour 0.1.5
decorator 5.2.1
exceptiongroup 1.3.0
executing 2.2.0
Flask 2.3.3
glcontext 3.0.0
idna 3.10
ipython 8.37.0
isosurfaces 0.1.2
itsdangerous 2.2.0
jedi 0.19.2
Jinja2 3.1.6
jsonschema 4.25.0
jsonschema-specifications 2025.4.1
manim 0.19.0
manim-editor 0.3.8
ManimPango 0.6.0
mapbox_earcut 1.0.3
markdown-it-py 4.0.0
MarkupSafe 3.0.2
matplotlib-inline 0.1.7
mdurl 0.1.2
moderngl 5.12.0
moderngl-window 3.1.1
multipledispatch 1.0.0
networkx 3.4.2
numpy 2.2.6
parso 0.8.4
pillow 11.3.0
pip 25.2
prompt_toolkit 3.0.51
pure_eval 0.2.3
pycairo 1.28.0
pydub 0.25.1
pyglet 2.1.6
pyglm 2.8.2
Pygments 2.19.2
pylatexenc 2.10
pyrr 0.10.3
referencing 0.36.2
regex 2024.11.6
requests 2.32.4
rich 14.1.0
rpds-py 0.27.0
scipy 1.15.3
screeninfo 0.8.1
setuptools 65.5.0
skia-pathops 0.8.0.post2
soupsieve 2.7
srt 3.5.3
stack-data 0.6.3
svgelements 1.9.6
tqdm 4.67.1
traitlets 5.14.3
typing_extensions 4.14.1
urllib3 2.5.0
waitress 2.1.2
watchdog 6.0.0
wcwidth 0.2.13
Werkzeug 3.1.3
LaTeX details
- LaTeX distribution: TeX Live version 2022
- Installed LaTeX packages:
i amscls: AMS document classes for LaTeX
i amsfonts: TeX fonts from the American Mathematical Society
i amsmath: AMS mathematical facilities for LaTeX
i atbegshi: Execute stuff at \shipout time
i atveryend: Hooks at the very end of a document
i auxhook: Hooks for auxiliary files
i babel: Multilingual support for LaTeX, LuaLaTeX, XeLaTeX, and Plain TeX
i bibtex: Process bibliographies (bib files) for LaTeX or other formats
i bibtex.win32: win32 files of bibtex
i bigintcalc: Integer calculations on very large numbers
i bitset: Handle bit-vector datatype
i booktabs: Publication quality tables in LaTeX
i cm: Computer Modern fonts
i ctablestack: Catcode table stable support
i dehyph: German hyphenation patterns for traditional orthography
i dvipdfmx: An extended version of dvipdfm
i dvipdfmx.win32: win32 files of dvipdfmx
i dvips: A DVI to PostScript driver
i dvips.win32: win32 files of dvips
i ec: Computer modern fonts in T1 and TS1 encodings
i epstopdf-pkg: Call epstopdf "on the fly"
i etex: An extended version of TeX, from the NTS project
i etexcmds: Avoid name clashes with e-TeX commands
i etoolbox: e-TeX tools for LaTeX
i euenc: Unicode font encoding definitions for XeTeX
i everyshi: Take action at every \shipout
i fancyvrb: Sophisticated verbatim text
i filehook: Hooks for input files
i firstaid: First aid for external LaTeX files and packages that need updating
i float: Improved interface for floating objects
i fontspec: Advanced font selection in XeLaTeX and LuaLaTeX
i framed: Framed or shaded regions that can break across pages
i geometry: Flexible and complete interface to document dimensions
i gettitlestring: Clean up title references
i glyphlist: Adobe Glyph List and TeX extensions
i graphics: The LaTeX standard graphics bundle
i graphics-cfg: Sample configuration files for LaTeX color and graphics
i graphics-def: Colour and graphics option files
i grffile: Extended file name support for graphics (legacy package)
i helvetic: URW 'Base 35' font pack for LaTeX
i hycolor: Implements colour for packages hyperref and bookmark
i hyperref: Extensive support for hypertext in LaTeX
i hyph-utf8: Hyphenation patterns expressed in UTF-8
i hyphen-base: core hyphenation support files
i iftex: Am I running under pdfTeX, XeTeX or LuaTeX?
i inconsolata: A monospaced font, with support files for use with TeX
i infwarerr: Complete set of information/warning/error message macros
i intcalc: Expandable arithmetic operations with integers
i knuth-lib: Core TeX and Metafont sources from Knuth
i kpathsea: Path searching library for TeX-related files
i kpathsea.win32: win32 files of kpathsea
i kvdefinekeys: Define keys for use in the kvsetkeys package
i kvoptions: Key value format for package options
i kvsetkeys: Key value parser with default handler support
i l3backend: LaTeX3 backend drivers
i l3kernel: LaTeX3 programming conventions
i l3packages: High-level LaTeX3 concepts
i latex: A TeX macro package that defines LaTeX
i latex-amsmath-dev: Development pre-release of the LaTeX amsmath bundle
i latex-bin: LaTeX executables and man pages
i latex-bin.win32: win32 files of latex-bin
i latex-fonts: A collection of fonts used in LaTeX distributions
i latex-tools-dev: Development pre-release of the LaTeX tools bundle
i latexconfig: configuration files for LaTeX-related formats
i latexmk: Fully automated LaTeX document generation
i latexmk.win32: win32 files of latexmk
i letltxmacro: Let assignment for LaTeX macros
i lm: Latin modern fonts in outline formats
i lm-math: OpenType maths fonts for Latin Modern
i ltxcmds: Some LaTeX kernel commands for general use
i lua-alt-getopt: Process application arguments the same way as getopt_long
i lua-uni-algos: Unicode algorithms for LuaTeX
i luahbtex: LuaTeX with HarfBuzz library for glyph shaping
i luahbtex.win32: win32 files of luahbtex
i lualatex-math: Fixes for mathematics-related LuaLaTeX issues
i lualibs: Additional Lua functions for LuaTeX macro programmers
i luaotfload: OpenType 'loader' for Plain TeX and LaTeX
i luaotfload.win32: win32 files of luaotfload
i luatex: The LuaTeX engine
i luatex.win32: win32 files of luatex
i luatexbase: Basic resource management for LuaTeX code
i mdwtools: Miscellaneous tools by Mark Wooding
i metafont: A system for specifying fonts
i metafont.win32: win32 files of metafont
i mfware: Supporting tools for use with Metafont
i mfware.win32: win32 files of mfware
i modes: A collection of Metafont mode_def's
i natbib: Flexible bibliography support
i pdfescape: Implements pdfTeX's escape features using TeX or e-TeX
i pdftex: A TeX extension for direct creation of PDF
i pdftex.win32: win32 files of pdftex
i pdftexcmds: LuaTeX support for pdfTeX utility functions
i plain: The Plain TeX format
i psnfss: Font support for common PostScript fonts
i refcount: Counter operations with label references
i rerunfilecheck: Checksum based rerun checks on auxiliary files
i scheme-infraonly: infrastructure-only scheme (no TeX at all)
i selnolig: Selectively disable typographic ligatures
i stringenc: Converting a string between different encodings
i symbol: URW 'Base 35' font pack for LaTeX
i tex: A sophisticated typesetting engine
i tex-ini-files: Model TeX format creation files
i tex.win32: win32 files of tex
i texlive-scripts.win32: win32 files of texlive-scripts
i texlive.infra: basic TeX Live infrastructure
i texlive.infra.win32: win32 files of texlive.infra
i times: URW 'Base 35' font pack for LaTeX
i tipa: Fonts and macros for IPA phonetics characters
i tlgpg: gpg for TeX Live
i tlgpg.win32: win32 files of tlgpg
i tlgs.win32: Freely available PostScript interpreter
i tlperl.win32: internal Perl for Windows
i tools: The LaTeX standard tools bundle
i unicode-data: Unicode data and loaders for TeX
i unicode-math: Unicode mathematics support for XeTeX and LuaTeX
i uniquecounter: Provides unlimited unique counter
i url: Verbatim with URL-sensitive line breaks
i xcolor: Driver-independent color extensions for LaTeX and pdfLaTeX
i xetex: An extended variant of TeX for use with Unicode sources
i xetex.win32: win32 files of xetex
i xetexconfig: crop.cfg for XeLaTeX
i xkeyval: Extension of the keyval package
i xunicode: Generate Unicode characters from accented glyphs
i zapfding: URW 'Base 35' font pack for LaTeX
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
🆕 New