This came up from my mod
https://mods.factorio.com/mod/True-Nukes/discussion/5f974f660d7443a2dff3f64c
But applies generally, even without other mods enabled.
The mod causes a game crash when an entity is killed by anything which doesn't assign the cause normally (e.g. poison).
Replication:
Kill a tree (or other entity) with poison.
Actual failure from factorio-current.log:
101.353 Error MainLoop.cpp:1207: Exception at tick 700: The mod Maps (1.0.5) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event Maps::on_entity_died (ID 4)
Maps/control.lua:233: attempt to index local 'cause' (a nil value)
stack traceback:
Maps/control.lua:233: in function <Maps/control.lua:214>
The failing line is a check on the force of the cause of an entity death:
local force = cause.force
to fix this:
local force
if(cause) then
force = cause.force
end
I think, although this is just a quick look at the code, which, of course, you know way way better than me... Just trying to be as helpful as possible, I tested this and it seems to work.