-
Notifications
You must be signed in to change notification settings - Fork 174
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
IndexOutBoundException when packing scalar value with ByteArrayPacker #252
Comments
I'm getting a similar error, but with a different StackTrack: Index was outside the bounds of the array. |
Rolling back to Nuget 0.8.1 resolved the problem for me, so it looks like a bug with the latest release. |
Thank you for reporting! I will investigate it soon. |
@rafael-aero @BuairtRi |
I'm trying to serialize a large .NET List of a simple POCO object: `[DataContract]
|
@BuairtRi Thank you! |
I found a workaround. You should avoid this issue use |
…emaining bytes is equal to packed scalar size. #252
…emaining bytes is equal to packed scalar size. #252
I confirmed branch CI log shows "build succeeded" but never ends...
I've fixed this issue and released 0.9.1 now. Please try it. |
Thanks! I'll reinstall the update soon and deploy to see if it's all working. |
I'm getting the following exception when trying to serialize an object containing a Dictionary<int,int>, using PackSingleObjectAsync(object):
Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
at MsgPack.MessagePackByteArrayPacker.WriteBytes(Byte header, UInt32 value)
at MsgPack.MessagePackByteArrayPacker.d__47.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MsgPack.Serialization.DefaultSerializers.System_Int32MessagePackSerializer.d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MsgPack.Serialization.MessagePackSerializer
1.<PackToAsync>d__18.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MsgPack.PackerUnpackerExtensions.<PackDictionaryAsyncCore>d__39
2.MoveNext()--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MsgPack.Serialization.MessagePackSerializer
1.<PackToAsync>d__18.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MsgPack.Serialization.PackHelpers.<PackToArrayAsyncCore>d__4
1.MoveNext()--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MsgPack.Serialization.MessagePackSerializer
1.<PackToAsync>d__18.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MsgPack.Serialization.MessagePackSerializer
1.d__35.MoveNext()--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MsgPack.Serialization.MessagePackSerializer`1.d__34.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
The text was updated successfully, but these errors were encountered: