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.
If the Set (by ref) node is called via a macro, the editor prints the stack trace in the output log.
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:
Open any blueprint in any project
Create a select node and connect any Int/Float/Byte value to the selection / index pins
Connect the return value of the select node to a Set (by ref) node
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.
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?
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).
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.