FS#6445 - Non-dedicated server gets stuck

Attached to Project: OpenTTD
Opened by Ricardo (Samu) - Wednesday, 13 April 2016, 00:05 GMT
Type Bug
Category Network
Status New
Assigned To No-one
Operating System Windows
Severity High
Priority Normal
Reported Version 1.6.0
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


Non-dedicated server gets stuck when selecting a savegame file to load while a client is joining and the server is encoding the save to the client.

This bug is a bit hard to reproduce. It requires 3 things and exact timing:
1 - a savegame file already available to load, preferibly large (4096x4096 map)
2 - a non-dedicated server running, preferibly large (4096x4096 map)
3 - a client joining the server.

1+2. Have the savegame file ready for the server:
- launch openttd
- click multiplayer
- click start server
- click new game
- generate a large map (4096x4096 map)
- once it generates, save this game
- have the load game window already open, but before clicking the savegame, a client has to join first

3. A client joins the server:
- launch openttd
- click multiplayer
- join the server, and then...

... the bug:
- the server will display SAVING GAME when the client joins.
- with the load game window open, time to click the savegame to happen exactly when SAVING GAME message is being displayed.

- Server gets stuck.
- Client gets a 20 seconds message without an answer from the server, then network-connection lost
This task depends upon

Comment by andythenorth (andythenorth) - Wednesday, 23 August 2017, 07:29 GMT
'Stuck' = crashes, with crashlog? Or 'stuck' = hangs, spinning?
Comment by Ricardo (Samu) - Friday, 02 February 2018, 22:31 GMT