I get repetitive warnings while mines are being generated :
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
2017-01-15 16:13:45: WARNING[Emerge-0]: Map::getNodeMetadata(): Block not found
2017-01-15 16:13:45: WARNING[Emerge-0]: Map::removeNodeMetadata(): Block not found
That make the game freeze , but it doesn't make it crash (though sometimes warnings are followed by a segmentation fault (so, yes... crash))
I use minetest v 0.4.15 on debian 8 with
minetest_game (intllib) and a lot of other mods but I am quite sure it come from tsm_mines because it stop happening if I remove it.
It also happen just before log message "created mine at...." and is quite easy to reproduce by creating a new world, and moving fast in free-move... when a mine appears, game freeze (you can walk in dark ungenerated areas) and warnings are showed...
It also happen with kaeza's fork.
This kind of warning if often due to trying to do something to a node that as not been generated yet.
- Note/hint :
It It seem similar to one issue I fixed with (blockmen's ruins mod) and it was caused by 'can-replace' function supposed to check if it was ok to continue :
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
local function can_replace(pos)
local n = minetest.get_node_or_nil(pos)
if n and n.name and minetest.registered_nodes[n.name] and not minetest.registered_nodes[n.name].walkable then
return true
elseif not n then
return true
else
return false
end
end
The 'elseif not n ...' shouldn't return true because it mean a node not generated (ignore)
Anyway that is very annoying because that keep happening and I didn't find the exact cause of it