com.badlogic.gdx.utils.SerializationException

Error parsing file: maps/1.tmx

Solutions on the web154

  • Error parsing file: maps/1.tmx
  • Error parsing file: map_1.tmx
  • via Stack Overflow by Mac
    , 1 year ago
    Error parsing file: res/level1.tmx
  • Stack trace

    • com.badlogic.gdx.utils.SerializationException: Error parsing file: maps/1.tmx at com.badlogic.gdx.utils.XmlReader.parse(XmlReader.java:83) at com.badlogic.gdx.maps.tiled.TmxMapLoader.load(TmxMapLoader.java:78) at com.pbo.game.client.map.DefaultMapManager.setupNewMap(DefaultMapManager.java:158) at com.pbo.game.client.ui.screens.MainGameScreen.handleNetworkQueue(MainGameScreen.java:226) at com.pbo.game.client.ui.screens.MainGameScreen.render(MainGameScreen.java:156) at com.badlogic.gdx.Game.render(Game.java:46) at com.pbo.game.client.GameClient.render(GameClient.java:73) at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:223) at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:124) Caused by: java.lang.IllegalArgumentException: initialCapacity is too large: 16 at com.badlogic.gdx.utils.ObjectMap.<init>(ObjectMap.java:68) at com.badlogic.gdx.utils.ObjectMap.<init>(ObjectMap.java:59) at com.badlogic.gdx.utils.XmlReader$Element.setAttribute(XmlReader.java:487) at com.badlogic.gdx.utils.XmlReader.attribute(XmlReader.java:428) at com.badlogic.gdx.utils.XmlReader.parse(XmlReader.java:260) at com.badlogic.gdx.utils.XmlReader.parse(XmlReader.java:61) at com.badlogic.gdx.utils.XmlReader.parse(XmlReader.java:81) ... 8 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.