[1.1.27] Error loading save (decompression failed: input is invalid or incomplete)
Posted: Sat Mar 20, 2021 12:20 am
Hello. I'm running a lot of mods, however, I've experienced the issue 3-4 times in the last month that I returned to the game. The most significant action I took between the save that loads, and this one, was used the delete chunks command to reduce save size. Other than that, it was typical play with modded Factorio.
Lua used for deleting chunks:
/c local surface = game.player.surface;
game.player.force.cancel_charting(surface);
local chunk_radius = 12;
for chunk in surface.get_chunks() do
if (chunk.x < -chunk_radius or chunk.x > chunk_radius or chunk.y < -chunk_radius or chunk.y > chunk_radius) then
surface.delete_chunk(chunk)
end
end
Attaching the save that works, and the save that fails, in case you can repro it with deleting chunks. I could not.1Pyanodons2.zip is the working save.
Something of note that a majority of people would not have, is I run "Primo Cache" to boost performance and also save writes to my SSD with the delayed write functionality. I've been using this for at least 6 months without issue, I believe it's been longer.
Edit:
I enabled logging under developer settings, and got this extra tidbit.
128.511 Loading map D:\Factorio\saves\1Pyanodons1.zip: 22484958 bytes.
128.614 Loading level.dat: 80553202 bytes.
128.618 Info Scenario.cpp:197: Map version 1.1.27-0
130.557 Warning Map.cpp:346: Map loading failed: Decompression failed: input is invalid or incomplete.
131.379 Error AppManagerStates.cpp
Decompression failed: input is invalid or incomplete.
2nd Edit:
Issue occurred again on a brand new game, within the first 6 hours of play, and the save from 11 minutes before still works. This one had no chunks deleted. I know you aren't planning on any feature enhancements to the game at this point, but if you could consider adding more rolling for the logs so we could backtrack easier, that would be great for helping us help you to help us.
2Pyanodons1.zip is the broken save
2Pyanodons2.zip is the good save.
Lua used for deleting chunks:
/c local surface = game.player.surface;
game.player.force.cancel_charting(surface);
local chunk_radius = 12;
for chunk in surface.get_chunks() do
if (chunk.x < -chunk_radius or chunk.x > chunk_radius or chunk.y < -chunk_radius or chunk.y > chunk_radius) then
surface.delete_chunk(chunk)
end
end
Attaching the save that works, and the save that fails, in case you can repro it with deleting chunks. I could not.1Pyanodons2.zip is the working save.
Something of note that a majority of people would not have, is I run "Primo Cache" to boost performance and also save writes to my SSD with the delayed write functionality. I've been using this for at least 6 months without issue, I believe it's been longer.
Edit:
I enabled logging under developer settings, and got this extra tidbit.
128.511 Loading map D:\Factorio\saves\1Pyanodons1.zip: 22484958 bytes.
128.614 Loading level.dat: 80553202 bytes.
128.618 Info Scenario.cpp:197: Map version 1.1.27-0
130.557 Warning Map.cpp:346: Map loading failed: Decompression failed: input is invalid or incomplete.
131.379 Error AppManagerStates.cpp
2nd Edit:
Issue occurred again on a brand new game, within the first 6 hours of play, and the save from 11 minutes before still works. This one had no chunks deleted. I know you aren't planning on any feature enhancements to the game at this point, but if you could consider adding more rolling for the logs so we could backtrack easier, that would be great for helping us help you to help us.
2Pyanodons1.zip is the broken save
2Pyanodons2.zip is the good save.