Page 1 of 1

Haven Error

PostPosted: Wed Aug 26, 2015 7:03 am
by ToorimaKun
java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.util.TimSort.mergeHi(Unknown Source)
at java.util.TimSort.mergeAt(Unknown Source)
at java.util.TimSort.mergeForceCollapse(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at haven.CharWnd$SkillList.tick(CharWnd.java:254)
at haven.Widget.tick(Widget.java:490)
at haven.Widget.tick(Widget.java:490)
at haven.Widget.tick(Widget.java:490)
at haven.GameUI.tick(GameUI.java:698)
at haven.Widget.tick(Widget.java:490)
at haven.UI.tick(UI.java:160)
at haven.HavenPanel.run(HavenPanel.java:447)
at java.lang.Thread.run(Unknown Source)

Re: Haven Error

PostPosted: Wed Aug 26, 2015 2:06 pm
by Kandarim
note to self: this is a quick and dirty workaround :)
Not entirely sure whether this is an issue with default or only with customs or only with my client. Which did you experience it on?
I'm assuming mine, because the other clients are built against JDK6 IIRC.

Re: Haven Error

PostPosted: Thu Aug 27, 2015 9:48 am
by ToorimaKun
the only people i know that use the default client only do so because they can't get past the java security BS. >.<
so yah yours :P


this happens as soon as i login some times.... i think it might have to do with the bed.


can some one walk me threw where to add this:
System.setProperty("java.util.Arrays.useLegacyMergeSort", "true");

or do i just enter it in to the game console?

Re: Haven Error

PostPosted: Thu Aug 27, 2015 10:19 am
by Kandarim
no that is a note to myself, it should go into the game code until I fix the sorting.
What happens is that the sorting of the entries in studywindow throws an error because the sorting is not consistent.
In JDK 6 (afaik, Ender's and default) this was silently ignored and it ment that in certain circumstances (most likely never in practice) sorting orders could get reversed.
My client is built against JDK 7, in which it is no longer silently ignored but rather throws this error.
Will need to fix, soonishly TM.

Re: Haven Error

PostPosted: Thu Aug 27, 2015 11:48 am
by ToorimaKun
oh ok

hope that fixes it then :p