Error: Data layout mismatch; skipping past array boundary when exiting node

Issue #217 duplicate
Former user created an issue

Error is generated when loading (via SerializationUtility.DeserializeValue<T>(bytes, format)) a serialized basic class (via SerializationUtility.SerializeValue) that contains dictionaries. Replacing dictionaries with lists using the values from the dictionaries eliminates errors. I tried both enum and strings keys with the dictionarues with the same results.

Data outside of these dictionaries is loaded.

JSON and binary data behave the same, though the error is logged only when using binary serialization. This made tracking this down... harder.

Unity - 2017.1.1f1 Odin -

Comments (3)

  1. Tor Esa Vestergaard
    • changed status to open

    Could you provide an example of a set of json data (or binary as a hex-formatted string, using Odin's ProperBitConverter.BytesToHexString method) and the classes it deserializes into, that reproduces this problem?

  2. Tor Esa Vestergaard

    This is with extremely high likelihood the same issue as issue #223, which should be marked resolved very soon.

  3. Log in to comment