toggerit / andors-trail

Automatically exported from code.google.com/p/andors-trail
0 stars 0 forks source link

ConcurrentModificationException in MonsterMovementController.moveMonsters #359

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Sometimes when moving close to some monsters the game will crash with an 
exception. It always crashes when moving right next to a monster. So far it has 
been easiest to reproduce with Iqhan monsters.

java.util.ConcurrentModificationException
    at java.util.ArrayList$ArrayListIterator.next(ArrayList.java:569)
    at com.gpl.rpg.AndorsTrail.controller.MonsterMovementController.moveMonsters(MonsterMovementController.java:31)
    at com.gpl.rpg.AndorsTrail.controller.GameRoundController.onNewTick(GameRoundController.java:98)
    at com.gpl.rpg.AndorsTrail.controller.GameRoundController.onTick(GameRoundController.java:30)
    at com.gpl.rpg.AndorsTrail.util.TimedMessageTask.tick(TimedMessageTask.java:31)
    at com.gpl.rpg.AndorsTrail.util.TimedMessageTask.handleMessage(TimedMessageTask.java:26)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:5227)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
    at dalvik.system.NativeStart.main(Native Method)
Force finishing activity com.gpl.rpg.AndorsTrail/.activity.MainActivity

Original issue reported on code.google.com by Jimmy.Ax...@gmail.com on 27 Jun 2014 at 10:45