java.io.IOException: Failed to save

freecol | calebrw | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    FreeCol unable to create autosave file.

    freecol | 7 months ago | calebrw
    java.io.IOException: Failed to save

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Comparison method violates its general contract!

      at java.util.TimSort.mergeHi()
    2. Java RT
      ReferencePipeline.collect
      1. java.util.TimSort.mergeHi(Unknown Source)
      2. java.util.TimSort.mergeAt(Unknown Source)
      3. java.util.TimSort.mergeForceCollapse(Unknown Source)
      4. java.util.TimSort.sort(Unknown Source)
      5. java.util.Arrays.sort(Unknown Source)
      6. java.util.stream.SortedOps$SizedRefSortingSink.end(Unknown Source)
      7. java.util.stream.AbstractPipeline.copyInto(Unknown Source)
      8. java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
      9. java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
      10. java.util.stream.AbstractPipeline.evaluate(Unknown Source)
      11. java.util.stream.ReferencePipeline.collect(Unknown Source)
      11 frames
    3. net.sf.freecol
      ReceivingThread$1.run
      1. net.sf.freecol.common.util.CollectionUtils.sort_internal(CollectionUtils.java:1986)
      2. net.sf.freecol.common.util.CollectionUtils.sort(CollectionUtils.java:1933)
      3. net.sf.freecol.server.ai.AIMain.writeChildren(AIMain.java:491)
      4. net.sf.freecol.common.model.FreeColObject.toXML(FreeColObject.java:1015)
      5. net.sf.freecol.common.model.FreeColObject.toXML(FreeColObject.java:991)
      6. net.sf.freecol.server.FreeColServer.saveGame(FreeColServer.java:863)
      7. net.sf.freecol.server.FreeColServer.saveGame(FreeColServer.java:767)
      8. net.sf.freecol.client.control.InGameController.saveGame(InGameController.java:589)
      9. net.sf.freecol.client.control.InGameController.autoSaveGame(InGameController.java:573)
      10. net.sf.freecol.client.control.InGameController.setCurrentPlayer(InGameController.java:4691)
      11. net.sf.freecol.client.control.InGameInputHandler.setCurrentPlayer(InGameInputHandler.java:1039)
      12. net.sf.freecol.client.control.InGameInputHandler.lambda$new$34(InGameInputHandler.java:190)
      13. net.sf.freecol.client.control.ClientInputHandler.handle(ClientInputHandler.java:129)
      14. net.sf.freecol.client.control.InGameInputHandler.handle(InGameInputHandler.java:289)
      15. net.sf.freecol.common.networking.DOMMessage.handleList(DOMMessage.java:401)
      16. net.sf.freecol.common.networking.MultipleMessage.applyHandler(MultipleMessage.java:107)
      17. net.sf.freecol.client.control.InGameInputHandler.multiple(InGameInputHandler.java:875)
      18. net.sf.freecol.client.control.InGameInputHandler.lambda$new$23(InGameInputHandler.java:168)
      19. net.sf.freecol.client.control.ClientInputHandler.handle(ClientInputHandler.java:129)
      20. net.sf.freecol.client.control.InGameInputHandler.handle(InGameInputHandler.java:289)
      21. net.sf.freecol.common.networking.Connection.handle(Connection.java:541)
      22. net.sf.freecol.common.networking.Connection.handleQuery(Connection.java:512)
      23. net.sf.freecol.common.networking.ReceivingThread$1.run(ReceivingThread.java:331)
      23 frames