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 #435

Open
sir-deenicus opened this issue Jul 5, 2022 · 0 comments
Open

ToString of model with Parameters causes a stackoverflow #435

sir-deenicus opened this issue Jul 5, 2022 · 0 comments

Comments

@sir-deenicus
Copy link
Contributor

sir-deenicus commented Jul 5, 2022

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