You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 hasm :: [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.The text was updated successfully, but these errors were encountered: