Page 1 of 1

[Posila] 0.14.21 Game crashes on load

Posted: Thu Dec 22, 2016 7:32 pm
by bchmura
Hi, We've had this problem a few times over the past year, its a pain in the butt, however going to an earlier save seems to help.

I have no idea what we are doing to cause it, but here is how it happens.

1) We play in multiplayer just fine
2) Game continues to save files and keep running fine
3) At some point it starts saving corrupted save files and we don't know it until the next restart or the next attempt to connect.

WE NEVER HAVE A CRASH IN GAME HOWEVER


Essentially the headless server is running still. The client downloads the map, then attempts to load it and says 'Cannot load downloaded map: Internal error, unknown tile 137". The server log has no errors.

If I restart the server, I get a similar error on the server

2.262 Error FileUtil.cpp:284: Can't remove /opt/factorio/temp/currently-playing: No such file or directory
2.284 Info Scenario.cpp:152: Map version 0.14.21-0
5.083 Error ServerMultiplayerManager.cpp:93: MultiplayerManager failed: "Internal error, unknown tile 137"
5.083 Info ServerMultiplayerManager.cpp:658: mapTick(-1) changing state from(CreatingGame) to(InitializationFailed)
5.103 Error Main.cpp:509: Couldn't load the game for MP: Internal error, unknown tile 137

I download and try the client only, and same thing - In the attached log, it is the second set - autosave 2 I believe.

The save file is about 80MB big, so I am providing a link instead

http://www.temporalfocus.com/factorio/problem_save.zip
Mods

Re: 0.14.21 Game crashes on load

Posted: Thu Dec 22, 2016 8:50 pm
by Loewchen
Please post the .ziped mod folder and the last working save. The best way to find the cause is, two have as little time between the saves as possible.
Save game corruption can be caused by a bug in the game or a defect in the hardware.

Re: 0.14.21 Game crashes on load

Posted: Fri Dec 23, 2016 12:39 am
by bchmura
Mod folder gets archived here
http://www.temporalfocus.com/factorio/mods.tgz

I'll see if I can post a previous autosave... not sure if it has been overwritten yet.

Re: 0.14.21 Game crashes on load

Posted: Fri Dec 23, 2016 12:56 am
by bchmura
http://www.temporalfocus.com/factorio/p ... m_save.zip

I believe this is the last autosave before the problem...

Re: [Posila] 0.14.21 Game crashes on load

Posted: Sat Dec 31, 2016 7:40 am
by bchmura
Another possible clue here....

This happened again but here is the odd thing. I have the headless server running the game on linux.

The other night, I saved the game locally, and then exited the server running version. The next time I tried to connect, the server version was bad, but my locally saved copy worked fine.

As a developer, made me wonder if the routines for saving in the headless version are different, or perhaps a linux related bug (local is Win 7).

Anyway, just thought I would throw that out there. I may have these two copies still if that would help

Re: [Posila] 0.14.21 Game crashes on load

Posted: Mon Jan 02, 2017 11:49 am
by posila
Hi, thanks for the report. And thank you for providing also working autosave.
I take it you continued playing from autosave and don't need the broken save to be fixed.

On of the trees was saved with entityID 0, which made the save unloadable. We got one more report with this kind of corruption, so we will investigate more. What hardware does the server run on? There is some possibility of it being hardware issue.

How often does this happen? Do you have some saves from previous corruptions?