JCloisterZone icon indicating copy to clipboard operation
JCloisterZone copied to clipboard

Invalid placemnent after dragon move (placement of a tile; game with AI) (race condition bug)

Open JustAPhrog opened this issue 6 years ago • 3 comments

In several games with AI game crashed after last move of a dragon. Next player (AI) is about to place a tile, but then error occur:

 java.lang.illegalArgumentException: Invalid placement [4,5], R90

v4.3.0 (2018-01-11) I played 3 AI players and with expansions (loaded from configuration):

  • Winter edition
  • Traders and builders
  • The Princess and The Dragon
  • Inns and Cathedrals
  • Abbey and Mayor
  • River I & II
  • Heretics

Edit: Players are in random order.

I had empty user name. Lang: PL report.zip error.log ErrorAfterDragonSave.zip

JustAPhrog avatar Feb 25 '19 21:02 JustAPhrog

After exit and load save resolve problem - next AI player made next move.

JustAPhrog avatar Feb 25 '19 21:02 JustAPhrog

it's probably caused rather by some timing issue / race condition (bacause save&load helped)

farin avatar Feb 27 '19 12:02 farin

similar to #272

farin avatar Feb 27 '19 12:02 farin