Attempt to index local 'entity' (a nil value) - in function 'unwrap_iconic_item'

Sudden crash without any warning

Steps to reproduce:

  1. Unknown
  2. Unknown
  3. Unknown

Expected Results:

Actual Results:

Error report:

The following error code suddenly appared on my game:

release-523 (x64)
stonehearth/lib/entity_forms/entity_forms_lib.lua:73: attempt to index local 'entity' (a nil value)
stack traceback:
	stonehearth/lib/entity_forms/entity_forms_lib.lua:73: in function 'unwrap_iconic_item'
	.../actions/upgrade_equipment/equip_carrying_action.lua:24: in function <.../actions/upgrade_equipment/equip_carrying_action.lua:22>
	[C]: ?
	[C]: ?
	[C]: ?
	[C]: ?
	[C]: ?
	[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>


Version Number and Mods in use:

No mods installed

System Information:

Windows 7
AMD A8 6600K APU @ 3.90GHz
AMD Radeon HD 7800 Series

Hey there @mymusicmanager, welcome to the Discourse!

Just want to check, did your game actually crash (as in close the game, without warning, and return to your desktop)? Or did you just receive this engine error? From the looks of the error the game shouldn’t have crashed…


No, the game kept on running, and did not close in any way.
Thought I’d post it here, just to make sure you were aware of the bug :slight_smile:

Kind regards

1 Like

Great, appreciate it! In the future, can you use the term “Engine Error” instead of “crash”, so it is clearer?
Keep reporting the bugs!