# Macro accessing variable from another Actor causes crash only in Standalone

**URL:** <https://forums.unrealengine.com/t/macro-accessing-variable-from-another-actor-causes-crash-only-in-standalone/320138>\
**Category:** Community & Industry Discussion\
**Tags:** macro, unreal-engine, crash, standalone, question\
**Created:** [May 29, 2015, 4:06pm UTC](https://forums.unrealengine.com/t/macro-accessing-variable-from-another-actor-causes-crash-only-in-standalone/320138 "2015-05-29T16:06:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![InterSlayer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@InterSlayer](https://forums.unrealengine.com/u/InterSlayer)\
**Post date:** [May 29, 2015, 4:06pm UTC](https://forums.unrealengine.com/t/macro-accessing-variable-from-another-actor-causes-crash-only-in-standalone/320138/1 "2015-05-29T16:06:45Z")

</div>

I have some default data set as an array of variables in my GameMode blueprint.

Also set up a macro to access and return this data, so it is available to any other blueprint.

If you preview game in Standalone mode, when trying to access data returned via macro game crashes. However it works fine in any other type of preview mode or doing a exe build and launch.

Was able to reproduce in a new ThirdPerson BP template.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [May 30, 2015, 4:12pm UTC](https://forums.unrealengine.com/t/macro-accessing-variable-from-another-actor-causes-crash-only-in-standalone/320138/2 "2015-05-30T16:12:08Z")

</div>

Hi ,

Can you show me your array setup in GameMode and Macro’s graph so I can try to reproduce issue here? If you would also and attach log from your project after this crash occurs, that would be great. Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [June 3, 2015, 4:50pm UTC](https://forums.unrealengine.com/t/macro-accessing-variable-from-another-actor-causes-crash-only-in-standalone/320138/3 "2015-06-03T16:50:21Z")

</div>

Hi ,

We haven’t heard back from you in a while, so I’m resolving this post for tracking purposes. If you’re still crashing when accessing a variable from an Actor from a Macro, please provide more details as requested above and we’ll keep looking into it. Thanks!

---

<div class="post-metadata">

**Author:** ![InterSlayer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@InterSlayer](https://forums.unrealengine.com/u/InterSlayer)\
**Post date:** [June 3, 2015, 10:35pm UTC](https://forums.unrealengine.com/t/macro-accessing-variable-from-another-actor-causes-crash-only-in-standalone/320138/4 "2015-06-03T22:35:24Z")

</div>

[Crashlog][1]

 ![45196-1gamemodevar.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/d/2/4d2b3bc0c6e600ee8d062184f76f43e89b134a44.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [June 3, 2015, 10:59pm UTC](https://forums.unrealengine.com/t/macro-accessing-variable-from-another-actor-causes-crash-only-in-standalone/320138/5 "2015-06-03T22:59:47Z")

</div>

Thanks! This looks very similar to a bug that was fixed in 4.7.4 (11011). Which version of 4.7 are you using? If it’s 4.7.6, I may need to reopen bug report.

---

<div class="post-metadata">

**Author:** ![InterSlayer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@InterSlayer](https://forums.unrealengine.com/u/InterSlayer)\
**Post date:** [June 4, 2015, 2:36am UTC](https://forums.unrealengine.com/t/macro-accessing-variable-from-another-actor-causes-crash-only-in-standalone/320138/6 "2015-06-04T02:36:09Z")

</div>

Yeah, I’m on 4.7.6

Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [June 8, 2015, 8:47pm UTC](https://forums.unrealengine.com/t/macro-accessing-variable-from-another-actor-causes-crash-only-in-standalone/320138/7 "2015-06-08T20:47:13Z")

</div>

Thanks ! I was able to reproduce this in 4.7.6 with information you’ve provided, as well as in our internal build. I’ve created a bug report for crash (UE-16707), and I’ll let you know when I see any update on it. Thanks again!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [June 12, 2015, 4:59pm UTC](https://forums.unrealengine.com/t/macro-accessing-variable-from-another-actor-causes-crash-only-in-standalone/320138/8 "2015-06-12T16:59:40Z")

</div>

Hi ,

Looks like this has already been fixed in our main internal build. We will probably see fix included in next major release (likely 4.9). Thanks again!
