online-go / gtp2ogs

GTP Wrapper to allow bots to interface with the Online-Go.com Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

move_number is invalid after every move after disconnect

Dorus opened this issue · comments

commented

Since i'm sharing interesting logs today anyway, this time my bot got a disconnect, then connected again as normal, continued play, but each move we got this warning in console:

May 19 19:22:43 ! Game.ts:214 Received move for 53800900 but move_number is invalid. 113 !== 114

https://online-go.com/game/53800900
Full log around the error:

May 19 19:22:21   Game.ts:468          [game 53800900] genmove white
May 19 19:22:21   Bot.ts:163           [bot  1:88232] CHAT:Visits 77552 Winrate 5.63% ScoreLead -22.5 ScoreStdev 25.6 (PDA 1.38) PV L10 M12 G2 J1 J10 K11 H5 G6 H2 F2 H9 J8 H6
May 19 19:22:21   Game.ts:325          [game 53800900] Releasing bot(s)
May 19 19:22:21   Game.ts:535          [game 53800900] Playing l10 { x: 10, y: 9, text: 'l10', resign: false, pass: false }
May 19 19:22:27   Game.ts:230          [game 53800900] Opponent played m12
May 19 19:22:27   Game.ts:402          [game 53800900] Acquiring main bot instance
May 19 19:22:27   Game.ts:412          [bot  1:88232] [game 53800900] Acquired bot instance
May 19 19:22:27   Game.ts:467          [bot  1:88232] Generating move for game 53800900
May 19 19:22:27   Game.ts:468          [game 53800900] genmove white
May 19 19:22:27   Bot.ts:163           [bot  1:88232] CHAT:Visits 82829 Winrate 5.24% ScoreLead -22.5 ScoreStdev 25.3 (PDA 1.38) PV G2 J1 H2 H4 J10 K11 J8 H9 H5 G4 K8 H6 H8
May 19 19:22:27   Game.ts:325          [game 53800900] Releasing bot(s)
May 19 19:22:27   Game.ts:535          [game 53800900] Playing g2 { x: 6, y: 17, text: 'g2', resign: false, pass: false }
May 19 19:22:39   GobanSocket.ts:217   GobanSocket closed with code 1001: Going Away
May 19 19:22:39   main.ts:143          Disconnected from server
May 19 19:22:39   main.ts:213          Disconnecting from game  53800900
May 19 19:22:39   Game.ts:325          [game 53800900] Releasing bot(s)
May 19 19:22:39   Game.ts:647          [game 53800900] Disconnecting from game.
May 19 19:22:39   GobanSocket.ts:289   GobanSocket reconnecting in 50ms
May 19 19:22:39   Bot.ts:741           [bot  1:88232] Stopping bot
May 19 19:22:39   GobanSocket.ts:176   GobanSocket connected to wss://online-go.com
May 19 19:22:39   socket.ts:16         Connected to https://online-go.com in 1071612ms
May 19 19:22:39   main.ts:124          Bot is username:  00bStrongBot
May 19 19:22:39   main.ts:125          Bot is user id:  640435
May 19 19:22:39   main.ts:202          Connecting to game  53800900
May 19 19:22:39   Game.ts:69           [game 53800900] Connecting to game.
May 19 19:22:40   Game.ts:131          [game 53800900] gamedata     W   jaewoo1120  [19x19]  H3
May 19 19:22:40   Game.ts:131          [game 53800900] gamedata     W   jaewoo1120  [19x19]  H3
May 19 19:22:43   Game.ts:230          [game 53800900] Opponent played j1
May 19 19:22:43   Game.ts:402          [game 53800900] Acquiring main bot instance
May 19 19:22:43   Bot.ts:125           [bot 2] Starting  D:\lz\katago-v1.8.0-cuda11.2-windows-x64\katago.230512.exe gtp -model D:\lz\ogs\kataNetwork18b5832.bin.gz -config D:\lz\katago-v1.8.0-cuda11.2-windows-x64\00b_gtp.cfg
May 19 19:22:43 ! Game.ts:214          Received move for 53800900 but move_number is invalid. 113 !== 114
May 19 19:22:43   Game.ts:412          [bot  2:88296] [game 53800900] Acquired bot instance
May 19 19:22:44   Bot.ts:163           [bot  2:88296] KataGo v1.12.4
May 19 19:22:44   PvOutputParser.ts:36 Detected engine: katago
May 19 19:22:44   Bot.ts:163           [bot  2:88296] Using Chinese-OGS rules initially, unless GTP/GUI overrides this
May 19 19:22:44   Bot.ts:749           [bot  1:88232] Bot exited with code 0
May 19 19:22:48   Bot.ts:163           [bot  2:88296] Initializing board with boardXSize 19 boardYSize 19
May 19 19:22:48   Bot.ts:163           [bot  2:88296] Loaded config D:\lz\katago-v1.8.0-cuda11.2-windows-x64\00b_gtp.cfg
May 19 19:22:48   Bot.ts:163           [bot  2:88296] Loaded model D:\lz\ogs\kataNetwork18b5832.bin.gz
May 19 19:22:48   Bot.ts:163           [bot  2:88296] Model name: kata1-b18c384nbt-s5832081920-d3223508649
May 19 19:22:48   Bot.ts:163           [bot  2:88296] GTP ready, beginning main protocol loop
May 19 19:22:48   pools.ts:203         Bot "D:\lz\katago-v1.8.0-cuda11.2-windows-x64\katago.230512.exe gtp -model D:\lz\ogs\kataNetwork18b5832.bin.gz -config D:\lz\katago-v1.8.0-cuda11.2-windows-x64\00b_gtp.cfg" started with PID 88296. Ready in 4566ms.
May 19 19:22:49   Game.ts:467          [bot  2:88296] Generating move for game 53800900
May 19 19:22:49   Game.ts:468          [game 53800900] genmove white
May 19 19:23:03   Bot.ts:163           [bot  2:88296] CHAT:Visits 35704 Winrate 5.22% ScoreLead -23.5 ScoreStdev 25.7 (PDA 1.38) PV H2 H4 J10 K11 J8 H9 H5 G4 K8 G6 H8 O19 M19
May 19 19:23:03   Game.ts:325          [game 53800900] Releasing bot(s)
May 19 19:23:03   Game.ts:535          [game 53800900] Playing h2 { x: 7, y: 17, text: 'h2', resign: false, pass: false }
May 19 19:23:03 ! Game.ts:214          Received move for 53800900 but move_number is invalid. 114 !== 115
May 19 19:23:06   Game.ts:230          [game 53800900] Opponent played h4
May 19 19:23:06   Game.ts:402          [game 53800900] Acquiring main bot instance
May 19 19:23:06 ! Game.ts:214          Received move for 53800900 but move_number is invalid. 115 !== 116
May 19 19:23:06   Game.ts:412          [bot  2:88296] [game 53800900] Acquired bot instance
May 19 19:23:06   Game.ts:467          [bot  2:88296] Generating move for game 53800900
May 19 19:23:06   Game.ts:468          [game 53800900] genmove white
May 19 19:23:12   Bot.ts:163           [bot  2:88296] CHAT:Visits 35702 Winrate 3.90% ScoreLead -20.4 ScoreStdev 23.1 (PDA 1.38) PV J10 K11 J8 H9 H5 G4 K8 H6 H8 G9 G8 F9 F8
May 19 19:23:12   Game.ts:325          [game 53800900] Releasing bot(s)
May 19 19:23:12   Game.ts:535          [game 53800900] Playing j10 { x: 8, y: 9, text: 'j10', resign: false, pass: false }
May 19 19:23:12 ! Game.ts:214          Received move for 53800900 but move_number is invalid. 116 !== 117
May 19 19:23:22   Game.ts:230          [game 53800900] Opponent played k11
May 19 19:23:22   Game.ts:402          [game 53800900] Acquiring main bot instance
May 19 19:23:22 ! Game.ts:214          Received move for 53800900 but move_number is invalid. 117 !== 118
May 19 19:23:22   Game.ts:412          [bot  2:88296] [game 53800900] Acquired bot instance
May 19 19:23:22   Game.ts:467          [bot  2:88296] Generating move for game 53800900
May 19 19:23:22   Game.ts:468          [game 53800900] genmove white
May 19 19:23:22   Bot.ts:163           [bot  2:88296] CHAT:Visits 45986 Winrate 3.31% ScoreLead -20.1 ScoreStdev 22.4 (PDA 1.38) PV J8 H9 H5 G4 K8 H6 H8 G9 G8 F9 F8 D6 E9
May 19 19:23:22   Game.ts:325          [game 53800900] Releasing bot(s)
May 19 19:23:22   Game.ts:535          [game 53800900] Playing j8 { x: 8, y: 11, text: 'j8', resign: false, pass: false }
May 19 19:23:22 ! Game.ts:214          Received move for 53800900 but move_number is invalid. 118 !== 119
May 19 19:23:27   Game.ts:230          [game 53800900] Opponent played h9
May 19 19:23:27   Game.ts:402          [game 53800900] Acquiring main bot instance
May 19 19:23:27 ! Game.ts:214          Received move for 53800900 but move_number is invalid. 119 !== 120
May 19 19:23:27   Game.ts:412          [bot  2:88296] [game 53800900] Acquired bot instance
May 19 19:23:27   Game.ts:467          [bot  2:88296] Generating move for game 53800900
May 19 19:23:27   Game.ts:468          [game 53800900] genmove white
May 19 19:23:27   Bot.ts:163           [bot  2:88296] CHAT:Visits 45503 Winrate 3.10% ScoreLead -19.7 ScoreStdev 22.0 (PDA 1.38) PV H5 G4 K8 H6 H8 G9 G8 F9 F8 O19 M19 D6 E9
May 19 19:23:27   Game.ts:325          [game 53800900] Releasing bot(s)
May 19 19:23:27   Game.ts:535          [game 53800900] Playing h5 { x: 7, y: 14, text: 'h5', resign: false, pass: false }
May 19 19:23:27 ! Game.ts:214          Received move for 53800900 but move_number is invalid. 120 !== 121

