Page 1 of 1

deadlock gameserver.skills.Calculator

Posted: Tue Nov 29, 2011 6:07 pm
by thorl2
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 4660:
L2JDP Revision 8026:

From some time now my server freze every ~ 25 hours, i start using deadlock restart but i really need some help to solve this issue, here is the log:

2011.11.29 03:20:48,576 WARNING 49 com.l2jserver.util.DeadLockDetector DeadLock Found!
"Normal Packet Pool-3" Id=298 BLOCKED on [Lcom.l2jserver.gameserver.skills.Calculator;@215ebfaa owned by "EffectsSTPool-7" Id=51
at com.l2jserver.gameserver.model.actor.L2Character.addStatFunc(L2Character.java:3697)
- blocked on [Lcom.l2jserver.gameserver.skills.Calculator;@215ebfaa
at com.l2jserver.gameserver.model.actor.L2Character.addStatFuncs(L2Character.java:3749)
at com.l2jserver.gameserver.model.actor.L2Character.addSkill(L2Character.java:5730)
at com.l2jserver.gameserver.model.actor.instance.L2PcInstance.addSkill(L2PcInstance.java:8005)
at com.l2jserver.gameserver.model.itemcontainer.Inventory$ItemSkillsListener.notifyEquiped(Inventory.java:386)
at com.l2jserver.gameserver.model.itemcontainer.Inventory.setPaperdollItem(Inventory.java:1010)
- locked com.l2jserver.gameserver.model.itemcontainer.PcInventory@5cdab973
at com.l2jserver.gameserver.model.itemcontainer.Inventory.equipItem(Inventory.java:1298)
at com.l2jserver.gameserver.model.itemcontainer.Inventory.equipItemAndRecord(Inventory.java:1247)
...

Number of locked synchronizers = 2
- java.util.concurrent.locks.ReentrantLock$NonfairSync@1bc55ca5
- java.util.concurrent.locks.ReentrantLock$NonfairSync@3a4562e1

"EffectsSTPool-7" Id=51 BLOCKED on com.l2jserver.gameserver.model.itemcontainer.PcInventory@5cdab973 owned by "Normal Packet Pool-3" Id=298
at com.l2jserver.gameserver.model.itemcontainer.Inventory.getPaperdollItem(Inventory.java:832)
- blocked on com.l2jserver.gameserver.model.itemcontainer.PcInventory@5cdab973
at com.l2jserver.gameserver.skills.conditions.ConditionUsingItemType.testImpl(ConditionUsingItemType.java:59)
at com.l2jserver.gameserver.skills.conditions.Condition.test(Condition.java:119)
at com.l2jserver.gameserver.skills.funcs.FuncAdd.calc(FuncAdd.java:31)
at com.l2jserver.gameserver.skills.Calculator.calc(Calculator.java:177)
at com.l2jserver.gameserver.model.actor.stat.CharStat.calcStat(CharStat.java:101)
at com.l2jserver.gameserver.model.actor.stat.CharStat.getRunSpeed(CharStat.java:648)
at com.l2jserver.gameserver.model.actor.stat.PlayableStat.getRunSpeed(PlayableStat.java:184)
...

Number of locked synchronizers = 1
- java.util.concurrent.locks.ReentrantLock$NonfairSync@3e1ea4c5

Java-level deadlock:
Normal Packet Pool-3 is waiting to lock [Lcom.l2jserver.gameserver.skills.Calculator;@215ebfaa which is held by EffectsSTPool-7
EffectsSTPool-7 is waiting to lock com.l2jserver.gameserver.model.itemcontainer.PcInventory@5cdab973 which is held by Normal Packet Pool-3
Java-level deadlock:
EffectsSTPool-7 is waiting to lock com.l2jserver.gameserver.model.itemcontainer.PcInventory@5cdab973 which is held by Normal Packet Pool-3
Normal Packet Pool-3 is waiting to lock [Lcom.l2jserver.gameserver.skills.Calculator;@215ebfaa which is held by EffectsSTPool-7

Re: deadlock gs

Posted: Tue Nov 29, 2011 8:13 pm
by Lupu1
thorl2 wrote:If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 4660:
L2JDP Revision 8026:

From some time now my server freze every ~ 25 hours, i start using deadlock restart but i really need some help to solve this issue, here is the log:

2011.11.29 03:20:48,576 WARNING 49 com.l2jserver.util.DeadLockDetector DeadLock Found!
"Normal Packet Pool-3" Id=298 BLOCKED on [Lcom.l2jserver.gameserver.skills.Calculator;@215ebfaa owned by "EffectsSTPool-7" Id=51
at com.l2jserver.gameserver.model.actor.L2Character.addStatFunc(L2Character.java:3697)
- blocked on [Lcom.l2jserver.gameserver.skills.Calculator;@215ebfaa
at com.l2jserver.gameserver.model.actor.L2Character.addStatFuncs(L2Character.java:3749)
at com.l2jserver.gameserver.model.actor.L2Character.addSkill(L2Character.java:5730)
at com.l2jserver.gameserver.model.actor.instance.L2PcInstance.addSkill(L2PcInstance.java:8005)
at com.l2jserver.gameserver.model.itemcontainer.Inventory$ItemSkillsListener.notifyEquiped(Inventory.java:386)
at com.l2jserver.gameserver.model.itemcontainer.Inventory.setPaperdollItem(Inventory.java:1010)
- locked com.l2jserver.gameserver.model.itemcontainer.PcInventory@5cdab973
at com.l2jserver.gameserver.model.itemcontainer.Inventory.equipItem(Inventory.java:1298)
at com.l2jserver.gameserver.model.itemcontainer.Inventory.equipItemAndRecord(Inventory.java:1247)
...

Number of locked synchronizers = 2
- java.util.concurrent.locks.ReentrantLock$NonfairSync@1bc55ca5
- java.util.concurrent.locks.ReentrantLock$NonfairSync@3a4562e1

"EffectsSTPool-7" Id=51 BLOCKED on com.l2jserver.gameserver.model.itemcontainer.PcInventory@5cdab973 owned by "Normal Packet Pool-3" Id=298
at com.l2jserver.gameserver.model.itemcontainer.Inventory.getPaperdollItem(Inventory.java:832)
- blocked on com.l2jserver.gameserver.model.itemcontainer.PcInventory@5cdab973
at com.l2jserver.gameserver.skills.conditions.ConditionUsingItemType.testImpl(ConditionUsingItemType.java:59)
at com.l2jserver.gameserver.skills.conditions.Condition.test(Condition.java:119)
at com.l2jserver.gameserver.skills.funcs.FuncAdd.calc(FuncAdd.java:31)
at com.l2jserver.gameserver.skills.Calculator.calc(Calculator.java:177)
at com.l2jserver.gameserver.model.actor.stat.CharStat.calcStat(CharStat.java:101)
at com.l2jserver.gameserver.model.actor.stat.CharStat.getRunSpeed(CharStat.java:648)
at com.l2jserver.gameserver.model.actor.stat.PlayableStat.getRunSpeed(PlayableStat.java:184)
...

Number of locked synchronizers = 1
- java.util.concurrent.locks.ReentrantLock$NonfairSync@3e1ea4c5

Java-level deadlock:
Normal Packet Pool-3 is waiting to lock [Lcom.l2jserver.gameserver.skills.Calculator;@215ebfaa which is held by EffectsSTPool-7
EffectsSTPool-7 is waiting to lock com.l2jserver.gameserver.model.itemcontainer.PcInventory@5cdab973 which is held by Normal Packet Pool-3
Java-level deadlock:
EffectsSTPool-7 is waiting to lock com.l2jserver.gameserver.model.itemcontainer.PcInventory@5cdab973 which is held by Normal Packet Pool-3
Normal Packet Pool-3 is waiting to lock [Lcom.l2jserver.gameserver.skills.Calculator;@215ebfaa which is held by EffectsSTPool-7

try to see if any of the fixes can help you from my topic viewtopic.php?f=81&t=24107

Re: deadlock gs

Posted: Tue Nov 29, 2011 9:08 pm
by thorl2
hi lupu, thx but my deadlock is different from yours i will w8 for an admin to tell me the fix for my problem, temporay i found something on the timeline but don't know if is good for me.

here is the changeset: http://trac.l2jserver.com/changeset/4970

Re: deadlock gs

Posted: Wed Nov 30, 2011 1:42 pm
by thorl2
can anyone help me with this, anything?