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

Error with ReferenceCounter #1330

Closed
shargon opened this issue Dec 5, 2019 · 3 comments
Closed

Error with ReferenceCounter #1330

shargon opened this issue Dec 5, 2019 · 3 comments

Comments

@shargon
Copy link
Member

shargon commented Dec 5, 2019

Describe the bug

While updating the dev-pack I found that some SmartContracts doesn't work as expected.

image

The failure resides here https://github.com/neo-project/neo-vm/blob/f29d46460df8507899ff955363c6f3b90a807337/src/neo-vm/ReferenceCounter.cs#L68, at the beginning I thought that was because some Arrays was without Reference Counter so I made #1329 but as you can see in the image, all of them have the reference Counter

@erikzhang
Copy link
Member

What is the exception?

@erikzhang
Copy link
Member

Okay. I know the reason. I will fix it.

@shargon
Copy link
Member Author

shargon commented Dec 5, 2019

System.Collections.Generic.KeyNotFoundException: The given key 'Neo.VM.Types.Array' was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Neo.VM.ReferenceCounter.CheckZeroReferred() in C:\Sources\Neo\neo-vm\src\neo-vm\ReferenceCounter.cs:line 70
System.NullReferenceException: Object reference not set to an instance of an object.
   at Neo.VM.ReferenceCounter.CheckZeroReferred() in C:\Sources\Neo\neo-vm\src\neo-vm\ReferenceCounter.cs:line 74
   at Neo.VM.ExecutionEngine.PostExecuteInstruction(Instruction instruction) in C:\Sources\Neo\neo-vm\src\neo-vm\ExecutionEngine.cs:line 1034
   at Neo.VM.ExecutionEngine.ExecuteNext() in C:\Sources\Neo\neo-vm\src\neo-vm\ExecutionEngine.cs:line 116

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

Successfully merging a pull request may close this issue.

2 participants