And after this the same pattern repeats for the rest of the game.

commented

Ah one interesting thing at the end of the game:

May 19 20:09:00 ! Game.ts:214          Received move for 53800900 but move_number is invalid. 214 !== 215
May 19 20:09:02   Game.ts:230          [game 53800900] Opponent played o11
May 19 20:09:02   Game.ts:402          [game 53800900] Acquiring main bot instance
May 19 20:09:02 ! Game.ts:214          Received move for 53800900 but move_number is invalid. 215 !== 216
May 19 20:09:02   Game.ts:412          [bot  2:88296] [game 53800900] Acquired bot instance
May 19 20:09:02   Game.ts:467          [bot  2:88296] Generating move for game 53800900
May 19 20:09:02   Game.ts:468          [game 53800900] genmove white
May 19 20:09:22   Bot.ts:163           [bot  2:88296] CHAT:Visits 35704 Winrate 84.04% ScoreLead 14.2 ScoreStdev 20.9 PV Q9 E16 B18 F14 D18 F10 E11 B19 C19 J13 A14 J11 D13
May 19 20:09:22   Game.ts:325          [game 53800900] Releasing bot(s)
May 19 20:09:22   Game.ts:535          [game 53800900] Playing q9 { x: 15, y: 10, text: 'q9', resign: false, pass: false }
May 19 20:09:22 ! Game.ts:214          Received move for 53800900 but move_number is invalid. 216 !== 217
May 19 20:09:39   Game.ts:678          [game 53800900] Game over.   Result: W+R  W
May 19 20:09:39   Game.ts:697          [game 53800900] Starting disconnect Timeout in Game 53800900 gameOver()
May 19 20:09:39   Game.ts:678          [game 53800900] Game over.   Result: W+R  W
May 19 20:09:39   Game.ts:697          [game 53800900] Starting disconnect Timeout in Game 53800900 gameOver()
May 19 20:09:39   main.ts:173          game 53800900 is now finished
May 19 20:09:40   main.ts:213          Disconnecting from game  53800900
May 19 20:09:40   Game.ts:325          [game 53800900] Releasing bot(s)
May 19 20:09:40   Game.ts:647          [game 53800900] Disconnecting from game.
May 19 20:09:40   Bot.ts:741           [bot  2:88296] Stopping bot
May 19 20:09:40   main.ts:213          Disconnecting from game  53800900
May 19 20:09:45   Bot.ts:749           [bot  2:88296] Bot exited with code 0

We got a duplication of the disconnect message. Possibly the game was registered twice and one of them was reporting the wrong move number thing?