Desync + crash in local multiplayer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
With build 8869 I have a desync. 2 players, 1 Mac (Host) , 1 Windows and 2 AI. Loading the savegame also results in an immediate desync.
The Mac version was build from source. This is the windows version we used:
The savegame is attached to the bug report. This is the output:
Done reloading the game from replay
Replay writer has started
[sync] Reset
ComputerPlayer(3): initializing as type 2
... member of team 2
... DNA initialized
3: 0 basic buildings in savegame file.
[Host]: Requesting sync reports for time 14167589
3: expedition max duration = 8100 (135 minutes), map area root: 192
ComputerPlayer(4): initializing as type 2
... member of team 2
... DNA initialized
4: 0 basic buildings in savegame file.
4: expedition max duration = 8100 (135 minutes), map area root: 192
[Host]: Client 0: got pong
[Host]: Client 0: Time 14167589
[Host]: Client 0 reports time 14167589 (networktime = 14167610) during hang
[Host]: comparing syncreports for time 14167589
[Host]: lost synchronization with client 0!
I have: 8500fc124798334
Client has: 5afded9210edb16
FATAL ERROR - game crashed. Attempting emergency save.
Game: Writing Preload Data ... took 40ms
Game: Writing Game Class Data ... took 1ms
Game: Writing Player Info ... took 395ms
Game: Writing Map Data!
Writing Elemental Data ... took 2ms
Writing Player Names And Tribe Data ... took 0ms
Writing Port Spaces Data ... took 1ms
Writing Heights Data ... took 47ms
Writing Terrain Data ... took 85ms
Writing Player Start Position Data ... took 0ms
Writing Player Message Data ... took 22ms
Writing Resources Data ... took 60ms
Writing Map Version ... took 0ms
Writing Allowed Worker Types Data ... took 0ms
Writing Allowed Building Types Data ... took 7ms
Writing Flag Data ... took 25ms
Writing Road Data ... took 11ms
Writing Building Data ... took 13ms
Writing Map Objects ... took 349ms
Writing Flagdata Data ... took 24ms
Writing Roaddata Data ... took 104ms
Writing Buildingdata Data ... took 79ms
Writing Node Ownership Data ... took 18ms
Writing Exploration Data ... took 33ms
Writing Players Unseen Data ... took 288ms
Writing Scripting Data ... took 156ms
Writing Objective Data ... took 0ms
Writing map images ... took 2ms
MapSaver::save() for 'Calvisson' took 1372ms
Game: Writing Map Data took 1375ms
Game: Writing Player Economies Info ... took 4ms
Game: Writing ai persistent data ... took 1ms
Game: Writing Command Queue Data ... took 347ms
Game: Writing Interactive Player Data ... took 0ms
GameSaver::save() took 2166ms
SaveHandler:
[Host]: disconnect_
[Host]: disconnect_
[NetHost] Closing network connection to 192.168.
[Host]: Requesting sync reports for time 14167611
tags: | added: crash multiplayer |
Changed in widelands: | |
milestone: | none → build20-rc1 |
tags: | added: desync |
And another desync, with r8898. Again host was a Mac and client was a Windows 10 machine. The windows machine disconnected suddenly. And the game also cannot be continued as soon as the savegame is transferred and the game starts it desyncs again, with this message on the mac-host:
Done reloading the game from replay beekeepers_ house strictly requires supporters collectors_ house strictly requires supporters 5a01d7948e3ca1c a6 e9a047a648c3e63 57
Replay writer has started
[sync] Reset
ComputerPlayer(3): initializing as type 2
... DNA initialized
3: 0 basic buildings in savegame file.
3: expedition max duration = 9506 (158 minutes), map area root: 232
ComputerPlayer(4): initializing as type 2
... DNA initialized
4: 0 basic buildings in savegame file.
4: frisians_
4: frisians_aqua_farm strictly requires supporters
4: frisians_
[Host]: Requesting sync reports for time 9439154
4: expedition max duration = 9506 (158 minutes), map area root: 232
ComputerPlayer(5): initializing as type 2
... DNA initialized
5: 0 basic buildings in savegame file.
5: expedition max duration = 9506 (158 minutes), map area root: 232
[Host]: Client 0: got pong
[Host]: Client 0: Time 9439154
[Host]: Client 0 reports time 9439154 (networktime = 9439167) during hang
[Host]: comparing syncreports for time 9439154
[Host]: lost synchronization with client 0!
I have: e6c3002b3179ad2
Client has: 5269ea930f0cac4
FATAL ERROR - game crashed. Attempting emergency save.