Game keeps crashing
- 
					
					
					
					
 Re: Twelve Clans - Official Thread My game continually crashes after a few turns, usually around turn 4 but sometimes at turn 6. Here is the error I get every time: Comparison method violates its general contract! 
 java.lang.IllegalArgumentException: Comparison method violates its general contract!Why does this always happen, any way to fix? 
- 
					
					
					
					
 Moved to Player Help. https://forums.triplea-game.org/topic/1708/how-to-submit-a-bug-report 
- 
					
					
					
					
 Hi @shazbot182 
 What triplea are you using ? The latest stable is "2.5.22294"Can you post a saved game right before the error happens ? Or even better after it happens if it will let you. If not, just proceed to your normal rd 4 moves and save before it usually happens. 
- 
					
					
					
					
 @beelee autosaveBeforeEndTurn.tsvg sure here it is, it is saved during the AI turn and will crash every time the next phase is loaded. And yeah I am using the latest version. 
- 
					
					
					
					
 @shazbot182 right on this is what I got when I hit debug Mar 02, 2021 9:09:02 PM org.triplea.game.client.HeadedGameRunner lambda$initializeClientSettingAndLogging$0 
 SEVERE: Comparison method violates its general contract!
 java.lang.IllegalArgumentException: Comparison method violates its general contract!
 at java.base/java.util.TimSort.mergeHi(TimSort.java:903)
 at java.base/java.util.TimSort.mergeAt(TimSort.java:520)
 at java.base/java.util.TimSort.mergeCollapse(TimSort.java:448)
 at java.base/java.util.TimSort.sort(TimSort.java:245)
 at java.base/java.util.Arrays.sort(Arrays.java:1515)
 at java.base/java.util.ArrayList.sort(ArrayList.java:1750)
 at games.strategy.triplea.ai.pro.util.ProSortMoveOptionsUtils.sortUnitNeededOptionsThenAttack(ProSortMoveOptionsUtils.java:117)
 at games.strategy.triplea.ai.pro.ProCombatMoveAi.tryToAttackTerritories(ProCombatMoveAi.java:1341)
 at games.strategy.triplea.ai.pro.ProCombatMoveAi.determineTerritoriesToAttack(ProCombatMoveAi.java:335)
 at games.strategy.triplea.ai.pro.ProCombatMoveAi.doCombatMove(ProCombatMoveAi.java:95)
 at games.strategy.triplea.ai.pro.AbstractProAi.move(AbstractProAi.java:139)
 at games.strategy.triplea.ai.AbstractAi.start(AbstractAi.java:514)
 at games.strategy.engine.framework.ServerGame.waitForPlayerToFinishStep(ServerGame.java:537)
 at games.strategy.engine.framework.ServerGame.runStep(ServerGame.java:407)
 at games.strategy.engine.framework.ServerGame.startGame(ServerGame.java:297)
 at games.strategy.engine.framework.startup.launcher.LocalLauncher.launchInternal(LocalLauncher.java:82)
 at games.strategy.engine.framework.startup.launcher.LocalLauncher.lambda$launch$0(LocalLauncher.java:56)
 at java.base/java.lang.Thread.run(Thread.java:834)I'll post it at the git issue you made as well. Unfortunately Idk what it is but one of the smart people will : ) 
- 
					
					
					
					
 @shazbot182 are you on windows 10 ? 
- 
					
					
					
					
 @beelee yes windows 10, thanks for the help!