# Alpha 14 - Build 504 - logic\_error: 'invalid reference in native get\_id

**URL:** <https://discourse.stonehearth.net/t/alpha-14-build-504-logic-error-invalid-reference-in-native-get-id/19711>\
**Category:** Previous Build Reports\
**Created:** [February 3, 2016, 5:33pm UTC](https://discourse.stonehearth.net/t/alpha-14-build-504-logic-error-invalid-reference-in-native-get-id/19711 "2016-02-03T17:33:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LaGrosseChoco](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/lagrossechoco/32/50500_2.png) [@LaGrosseChoco](https://discourse.stonehearth.net/u/LaGrosseChoco)\
**Post date:** [February 3, 2016, 5:33pm UTC](https://discourse.stonehearth.net/t/alpha-14-build-504-logic-error-invalid-reference-in-native-get-id/19711/1 "2016-02-03T17:33:58Z")

</div>

**Summary:**  
I was watching hearthlings to get some “Oak Log” and “Picket Fence”

release-504 (x32)  
std::logic\_error: 'invalid reference in native get\_id’  
stack traceback:  
[C]: in function ‘get\_id’  
…th/ai/actions/find\_entity\_type\_in\_storage\_action.lua:30: in function \<…th/ai/actions/find\_entity\_type\_in\_storage\_action.lua:20\>  
[C]: in function ‘set\_think\_output’  
…/ai/actions/pickup\_item\_type\_from\_storage\_action.lua:19: in function \<…/ai/actions/pickup\_item\_type\_from\_storage\_action.lua:17\>  
[C]: in function 'fn’  
stonehearth/services/server/threads/thread.lua:322: in function 'private\_msg’  
stonehearth/services/server/threads/thread.lua:515: in function '\_dispatch\_messages’  
stonehearth/services/server/threads/thread.lua:379: in function \<stonehearth/services/server/threads/thread.lua:360\>  
[C]: in function 'suspend’  
stonehearth/ai/actions/run\_effect\_action.lua:66: in function \<stonehearth/ai/actions/run\_effect\_action.lua:38\>  
[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\>

**Steps to reproduce:**

1. Don’t know
2. 
3. 

**Expected Results:**  
No bug report 😉

**Actual Results:**

**Notes:**

**Attachments:**  
log : [http://www.sendbox.fr/561a66d1b94040b1/stonehearth.zip](http://www.sendbox.fr/561a66d1b94040b1/stonehearth.zip)  
save : [http://www.sendbox.fr/1c767787c6eec8dc/1454003218389.zip](http://www.sendbox.fr/1c767787c6eec8dc/1454003218389.zip)

**Version Number and Mods in use:**  
Alpha 14 - build 504  
No mods installed

**System Information:**  
Windows 10 Pro 32 Bits  
AMD Dual Core 5000B 2.6Ghz  
ATI Radeon 3100 Graphics  
4GB RAM
