-
-
Notifications
You must be signed in to change notification settings - Fork 957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server exiting to main menu hangs client #7462
Comments
EDIT: Oh snap, client actually reached main menu as I was typing this. It really took a long time though, and looked like it was hanged. |
It was due to my savegame format, lzma:9 and map size being 4096x4096. It could display a Zzz cursor though. |
I can confirm this. More so, it would appear that the emergency network save (netsave.sav) happens twice, compounding the issue. (FOO debugs show where
Not yet sure why the whole game hangs when it's doing this emergency save - looks like it might just be because it's not threaded? |
Seems like it might not be possible to thread the save in this case - as nonthreaded would mean that the game goes back to the title screen and loads the title game, which would corrupt the save/saving process. Probably. Caused by #6796 |
I agree with @LordAro's analysis. This simply happens because an emergency save is happening. While normally all saves are done threaded, so you can continue playing, this happens in such a place we don't have that luxury. I think the only way to solve this, would be to add an additional game-mode. It is a bit complicated, let's see if I can write it down:
I think the only way out is to make a new game-mode, that knows it is doing an Emergency Save, and knows where to go to after it is done. This is a lot of work for a very rare case. And it will not be pretty. As such, I am going to close this ticket with: working-as-intended. I know it is a bit annoying, but better to have the savegame than to not have the savegame at all :) |
Version of OpenTTD
1.9.0
Expected result
Client exits to main menu
Actual result
Client hangs
Steps to reproduce
(Server) Create a non-dedicated server
(Client) Join server
(Server) Exit to main menu
(Client) hangs
The text was updated successfully, but these errors were encountered: