03-29-2021, 03:22 PM
(03-25-2021, 07:48 AM)dale walton Wrote: In a workaround version, I am still getting hung AI
Here is a terminal error for the attached program and trial
Exception in thread "Thread-5" java.lang.IndexOutOfBoundsException: bitIndex < 0: -1
at main.collections.ChunkSet.clear(ChunkSet.java:496)
at game.util.equipment.Region.remove(Region.java:242)
at game.functions.region.math.Difference.eval(Difference.java:87)
at game.rules.play.moves.nonDecision.operators.foreach.site.ForEachSite.eval(ForEachSite.java:72)
at game.rules.play.moves.nonDecision.operators.logical.If.eval(If.java:131)
at game.Game.moves(Game.java:2461)
at search.minimax.AlphaBetaSearch.alphaBeta(AlphaBetaSearch.java:497)
at search.minimax.AlphaBetaSearch.alphaBeta(AlphaBetaSearch.java:580)
at search.minimax.AlphaBetaSearch.alphaBeta(AlphaBetaSearch.java:538)
at search.minimax.AlphaBetaSearch.alphaBeta(AlphaBetaSearch.java:580)
at search.minimax.AlphaBetaSearch.alphaBeta(AlphaBetaSearch.java:538)
at search.minimax.AlphaBetaSearch.alphaBeta(AlphaBetaSearch.java:580)
at search.minimax.AlphaBetaSearch.iterativeDeepening(AlphaBetaSearch.java:302)
at search.minimax.AlphaBetaSearch.selectAction(AlphaBetaSearch.java:178)
at util.ThinkingThread$ThinkingThreadRunnable.run(ThinkingThread.java:186)
at java.base/java.lang.Thread.run(Thread.java:834)
This stacktrace was indeed a bug in our code, I've just fixed that so that fix should be in the next release.
Any of the freezes reported in this thread are probably the same as reported in the other thread which I just responded to that is also fixed (any game that used a combination of NoRepeat and ForEach Piece would have been affected by that one).
The remaining issues reported throughout this thread are not my area of expertise, I suspect Eric will be able to take a look at them when he's back from holidays somewhere next week.