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

An exception in RpcNep5Tracker plugin #266

Closed
ProDog opened this issue Jun 22, 2020 · 3 comments · Fixed by #267
Closed

An exception in RpcNep5Tracker plugin #266

ProDog opened this issue Jun 22, 2020 · 3 comments · Fixed by #267
Assignees

Comments

@ProDog
Copy link
Contributor

ProDog commented Jun 22, 2020

Describe the bug
An exception in RpcNep5Tracker plugin when transfer gas or neo.

Details:

System.Text.DecoderFallbackException
  HResult=0x80070057
  Message=Unable to translate bytes [FA] at index 0 from specified code page to Unicode.
  Source=System.Private.CoreLib
  StackTrace:
   at System.Text.DecoderExceptionFallbackBuffer.Throw(Byte[] bytesUnknown, Int32 index)
   at System.Text.DecoderExceptionFallbackBuffer.Fallback(Byte[] bytesUnknown, Int32 index)
   at System.Text.Encoding.GetCharCountWithFallback(ReadOnlySpan`1 bytes, Int32 originalBytesLength, DecoderNLS decoder)
   at System.Text.Encoding.GetCharCountWithFallback(Byte* pBytesOriginal, Int32 originalByteCount, Int32 bytesConsumedSoFar)
   at System.Text.UTF8Encoding.GetCharCount(Byte* bytes, Int32 count)
   at System.String.CreateStringFromEncoding(Byte* bytes, Int32 byteLength, Encoding encoding)
   at System.Text.Encoding.GetString(ReadOnlySpan`1 bytes)
   at Neo.VM.Helper.GetString(StackItem item) in D:\neo_code\neo\src\neo\VM\Helper.cs:line 201
   at Neo.Plugins.RpcNep5Tracker.HandleNotification(StoreView snapshot, IVerifiable scriptContainer, UInt160 scriptHash, Array stateItems, Dictionary`2 nep5BalancesChanged, UInt16& transferIndex) in D:\neo_code\neo-modules\src\RpcNep5Tracker\RpcNep5Tracker.cs:line 110
   at Neo.Plugins.RpcNep5Tracker.OnPersist(StoreView snapshot, IReadOnlyList`1 applicationExecutedList) in D:\neo_code\neo-modules\src\RpcNep5Tracker\RpcNep5Tracker.cs:line 165
   at Neo.Ledger.Blockchain.Persist(Block block) in D:\neo_code\neo\src\neo\Ledger\Blockchain.cs:line 449
   at Neo.Ledger.Blockchain.OnNewBlock(Block block) in D:\neo_code\neo\src\neo\Ledger\Blockchain.cs:line 336
   at Neo.Ledger.Blockchain.OnInventory(IInventory inventory, Boolean relay) in D:\neo_code\neo\src\neo\Ledger\Blockchain.cs:line 303
   at Neo.Ledger.Blockchain.OnReceive(Object message) in D:\neo_code\neo\src\neo\Ledger\Blockchain.cs:line 376
   at Akka.Actor.UntypedActor.Receive(Object message)
   at Akka.Actor.ActorBase.AroundReceive(Receive receive, Object message)
   at Akka.Actor.ActorCell.ReceiveMessage(Object message)
   at Akka.Actor.ActorCell.Invoke(Envelope envelope)

To Reproduce

  1. Deploy a neo node and included the RpcNep5Tracker plugin;
  2. Send a gas transfer transaction;
  3. Wait for transaction confirmation and block persist.

Screenshots

image

Platform:

  • OS: Windows 10 x64
  • Version: latest version of master (neo, neo-vm, neo-modules, neo-node)
@shargon
Copy link
Member

shargon commented Jun 22, 2020

Could you add the steps that you followed?

@ProDog
Copy link
Contributor Author

ProDog commented Jun 22, 2020

Could you add the steps that you followed?

Ok, added.

@Tommo-L
Copy link
Contributor

Tommo-L commented Jun 22, 2020

@ProDog related to #265
@joeqian10 don't forget to have a check.

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.

4 participants