apotapov / tafl

Android implementation of a Tafl game
Apache License 2.0
2 stars 0 forks source link

com.badlogic.gdx.utils.GdxRuntimeException: #iterator() cannot be used nested. #60

Closed apotapov closed 10 years ago

apotapov commented 10 years ago

Seems to only occur on android.. Sporadically.

02-16 21:36:47.141: E/AndroidRuntime(2659): FATAL EXCEPTION: GLThread 102 02-16 21:36:47.141: E/AndroidRuntime(2659): Process: com.pactstudios.games.tafl.android, PID: 2659 02-16 21:36:47.141: E/AndroidRuntime(2659): com.badlogic.gdx.utils.GdxRuntimeException: #iterator() cannot be used nested. 02-16 21:36:47.141: E/AndroidRuntime(2659): at com.badlogic.gdx.utils.Array$ArrayIterator.next(Array.java:491) 02-16 21:36:47.141: E/AndroidRuntime(2659): at com.artemis.World.getEvents(World.java:321) 02-16 21:36:47.141: E/AndroidRuntime(2659): at com.pactstudios.games.tafl.core.es.systems.events.EventProcessingSystem.processEntities(EventProcessingSystem.java:22) 02-16 21:36:47.141: E/AndroidRuntime(2659): at com.pactstudios.games.tafl.core.es.systems.events.EventProcessingSystem2.processEntities(EventProcessingSystem2.java:21) 02-16 21:36:47.141: E/AndroidRuntime(2659): at com.artemis.systems.EntitySystem.process(EntitySystem.java:78) 02-16 21:36:47.141: E/AndroidRuntime(2659): at com.artemis.World.process(World.java:453) 02-16 21:36:47.141: E/AndroidRuntime(2659): at com.pactstudios.games.tafl.core.es.TaflWorld.render(TaflWorld.java:84) 02-16 21:36:47.141: E/AndroidRuntime(2659): at com.pactstudios.games.tafl.core.screen.GamePlayScreen.render(GamePlayScreen.java:50) 02-16 21:36:47.141: E/AndroidRuntime(2659): at com.badlogic.gdx.Game.render(Game.java:46) 02-16 21:36:47.141: E/AndroidRuntime(2659): at com.roundtriangles.games.zaria.AbstractGame.render(AbstractGame.java:44) 02-16 21:36:47.141: E/AndroidRuntime(2659): at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:499) 02-16 21:36:47.141: E/AndroidRuntime(2659): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1523) 02-16 21:36:47.141: E/AndroidRuntime(2659): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)

apotapov commented 10 years ago

No longer seems to be a problem after gdx-artemis refactoring.