Page 1 of 1

StackOverflowError

Posted: Sat Sep 18, 2010 6:29 am
by laikeriz
Hello. I dont know why but in my server npcs often disappear and attackable characters doesn't respawn anymore. Console is spammed with this error:

Code: Select all

Exception in thread "General Pool-3" java.lang.StackOverflowError    at com.l2jserver.gameserver.model.actor.L2Character.moveToLocation(L2Character.java:4381)    at com.l2jserver.gameserver.model.actor.L2Character$AIAccessor.moveTo(L2Character.java:3453)    at com.l2jserver.gameserver.ai.AbstractAI.moveTo(AbstractAI.java:638)    at com.l2jserver.gameserver.ai.L2CharacterAI.onIntentionMoveTo(L2CharacterAI.java:344)    at com.l2jserver.gameserver.ai.AbstractAI.setIntention(AbstractAI.java:314)    at com.l2jserver.gameserver.ai.AbstractAI.setIntention(AbstractAI.java:248)    at com.l2jserver.gameserver.ai.L2AttackableAI.onIntentionIdle(L2AttackableAI.java:328)    at com.l2jserver.gameserver.ai.AbstractAI.setIntention(AbstractAI.java:299)    at com.l2jserver.gameserver.ai.AbstractAI.setIntention(AbstractAI.java:234)    at com.l2jserver.gameserver.model.actor.L2Character.moveToLocation(L2Character.java:4616)    at com.l2jserver.gameserver.model.actor.L2Character$AIAccessor.moveTo(L2Character.java:3453)    at com.l2jserver.gameserver.ai.AbstractAI.moveTo(AbstractAI.java:638)    at com.l2jserver.gameserver.ai.L2CharacterAI.onIntentionMoveTo(L2CharacterAI.java:344)    at com.l2jserver.gameserver.ai.AbstractAI.setIntention(AbstractAI.java:314)    at com.l2jserver.gameserver.ai.AbstractAI.setIntention(AbstractAI.java:248)    at com.l2jserver.gameserver.ai.L2AttackableAI.onIntentionIdle(L2AttackableAI.java:328)...and it continues all the way until i shutdown the server
Any solutions?

Re: StackOverflowError

Posted: Sat Sep 18, 2010 6:47 am
by _DS_
Try to disable custom npc walkers, if any. And all other custom npcs

Re: StackOverflowError

Posted: Sat Sep 18, 2010 8:30 am
by Naonah
..but if you still want to have custom NPCs, do it properly (rework)

Re: StackOverflowError

Posted: Sat Sep 18, 2010 9:16 am
by laikeriz
It seems like disabling NPC walkers has helped. Thanks a lot :)

Re: StackOverflowError

Posted: Sat Sep 18, 2010 9:51 am
by Naonah
laikeriz wrote:It seems like disabling NPC walkers has helped. Thanks a lot :)
NPC walkers can be, lol. Just do it well (I mean a proper walkers routes in SQL, etc.)

Re: StackOverflowError

Posted: Sun Sep 19, 2010 2:30 pm
by laikeriz
After some time it seems like the problem has appeared again. I replaced all custom NPCs with not custom ones. Now this problem appears much more less but still few times a day and its too. Another problem is that VPS works fine but we often experience freezes for 1-2 seconds(Like everything stops and then moves again). If you have any suggestions please post them here. Thanks in advance.
EDIT: Forgot to mention that theres no errors in console about those freezes

Re: StackOverflowError

Posted: Sun Sep 19, 2010 3:28 pm
by _DS_
You have custom npc walker routes ?

Also, if your VPS's clock ticks non-linearly many bad things will happens. As well as bad idea to put gameserver on VPS.

Re: StackOverflowError

Posted: Sun Sep 19, 2010 3:40 pm
by JIV
lol, l2j under vps :mrgreen: