#1035 Problem with TripleA when attacking seazones (save files attached)

v1.0 (example)
closed-works-for-me
Chris Duncan
None
5
2014-08-10
2014-01-30
fluxi
No

Greetings,

I got a bug two times today. It happened during a naval battle in the global 1940 edition, in both of the cases. For the first save I joined in attachment (okok.tsvg), it happens when I click on "Battle in 10 sea zone". I get this error message in a "an error has occurred" windows (the post continues after the error message copy):

triplea.engine.version.bin:1.7.0.3
INFO: Found too many files for: World War II Global found: [C:\Users\XXXXX\triplea\maps\World War II Global.zip, C:\Program Files (x86)\TripleA\triplea_1_7_0_3\maps\World War II Global.zip]
INFO: Found too many files for: World War II Global found: [C:\Users\XXXXX\triplea\maps\World War II Global.zip, C:\Program Files (x86)\TripleA\triplea_1_7_0_3\maps\World War II Global.zip]
Exception in thread "Triplea start thread" java.lang.ArrayIndexOutOfBoundsException: 11
at games.strategy.triplea.delegate.DiceRoll.rollDiceNormal(DiceRoll.java:957)
at games.strategy.triplea.delegate.DiceRoll.rollDice(DiceRoll.java:381)
at games.strategy.triplea.delegate.Fire.rollDice(Fire.java:84)
at games.strategy.triplea.delegate.Fire.access$300(Fire.java:25)
at games.strategy.triplea.delegate.Fire$2.execute(Fire.java:233)
at games.strategy.triplea.delegate.ExecutionStack.execute(ExecutionStack.java:51)
at games.strategy.triplea.delegate.MustFightBattle.fight(MustFightBattle.java:441)
at games.strategy.triplea.delegate.BattleDelegate.fightBattle(BattleDelegate.java:264)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at games.strategy.engine.delegate.DelegateExecutionManager$2.invoke(DelegateExecutionManager.java:156)
at com.sun.proxy.$Proxy12.fightBattle(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at games.strategy.engine.message.EndPoint.invokeSingle(UnifiedMessenger.java:631)
at games.strategy.engine.message.EndPoint.invokeMultiple(UnifiedMessenger.java:601)
at games.strategy.engine.message.EndPoint.invokeLocal(UnifiedMessenger.java:579)
at games.strategy.engine.message.UnifiedMessenger.invokeAndWait(UnifiedMessenger.java:126)
at games.strategy.engine.message.UnifiedInvocationHandler.invoke(UnifiedInvocationHandler.java:70)
at com.sun.proxy.$Proxy12.fightBattle(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at games.strategy.engine.gamePlayer.GameOverInvocationHandler.invoke(DefaultPlayerBridge.java:226)
at com.sun.proxy.$Proxy12.fightBattle(Unknown Source)
at games.strategy.triplea.TripleAPlayer.battle(TripleAPlayer.java:587)
at games.strategy.triplea.TripleAPlayer.start(TripleAPlayer.java:148)
at games.strategy.engine.framework.ServerGame.waitForPlayerToFinishStep(ServerGame.java:616)
at games.strategy.engine.framework.ServerGame.runStep(ServerGame.java:492)
at games.strategy.engine.framework.ServerGame.startGame(ServerGame.java:294)
at games.strategy.engine.framework.startup.launcher.LocalLauncher.launchInNewThread(LocalLauncher.java:99)
at games.strategy.engine.framework.startup.launcher.AbstractLauncher$1.run(AbstractLauncher.java:57)
at java.lang.Thread.run(Unknown Source)


The second time I got this message was in a new game, with Italy, during the first turn. I commanded all my naval troops, one fighter, and one bomber, to attack the british fleet. My other combat moves where to send one fighter to destroy a transport, and to attack Tunisia with every land units able to go there. I saved the game (ita.tsvg) just before clicking on battle in 96 sea zone. When I click on it, I get this error message in a "an error has occurred" windows (the post continues after the error message copy):

triplea.engine.version.bin:1.7.0.3
INFO: Found too many files for: World War II Global found: [C:\Users\Zadok\triplea\maps\World War II Global.zip, C:\Program Files (x86)\TripleA\triplea_1_7_0_3\maps\World War II Global.zip]
INFO: Found too many files for: World War II Global found: [C:\Users\Zadok\triplea\maps\World War II Global.zip, C:\Program Files (x86)\TripleA\triplea_1_7_0_3\maps\World War II Global.zip]
Exception in thread "Triplea start thread" java.lang.ArrayIndexOutOfBoundsException: 11
at games.strategy.triplea.delegate.DiceRoll.rollDiceNormal(DiceRoll.java:957)
at games.strategy.triplea.delegate.DiceRoll.rollDice(DiceRoll.java:381)
at games.strategy.triplea.delegate.Fire.rollDice(Fire.java:84)
at games.strategy.triplea.delegate.Fire.access$300(Fire.java:25)
at games.strategy.triplea.delegate.Fire$2.execute(Fire.java:233)
at games.strategy.triplea.delegate.ExecutionStack.execute(ExecutionStack.java:51)
at games.strategy.triplea.delegate.MustFightBattle.fight(MustFightBattle.java:441)
at games.strategy.triplea.delegate.BattleDelegate.fightBattle(BattleDelegate.java:264)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at games.strategy.engine.delegate.DelegateExecutionManager$2.invoke(DelegateExecutionManager.java:156)
at com.sun.proxy.$Proxy12.fightBattle(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at games.strategy.engine.message.EndPoint.invokeSingle(UnifiedMessenger.java:631)
at games.strategy.engine.message.EndPoint.invokeMultiple(UnifiedMessenger.java:601)
at games.strategy.engine.message.EndPoint.invokeLocal(UnifiedMessenger.java:579)
at games.strategy.engine.message.UnifiedMessenger.invokeAndWait(UnifiedMessenger.java:126)
at games.strategy.engine.message.UnifiedInvocationHandler.invoke(UnifiedInvocationHandler.java:70)
at com.sun.proxy.$Proxy12.fightBattle(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at games.strategy.engine.gamePlayer.GameOverInvocationHandler.invoke(DefaultPlayerBridge.java:226)
at com.sun.proxy.$Proxy12.fightBattle(Unknown Source)
at games.strategy.triplea.TripleAPlayer.battle(TripleAPlayer.java:587)
at games.strategy.triplea.TripleAPlayer.start(TripleAPlayer.java:148)
at games.strategy.engine.framework.ServerGame.waitForPlayerToFinishStep(ServerGame.java:616)
at games.strategy.engine.framework.ServerGame.runStep(ServerGame.java:492)
at games.strategy.engine.framework.ServerGame.startGame(ServerGame.java:294)
at games.strategy.engine.framework.startup.launcher.LocalLauncher.launchInNewThread(LocalLauncher.java:99)
at games.strategy.engine.framework.startup.launcher.AbstractLauncher$1.run(AbstractLauncher.java:57)
at java.lang.Thread.run(Unknown Source)
INFO: Found too many files for: World War II Global found: [C:\Users\Zadok\triplea\maps\World War II Global.zip, C:\Program Files (x86)\TripleA\triplea_1_7_0_3\maps\World War II Global.zip]
INFO: Found too many files for: World War II Global found: [C:\Users\Zadok\triplea\maps\World War II Global.zip, C:\Program Files (x86)\TripleA\triplea_1_7_0_3\maps\World War II Global.zip]
Exception in thread "Triplea start thread" java.lang.ArrayIndexOutOfBoundsException: 1
at games.strategy.triplea.delegate.DiceRoll.rollDiceNormal(DiceRoll.java:957)
at games.strategy.triplea.delegate.DiceRoll.rollDice(DiceRoll.java:381)
at games.strategy.triplea.delegate.Fire.rollDice(Fire.java:84)
at games.strategy.triplea.delegate.Fire.access$300(Fire.java:25)
at games.strategy.triplea.delegate.Fire$2.execute(Fire.java:233)
at games.strategy.triplea.delegate.ExecutionStack.execute(ExecutionStack.java:51)
at games.strategy.triplea.delegate.MustFightBattle.fight(MustFightBattle.java:441)
at games.strategy.triplea.delegate.BattleDelegate.fightBattle(BattleDelegate.java:264)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at games.strategy.engine.delegate.DelegateExecutionManager$2.invoke(DelegateExecutionManager.java:156)
at com.sun.proxy.$Proxy12.fightBattle(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at games.strategy.engine.message.EndPoint.invokeSingle(UnifiedMessenger.java:631)
at games.strategy.engine.message.EndPoint.invokeMultiple(UnifiedMessenger.java:601)
at games.strategy.engine.message.EndPoint.invokeLocal(UnifiedMessenger.java:579)
at games.strategy.engine.message.UnifiedMessenger.invokeAndWait(UnifiedMessenger.java:126)
at games.strategy.engine.message.UnifiedInvocationHandler.invoke(UnifiedInvocationHandler.java:70)
at com.sun.proxy.$Proxy12.fightBattle(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at games.strategy.engine.gamePlayer.GameOverInvocationHandler.invoke(DefaultPlayerBridge.java:226)
at com.sun.proxy.$Proxy12.fightBattle(Unknown Source)
at games.strategy.triplea.TripleAPlayer.battle(TripleAPlayer.java:587)
at games.strategy.triplea.TripleAPlayer.start(TripleAPlayer.java:148)
at games.strategy.engine.framework.ServerGame.waitForPlayerToFinishStep(ServerGame.java:616)
at games.strategy.engine.framework.ServerGame.runStep(ServerGame.java:492)
at games.strategy.engine.framework.ServerGame.startGame(ServerGame.java:294)
at games.strategy.engine.framework.startup.launcher.LocalLauncher.launchInNewThread(LocalLauncher.java:99)
at games.strategy.engine.framework.startup.launcher.AbstractLauncher$1.run(AbstractLauncher.java:57)
at java.lang.Thread.run(Unknown Source)


So, would someone know what to do to avoid this probleme while playing the game?

By the way, thanks for the software, it is amazing!!

Best regards,

Fluxi

2 Attachments

Discussion

  • Chris Duncan
    Chris Duncan
    2014-02-05

    Did you possibly save the game through the history panel? (ie: from history, you right clicked and selected "save game at this point (beta)"?
    If you did this, When you did this, were you in a combat move or battle phase?

    Please let me know of anything else out of the ordinary that you might have done. (The reason for the error is the presence of duplicate units in each battle, which should never happen and is something that I can not independently recreate from scratch.)

     
    Last edit: Chris Duncan 2014-02-05
  • Chris Duncan
    Chris Duncan
    2014-03-06

    • status: open --> closed-works-for-me
    • assigned_to: Chris Duncan
     
  • Chris Duncan
    Chris Duncan
    2014-03-06

    unfortunately i can not replicate this error, and the code at these points looks fine when i walk through in debug mode.
    did you save the game from history panel?