Skip to content

System.ArgumentOutOfRangeException with nested list of objects #63

@JMRodriguez24

Description

@JMRodriguez24

Here is a gist with a failing test:

https://gist.github.com/JMRodriguez24/32c3892c6223c90f255f#file-msgpack_cli_exception

Here is the exception:

System.ArgumentOutOfRangeException : 'count' is negative. Parameter name: count at MsgPack.Packer.PackArrayHeaderCore(Int32 count) in Packer.cs: line 992 at MsgPack.Packer.PackArrayHeader(Int32 count) in Packer.cs: line 973 at MsgPack.Serialization.EmittingSerializers.Generated.Samples_PTaxHistSerializer2.PackToCore(Packer, PTaxHist) at MsgPack.Serialization.MessagePackSerializer1.PackTo(Packer packer, T objectTree) in MessagePackSerializer1.cs: line 225 at MsgPack.Serialization.EmittingSerializers.Generated.System_Collections_Generic_IList_1_Samples_PTaxHist_Serializer1.PackToCore(Packer, IList1)
at MsgPack.Serialization.MessagePackSerializer1.PackTo(Packer packer, T objectTree) in MessagePackSerializer1.cs: line 225
at MsgPack.Serialization.EmittingSerializers.Generated.Samples_PayRegSerializer0.PackToCore(Packer, PayReg)
at MsgPack.Serialization.MessagePackSerializer1.PackTo(Packer packer, T objectTree) in MessagePackSerializer1.cs: line 225
at MsgPack.Serialization.MessagePackSerializer1.Pack(Stream stream, T objectTree) in MessagePackSerializer1.cs: line 173
at Samples.BasicUsageSample.SerializeThenDeserialize() in Sample01_BasicUsage.cs: line 32`

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDetected as bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions