Jump to content
  • 0

L2Character$Notifyaitask


Question

Posted

 com.l2jesios.gameserver.model.actor.L2Character$NotifyAITask run

WARNING: 
java.lang.StackOverflowError
 at com.l2jesios.gameserver.ai.L2CharacterAI.maybeMoveToPawn(L2CharacterAI.java:934)
 at com.l2jesios.gameserver.ai.L2PlayerAI.thinkCast(L2PlayerAI.java:240)
 at com.l2jesios.gameserver.ai.L2PlayerAI.onEvtThink(L2PlayerAI.java:316)
 at com.l2jesios.gameserver.ai.L2CharacterAI.onEvtArrived(L2CharacterAI.java:673)
 at com.l2jesios.gameserver.ai.AbstractAI.notifyEvent(AbstractAI.java:417)
 at com.l2jesios.gameserver.ai.AbstractAI.notifyEvent(AbstractAI.java:340)
 at com.l2jesios.gameserver.model.actor.L2Character.moveToLocation(L2Character.java:3893)
 at com.l2jesios.gameserver.model.actor.L2Character$AIAccessor.moveTo(L2Character.java:3039)
 at com.l2jesios.gameserver.ai.AbstractAI.moveTo(AbstractAI.java:582)
 at com.l2jesios.gameserver.ai.AbstractAI.moveToPawn(AbstractAI.java:538)
 at com.l2jesios.gameserver.ai.L2CharacterAI.maybeMoveToPawn(L2CharacterAI.java:948)
 
This error is flloding my gs very often and produce lag anyone know how to fix it? this is the line in L2CharacterAI
 
