# Select Node + Set(by ref) throws an error or crashes

**URL:** <https://forums.unrealengine.com/t/select-node-set-by-ref-throws-an-error-or-crashes/352543>\
**Category:** Blueprint\
**Tags:** unreal-engine, bug-report, Blueprint, question\
**Created:** [April 1, 2016, 8:16pm UTC](https://forums.unrealengine.com/t/select-node-set-by-ref-throws-an-error-or-crashes/352543 "2016-04-01T20:16:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikadin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vikadin](https://forums.unrealengine.com/u/Vikadin)\
**Post date:** [April 1, 2016, 8:16pm UTC](https://forums.unrealengine.com/t/select-node-set-by-ref-throws-an-error-or-crashes/352543/1 "2016-04-01T20:16:20Z")

</div>

Passing the reference returned by a Select node to a Set (by ref) node, results in one of three things happening **when compiled** :

If the Set (by ref) node is called directly, the editor crashes.

![84808-direct.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/2/c/12cba468bb14f0867f46b9fe0a2e80b970147195.png)

If the Set (by ref) node is called via a macro, the editor prints the stack trace in the output log.

![84809-macro.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/0/e903dad7531c64dd0250753d831a9d4e1faf6e00.png)

If the Set (by ref) node is called via a function, nothing happens.

Prior to 4.11, calling by macro did not result in any errors. However I just checked 4.10 and calling Set (by ref) directly resulted in a crash.

Steps to reproduce:

1. Open any blueprint in any project
2. Create a select node and connect any Int/Float/Byte value to the selection / index pins
3. Connect the return value of the select node to a Set (by ref) node
4. Compile the blueprint

I’d expect this to work given that the Select node’s return pin is that of a reference. If this isn’t the intended usage then it would make more sense for the return pin to be that of a value and not a reference.

Unrelated to this bug report-  
I posted a comment [hereanswers.unrealengine.com/questions/397372/axis-mappings-for-mouse-x-or-y-return-0-after-1st.html](http://hereanswers.unrealengine.com/questions/397372/axis-mappings-for-mouse-x-or-y-return-0-after-1st.html) as it seems similar to an issue I am having and I didn’t want to post a duplicate bug report. However I’m wondering whether my issue is different enough to warrant a separate bug report.  
Should I post a separate bug report, or just leave it?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [April 4, 2016, 3:17pm UTC](https://forums.unrealengine.com/t/select-node-set-by-ref-throws-an-error-or-crashes/352543/2 "2016-04-04T15:17:44Z")

</div>

Hi Vikadin,

Unfortunately I have not been able to reproduce this error on my end. Can you post the crash logs here so I can take a look? They can be found at \Unreal Projects\PROJECTNAME\saved\logs. Are there any additional steps I can take to reproduce this in a clean, blank project with no additional content?

---

<div class="post-metadata">

**Author:** ![Vikadin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vikadin](https://forums.unrealengine.com/u/Vikadin)\
**Post date:** [April 5, 2016, 10:30am UTC](https://forums.unrealengine.com/t/select-node-set-by-ref-throws-an-error-or-crashes/352543/3 "2016-04-05T10:30:28Z")

</div>

I just made a fresh blueprint project, and setup the nodes as they are in the second picture in my original post (with the select node connected to ++). I used a fresh actor blueprint, but any blueprint should work. Then I compiled, and got the warning (macro.log).

Then I restarted the project and set it up like in the first picture, with the select node connected directly to Set (by ref). This crashed when compiled, and is recorded in direct.log

If there is anything else I can do to help, let me know. There aren’t any additional steps that I can think of, beyond making sure the Set (by ref) / ++ nodes are connected by execution pins (as they are in the pictures).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [April 5, 2016, 5:24pm UTC](https://forums.unrealengine.com/t/select-node-set-by-ref-throws-an-error-or-crashes/352543/4 "2016-04-05T17:24:45Z")

</div>

Do you have a sample project this is occurring in I can look at? Thus far the reproduction steps have not produced any crash on my end.

---

<div class="post-metadata">

**Author:** ![Vikadin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vikadin](https://forums.unrealengine.com/u/Vikadin)\
**Post date:** [April 5, 2016, 8:48pm UTC](https://forums.unrealengine.com/t/select-node-set-by-ref-throws-an-error-or-crashes/352543/5 "2016-04-05T20:48:58Z")

</div>

Here it is. Just need to connect the execution pins and compile.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [April 6, 2016, 5:12pm UTC](https://forums.unrealengine.com/t/select-node-set-by-ref-throws-an-error-or-crashes/352543/6 "2016-04-06T17:12:08Z")

</div>

After testing your project and searching through our bug reports database I have found a similar issue, UE-28443 has already been reported. I have updated the bug report to include this crash.
