Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ToString of model with Parameters causes a stackoverflow #28

Open
houstonhaynes opened this issue Feb 14, 2025 · 0 comments
Open

ToString of model with Parameters causes a stackoverflow #28

houstonhaynes opened this issue Feb 14, 2025 · 0 comments

Comments

@houstonhaynes
Copy link
Collaborator

ToString of model with Parameters causes a stackoverflow

Issue #435 | Created by @sir-deenicus | 2022-07-05 13:00:53 UTC |

A basic model with parameters causes a stack overflow when printed to interactive.

I think this is related to fact that in ToString() there is:

for mm in m.descendants do

but descendants in turn has m :: [for child in m.children do yield! child.descendants], adding itself to descendants. Unsure why this seems to only occur for parameters, not buffers or models.

A simple m <> mm resolves the crash but I'm not sure if that's the correct action to take.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant