Assertion failed: Attempting to create an entity without a uri. If it is a temporary entity that shouldn't be saved, use stonehearth:object:transient

I’ll start with a pic first;

So i started constructing the ‘outer’ wall you see to expand my town. my little hearthling where building away, but for some reason some of them decided to scaffold an older wall which was near it. At that point i recived the following errors;

release-524 (x64)
radiant/modules/entities.lua:22: assertion failed: Attempting to create an entity without a uri. If it is a temporary entity that shouldn't be saved, use stonehearth:object:transient
stack traceback:
	[C]: in function 'error'
	radiant/modules/common.lua:422: in function 'assert'
	radiant/modules/entities.lua:22: in function 'create_entity'
	...th/ai/actions/teardown_structure_adjacent_action.lua:61: in function <...th/ai/actions/teardown_structure_adjacent_action.lua:50>
	[C]: ?
	[C]: ?
	[C]: ?
	[C]: ?
	[C]: in function 'run'
	...tonehearth/services/server/tasks/run_task_action.lua:143: in function <...tonehearth/services/server/tasks/run_task_action.lua:141>
	[C]: ?
	...
	[C]: in function 'run'
	stonehearth/components/ai/ai_component.lua:533: in function <stonehearth/components/ai/ai_component.lua:518>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:234: in function 'xpcall'
	stonehearth/components/ai/ai_component.lua:518: in function '_thread_main'
	stonehearth/services/server/threads/thread.lua:249: in function <stonehearth/services/server/threads/thread.lua:246>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:234: in function 'xpcall'
	stonehearth/services/server/threads/thread.lua:246: in function 'f'
	radiant/lib/env.lua:15: in function <radiant/lib/env.lua:14> 
release-524 (x64)
...hearth/services/server/build/scaffolding_manager.lua:456: assertion failed: rblock 632 has sblock id 662 already when it shouldn't.
stack traceback:
	radiant/modules/common.lua:214: in function 'report_traceback'
	radiant/modules/common.lua:225: in function <radiant/modules/common.lua:219>
	[C]: in function 'error'
	radiant/modules/common.lua:422: in function 'assert'
	...hearth/services/server/build/scaffolding_manager.lua:456: in function '_process_new_regions'
	...hearth/services/server/build/scaffolding_manager.lua:450: in function '_process_changes'
	...hearth/services/server/build/scaffolding_manager.lua:424: in function 'obj'
	radiant/modules/events.lua:76: in function 'instance'
	radiant/modules/events.lua:209: in function <radiant/modules/events.lua:203>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:234: in function 'xpcall'
	radiant/modules/events.lua:203: in function 'trigger'
	radiant/modules/events.lua:272: in function '_trigger_gameloop'
	radiant/modules/events.lua:323: in function '_update'
	radiant/server.lua:62: in function <radiant/server.lua:58>

It this point the new wall was complete but the old was is now being taken down.

Hi there,
This bug is fixed in a15.
Thank you for reporting it.
-Yang

3 Likes

+1 on this. Also had a prefab pair of houses built right up next to each other, and kind of near to a lake. Gave an order to tear down and got the following bug:

release-524 (x64)
radiant/modules/entities.lua:22: assertion failed: Attempting to create an entity without a uri. If it is a temporary entity that shouldn't be saved, use stonehearth:object:transient
stack traceback:
	[C]: in function 'error'
	radiant/modules/common.lua:422: in function 'assert'
	radiant/modules/entities.lua:22: in function 'create_entity'
	...th/ai/actions/teardown_structure_adjacent_action.lua:61: in function <...th/ai/actions/teardown_structure_adjacent_action.lua:50>
	[C]: ?
	[C]: ?
	[C]: ?
	[C]: ?
	[C]: in function 'run'
	...tonehearth/services/server/tasks/run_task_action.lua:143: in function <...tonehearth/services/server/tasks/run_task_action.lua:141>
	[C]: ?
	...
	[C]: in function 'run'
	stonehearth/components/ai/ai_component.lua:533: in function <stonehearth/components/ai/ai_component.lua:518>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:234: in function 'xpcall'
	stonehearth/components/ai/ai_component.lua:518: in function '_thread_main'
	stonehearth/services/server/threads/thread.lua:249: in function <stonehearth/services/server/threads/thread.lua:246>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:234: in function 'xpcall'
	stonehearth/services/server/threads/thread.lua:246: in function 'f'
	radiant/lib/env.lua:15: in function <radiant/lib/env.lua:14>

Hey there @Wesomatic, welcome to the Discourse! Looks like this is already fixed for the A15, so I moved your report here :smiley:.

2 Likes

Many thanks! I did try to look to see if it was already reported but didn’t find this one. Thanks for all your work!

1 Like