Bug in Unity: Deserializing an object that doesn't have MessagePackObject metadata dies silently · Issue #105 · MessagePack-CSharp/MessagePack-CSharp · GitHub
Skip to content

Bug in Unity: Deserializing an object that doesn't have MessagePackObject metadata dies silently #105

Description

@nikhilsinha

In a normal C# console program, I would get the following error if I attempt to deserialize an object that isn't marked as a MessagePackObject.

MessagePack.FormatterNotRegisteredException occurred
HResult=0x80131500
Message=Messaging.CreateGameMsg is not registered in this resolver. resolver:StandardResolver
Source=MessagePack
StackTrace:
at MessagePack.FormatterResolverExtensions.GetFormatterWithVerify[T](IFormatterResolver resolver)
at MessagePack.MessagePackSerializer.Deserialize[T](Byte[] bytes, IFormatterResolver resolver)
at MessagePack.MessagePackSerializer.Deserialize[T](Byte[] bytes)

However, if this happens within Unity, it dies silently.

Metadata

Metadata

Assignees

No one assigned

    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