Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConcurrentBattleCalculator#calculate:200 - java.lang.IllegalStateException #13022

Open
tripleabuilderbot opened this issue Dec 2, 2024 · 0 comments
Labels
2.7 Error Report Issue reported via the in-game error reporter

Comments

@tripleabuilderbot
Copy link
Contributor

Map

civil_war / Civil War: A House Divided

Log Message

java.lang.IllegalStateException: sortedTargetsToPickFrom must have the same size as targetsToPickFrom list

TripleA Version

2.7.14900

Java Version

11.0.19

Operating System

Mac OS X

Heap Size

8192M

Stack Trace

Exception: java.lang.IllegalStateException java.lang.IllegalStateException: sortedTargetsToPickFrom must have the same size as targetsToPickFrom list
java.lang.Exception
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at java.base/java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:600)
	at java.base/java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:678)
	at java.base/java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:737)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateParallel(ReduceOps.java:919)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
	at games.strategy.triplea.odds.calculator.ConcurrentBattleCalculator.calculate(ConcurrentBattleCalculator.java:200)
	at games.strategy.triplea.ai.pro.util.ProOddsCalculator.callBattleCalc(ProOddsCalculator.java:249)
	at games.strategy.triplea.ai.pro.util.ProOddsCalculator.callBattleCalc(ProOddsCalculator.java:225)
	at games.strategy.triplea.ai.pro.util.ProOddsCalculator.callBattleCalc(ProOddsCalculator.java:215)
	at games.strategy.triplea.ai.pro.util.ProOddsCalculator.estimateDefendBattleResults(ProOddsCalculator.java:98)
	at games.strategy.triplea.ai.pro.util.ProOddsCalculator.estimateDefendBattleResults(ProOddsCalculator.java:103)
	at games.strategy.triplea.ai.pro.ProNonCombatMoveAi.lambda$moveUnitsToDefendTerritories$0(ProNonCombatMoveAi.java:798)
	at games.strategy.triplea.ai.pro.data.ProTerritory.setBattleResultIfNull(ProTerritory.java:267)
	at games.strategy.triplea.ai.pro.ProNonCombatMoveAi.moveUnitsToDefendTerritories(ProNonCombatMoveAi.java:796)
	at games.strategy.triplea.ai.pro.ProNonCombatMoveAi.doNonCombatMove(ProNonCombatMoveAi.java:121)
	at games.strategy.triplea.ai.pro.ProNonCombatMoveAi.simulateNonCombatMove(ProNonCombatMoveAi.java:77)
	at games.strategy.triplea.ai.pro.AbstractProAi.purchase(AbstractProAi.java:211)
	at games.strategy.triplea.ai.AbstractAi.start(AbstractAi.java:509)
	at games.strategy.engine.framework.ServerGame.waitForPlayerToFinishStep(ServerGame.java:614)
	at games.strategy.engine.framework.ServerGame.runStep(ServerGame.java:463)
	at games.strategy.engine.framework.ServerGame.runNextStep(ServerGame.java:350)
	at games.strategy.engine.framework.ServerGame.startGame(ServerGame.java:317)
	at games.strategy.engine.framework.startup.launcher.LocalLauncher.launchInternal(LocalLauncher.java:92)
	at games.strategy.engine.framework.startup.launcher.LocalLauncher.lambda$launch$0(LocalLauncher.java:60)
	at java.base/java.lang.Thread.run(Thread.java:829)


Exception: java.lang.IllegalStateException sortedTargetsToPickFrom must have the same size as targetsToPickFrom list
java.lang.Exception
	at games.strategy.triplea.delegate.battle.casualty.CasualtySelector.selectCasualties(CasualtySelector.java:120)
	at games.strategy.triplea.delegate.battle.steps.fire.SelectMainBattleCasualties$Select.apply(SelectMainBattleCasualties.java:157)
	at games.strategy.triplea.delegate.battle.steps.fire.SelectMainBattleCasualties.apply(SelectMainBattleCasualties.java:57)
	at games.strategy.triplea.delegate.battle.steps.fire.SelectMainBattleCasualties.apply(SelectMainBattleCasualties.java:28)
	at games.strategy.triplea.delegate.battle.steps.fire.SelectCasualties.execute(SelectCasualties.java:71)
	at games.strategy.triplea.delegate.ExecutionStack.execute(ExecutionStack.java:34)
	at games.strategy.triplea.delegate.battle.MustFightBattle.fight(MustFightBattle.java:691)
	at games.strategy.triplea.odds.calculator.BattleCalculator.calculate(BattleCalculator.java:118)
	at games.strategy.triplea.odds.calculator.ConcurrentBattleCalculator.lambda$calculate$4(ConcurrentBattleCalculator.java:188)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
	at java.base/java.util.stream.ReduceOps$ReduceTask.doLeaf(ReduceOps.java:952)
	at java.base/java.util.stream.ReduceOps$ReduceTask.doLeaf(ReduceOps.java:926)
	at java.base/java.util.stream.AbstractTask.compute(AbstractTask.java:327)
	at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)


@tripleabuilderbot tripleabuilderbot added 2.7 Error Report Issue reported via the in-game error reporter labels Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.7 Error Report Issue reported via the in-game error reporter
Projects
None yet
Development

No branches or pull requests

1 participant