[0.18.30] hard freeze with spill_item_stack in ungenerated map area
Posted: Thu Jun 04, 2020 2:31 am
Discovered by creating a new surface:
but also reproducible on nauvis by pointing to an area of the map yet to be generated:
Observed behavior: the game process locks up and becomes unresponsible. It appears that the game locks up searching fruitlessly for an available place to create the item-on-ground entity.
Expected behavior: any of 1) Lua error, 2) graceful failure and not creating the item-on-ground, or 3) give up on the search after a reasonable amount of time and create the item-on-ground at the specified position, since it appears to be okay to do so via create_entity.
Code: Select all
/c game.create_surface("test").spill_item_stack({0,0}, {name="iron-plate", count=1})
Code: Select all
/c game.surfaces[1].spill_item_stack({500000,500000},{name="iron-plate",count=1})
Expected behavior: any of 1) Lua error, 2) graceful failure and not creating the item-on-ground, or 3) give up on the search after a reasonable amount of time and create the item-on-ground at the specified position, since it appears to be okay to do so via create_entity.