[1.0.0] Memory Leak
Posted: Thu Oct 15, 2020 12:52 pm
Memory leak when creating lots of bitters by script. Memory usage does not drop even if all of the bitters are killed.
How to reproduce?
Surround the origin point of the map with flamethrowers to kill bitters. Then run this code to generate bitters at origin.
The game will be laggy, so after some time remove the event handler and remove all entities on the map. But memory usage still stays high after clearing all the entities, unless you save the game and reload it.
How to reproduce?
Surround the origin point of the map with flamethrowers to kill bitters. Then run this code to generate bitters at origin.
Code: Select all
script.on_event(defines.events.on_tick, function(event)
for _ = 1, 10 do
game.surfaces["nauvis"].create_entity({name="small-biter", position={0, 0}})
end
end)