{"action":"created","issue":{"url":"https://api.github.com/repos/triplea-game/triplea/issues/320","repository_url":"https://api.github.com/repos/triplea-game/triplea","labels_url":"https://api.github.com/repos/triplea-game/triplea/issues/320/labels{/name}","comments_url":"https://api.github.com/repos/triplea-game/triplea/issues/320/comments","events_url":"https://api.github.com/repos/triplea-game/triplea/issues/320/events","html_url":"https://github.com/triplea-game/triplea/issues/320","id":124907270,"number":320,"title":"Map Rendering Error -  Comparison method violates its general contract!","user":{"login":"DanVanAtta","id":12397753,"avatar_url":"https://avatars.githubusercontent.com/u/12397753?v=3","gravatar_id":"","url":"https://api.github.com/users/DanVanAtta","html_url":"https://github.com/DanVanAtta","followers_url":"https://api.github.com/users/DanVanAtta/followers","following_url":"https://api.github.com/users/DanVanAtta/following{/other_user}","gists_url":"https://api.github.com/users/DanVanAtta/gists{/gist_id}","starred_url":"https://api.github.com/users/DanVanAtta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanVanAtta/subscriptions","organizations_url":"https://api.github.com/users/DanVanAtta/orgs","repos_url":"https://api.github.com/users/DanVanAtta/repos","events_url":"https://api.github.com/users/DanVanAtta/events{/privacy}","received_events_url":"https://api.github.com/users/DanVanAtta/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/triplea-game/triplea/labels/Close%20Pending%20Confirmation","name":"Close Pending Confirmation","color":"bfe5bf"},{"url":"https://api.github.com/repos/triplea-game/triplea/labels/High%20Priority","name":"High Priority","color":"fef2c0"},{"url":"https://api.github.com/repos/triplea-game/triplea/labels/Release%20Blocker","name":"Release Blocker","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"ron-murhammer","id":1427689,"avatar_url":"https://avatars.githubusercontent.com/u/1427689?v=3","gravatar_id":"","url":"https://api.github.com/users/ron-murhammer","html_url":"https://github.com/ron-murhammer","followers_url":"https://api.github.com/users/ron-murhammer/followers","following_url":"https://api.github.com/users/ron-murhammer/following{/other_user}","gists_url":"https://api.github.com/users/ron-murhammer/gists{/gist_id}","starred_url":"https://api.github.com/users/ron-murhammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ron-murhammer/subscriptions","organizations_url":"https://api.github.com/users/ron-murhammer/orgs","repos_url":"https://api.github.com/users/ron-murhammer/repos","events_url":"https://api.github.com/users/ron-murhammer/events{/privacy}","received_events_url":"https://api.github.com/users/ron-murhammer/received_events","type":"User","site_admin":false},"milestone":null,"comments":27,"created_at":"2016-01-05T06:36:49Z","updated_at":"2016-05-03T04:20:42Z","closed_at":"2016-05-03T03:47:03Z","body":"Hit this stack trace while playing the latest version of master+undo_key branch.   Impacts map drawing when moving units, forces a reload of the game when in this state.. \r\n\r\n```\r\nException: Comparison method violates its general contract!\r\njava.util.TimSort.mergeLo(TimSort.java:777)\r\njava.util.TimSort.mergeAt(TimSort.java:514)\r\njava.util.TimSort.mergeCollapse(TimSort.java:441)\r\njava.util.TimSort.sort(TimSort.java:245)\r\njava.util.Arrays.sort(Arrays.java:1512)\r\njava.util.ArrayList.sort(ArrayList.java:1454)\r\njava.util.Collections.sort(Collections.java:175)\r\ngames.strategy.triplea.ui.MovePanel.sortUnitsToMove(MovePanel.java:137)\r\ngames.strategy.triplea.ui.MovePanel.updateUnitsThatCanMoveOnRoute(MovePanel.java:467)\r\ngames.strategy.triplea.ui.MovePanel.access$13(MovePanel.java:445)\r\ngames.strategy.triplea.ui.MovePanel$3.mouseMoved(MovePanel.java:1295)\r\ngames.strategy.triplea.ui.MapPanel.notifyMouseMoved(MapPanel.java:266)\r\ngames.strategy.triplea.ui.MapPanel.access$16(MapPanel.java:264)\r\ngames.strategy.triplea.ui.MapPanel$2.mouseMoved(MapPanel.java:400)\r\njava.awt.AWTEventMulticaster.mouseMoved(AWTEventMulticaster.java:330)\r\njava.awt.Component.processMouseMotionEvent(Component.java:6580)\r\njavax.swing.JComponent.processMouseMotionEvent(JComponent.java:3342)\r\n```\r\nFull stack trace: https://gist.github.com/DanVanAtta/abe2d655026b119910aa\r\n\r\n\r\nThe functionality in MovePanel.java wasn't altered in this location, MovePanel.java: line 137 == line 136 on master:\r\n\r\n```\r\n    // sort units based on which transports are allowed to unload\r\n    if (route.isUnload() && Match.someMatch(units, Matches.UnitIsLand)) {\r\n      Collections.sort(units, UnitComparator.getUnloadableUnitsComparator(units, route, getUnitOwner(units), true));\r\n    } else {\r\n      Collections.sort(units, UnitComparator.getMovableUnitsComparator(units, route, getUnitOwner(units), true));   // << this is line 137\r\n    }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/triplea-game/triplea/issues/comments/216431948","html_url":"https://github.com/triplea-game/triplea/issues/320#issuecomment-216431948","issue_url":"https://api.github.com/repos/triplea-game/triplea/issues/320","id":216431948,"user":{"login":"DanVanAtta","id":12397753,"avatar_url":"https://avatars.githubusercontent.com/u/12397753?v=3","gravatar_id":"","url":"https://api.github.com/users/DanVanAtta","html_url":"https://github.com/DanVanAtta","followers_url":"https://api.github.com/users/DanVanAtta/followers","following_url":"https://api.github.com/users/DanVanAtta/following{/other_user}","gists_url":"https://api.github.com/users/DanVanAtta/gists{/gist_id}","starred_url":"https://api.github.com/users/DanVanAtta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanVanAtta/subscriptions","organizations_url":"https://api.github.com/users/DanVanAtta/orgs","repos_url":"https://api.github.com/users/DanVanAtta/repos","events_url":"https://api.github.com/users/DanVanAtta/events{/privacy}","received_events_url":"https://api.github.com/users/DanVanAtta/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T04:20:42Z","updated_at":"2016-05-03T04:20:42Z","body":"good work getting this out of the door @ron-murhammer "}}