Hopefully published mods are not too likely to do this! It happened to me during mod development, but perhaps Factorio should protect against it? It's borderline because it's not an actual crash, but I thought I'd report it. Could happen if a mod dumps a lua table without realizing it's too big, or pretty prints a large block of text as an error message.
Sample code to put into a data.lua:
Code: Select all
local result = {}
for i=0, 100 do
r = table.insert(result, 1)
end
error(serpent.block(result))
Code: Select all
error("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");