You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a user complain wiht the following stack trace:
Unhandled Exception: System.InvalidOperationException: There is an error in XML document (101, 4). ---> System.InvalidOperationException: There is an error in XML document (101, 4). ---> System.OverflowException: Value was either too large or too small for an Int32.
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Linq.Enumerable.SelectArrayIterator`2.ToArray()
at TiledLib.TmxMisc.ReadCSV(XmlReader reader, Int32 size)
at TiledLib.Layer.TileLayer.ReadXml(XmlReader reader)
at System.Xml.Serialization.XmlSerializationReader.ReadSerializable(IXmlSerializable serializable, Boolean wrappedAny)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderTileLayer.Read1_layer()
Inspecting their .tmx file, they had values like 3221225687 in it. That's because the user used Tiled's flip horizontal feature, which sets the high bits of the tile gid. It looks like tiled uses an unsigned format, and you expect signed, hence the overflow.
I instructed the user to change the layer format when saving the tmx, which worked around the issue, so this is not critical.
The text was updated successfully, but these errors were encountered:
I had a user complain wiht the following stack trace:
Inspecting their .tmx file, they had values like 3221225687 in it. That's because the user used Tiled's flip horizontal feature, which sets the high bits of the tile gid. It looks like tiled uses an unsigned format, and you expect signed, hence the overflow.
I instructed the user to change the layer format when saving the tmx, which worked around the issue, so this is not critical.
The text was updated successfully, but these errors were encountered: