[crash] caused by Adding ForEachLoop to BP Function Lib

Hello Epic,

I was trying to get some more re-usability into my blueprints via Blueprint Function Libraries.

I added a new function in there and tried to copy over the nodes from my previous iteration.
That always resulted in a like 5 seconds hang and then crash.
I was able to narrow it down to the ForEachLoop that I need to iterate over my Vector Array.

Whenever I try to add a ForEachLoop even if it’s disconnected, the editor crashes.

I’m on version 4.2.1 built from code.

Log excerp (line 150):

[2014.06.22-18.51.12:126][393]LogWindows:Error: appError called: Assertion failed: InVariableScope [File:C:/GitHub/UnrealEngine/4.2/Engine/Source/Editor/BlueprintGraph/Classes/EdGraphSchema_K2_Actions.h] [Line: 558]

My guess is that BP function libs cannot contain or use anything macro-…the ForEachLoop is implemented as a BP Macro :confused:

Hello,

Thank you for your report. We were not able to investigate this on the engine version you reported, but there have been many version changes to UE4 since this question was first posted. With a new version of the Engine comes new fixes and it is possible that this issue has changed or may no longer occur. Due to timetable of when this issue was first posted, we are marking this post as resolved for tracking purposes.

If you are still experiencing the issue you reported in the current engine version, then please respond to this message with additional information and we will investigate as soon as possible. If you are experiencing a similar, but different issue at this time, please submit a new report for it.

Thank you.