Skip to content

inklecate stack overflow - Knot and variable with same name #977

@premek

Description

@premek

inklecate -p crashes on the following script

~temp scene = 0

->Start(scene)

===Start(ref scene)
~scene++
SCENE {scene}
-> END
Stack overflow.
   at System.String.GetNonRandomizedHashCode()
   at System.Collections.Generic.NonRandomizedStringEqualityComparer+OrdinalComparer.GetHashCode(System.String)
   at System.Collections.Generic.Dictionary`2[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].FindValue(System.__Canon)
   at System.Collections.Generic.Dictionary`2[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].TryGetValue(System.__Canon, System.__Canon ByRef)
   at Ink.Runtime.CallStack.GetTemporaryVariableWithName(System.String, Int32)
   at Ink.Runtime.VariablesState.GetRawVariableWithName(System.String, Int32)
   at Ink.Runtime.VariablesState.GetVariableWithName(System.String, Int32)
   at Ink.Runtime.VariablesState.ValueAtVariablePointer(Ink.Runtime.VariablePointerValue)
   at Ink.Runtime.VariablesState.GetVariableWithName(System.String, Int32)
   at Ink.Runtime.VariablesState.ValueAtVariablePointer(Ink.Runtime.VariablePointerValue)


https://chromy.github.io/ink-proof/#!/result/6459?showEverything=true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions