Page 1 of 2

Latikai client crash (inventory related?)

PostPosted: Thu Mar 10, 2016 11:08 pm
by JonathJCen
Howdy. I'm getting the following Haven Error

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.mergeCollapse(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.ArrayList.sort(Unknown Source)
at java.util.Collections.sort(Unknown Source)
at haven.Inventory.sortItemsLocally(Inventory.java:187)
at haven.Inventory.resort(Inventory.java:372)
at haven.GItem.uimsg(GItem.java:255)
at haven.UI.uimsg(UI.java:252)
at haven.RemoteUI.run(RemoteUI.java:71)
at haven.MainFrame.run(MainFrame.java:291)
at java.lang.Thread.run(Unknown Source)

I'm not familiar with Java so I need a hand figuring out how to fix this.

What actions are causing the crash:
The Client will crash at random intervals whenever a new item is added to my inventory. This happens when I: Harvest from any plant; Pick up something off the ground; Split a log or pick brake up a pinecone; etc.

Sorting issue, perhaps?
I am using inventory sorting and I believe it may be related to it. For me this is a huge reason to use the client and I'd really like to find a fix.

Re: Latikai client crash (inventory related?)

PostPosted: Fri Mar 11, 2016 1:11 am
by Kandarim
quick fix: revert to Java7
Actual fix: wait for me to finally figure out why the hell Java is still throwing these errors when I told it to use Java 7 sorting.

Re: Latikai client crash (inventory related?)

PostPosted: Sun Mar 13, 2016 4:56 pm
by Kmab
I have similar problem. I cannot login to the game after last log out. I cleared cache, but no result.
Standard client works fine.

[quote]java.lang.NullPointerException
at haven.plugins.XTendedPaginae.loadPluginXTendedPaginae(XTendedPaginae.java:36)
at haven.plugins.XTendedPaginae.loadXTendedPaginae(XTendedPaginae.java:26)
at haven.MenuGrid.<init>(MenuGrid.java:127)
at haven.GameUI.<init>(GameUI.java:134)
at haven.GameUI$$_.create(GameUI.java:123)
at haven.Widget.makechild(Widget.java:246)
at haven.UI.newwidget(UI.java:178)
at haven.RemoteUI.run(RemoteUI.java:65)
at haven.MainFrame.run(MainFrame.java:291)
at java.lang.Thread.run(Unknown Source)[/quote

Re: Latikai client crash (inventory related?)

PostPosted: Sun Mar 13, 2016 5:18 pm
by Taipion
Kmab wrote:I have similar problem. I cannot login to the game after last log out. I cleared cache, but no result.
Standard client works fine.

java.lang.NullPointerException
at haven.plugins.XTendedPaginae.loadPluginXTendedPaginae(XTendedPaginae.java:36)
at haven.plugins.XTendedPaginae.loadXTendedPaginae(XTendedPaginae.java:26)
at haven.MenuGrid.<init>(MenuGrid.java:127)
at haven.GameUI.<init>(GameUI.java:134)
at haven.GameUI$$_.create(GameUI.java:123)
at haven.Widget.makechild(Widget.java:246)
at haven.UI.newwidget(UI.java:178)
at haven.RemoteUI.run(RemoteUI.java:65)
at haven.MainFrame.run(MainFrame.java:291)
at java.lang.Thread.run(Unknown Source)[/quote


Same for me, had a client running, and tried to log in another char, I noticed there was some kind of update when starting the client, and since then I only get this error and can not log in with Latikais on any character.

Re: Latikai client crash (inventory related?)

PostPosted: Sun Mar 13, 2016 5:19 pm
by Kandarim
should be fixed now. Is it still an issue? Bad timing, I kinda forgot no-one else would have the plugins folder yet (experimental feature :) )

Re: Latikai client crash (inventory related?)

PostPosted: Sun Mar 13, 2016 5:22 pm
by Kuulikindel1
I cant log in now

java.lang.NullPointerException
at haven.plugins.XTendedPaginae.loadPluginXTendedPaginae(XTendedPaginae.java:36)
at haven.plugins.XTendedPaginae.loadXTendedPaginae(XTendedPaginae.java:26)
at haven.MenuGrid.<init>(MenuGrid.java:127)
at haven.GameUI.<init>(GameUI.java:134)
at haven.GameUI$$_.create(GameUI.java:123)
at haven.Widget.makechild(Widget.java:246)
at haven.UI.newwidget(UI.java:178)
at haven.RemoteUI.run(RemoteUI.java:65)
at haven.MainFrame.run(MainFrame.java:291)
at java.lang.Thread.run(Unknown Source)

Re: Latikai client crash (inventory related?)

PostPosted: Sun Mar 13, 2016 5:24 pm
by Kandarim
I fixed this 7 minutes ago, and it's now working for me just fine. delete ~/Salem/bin and try again if it is still not working for you.

Re: Latikai client crash (inventory related?)

PostPosted: Sun Mar 13, 2016 5:31 pm
by Kuulikindel1
Kandarim wrote:I fixed this 7 minutes ago, and it's now working for me just fine. delete ~/Salem/bin and try again if it is still not working for you.

That worked, Thank you.

Re: Latikai client crash (inventory related?)

PostPosted: Mon Mar 14, 2016 10:12 am
by mgwerner
Kandarim wrote:I fixed this 7 minutes ago, and it's now working for me just fine. delete ~/Salem/bin and try again if it is still not working for you.

I had the same issue, fix seems to have worked.

My crash happened only when a new item not put in inventory since my reinstall was placed, making a ? and then crashing. Restarting the client cleared the ? and it would work fine until the next new item.

So, either I have gone through all the items and there is no more issue (rendering?), or the fix cleared it up.

Edit: Just got a new item, Spooky Mushroom, started with a ? and then rendered, no crash.

Thanks for the fast fix.

Re: Latikai client crash (inventory related?)

PostPosted: Mon Mar 14, 2016 10:34 am
by Kandarim
that is not related to any of the recent fixes. Sounds like you simply had some networking issues.
For future reference, such discussions are better at home on my thread.