# \[Dev 2513\] logic\_error: 'invalid reference in native get\_id'

**URL:** <https://discourse.stonehearth.net/t/dev-2513-logic-error-invalid-reference-in-native-get-id/15019>\
**Category:** Previous Build Reports\
**Created:** [July 27, 2015, 5:39pm UTC](https://discourse.stonehearth.net/t/dev-2513-logic-error-invalid-reference-in-native-get-id/15019 "2015-07-27T17:39:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FX5](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/fx5/32/47365_2.png) [@FX5](https://discourse.stonehearth.net/u/FX5)\
**Post date:** [July 27, 2015, 5:39pm UTC](https://discourse.stonehearth.net/t/dev-2513-logic-error-invalid-reference-in-native-get-id/15019/1 "2015-07-27T17:39:24Z")

</div>

another error of my [next round of RAM stress tests](http://discourse.stonehearth.net/t/dev-2513-ram-stress-test/15008/3)  
seems to be path finding related

```
develop-2513 (x64)
std::logic_error: 'invalid reference in native get_id'
stack traceback:
	[C]: ?
	[C]: in function 'get_id'
	...arth/components/pathfinder/pathfinder_component.luac:35: in function 'find_path_to_entity'
	stonehearth/ai/actions/find_path_to_entity.luac:23: in function '_start_pathfinder'
	stonehearth/ai/actions/find_path_to_entity.luac:28: in function '_on_position_changed'
	stonehearth/ai/actions/find_path_to_entity.luac:24: in function '_changed_cb'
	radiant/modules/filtered_trace.luac:4: in function <radiant/modules/filtered_trace.luac:2>

```

 ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/9/7/9794e66824efae7a3fe58d2fbfd035ed12c7ef91.jpg)

could be one of the many far away items that wait to be picked up

 ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/1/1/1144932d65dd0324bb2b82d88eb70ab2df49170c.jpg)

---

<div class="post-metadata">

**Author:** ![Albert](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/albert/32/45599_2.png) [@Albert](https://discourse.stonehearth.net/u/Albert)\
**Post date:** [July 28, 2015, 11:36pm UTC](https://discourse.stonehearth.net/t/dev-2513-logic-error-invalid-reference-in-native-get-id/15019/2 "2015-07-28T23:36:55Z")

</div>

Nice stress test. Fixed for the next build. Thanks!