protected boolean maybeMoveToPawn(L2Object target, int offset)
{
if (target == null || offset < 0) // skill radius -1
return false;


offset += _actor.getTemplate().getCollisionRadius();   //this is the line 934
if (target instanceof L2Character)
offset += ((L2Character) target).getTemplate().getCollisionRadius();

 

Recommended Posts

  • 0
Posted

There shouldn't be an issue there, obviously the original authors of this pack knew about this and added the catch (StackOverflowError). The only way to resolve this, is by checking all the calls of this method (infinite recursive calls are most likely the issue to this problem).

  • 0
Posted

Nop

well i doubt if you tested it, well i am sure you didnt cause if you knew what action char makes and this error appear you would had this bug fixed

  • 0
Posted

well i doubt if you tested it, well i am sure you didnt cause if you knew what action char makes and this error appear you would had this bug fixed

yes of course

  • 0
Posted

yes of course

willing to help you but your irony is of limits, i hope nobody gives a fuck for your trash server and get always this error damn people these days....

  • 0
Posted (edited)

willing to help you but your irony is of limits, i hope nobody gives a fuck for your trash server and get always this error damn people these days....

wtf? my irony? i said nop the thing you posted doesnt work and yes i would fix it if i know where it came from. Where is my irony? just honest replies..

Edited by Xerus
  • 0
Posted

yes of course

this irony

 

and NpcWalkers are the retarded l2j npc and generally offi ones that goes around town etc, i googled it and a random guy got that issue with stackoverflow he disabled NpcWalkers and it helped..

in order to test it disable them and check tommorow if error log still exists so how you test so fast? 

  • 0
Posted

this irony

 

and NpcWalkers are the retarded l2j npc and generally offi ones that goes around town etc, i googled it and a random guy got that issue with stackoverflow he disabled NpcWalkers and it helped..

in order to test it disable them and check tommorow if error log still exists so how you test so fast? 

cause i already tested before and not working....

  • 0
Posted

cause i already tested before and not working....

well obviously cause i saw only stackoverflow and i gaved the 1st answer of google.. you got stackOverFlow on other part of the code and it has also a movement issue i guess, not sure but as i searched more is a badly rework of l2j movement system rework and this issue exist in the most l2j packs so i guess a proper movement rework will fix all those stackoverflows or general-pools errors

  • 0
Posted

well obviously cause i saw only stackoverflow and i gaved the 1st answer of google.. you got stackOverFlow on other part of the code and it has also a movement issue i guess, not sure but as i searched more is a badly rework of l2j movement system rework and this issue exist in the most l2j packs so i guess a proper movement rework will fix all those stackoverflows or general-pools errors

the flood is coming like every 30 minutes i tried everything..

  • 0
Posted

I'm not familiar with esios pack, but seems to me you are getting an error, you don't necessarily need. Most likely this is due to L2J's outdated way of using catch(Throwable t), that's almost never wanted, you want to catch specific exceptions and not generally everything - that should be the case only to the very top of a thread.

 

Go to L2Character.java at NotifyAiTask class and replace 

catch (Throwable t)
{
_log.log(Level.WARNING, "", t);
}

with

catch (Exception e)
{
_log.log(Level.WARNING, "", e);
}
  • 0
Posted

 

I'm not familiar with esios pack, but seems to me you are getting an error, you don't necessarily need. Most likely this is due to L2J's outdated way of using catch(Throwable t), that's almost never wanted, you want to catch specific exceptions and not generally everything - that should be the case only to the very top of a thread.

 

Go to L2Character.java at NotifyAiTask class and replace 

catch (Throwable t)
{
_log.log(Level.WARNING, "", t);
}

with

catch (Exception e)
{
_log.log(Level.WARNING, "", e);
}

 

At the moment its like this

public void run()
{
try
{
getAI().notifyEvent(_evt, null);
}
catch (StackOverflowError e) {
if(Config.DEBUG) // safer
_log.log(Level.WARNING, "", e);
}
catch (Throwable t)
{
_log.log(Level.WARNING, "", t);
}
}

but i think that stackoverflowerror is useless should i change to:

           public void run()
        {
            try
            {
                getAI().notifyEvent(_evt, null);
            }
            catch (Exception e)
            {
                _log.log(Level.WARNING, "NotifyAITask failed. " + e.getMessage() + " Actor " + L2Character.this, e);
            }
  • 0
Posted (edited)

 

 

At the moment its like this

public void run()
{
try
{
getAI().notifyEvent(_evt, null);
}
catch (StackOverflowError e) {
if(Config.DEBUG) // safer
_log.log(Level.WARNING, "", e);
}
catch (Throwable t)
{
_log.log(Level.WARNING, "", t);
}
}

but i think that stackoverflowerror is useless should i change to:

           public void run()
        {
            try
            {
                getAI().notifyEvent(_evt, null);
            }
            catch (Exception e)
            {
                _log.log(Level.WARNING, "NotifyAITask failed. " + e.getMessage() + " Actor " + L2Character.this, e);
            }

 

Yes, you should change to that.

Edited by Versus
Guest
This topic is now closed to further replies.



  • Posts

    • L2 DEVS - HTML DESIGN (ALL NPC'S)    
    • I only share for free what they are reselling 🙂 You keep crying in all the publications, and if you are looking for h5 or gd wait for 5 or 6 years... cheers.... GENERAL Cached Extended to 8192kb IOBuffer Hair2SlotCache ItemBidAuctioner Clan Hall Current Olympiad Season Rank pages System (Shows Points/Games - Fully Configurable) Automatic Flag Around Raidboss System Offline Shop & Buffers Restore After Restart (Fixed location) Offline Buffer System PvP Auto Announce System Rebuilt with Extra Addons (Fully Configurable, Name, Zones, Rewards) Automatic Announce System Rebuilt with Extra Addons (Fully Configurable) ALT+B Augmentation House Shift+Click Droplist/Spoil List Epic Items Rank RB points Rank ChangeColorName ChangeColorTitle Change Skin (Race) Change Gender Custom Subclass (Acumulative) Achievements Item Delivery System  Augmentations/Enchants Automatic Announce System Auto Learn Skills PvP Reward Pk Reward War Reward Scheme buffer GlobalChatTrade Trade Augment Items Castle Announce Time Castle Standby Time Fix Spiritshots delay SpellbooksDrop Enable/Disable Drop custom Fully configurable, lvl min max allmobs, allrb, individual New cancel effect min,max BlessedarmorEnchantRate BlessedmagicWeaponEnchantRate BlessednormalWeaponEnchantRate MaxSlosChars MaxSlotsDwarfs Enable or disable all commands Fix fast loading npc OlympiadRestoreStatsOnFightStart OlympiadSystemSecondTimeEnabled OlympiadEnterLast10Minute OlympiadThirdClassSummons MinLevelTrade AnnounceSubClassMsg1 AnnounceSubClassMsg2 AnnounceSubClassMsg3 LimitedSubClassRace NoSellItems Change ID SealStones for AA NoPrivateBuyItems NoDropPlayerOnDie DisableSkillEnchantData Show Level Mobs Show npc clan flag DespawnSummonEnBattle SummonPetEnBattle RideSummonPetEnBattle DitanceToTargetMove EnterWorld_Undying EnterWorld_UnHide BlockWhispMessagePlayerToGM UseItemsWithHide CriticalSkillDamageBonusPer=4.0 Disable SSQSystem OnCastle Siege End Use any dyes Buy halls directly in auctioneer without waiting for the auction, configuration to change the item you consume MensajeEnterWorldServer Command .hero enable/disable hero aura Config vip global chat character, chat by systemsg Soulshots: NoSendSystemMessageUse Panel //admin Global vote reward Agathions system Anti Interface, control all patch files by md5 Command .menu configurable, last restart, name, maxusers, privatestores Spawn protection activate deactivate consume items to activate  Activate or deactivate autoloot for vip characters EVENTS Happy Hour Event reworked Configurable by announcements or systemsg Team VS Team Capture The Flag Death Match Last Man Standing Destroy The Base Korean Style Castle Siege Check if the player is inside the tvt event due to disconnection/critical error Top 1/5 killer reward/announce TimeAfk ResetReuseSkills ResetBuffsOnFinish Firework effect Reward win/lost Add Team Location Title custom Red/blue Open Door/Wall System BalanceBishops Show kills in title Invest positions Show Death To Top Delete Non-Subclass Skills     RELOADS Reload Enterworld Html Option Reload Faction System Reload Donate Shop Reload OfflineBuffer Reload Champion NPC Reload CliExt Reload AntiBot Reload Vip System Reload Auction Reload AutoLoot Reload CastleSiegeManager Reload CharacterLock Reload ClanPvPStatus Reload AutoLearn Reload ClanReputationRank Reload ClanSystem Reload CreatureAction Reload Customs.ini Reload L2server.ini Reload SkillData.txt Reload doordata.txt Reload decodata.txt Reload Multisell Reload DropList   Extender tested for more than 3 years. Assured stability. Possibility of adding MOD's upon request. (Not included, consult).
    • some peoples trash is another mans treasure, is that your treasure?   people might like the content but you are still the rat in the room     thats the community judging you.  
    • Keep reselling what I publish here for free!!! 🙂 GG  
  • Topics

×
×
  • Create New...