L2-scripts Форум

L2-scripts Форум (http://l2-scripts.ru/forum/index.php)
-   Archive Lindvior, Ertheia, Odyssey, Undergeround, Helios, Grand Crusade (http://l2-scripts.ru/forum/forumdisplay.php?f=103)
-   -   [CORE] ERROR the blocks servers (FIXED) (http://l2-scripts.ru/forum/showthread.php?t=3949)

boulanger 02.11.2013 19:02

[CORE] ERROR the blocks servers (FIXED)
 
After this error appears, not instant but in few hours all players AND MONSTERS freez, cannot move , just chat in game

i also checked creature.java and at line 4900+ there are things about movement, so please check, i suspect this is caused when some skill is casted upon mobs or many mobs at same time, because server freez happens random nowadays more and more times, rly need fix




Код:

[24.10.13 06:16:08:521] ERROR threading.RunnableImpl: Exception: RunnableImpl.run(): java.util.ConcurrentModificationException
java.util.ConcurrentModificationException
        at gnu.trove.impl.hash.THashPrimitiveIterator.nextIndex(THashPrimitiveIterator.java:83)
        at gnu.trove.impl.hash.THashPrimitiveIterator.moveToNextIndex(THashPrimitiveIterator.java:137)
        at gnu.trove.set.hash.TIntHashSet$TIntHashIterator.next(TIntHashSet.java:484)
        at gnu.trove.set.hash.TIntHashSet.addAll(TIntHashSet.java:276)
        at gnu.trove.set.hash.TIntHashSet.<init>(TIntHashSet.java:137)
        at l2s.gameserver.model.Creature.getAbnormalEffects(Creature.java:1780)
        at l2s.gameserver.model.actor.recorder.CharStatsChangeRecorder.refreshStats(CharStatsChangeRecorder.java:114)
        at l2s.gameserver.model.actor.recorder.PlayerStatsChangeRecorder.refreshStats(PlayerStatsChangeRecorder.java:61)
        at l2s.gameserver.model.actor.recorder.CharStatsChangeRecorder.sendChanges(CharStatsChangeRecorder.java:121)
        at l2s.gameserver.model.Creature.sendChanges(Creature.java:4790)
        at l2s.gameserver.model.Player.sendChanges(Player.java:4751)
        at l2s.gameserver.model.Creature.setCurrentHp(Creature.java:3571)
        at l2s.gameserver.model.Creature.setCurrentHp(Creature.java:3580)
        at l2s.gameserver.model.Creature.onReduceCurrentHp(Creature.java:3345)
        at l2s.gameserver.model.Player.onReduceCurrentHp(Player.java:3581)
        at l2s.gameserver.model.Creature.reduceCurrentHp(Creature.java:3315)
        at l2s.gameserver.model.Playable.reduceCurrentHp(Playable.java:344)
        at l2s.gameserver.model.Player.reduceCurrentHp(Player.java:3518)
        at l2s.gameserver.model.Creature.onHitTimer(Creature.java:3053)
        at l2s.gameserver.model.GameObjectTasks$HitTask.runImpl(GameObjectTasks.java:316)
        at l2s.commons.threading.RunnableImpl.run(RunnableImpl.java:21)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)


creature.java
Код:

public void setLoc(Location loc)
  {
    setXYZ(loc.x, loc.y, loc.z);
  }

  public void setLoc(Location loc, boolean MoveTask)
  {
    setXYZ(loc.x, loc.y, loc.z, MoveTask);
  }

  public void setXYZ(int x, int y, int z)
  {
    setXYZ(x, y, z, false);
  }

  public void setXYZ(int x, int y, int z, boolean MoveTask)
  {
    if (!MoveTask) {
      stopMove();
    }
    this.moveLock.lock();
    try
    {
      super.setXYZ(x, y, z);
    }
    finally
    {
      this.moveLock.unlock();
    }

    updateZones();
  }


Core 02.11.2013 23:36

Fixed. Closed.


Часовой пояс GMT +4, время: 09:04.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd. Перевод: zCarot