Page 1 of 1

[0.12.16] [cube] Unable to load autosaves

Posted: Wed Nov 11, 2015 12:11 am
by Afforess
I have an interesting issue where my autosaves for one particular game will not load.

System: Ubuntu 16.04 x64, Intel i7, Nvidia 680 GTX
Factorio: 16.04
Mods: https://dl.dropboxusercontent.com/u/49805/mods.7z
Config.ini: http://pastie.org/pastes/10549532/text? ... dnfnfl0pog
Factorio Log: http://pastie.org/pastes/10549533/text? ... qvkhstxxna
Saves Affected: The error I see is not in the log, but is visible in the console stderr:

Code: Select all

*** Error in `/home/afforess/Downloads/factorio/bin/x64/factorio': realloc(): invalid next size: 0x00007ff64bd8b5c0 ***
Steps to reproduce:
Using the zip version of the game, copy the mods & config in. Launch Factorio from the console. From the main menu, load either save. Factorio will lock and freeze. Error appears in stderr.

Re: [0.12.16] Unable to load autosaves

Posted: Wed Nov 11, 2015 7:30 pm
by posila
Mod Misanthrope corrupts memory for some reason, will have to investigate more.

Re: [0.12.16] Unable to load autosaves

Posted: Thu Nov 12, 2015 3:43 am
by Afforess
posila wrote:Mod Misanthrope corrupts memory for some reason, will have to investigate more.
Ouch, My mod. Curious how I managed to do that. Thanks for the info so far.

My guess might be a linked list table structure...? https://github.com/Afforess/Misanthrope ... ap.lua#L20

Every other global table I use is an array that only contain { x , y } table entries as values.

Re: [0.12.16] [cube] Unable to load autosaves

Posted: Thu Nov 12, 2015 1:45 pm
by kovarex
Thank you for the report and especially the save + mod downloads, it helped us to fix the issue for 0.12.17

It was related to the lua recursive structures indeed, we didn't know that we need to actually check the size of the lua stack when processing it.

Re: [0.12.16] [cube] Unable to load autosaves

Posted: Thu Nov 12, 2015 6:35 pm
by Afforess
kovarex wrote:Thank you for the report and especially the save + mod downloads, it helped us to fix the issue for 0.12.17

It was related to the lua recursive structures indeed, we didn't know that we need to actually check the size of the lua stack when processing it.
Cool. No problem, you guys have the best support I've seen for any game.