Page 1 of 1

Game hangs after AI opponent lost

PostPosted: 06 Jul 2023, 17:35
by elricod
Hello all -

I'm in a 4-player commander game; myself and three AI. After killing the second of three AI players, the game stopped on "Waiting for opponent..." for >30 minutes. forge.log shows

Game-0 > java.lang.NullPointerException
at forge.game.Game.onPlayerLost(Game.java:833)
at forge.game.GameAction.checkGameOverCondition(GameAction.java:1706)
at forge.game.GameAction.checkStateEffects(GameAction.java:1260)
at forge.game.phase.PhaseHandler.checkStateBasedEffects(PhaseHandler.java:1142)
at forge.game.phase.PhaseHandler.startFirstTurn(PhaseHandler.java:1028)
at forge.game.GameAction.startGame(GameAction.java:2088)
at forge.game.Match.startGame(Match.java:90)
at forge.gamemodes.match.HostedMatch$2.run(HostedMatch.java:255)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Is there a watchdog timer that could be implemented for "Waiting for opponent ..." so the game could resume in case of NullPointerException?