StackOverflowError

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
laikeriz
Posts: 48
Joined: Sun Feb 01, 2009 8:35 pm

StackOverflowError

Post 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?
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: StackOverflowError

Post by _DS_ »

Try to disable custom npc walkers, if any. And all other custom npcs
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
Naonah
Posts: 357
Joined: Sun Apr 04, 2010 11:12 pm

Re: StackOverflowError

Post by Naonah »

..but if you still want to have custom NPCs, do it properly (rework)
public void l2jserver ()
{
if (you want l2j server == no problems)
use Linux;
else
use Windows;
}
laikeriz
Posts: 48
Joined: Sun Feb 01, 2009 8:35 pm

Re: StackOverflowError

Post by laikeriz »

It seems like disabling NPC walkers has helped. Thanks a lot :)
User avatar
Naonah
Posts: 357
Joined: Sun Apr 04, 2010 11:12 pm

Re: StackOverflowError

Post 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.)
public void l2jserver ()
{
if (you want l2j server == no problems)
use Linux;
else
use Windows;
}
laikeriz
Posts: 48
Joined: Sun Feb 01, 2009 8:35 pm

Re: StackOverflowError

Post 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
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: StackOverflowError

Post 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.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: StackOverflowError

Post by JIV »

lol, l2j under vps :mrgreen:
Post Reply